homer icon indicating copy to clipboard operation
homer copied to clipboard

Homer shows "You're Offline Friend" after 30 seconds

Open rarick opened this issue 2 years ago • 7 comments

My setup

  • traefik as a reverse proxy & domain controller
  • thomseddon/traefik-forward-auth as my forward auth provider
  • auth0 as my oauth provider
    • All my domains and wildcards are entered in auth0 for CORS/origins

The issue

Homer is behind the authorization proxies. I am seeing "You're offline friend" after 30 seconds on homer. I'm not offline, and I can always reload the page without issue (hard reload as well). I see that the request is to mydomain.com?t=<unix timestamp>. This is receiving a 500 error, but I don't know where this response is coming from.

I see the request callstack starts with checkOffline.

Any ideas why this is happening?

rarick avatar Jun 16 '22 22:06 rarick

Hi @rarick

Hum, that's weird. The connectivity check request (which can be disabled) is an HEAD request, maybe traefik block this kind of request? Can you tell if the request hit the container or not? Is there a message associated with the 500 error ? Can you also check the container logs?

bastienwirtz avatar Jun 24 '22 08:06 bastienwirtz

I have a nearly identical issue.

Setup:

  • traefik2
  • thomseddon/traefik-forward-auth
  • Google oauth

I also get the "offline friend" message after 30 seconds, which is solved by refreshing. You mentioned the connectivity check could be disabled. How do you do this?

EDIT: my bad for not RTFD. I totally missed that line of the example config. Disabling connectivity check stopped the problem happening for me.

zhenry9 avatar Jul 17 '22 08:07 zhenry9

Same problem here

Fratt avatar Jul 17 '22 08:07 Fratt

I have the same issue, but instead of traefik I use the Explicit Proxy build into a FortiGate firewall. When I check the developer tools in my browser I see that a request is made to the following URL: http://dashboard.int.mydomain.be//index.html?t=1660243712402

So with 2 // instead of 1, this request gives back a 504 gateway timeout.

vincentvriends avatar Aug 11 '22 18:08 vincentvriends

Thanks for the feedback, @zhenry9. Disabling the connectivity checker will workaround this issue. @rarick @Fratt @vincentvriends Have you tried that?

That being said, the connectivity checker should work, it just periodically send a request to the server and execpt either an http response code in the 200-299 range OR a redirection (to handle auth proxy redirection, il this case the whole page reload and follow the redirection). If you don't need that, you should disable it anyway.

bastienwirtz avatar Aug 26 '22 19:08 bastienwirtz

Hi, where exactly do you find this connectivity check option? my config.yml only has things that should or hould not appear on the html page and theme related stuff... Thanks

c0pper avatar Dec 10 '22 11:12 c0pper

Same here on the latest version 23.05.1

oliverspryn avatar Aug 17 '23 14:08 oliverspryn