Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build hangs #16

Closed
spajker opened this issue Oct 10, 2014 · 6 comments
Closed

Build hangs #16

spajker opened this issue Oct 10, 2014 · 6 comments

Comments

@spajker
Copy link

spajker commented Oct 10, 2014

Every time I try deploy a little bigger application I got result as below.

[info] Compiling 12 Scala sources and 20 Java sources to /var/lib/openshift/5437
04ae50044698c9000375/app-root/runtime/repo/target/scala-2.10/classes...
[info] Main Scala API documentation to /var/lib/openshift/543704ae50044698c90003
75/app-root/runtime/repo/target/scala-2.10/api...
[info] Packaging /var/lib/openshift/543704ae50044698c9000375/app-root/runtime/re
po/target/play-1.0-SNAPSHOT-assets.jar ...
[info] Done packaging.
model contains 61 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /var/lib/openshift/543704ae50044698c9000375/app-root/runtime/re
po/target/scala-2.10/play_2.10-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
Connection to (..).rhcloud.com closed by remote host.
Connection to (..).rhcloud.com closed.

@tyrcho
Copy link
Owner

tyrcho commented Oct 11, 2014

Hi,

It might be related to the latest merge I did, I have also issues with the
latest version of play (2.3.5).
Do you have the same issue with the previous version of the cartridge
(2.3.3) :
http://cartreflect-claytondev.rhcloud.com/reflect?github=tyrcho/openshift-cartridge-play2&commit=9c8df3a82d200aedd97265e3e30b9b22e70c6fb9
?

If I have time, I will try to solve it next week.

On Fri, Oct 10, 2014 at 9:30 AM, spajker notifications@github.com wrote:

Every time I try deploy a little bigger application I got result as below.

[info] Compiling 12 Scala sources and 20 Java sources to
/var/lib/openshift/5437
04ae50044698c9000375/app-root/runtime/repo/target/scala-2.10/classes...
[info] Main Scala API documentation to
/var/lib/openshift/543704ae50044698c90003
75/app-root/runtime/repo/target/scala-2.10/api...
[info] Packaging
/var/lib/openshift/543704ae50044698c9000375/app-root/runtime/re
po/target/play-1.0-SNAPSHOT-assets.jar ...
[info] Done packaging.
model contains 61 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging
/var/lib/openshift/543704ae50044698c9000375/app-root/runtime/re
po/target/scala-2.10/play_2.10-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
Connection to server-shopnav.rhcloud.com closed by remote host.
Connection to server-shopnav.rhcloud.com closed.

Reply to this email directly or view it on GitHub
#16.

@spajker
Copy link
Author

spajker commented Oct 13, 2014

I made few tests.
There is similar situation with older version. When app is bigger, it will hangs during a deploy. I use small gear and I think lack of power or memory is an issue - I tried few times without any change in app - it finish correctly once (4-th try) but fail many other times - so maybe it is related to host load.
Maybe there is some timeout setting for deploy or somethong like this?
There is not any error number - just ssh connection is closed so I do not have any error message.
For now I just package my app in war I deploy on openshift on Tomcat 7.

@nathantalewis
Copy link

I'm running into the same thing. I even ran into it once with the basic play-slick template.

I did notice that when I have two ssh connections open (one of them either being through git or just running "gear deploy" manually) then when this problem occurs, both connections are simultaneously ended with that same message. I don't think it is a problem with disk space because I was watching that closely. It also doesn't seem to be a timeout issue since it disconnects both connections even if the other was just opened.

@tyrcho
Copy link
Owner

tyrcho commented Nov 4, 2014

sorry guys, I won't have time to have a look by myself, and I don't have access anymore to a local, performant openshift implementation. If anyone has a solution I would gladly merge a PR to solve the issue !

@aryalrabin
Copy link
Contributor

It seems that build hangs as the application gets bigger because of the RAM. I did compile locally and then copied the app using SCP. Everything is fine now.
activator clean stage
scp -r target/universal {user_id}@{app-name}.rhcloud.com:app-root/repo/target/
Then restart your application.

@tyrcho
Copy link
Owner

tyrcho commented Mar 31, 2016

It is now possible with the last version to deploy an application both via source code and via distribution zip file. Please see README.md file. Thanks to @fpirola for the PR !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants