Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-5966

Aerogear Push Server Cartridge no longer works with "small" OpenShift gears

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • None
    • None
    • OpenShift Online

    • Hide

      Quoted from <https://bugzilla.redhat.com/show_bug.cgi?id=1250910>

      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:

      1. rhc app restart push1
        Failed to execute: 'control restart' for /var/lib/openshift/55c30c295520e2d30f000003/mysql
      1. 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
      ```

      Show
      Quoted from < https://bugzilla.redhat.com/show_bug.cgi?id=1250910 > 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 ```

    Description

      The aerogear cartridge requires a medium-sized gear, as of this change:
      https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/commit/9dc0b2595f7b58beaf538947c2670c673d38f1f5

      This means that aerogear carts won't run properly under free OpenShift Online accounts, since they are limited to Small gears. As the change above makes clear, this wasn't always the case.

      The README for this cart needs to be clear about what the expected behavior for this cartridge will be when deployed onto a small gear. It also needs to note the change more prominently and possibly describe how a user could roll back their deployment to a commit id that will work with small gears.

      The confusion may originate with users attempting to deploy the cart via the web interface at hub.openshift.com: https://hub.openshift.com/quickstarts/31-aerogear-push-1-x-quickstart

      If the cart cannot be made to work with small gears, it needs to express this requirement in such a way that the web UI can check for that (if possible) or perhaps be de-listed from hub.openshift.com, since it can no longer be used by free-tier customers.

      This issue affects at least two OpenShift Online customers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-jolamb John Lamb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: