Bug 1151932 - Fail to direct to https when access aerogear app, "Internal Server Error" or 404 return
Summary: Fail to direct to https when access aerogear app, "Internal Server Error" or ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
: 1153051 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-13 06:38 UTC by Yan Du
Modified: 2015-05-15 00:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-18 16:51:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
blank page (73.97 KB, image/png)
2014-10-13 06:39 UTC, Yan Du
no flags Details
not found page (72.11 KB, image/png)
2014-10-13 06:39 UTC, Yan Du
no flags Details
internal server error page (72.40 KB, image/png)
2014-10-13 06:40 UTC, Yan Du
no flags Details

Description Yan Du 2014-10-13 06:38:50 UTC
Description of problem:

Try to access aerogear app url (http://push1s-111.dev.rhcloud.com/ ) in web,  "Internal Server Error" or "not found" or a blank page return, refer to attachments for detail.

If manually change the app url to https (eg: https://push1s-111.dev.rhcloud.com/ ), the app could show normally


Version-Release number of selected component (if applicable):
devenv_5227


How reproducible:
Always


Steps to Reproduce:
1. Create scaling aerogear app from website
2. Access the app url



Actual results:
Same as description



Expected results:
App could direct to https and show normally in web.


Additional info:
Issue could be always reproduced by scaling app, but reproducible for non-scaling is not 100%

Comment 1 Yan Du 2014-10-13 06:39:21 UTC
Created attachment 946246 [details]
blank page

Comment 2 Yan Du 2014-10-13 06:39:52 UTC
Created attachment 946247 [details]
not found page

Comment 3 Yan Du 2014-10-13 06:40:18 UTC
Created attachment 946248 [details]
internal server error page

Comment 4 Michal Fojtik 2014-10-13 12:10:23 UTC
Yan Du, can you check the quota for the non-scaled app?

Comment 5 Yan Du 2014-10-14 03:03:34 UTC
Hi, Michal

Here is the non-scaled app quota:

[push1-111.dev.rhcloud.com 543cc2f1172828486f00003b]\> quota -s
Disk quotas for user 543cc2f1172828486f00003b (uid 1001): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
     /dev/xvda1    487M       0   1024M            6220       0   80000  

I just try again with the latest env (devenv_5231), blank page return for both scaling and non-scaling apps when access the apps' http url, still could not direct to https

Comment 6 Michal Fojtik 2014-10-14 13:04:15 UTC
OK so I did some investigation and this is what I found...

The blank page is because it fails to fetch https://aerogear-mfojtik.dev.rhcloud.com:8443/auth/js/keycloak.js file.

(when accessing http://aerogear-mfojtik.dev.rhcloud.com/ag-push/)... When I tried curl, I got 503 and I can't see anything in the logs and neither haproxy-status shows a gear is down...

The 404 error is due to aerogear takes some time to launch (1-2 minutes in my case) and since it is fully available it shows 404 error.

After 1-2 minutes, I can also successfully (in browser) access the https://aerogear-mfojtik.dev.rhcloud.com/ag-push/ and it redirects me to the login screen.

Ben, there are 2 issues here:

1) Aerogear is slow to start when scaled. I can't see anything we can do to fix this one.

2) The 'keycloack.js' file fail to load when using http, which I think is an upstream bug. Do you know who is responsible for this quickstart?

Comment 8 Michal Fojtik 2014-10-14 14:26:28 UTC
Farah, fyi ^^

Comment 9 Farah Juma 2014-10-14 14:33:42 UTC
Matthias might know about this.

Comment 10 Michal Fojtik 2014-10-16 09:17:30 UTC
*** Bug 1153051 has been marked as a duplicate of this bug. ***

Comment 11 Michal Fojtik 2014-10-16 11:43:21 UTC
ping? ;-)

Comment 12 matzew 2014-10-16 12:52:28 UTC
looking

Comment 14 Michal Fojtik 2014-10-17 09:52:45 UTC
Matthias thanks a lot!

Comment 15 Yan Du 2014-10-20 03:38:06 UTC
Test on devenv_5248, issue have been fixed.

Move to verified.


Note You need to log in before you can comment on or make changes to this bug.