Fatal error in configuration, exit

remics

New Member
#1
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 ?

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
 

remics

New Member
#4
Bash:
root@acesso:/home/felinto# sudo lsof -i :7080
COMMAND       PID   USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
litespeed 2951056   root   22u  IPv4 454740017      0t0  TCP *:7080 (LISTEN)
litespeed 2951056   root   23u  IPv4 454740018      0t0  UDP *:7080
litespeed 2951073 apache   22u  IPv4 454740017      0t0  TCP *:7080 (LISTEN)
litespeed 2951073 apache   23u  IPv4 454740018      0t0  UDP *:7080
root@acesso:/home/felinto#
root@acesso:/home/felinto# sudo /usr/local/lsws/bin/lswsctrl stop
[ERROR] litespeed is not running.
root@acesso:/home/felinto# sudo systemctl stop lsws
root@acesso:/home/felinto# sudo lsof -i :7080
root@acesso:/home/felinto# sudo systemctl start lsws
root@acesso:/home/felinto# sudo lsof -i :7080
COMMAND       PID   USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
litespeed 2967211   root   22u  IPv4 455719027      0t0  TCP *:7080 (LISTEN)
litespeed 2967211   root   23u  IPv4 455719028      0t0  UDP *:7080
litespeed 2967224 apache   22u  IPv4 455719027      0t0  TCP *:7080 (LISTEN)
litespeed 2967224 apache   23u  IPv4 455719028      0t0  UDP *:7080
I'm using DirectAdmin
 

remics

New Member
#6
I contacted OLS support and they guided me. Just edit the file /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.
 
Top