Fatal error in configuration, exit

remics

Verified User
Joined
Aug 6, 2019
Messages
61
root@acesso:/home/felinto# tail -f /var/log/httpd/error_log
2023-05-17 09:24:08.563747 [ERROR] [2026679] HttpListener::start(): Can't listen at address adminListener: Address already in use!
2023-05-17 09:24:08.564309 [ERROR] [2026679] HttpServer::addListener(adminListener) failed to create new listener
2023-05-17 09:24:08.564330 [ERROR] [2026679] [config:admin:listener:adminListener] failed to start listener on address *:7080!
2023-05-17 09:24:08.564348 [ERROR] [2026679] [config:admin:listener] No listener is available for admin virtual host!
2023-05-17 09:24:08.874132 [ERROR] [2026679] Fatal error in configuration, exit!
2023-05-17 09:27:08.964850 [ERROR] [2028036] HttpListener::start(): Can't listen at address adminListener: Address already in use!
2023-05-17 09:27:08.964969 [ERROR] [2028036] HttpServer::addListener(adminListener) failed to create new listener
2023-05-17 09:27:08.964993 [ERROR] [2028036] [config:admin:listener:adminListener] failed to start listener on address *:7080!
2023-05-17 09:27:08.965016 [ERROR] [2028036] [config:admin:listener] No listener is available for admin virtual host!
2023-05-17 09:27:09.240269 [ERROR] [2028036] Fatal error in configuration, exit!

How could I find the reason for this error and fix it ?
 
I've found something very old, which might fix the issue. Seems you did not specify the ip address.
You can change the listener configuration of OLS from * to 192.168.10.1:7080 to fix it.
Ofcourse change 192.168.10.1 with the correct ip address of your vps/server and restart services.

If that does not help also issue this command as root in SSH to see what also is using port 7080:
netstat -antupl | grep 7080

and then maybe somebody else can help further, maybe @Zhenyapan ? Because I don't do OLS.
 
I don't do OLS too. But I prefer to start from mentioned configs - is main conf correct? how additional confs included? what they consist of, are they correct?
 
"You can change the listener configuration of OLS"

How could I do that ?

Bash:
root@acesso:/home/felinto# netstat -antupl | grep 7080
tcp        0      0 0.0.0.0:7080            0.0.0.0:*               LISTEN      2048396/openlitespe
udp        0      0 0.0.0.0:7080            0.0.0.0:*                           2048396/openlitespe
Code:

The server_IP:7080 works!

 
Last edited:
My VPS has three IPs:
177.11.50.X/24
177.11.50.X/24
192.168.1.107

I didn't register the IP "192.168.1.107" in DirectAdmin because it's a local IP. Maybe that would be it?
 
I didn't register the IP "192.168.1.107" in DirectAdmin because it's a local IP. Maybe that would be it?
Where is that coming from? Do you run DA on a server at home?
Anyway, my good guess is that you have to use the main server ip. There is normally only one pointing to the hostname. But I think I want to cancel my suggestion.

How could I do that ?
You better don't do that.
There are files, but they get overwritten by DA. And since I don't use OLS I don't want to give any advise I don't know about. Because what I found was very old so probably not correct anymore.

When looking at the installation instructions, it seems normally you don't need to do anything extra. So it might well be a OLS bug. I've seen it there before on there forums.

Maybe somebody else can help you with more certainty, maybe @jamgames2 or @Active8 or somebody else. I don't know who's working here with OLS.
Better wait until one of them reply or post the problem on the OLS forums. Provide them with the info that you're running it on Directadmin.
 
Where is that coming from? Do you run DA on a server at home?
No, but I have a router on my dedicated server so I don't need to expose my backup server to the internet.
 
this case maybe problem come from multiple IPAddress.

Normally config will just use listener " *:7080 ".
But when grateful restart, it will throw error.

When have multiple IPAddress in same server, it should use listener like this
10.0.0.2:7080
10.0.0.3:7080
10.0.0.4:7080

so we need to call @smtalk to help us.
 
this case maybe problem come from multiple IPAddress.

Normally config will just use listener " *:7080 ".
But when grateful restart, it will throw error.

When have multiple IPAddress in same server, it should use listener like this
10.0.0.2:7080
10.0.0.3:7080
10.0.0.4:7080

so we need to call @smtalk to help us.

Correct! I contacted OLS support and they guided me. Just edit the file
Code:
/usr/local/lsws/admin/conf/admin_config.conf
. You can change the port or specify the IP + port directly. I used the second option and it worked fine.

Original answer from OLS team (Ruikai Wang):
Hi,

you can edit the file /usr/local/lsws/admin/conf/admin_config.conf

you will see a line *:7080 , I think change it to something else like *:7081 should solve the issue

if you want to bind to an IP , make sure that IP is shown in your ip a output , otherwise it will break

Best regards,
Ruikai.
 
Back
Top