Yan Du 2015-08-06 05:37:43 EDT
Description of problem:
Always met Internal Server Error when access non-scalable aerogear app
Version-Release number of selected component (if applicable):
devenv_5597
How reproducible:
always
Steps to Reproduce:
1. Login in web
2. Input "aerogear " in Search by keyword box
3. Create a non-scalable aerogear app
4. Access the app by url
Actual results:
Internal Server Error return
Expected results:
App could be accessed normally
Additional info:
1. Try to restart the app and met some error as below:
- rhc app restart push1
Failed to execute: 'control restart' for /var/lib/openshift/55c30c295520e2d30f000003/mysql
- rhc app show push1
push1 @ http://push1-111.dev.rhcloud.com/ (uuid: 55c30c295520e2d30f000003)
--------------------------------------------------------------------------
Domain: 111
Created: 3:26 PM
Gears: 1 (defaults to small)
Git URL: ssh://55c30c295520e2d30f000003@push1-111.dev.rhcloud.com/~/git/push1.git/
SSH: 55c30c295520e2d30f000003@push1-111.dev.rhcloud.com
Deployment: auto (on git push)
aerogear-aerogear-push-1.1.0 (AeroGear UnifiedPush Server 1.1.0 and WildFly)
----------------------------------------------------------------------------
From: https://cartreflect-claytondev.rhcloud.com/reflect?github=aerogear/openshift-origin-cartridge-aerogear-push#AeroGear
Website: http://www.aerogear.org
Gears: Located with mysql-5.5
mysql-5.5 (MySQL 5.5)
---------------------
Gears: Located with aerogear-aerogear-push-1.1.0
Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
Database Name: push1
Password: WAdDEfFffiKn
Username: adminaRi6q5w
2. Scalable aerogear works normally
[reply] [−]
Private
Comment 1 John W. Lamb 2015-08-18 17:06:46 EDT
I haven't been able to reproduce this in Online or a devenv. QE, please verify?
Status: NEW → ON_QA
[reply] [−]
Private
Comment 2 Yan Du 2015-08-20 22:48:22 EDT
Hi, John W. Lamb
I still could reproduce the issue on stg.openshift.com (devenv-stage_1175).
you could access my app on STG: http://aero-111.stg.rhcloud.com/
Status: ON_QA → ASSIGNED
Verified: FailedQA
[reply] [−]
Private
Comment 3 Florian Traverse 2015-08-21 11:16:48 EDT
I face the same issue on an aerogear that was running for months, some days ago it became unreliable, yet not as much as today(we could ssh).
We thought at the time there was a full, but in fact we had OutOfMemory errors, so we used the JVM_HEAP_RATIO=0.6 env var to give it a bit more, then it crashed again, we have set JVM_HEAP_RATIO=0.8, then it worked for 2 hours, and it never recovered from it.
I cannot even ssh / snapshot it to put it on a bigger gear. I've tried several things, including setting JVM_HEAP_RATIO=0.1 and JVM_HEAP_RATIO=0.0 to make the app crash but so I could ssh and snapshot, but it did not work, still.
This aerogear is in production.
If I create a new aerogear on another account(a free one) I could ssh during the afternoon, yet it had several issues, simple commands like "env | grep MYSQL" returned 6 errors that it couldn't fork, lately I could not snapshot this one either nor could I ssh it anymore :
```
$> rhc snapshot save
Pulling down a snapshot of application 'aerogear' to aerogear.tar.gz ...
Error in trying to save snapshot. You can try to save manually by running:
ssh 55d7083a0c1e667f64000181@aerogear-alloci.rhcloud.com 'snapshot' > aerogear.tar.gz
$> rhc ssh
Connecting to 55d7083a0c1e667f64000181@aerogear-alloci.rhcloud.com ...
Write failed: Broken pipe
```