Skip to content
This repository has been archived by the owner on Feb 4, 2018. It is now read-only.

Proxy target missing #30

Closed
hainm opened this issue Sep 26, 2015 · 5 comments
Closed

Proxy target missing #30

hainm opened this issue Sep 26, 2015 · 5 comments

Comments

@hainm
Copy link

hainm commented Sep 26, 2015

hi,

currently, whenever open a link to my project in mybinder icon, I got 'Proxy target missing'. I need to refresh page to make it work. Is this your intention?

@hainm
Copy link
Author

hainm commented Sep 26, 2015

and the page refreshing took about 5-10 seconds.

@andrewosh
Copy link
Member

Thanks for opening up an issue for this one @hainm. The problem here is that we're checking if the notebook container is running by seeing if Kubernetes has assigned its pod an IP. This is a fairly fast check (5-10s), but on occasion it assigns the IP before the container has fully launched, leading to the error. We can also check if the pod is in the "Ready" state, which is guaranteed to be correct, but takes considerably longer.

An intermediate fix for this problem is to add javascript to the "Proxy target error" page, so that it automatically refreshes. That should be very quick to add, so we should have a fix in soon.

@rgbkrk
Copy link
Member

rgbkrk commented Sep 26, 2015

An intermediate fix for this problem is to add javascript to the "Proxy target error" page, so that it automatically refreshes. That should be very quick to add, so we should have a fix in soon.

I've been wishing for something better to override in this for the config proxy as well. 👍

@minrk
Copy link

minrk commented Oct 2, 2015

I just added support for custom error pages in CHP, so you can specify what it does instead of the "Proxy target missing" message. If you guys want to give that a try, I'll cut a release if it seems like it's working.

@andrewosh
Copy link
Member

The proxy server has been updated to use the the custom error pages @minrk added to the CHP, so this issue should be resolved in d2a949b (the 503 error page should auto-refresh).

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

No branches or pull requests

4 participants