linuxserver / docker-habridge

GNU General Public License v3.0
16 stars 11 forks source link

[BUG] Ports not changing #20

Closed wesmannmsu closed 11 months ago

wesmannmsu commented 11 months ago

Is there an existing issue for this?

Current Behavior

I restart the docker on unraid with a change to the port to 80 but the UI always wants to open on 8080

Screenshot 2023-08-08 at 10 04 32 AM

Expected Behavior

The WebUI should open on port 80. Just to be clear, the container is running on port 80 BUT the unraid docker page still shows it on 8080 and trys to open the WEBUI on 8080 but it should be 80

Steps To Reproduce

  1. Basic install on Unraid, just changing the port to 80, not 8080.
  2. when the Open WebUI is selected on the docker page it trys to open on 8080
  3. manually change the web URL to 80 will open the page.

Environment

- OS: UNRAID 6.12.3
- How docker service was installed: via unraid

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='habridge'
  --net='br0'
  --ip='192.168.29.44'
  -e TZ="America/Chicago"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Eyrie"
  -e HOST_CONTAINERNAME="habridge"
  -e 'TCP_PORT_8080'='80'
  -e 'TCP_PORT_50000'='50000'
  -e 'SEC_KEY'='Your Key To Encrypt Security Data'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8080]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/habridge-logo.png'
  -v '/mnt/user/appdata/habridge':'/config':'rw' 'lscr.io/linuxserver/habridge'
e30cca174f242eef939331ebc68ada4e543292080b7cf05cbd49204cda14bb2d

The command finished successfully!

Container logs

[custom-init] No custom files found, skipping...
2023-08-08 10:14:46,649 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge startup sequence...
2023-08-08 10:14:46,724 [main] INFO  com.bwssystems.HABridge.HABridge - HA Bridge (v5.4.1) initializing....
2023-08-08 10:14:46,725 [main] INFO  com.bwssystems.HABridge.BridgeSettings - reading from config file: /config/ha-bridge.config
2023-08-08 10:14:46,788 [main] WARN  com.bwssystems.HABridge.BridgeSettings - The upnp config address, 172.17.0.2, does not match any known IP's on this host. Using default address: 192.168.29.44
2023-08-08 10:14:46,840 [main] INFO  spark.staticfiles.StaticFilesConfiguration - StaticResourceHandler configured with folder = /public
2023-08-08 10:14:46,849 [main] INFO  com.bwssystems.HABridge.SystemControl - System control service started....
2023-08-08 10:14:46,877 [main] INFO  com.bwssystems.HABridge.util.UDPDatagramSender - Initializing UDP response Socket...
2023-08-08 10:14:46,880 [main] INFO  com.bwssystems.HABridge.util.UDPDatagramSender - UDP response Socket initialized to: 50000
2023-08-08 10:14:46,883 [main] INFO  com.bwssystems.HABridge.plugins.http.HTTPHome - HTTP Home created.
2023-08-08 10:14:46,886 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyHome - Harmony Home created.
2023-08-08 10:14:46,912 [Thread-0] INFO  spark.embeddedserver.jetty.EmbeddedJettyServer - == Spark has ignited ...
2023-08-08 10:14:46,913 [Thread-0] INFO  spark.embeddedserver.jetty.EmbeddedJettyServer - >> Listening on 192.168.29.44:80
2023-08-08 10:14:47,072 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - setup initiated ....
2023-08-08 10:14:48,652 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - activity changed: [-1] PowerOff
2023-08-08 10:14:48,654 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - setup initiated ....
2023-08-08 10:14:50,052 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - activity changed: [41205515] Steam
2023-08-08 10:14:50,054 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - setup initiated ....
2023-08-08 10:14:53,688 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - activity changed: [-1] PowerOff
2023-08-08 10:14:53,690 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - setup initiated ....
2023-08-08 10:14:54,866 [main] INFO  com.bwssystems.HABridge.plugins.harmony.HarmonyServer - activity changed: [-1] PowerOff
2023-08-08 10:14:54,868 [main] INFO  com.bwssystems.HABridge.plugins.NestBridge.NestHome - Nest Home created. No Nest configured.
2023-08-08 10:14:54,868 [main] INFO  com.bwssystems.HABridge.plugins.hue.HueHome - Hue passthru Home created. No Hue passtrhu systems configured.
2023-08-08 10:14:54,869 [main] INFO  com.bwssystems.HABridge.plugins.hal.HalHome - HAL Home created. No HAL devices configured.
2023-08-08 10:14:54,870 [main] INFO  com.bwssystems.HABridge.plugins.mqtt.MQTTHome - MQTT Home created. No MQTT Clients configured.
2023-08-08 10:14:54,871 [main] INFO  com.bwssystems.HABridge.plugins.hass.HassHome - HomeAssistant Home created. No HomeAssistants configured.
2023-08-08 10:14:54,872 [main] INFO  com.bwssystems.HABridge.plugins.homewizard.HomeWizardHome - HomeWizard Home created. No HomeWizard gateways configured.
2023-08-08 10:14:54,873 [main] INFO  com.bwssystems.HABridge.plugins.exec.CommandHome - Command Home for system program execution created.
2023-08-08 10:14:54,874 [main] INFO  com.bwssystems.HABridge.plugins.tcp.TCPHome - TCP Home created.
2023-08-08 10:14:54,874 [main] INFO  com.bwssystems.HABridge.plugins.udp.UDPHome - UDP Home created.
2023-08-08 10:14:54,875 [main] INFO  com.bwssystems.HABridge.plugins.vera.VeraHome - Vera Home created.
2023-08-08 10:14:54,876 [main] INFO  com.bwssystems.HABridge.plugins.fibaro.FibaroHome - Fibaro Home created. No Fibaros configured.
2023-08-08 10:14:54,877 [main] INFO  com.bwssystems.HABridge.plugins.domoticz.DomoticzHome - Domoticz Home created. No Domoticz devices configured.
2023-08-08 10:14:54,878 [main] INFO  com.bwssystems.HABridge.plugins.somfy.SomfyHome - Somfy Home created.  No Somfys configured.
2023-08-08 10:14:54,879 [main] INFO  com.bwssystems.HABridge.plugins.lifx.LifxHome - LifxDevice Home created. No LifxDevices configured.
2023-08-08 10:14:54,880 [main] INFO  com.bwssystems.HABridge.plugins.openhab.OpenHABHome - OpenHAB Home created. No OpenHABs configured.
2023-08-08 10:14:54,881 [main] INFO  com.bwssystems.HABridge.plugins.fhem.FHEMHome - FHEM Home created. No FHEMs configured.
2023-08-08 10:14:54,882 [main] INFO  com.bwssystems.HABridge.plugins.broadlink.BroadlinkHome - Broadlink Home created. No Broadlinks configured.
2023-08-08 10:14:54,883 [main] INFO  com.bwssystems.HABridge.plugins.moziot.MozIotHome - Mozilla IOT Home created. No Mozilla IOTs configured.
2023-08-08 10:14:54,884 [main] INFO  com.bwssystems.HABridge.plugins.homegenie.HomeGenieHome - HomeGenie Home created. No HomeGenies configured.
2023-08-08 10:14:54,893 [main] INFO  com.bwssystems.HABridge.devicemanagmeent.DeviceResource - HABridge device management service started.... 
2023-08-08 10:14:54,908 [main] INFO  com.bwssystems.HABridge.hue.HueMulator - Hue emulator service started....
2023-08-08 10:14:54,933 [main] INFO  com.bwssystems.HABridge.upnp.UpnpSettingsResource - Description xml service started....
2023-08-08 10:14:54,936 [main] INFO  com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener starting....
2023-08-08 10:14:54,937 [main] INFO  com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener running and ready....
github-actions[bot] commented 11 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Roxedus commented 11 months ago

This is not a bug, and what you are running into is a unraid thing. Unraid doesn't automagicly know what port the webui is using, it does this with hardcoded metadata, which you can see when turning on advanced view when editing the container.