Every time I try to deploy the Play 2.0 default application on Heroku I see following message. What could be the possible cause of this delay ? How to resolve this ?
! Timed out compiling Play 2.x - Java app (15 minutes)
! See https://devcenter.heroku.com/articles/slug-compiler#time-limit
To git#heroku.com:lit-sea-4547.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:lit-sea-4547.git'
Related
Here is my error code :
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/quiet-dawn-52192.git'
enter image description here
I'm trying to deploy a Go web app to Heroku using this template and this guide. Working great locally, but when I try to deploy with
git push heroku master
I get this error:
remote: Parsing meta tags from https://github.com?go-get=1 (status code 200)
remote: can't load package: package github.com/f4ww4z/sipss: unknown import path "github.com/f4ww4z/sipss": cannot find module providing package github.com/f4ww4z/sipss
remote: ! Push rejected, failed to compile Go app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to sipss.
remote:
To https://git.heroku.com/sipss.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/sipss.git'
Full log after the deployment command is here.
I see that heroku's actually detected the module github.com/f4ww4z/sipss in the go.mod file (see log link), so why is it throwing this cannot find module providing package github.com/f4ww4z/sipss ?
Looks like your git repo is private. Read this https://github.com/heroku/heroku-buildpack-go#private-git-repos
I'm using Git to mount an app to Scalingo, but when I do "git push scalingo master" it shows me this:
XXXXX+AAAA#AAAA MINGW32 ~/Desktop/Scalingo (master)
$ git push scalingo master
Counting objects: 1120, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1043/1043), done.
Writing objects: 100% (1120/1120), 16.71 MiB | 1.53 MiB/s, done.
Total 1120 (delta 208), reused 0 (delta 0)
<-- Start deployment of vinumtest -->
Fetching source code
Fetching deployment cache
-----> Installing requirements with pip
You must give at least one requirement to install (see "pip help
install")
Build complete, shipping your container...
Waiting for your application to boot...
! Error deploying the application
! → Your application has stopped unexpectedly when starting
! Read the output and fix your code accordingly
! Common errors: http://doc.scalingo.com/deployment/start-
error#crashed
! Need help? Email us: support#scalingo.com
To git#scalingo.com:test.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#scalingo.com:test.git'
The actual result is that I cant do the command "git push scalingo master"
As the message in the deployment is telling you:
You must give at least one requirement to install (see "pip help install")
It seems that your requirements.txt does not contain any dependency. All the Python modules you're using should be listed in this file.
What kind of application are you trying to deploy?
Whatever is the app, you have to ensure that your application is working on your local workstation before deploying it.
Regards,
-- Léo
I have one problem.
I have one app in play framework.
I'm using play 2.2. My code is github and when I send command "git push heroku master" I have this problem:
Initializing repository, done.
Counting objects: 574, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (512/512), done.
Writing objects: 100% (574/574), 1.45 MiB | 315 KiB/s, done.
Total 574 (delta 172), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
! Push rejected, no Cedar-supported app detected
To git#heroku.com:projetosplay.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:projetosplay.git'
I have aplication.conf in my github and I set my project to use play 2 in heroku:
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-scala.git
I think is stange is that which command I type always give me the same message (example):
heroku open
! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.
Then I put: heroku open --app .git and is work.
Anybody has one idea ?
thanks !!!
Did you perhaps forget to create a procfile? You need such a file with e.g. following content:
web: play run --http.port=$PORT $PLAY_OPTS
I've tried on windows 7 and ubuntu 12.04. In both cases, I got errors about unable to get dependencies. I'm following the instructions from http://www.playframework.org/documentation/2.0.1/ScalaTodoList and http://www.playframework.org/documentation/2.0.1/JavaTodoList
Getting net.java.dev.jna jna 3.2.3 ...
downloading http://s3pository.heroku.com/maven-central/net/java/dev/jna/j
na/3.2.3/jna-3.2.3.jar ...
:: problems summary ::
:::: WARNINGS
[FAILED ] net.java.dev.jna#jna;3.2.3!jna.jar: The HTTP respo
nse code for http://s3pository.heroku.com/maven-central/net/java/dev/jna/jna/3.2
.3/jna-3.2.3.jar did not indicate a success. See log for more detail. (40ms)
[FAILED ] net.java.dev.jna#jna;3.2.3!jna.jar: The HTTP respo
nse code for http://s3pository.heroku.com/maven-central/net/java/dev/jna/jna/3.2
.3/jna-3.2.3.jar did not indicate a success. See log for more detail. (40ms)
==== heroku-central: tried
http://s3pository.heroku.com/maven-central/net/java/dev/jna/jna/3.2.3/
jna-3.2.3.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: FAILED DOWNLOADS ::
:: ^ see resolution messages for details ^ ::
::::::::::::::::::::::::::::::::::::::::::::::
:: net.java.dev.jna#jna;3.2.3!jna.jar
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
SERVER ERROR: Gateway Timeout url=http://s3pository.heroku.com/maven-cen
tral/net/java/dev/jna/jna/3.2.3/jna-3.2.3.jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
download failed: net.java.dev.jna#jna;3.2.3!jna.jar
Error during sbt execution: Error retrieving required libraries
(see /tmp/build_2alkkctoiqzvf/project/boot/update.log for complete log)
Error: Could not retrieve jna 3.2.3
! Failed to build app with sbt
! Heroku push rejected, failed to compile Play 2.0 app
To git#heroku.com:falling-stone-8800.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:falling-stone-8800.git'
This seems to be a systemwide error today (June 10, 2012). There's most likely nothing wrong with your code or deployment method, it may just be a Heroku hiccup. I have been unable to push changes to my (working) Java Play 2.0 app all morning due to the same system error.
I have filed a ticket and would urge others to do the same.