Bug 1449438 - When I make a route for my website and I try to open it the hostname, it brings me to a page saying "application is not available" even though there are no errors and everything seems to be fine.
Summary: When I make a route for my website and I try to open it the hostname, it brin...
Keywords:
Status: VERIFIED
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Website
Version: 3.x
Hardware: x86_64
OS: Windows
unspecified
high
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: yasun
URL:
Whiteboard:
: 1449437 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-10 00:46 UTC by Leo Meyer
Modified: 2023-05-15 19:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Leo Meyer 2017-05-10 00:46:23 UTC
Description of problem:
When I make a route for my website and I try to open it the hostname, it brings me to a page saying "application is not available" even though there are no errors and everything seems to be fine.

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

How reproducible:
You just need to open the current hostname set for my route which is the default hostname that openshift gave me.

Steps to Reproduce:
1.
2.
3.

Actual results:
When I open the link it shows me a page saying "application is not available"

Expected results:
My website should open when I use that hostname instead of giving me an error

Additional info:

Comment 1 Jonathan Yu 2017-05-16 19:44:21 UTC
*** Bug 1449437 has been marked as a duplicate of this bug. ***

Comment 2 Jonathan Yu 2017-05-16 19:47:02 UTC
Hi Leo,

Thanks for submitting this bug.

Have you tried both HTTP and HTTPS? Sometimes this can happen if your application listens only on HTTPS but you try to access the route over HTTP.

If you have a Readiness Probe configured, check to make sure that the platform successfully determines that your application is ready to serve requests.

You can also use "oc port-forward" to tunnel directly from your local machine to the backing service, to make sure that your application is running as expected.

Cheers,

Jonathan

Comment 3 Abhishek Gupta 2017-05-16 19:50:00 UTC
Also, can you provide your application URL and your route/hostname?

Comment 4 Dmitry Tantsur 2017-08-25 11:41:53 UTC
Hi all!

I had this problem on new deployment, but it disappeared after a few minutes. Now I have it on every application update (when I push something to github). Everything is green, the pod is reported as ready, the application (python + flask, if it matters) is started according to its logs, but "Application not available" for several minutes every time.

My app is http://dashboard-ironic.7e14.starter-us-west-2.openshiftapps.com/ and will hopefully get back up when you see it :)

Comment 6 Frank Berger 2019-02-07 09:25:11 UTC
Hello Openshift-Online Team,

looks like, that I am experiencing the same or similar issue. I am on starter-us-west-2 and the symptoms I could observe are:

1. After deployment and setting up a route everything looks fine in Openshift.

2. Some HTTP/HTTPS requests work as expected, but around 70 percent of the requests will get an
   "HTTP/1.0 503 Service Unavailable" / "Application is not available".
  
3. It looks like the issue does not depend on a specific application. It happens with my own ElasticSearch container but also 
   with a quick and dirty PHP sample app.

4. HTTP or HTTPS does not matter.

5. The problem still exists even when no fresh deployment happens for hours.


Short testcase showing how it looks like:


$ for i in {0..10}; do curl -sI "http://bar-foo.7e14.starter-us-west-2.openshiftapps.com/" | grep HTTP; done
HTTP/1.0 503 Service Unavailable
HTTP/1.1 200 OK
HTTP/1.0 503 Service Unavailable
HTTP/1.1 200 OK
HTTP/1.0 503 Service Unavailable
HTTP/1.0 503 Service Unavailable
HTTP/1.1 200 OK
HTTP/1.0 503 Service Unavailable
HTTP/1.0 503 Service Unavailable
HTTP/1.1 200 OK
HTTP/1.0 503 Service Unavailable


Hope you can help us with that issue. If you need more information and details to track down the problem. Please let me know...

Best Regards
Frank

Comment 7 Will Gordon 2019-02-25 15:18:59 UTC
Hi Frank,

It looks like this was an intermittent issue on Starter clusters. This should now be resolved. Can you confirm that you're no longer having this issue?

Comment 8 Frank Berger 2019-03-04 10:49:21 UTC
Hello Will,

yes I can confirm that, I just checked it and my issue is resolved... thanks for your help!

Best Regards
Frank

Comment 9 yasun 2019-03-11 09:25:55 UTC
The issue on starter-us-west-2 is fixed. 
$ for i in {1..20}; do curl -sI  http://django-psql-persistent-yasun-prod01-1.7e14.starter-us-west-2.openshiftapps.com|grep HTTP ; done 
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
... 
...
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK


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