Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load GUI after v4 #262

Closed
ivan-aleksandrov opened this issue Apr 20, 2019 · 16 comments
Closed

cannot load GUI after v4 #262

ivan-aleksandrov opened this issue Apr 20, 2019 · 16 comments
Labels

Comments

@ivan-aleksandrov
Copy link

I noticed that after upgrading to v4 i can access GUI only if I use localhost and not via IP. I'm using it in docker so it is impossible to access GUI via 'localhost'.

I think it might be related to this in main.ts:

// setup cors app.enableCors({ origin: ['http://localhost:8080', 'http://localhost:4200'], });

@oznu
Copy link
Member

oznu commented Apr 21, 2019

Can you show the startup logs?

The enableCors won't be related - CORS is only used for development purposes here.

@mspiridakis
Copy link

Same here. Startup logs look fine except this:
�[0;37m[4/21/2019, 12:20:15 AM]�[0m �[0;36m[homebridge-config-ui-x]�[0m �[0;33mConsole v4.0.4 is listening on undefined port 8080�[0m.
Homebridge working perfectly, but no access to GUI (haven't tried to call it locally since its a headless pi).

@oznu
Copy link
Member

oznu commented Apr 21, 2019

Thanks, can you show the config for the UI from your config.json?

@oznu
Copy link
Member

oznu commented Apr 21, 2019

After looking at my code... are you running in docker so don't have any config set for the UI (which is a perfectly valid setup)?

@mspiridakis
Copy link

There aren't any (config-ui) entries in my config.json.

@mspiridakis
Copy link

Yes. Your docker

@mspiridakis
Copy link

On chrome I get a :

This site can’t be reached 192.168.10.39 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

I tried the usual stuff(delete cache etc)

@oznu
Copy link
Member

oznu commented Apr 21, 2019

Yep, sorry about this, I'll push up a fix in a moment. I see what I did wrong!

@mspiridakis
Copy link

Ok. Keep up the good work man.

@mspiridakis
Copy link

Is there a quick fix to access it or do I have to pull the docker from the start?

@oznu
Copy link
Member

oznu commented Apr 21, 2019

A new docker image is building right now; if you don't want to pull that, you can exec into the container and run:

npm install -g --unsafe-perm homebridge-config-ui-x@latest

@oznu oznu closed this as completed in c8550c1 Apr 21, 2019
@mspiridakis
Copy link

One last question (If you have the time). Where is the homebridge container folder on a pi?

@oznu
Copy link
Member

oznu commented Apr 21, 2019

@mspiridakis if you followed the guide on oznu/homebridge it should be under ~/homebridge.

@oznu
Copy link
Member

oznu commented Apr 21, 2019

A new docker image has been published that implements this fix also. User's who encountered this bug and need to restore access to the GUI have two options.

  1. Exec into the container and manually update:
npm install -g --unsafe-perm homebridge-config-ui-x@latest
  1. Pull the latest version of oznu/homebridge and recreate the container. If you're using docker-compose do it this way:
docker-compose pull homebridge
docker-compose up -d

@fraho67
Copy link

fraho67 commented Aug 27, 2019

Hi oznu,

I'm running your config ui on a synology. Today either your Homebridge UI or docker was updated (don't know what it was). Since then I'm getting "This site can’t be reached xxxxxxx refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED"

I uninstalled the UI as well as docker (no files were left) and reinstalled everything but it's no more working.

@canoben
Copy link

canoben commented Sep 20, 2019

Hi oznu,

I'm running your config ui on a synology. Today either your Homebridge UI or docker was updated (don't know what it was). Since then I'm getting "This site can’t be reached xxxxxxx refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED"

I uninstalled the UI as well as docker (no files were left) and reinstalled everything but it's no more working.

Yeah, I'm having the same connection. As I just re-installed everythign I suppose there is no need to try the commands above as my docker image should already include the fix, isn't it?

Well, I tried it anyway, doesn't help.

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

No branches or pull requests

5 participants