hoobs-org / gui

Interface component for the certified HOOBS stack.
GNU General Public License v3.0
2 stars 1 forks source link

Change Terminal Port in the Web UI #133

Closed Highlander-bdj closed 2 years ago

Highlander-bdj commented 2 years ago

Description I just upgraded to Hoobs 4.0 and afterwards my CPU was maxing out and after reviewing the syslog I noticed that the Helm service was constantly restarting with an error that the port 9090 was already in use.

I had to change the default port Help uses from 9090 which was used by Prometheus to port 5090. I did this by editing "/etc/systemd/system/helm.service" Everything is working great now, but in the webui for Hoobs the menu item for "Terminal" still goes to the 9090 port. Does anyone know where in the webui html code I can edit to point the menu item to the correct port?

Version Please include the version of HOOBS you are using. 4.0.100

Did you upgrade Please let us know if you upgraded from a previous version.

Pervious version If you upgraded, please let us know your previous version.

Did you orginally upgrade to HOOBS 3 from HOOBS 2.1.1? Did you perform an upgrade from HOOBS 2.1.1? Some things are different.

What device are you using? Please let us know the device you are running HOOBS on.

If this is a custom install, what's your operating system? Please let us know what operating system and version you are using. Ex. Fedora 30 or macOS Catalina.

List your plugins Please include a list of the plugins you are using. We need to be able to find it on NPM. If the plugin is no published, please include a link to the repository. Nest Ring Smartthings

Post your config

{
    "server": {
        "port": 8080,
        "origin": "*",
        "autostart": 0,
        "home_setup_id": "X-HM://0023ISYWYQ331",
        "polling_seconds": 5
    },
    "client": {
        "default_route": "status",
        "inactive_logoff": 30,
        "theme": "hoobs-light",
        "locale": "en",
        "temp_units": "fahrenheit",
        "country_code": "US",
        "postal_code": "REDACTED"
    },
    "bridge": {
        "name": "HOOBS",
        "port": 51826,
        "pin": "REDACTED",
        "username": "REDACTED"
    },
    "description": "REDACTED",
    "ports": {},
    "plugins": [
        "homebridge-smartthings"
    ],
    "accessories": [],
    "platforms": [
        {
            "platform": "SmartThings-v2",
            "plugin_map": {
                "plugin_name": "homebridge-smartthings"
            },
            "name": "SmartThings-v2",
            "direct_port": 8080,
            "temperature_unit": "F",
            "validateTokenId": false,
            "logConfig": {
                "debug": false,
                "showChanges": true,
                "hideTimestamp": true,
                "hideNamePrefix": true,
                "file": {
                    "enabled": true,
                    "level": "Good"
                }
            },
            "app_url": "REDACTED",
            "app_id": "REDACTED",
            "access_token": "REDACTED"
        }
    ],
    "package_manager": "npm",
    "system": "hoobs"```

**Post your log**
You can get the log from the interface. This is in the Log section.

POST LOG HERE



**Additional context**
Add any other context about the problem here.
mkellsy commented 2 years ago

The web terminal is a separate app. Edit the /etc/systemd/system/helm.service file.

the port is in the exec line in the file.

Highlander-bdj commented 2 years ago

I'm sorry, I think you misunderstood me. I've already edited that and fixed the port that the helm app runs on. The problem is the webUI is hardcoded somewhere to open the terminal on the default port instead of the port that helm is configured to run on in the helm.service file. Here is a screenshot.

image

Highlander-bdj commented 2 years ago

Is this something hardcoded that I can edit and fix myself by putting in the port number I am using until you are able to correct this with an update/patch?

mkellsy commented 2 years ago

It's hard coded in the UI. I am working on a fix for it.

mkellsy commented 2 years ago

done in 4.1.1

Highlander-bdj commented 2 years ago

When is that getting released?

image

mkellsy commented 2 years ago

It's in the edge branch now, so an a few weeks.

Highlander-bdj commented 2 years ago

Has this been released yet?

Thanks, Bryan

On Thu, Oct 14, 2021 at 11:40 AM Michael Kellsy @.***> wrote:

It's in the edge branch now, so an a few weeks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoobs-org/gui/issues/133#issuecomment-943530128, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASY5LLQFJ2DQPPURJ3UQ7Y3UG4BYHANCNFSM5EJZK7ZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.