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

Nginx-UI not respecting app.ini #798

Closed
Jannomag opened this issue Dec 29, 2024 · 4 comments
Closed

Nginx-UI not respecting app.ini #798

Jannomag opened this issue Dec 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Jannomag
Copy link
Contributor

Hi,
I was trying to install nginx-ui on my Ubuntu Server 22.04 homeserver using the script for the install.sh.
Nginx-UI doesn't want to start because port 9000 is already in use.
So I changed it to 9010 in the app.ini in /usr/local/etc/nginx-ui/:

[server]
RunMode = release
HttpPort = 9010
HTTPChallengePort = 9180

It seems that nginx-ui just ignores this file completely. The output of /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini is:

root@homeserver:~# /usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini
2024/12/29 22:36:34 [overseer] disabled. run failed: listen tcp :9000: bind: address already in use
2024-12-29 22:36:34     INFO    nginx-ui/main.go:41     Server exited
root@homeserver:~# cat /usr/local/etc/nginx-ui/app.ini

Also the systemd-service shows the same error. I already tried to reinstall multiple times including deleting the app.ini and it's directory but it still won't work.

@Jannomag Jannomag added the bug Something isn't working label Dec 29, 2024
@0xJacky
Copy link
Owner

0xJacky commented Dec 30, 2024

Normally, v1 settings file will be migrated to v2 automatically, maybe some unexpected behavior occurred.

@Jannomag
Copy link
Contributor Author

Jannomag commented Dec 30, 2024

I never had v1 installed. It's a fresh install. What does v2 do different in the settings file?

I've found a fix searching your source file. In the app.example.ini you didn't use HttpPort like in the app.ini which comes when installing nginx-ui. You used Port = 9000. Adding this line and modify this to the desired port works fine.
My working app.ini contains this now:

[server]
RunMode = release
Port    = 9010

@0xJacky
Copy link
Owner

0xJacky commented Jan 2, 2025

I am sorry about this, you can refer to this configuration example https://github.com/0xJacky/nginx-ui/blob/dev/app.example.ini. This issue will be resolved when rc.1 release.

@domonnss
Copy link

domonnss commented Jan 4, 2025

I never had v1 installed. It's a fresh install. What does v2 do different in the settings file?

I've found a fix searching your source file. In the app.example.ini you didn't use HttpPort like in the app.ini which comes when installing nginx-ui. You used Port = 9000. Adding this line and modify this to the desired port works fine. My working app.ini contains this now:

[server]
RunMode = release
Port    = 9010

same issue
It works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants