Change port for services in manifest.toml (in this case app = homarr)

What app is this about, and its version: homarr 1.48.0~ynh1
What YunoHost version are you running: 12.1.32
What type of hardware are you using: VPS bought online

Describe your issue

Homarr’s manifest.toml defines some ports, some of which are already in use on my machine (services do not start for this reason). I’d like to change the ports and re-run the install.

[resources.ports]
    main.default = 3000 
    tasks.default = 3002
    websocket.default = 3003

Doing a forced upgrade seems to re-download sources, so that doesn’t work.

In essence this question isn’t really linked to homar, but to apps in general.

thanks for your help

PS: There is a specific issue with port 3001 hardcoded in homarr source code that you can read about in its install script, but this would be the topic for another post or a repo issue

Share relevant logs or error messages

Error: listen EADDRINUSE: address already in use :::3001

For homarr, you can try this :

yunohost app install https://github.com/otm33GH/homarr_ynh/tree/ldap_dev

See:

For some apps, you can manually change ports in app’s conf/env/service files and nginx conf file. Also have to update settings.yml file (yunohost app setting ...).
In some cases,

yunohost app setting <app_name> <port_name> -v <new_port_number>
yunohost app upgrade <app_name> --force

can do all the job for you.

1 Like

Hey thanks! I see it’s in testing waiting for tests to run. I think I’ll wait after the merge to stay on master.

Thanks again :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.