Skip to content
New issue

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

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

Already on GitHub? # to your account

Error with app.ini #66

Closed
RafaElZgz opened this issue Jan 16, 2023 · 14 comments
Closed

Error with app.ini #66

RafaElZgz opened this issue Jan 16, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@RafaElZgz
Copy link

RafaElZgz commented Jan 16, 2023

My problem is that no matter what I put in the app.ini file, the service ignores it and runs with default values.

I always get the alert that the service is running in debug mode and the port is always 9000. I haven't done anything special, just run the installation script.

I am using ubuntu se 22.04.

@0xJacky
Copy link
Owner

0xJacky commented Jan 16, 2023

Have you restart nginx-ui after modify app.ini?

@RafaElZgz
Copy link
Author

Yes, I also tried the command daemon-reload and even a server reboot.

@0xJacky
Copy link
Owner

0xJacky commented Jan 16, 2023

This is a bit odd, I just tested changing /usr/local/etc/nginx-ui/app.ini on my server and than restart nginx-ui, it works fine.

@RafaElZgz
Copy link
Author

Idk, later I could try to test this on a fresh ubuntu install.

@0xJacky 0xJacky added the question Further information is requested label Jan 16, 2023
@RafaElZgz
Copy link
Author

This is my app.ini

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

nginx-ui.service

[Unit]
Description=Yet another WebUI for Nginx
Documentation=https://github.com/0xJacky/nginx-ui
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/nginx-ui -config /usr/local/etc/nginx-ui/app.ini
Restart=on-failure
TimeoutStopSec=5
KillMode=mixed

[Install]
WantedBy=multi-user.target

Execution log

Running in "debug" mode. Switch to "release" mode in production.
run failed: listen tcp :9000: bind: address already in use

@RafaElZgz
Copy link
Author

Same results on other empty Ubuntu 22.04 machine.

@0xJacky
Copy link
Owner

0xJacky commented Jan 18, 2023

edit /usr/local/etc/nginx-ui/app.ini and then run systemctl restart nginx-ui

@RafaElZgz
Copy link
Author

Well, in the UI settings the port is what I specified: 9055 but the service is running under default port

imagen

@RafaElZgz
Copy link
Author

I think there is something bad with the nginx-ui.service

@0xJacky
Copy link
Owner

0xJacky commented Jan 19, 2023

The current nginx-ui in your system is already listen on the port you specify and running in background, you do not need to run ./nginx-ui manually. If you want to run it on the frontground, use systemctl stop nginx-ui to kill it, and run nginx-ui -config /path/to/app.ini.

@0xJacky 0xJacky removed the question Further information is requested label Jan 19, 2023
@RafaElZgz
Copy link
Author

No, I specified port 9055 and it is running on port 9000.

@RafaElZgz
Copy link
Author

The UI is showing what I put on the app.ini but the nginx-ui.service does not use those values.

@0xJacky 0xJacky added the help wanted Extra attention is needed label Jan 19, 2023
@0xJacky
Copy link
Owner

0xJacky commented Jan 19, 2023

We may need some time to reproduce the issue. Can you please try to use nginx-ui -config /path/to/app.ini to run nginx-ui on the frontground, and see which port it is listening on in the console?

0xJacky added a commit that referenced this issue Feb 4, 2023
@0xJacky
Copy link
Owner

0xJacky commented Feb 4, 2023

Sorry @RafaElZgz, that was my mistake, I fixed this in 4c54a9e, and it will be released with the next verison.

@0xJacky 0xJacky closed this as completed Feb 4, 2023
@0xJacky 0xJacky added bug Something isn't working and removed help wanted Extra attention is needed labels Feb 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants