Zentyal Forum, Linux Small Business Server
Zentyal Server => Directory and Authentication => Topic started by: rpennol on April 11, 2023, 11:10:14 am
-
Ciao to all !
I've a big problem with a Zentyal 7.0 server :(
I'm trying to connect to backend and i have the error message "An error occurred during a connection to localhost:8443".
Any ideas ?
Roberto
-
You must analyze the following log files in order to see why you are getting that error:
* /var/log/zentyal/zentyal.log
* /var/log/zentyal/error.log
* /var/log/nginx/error.log
* /var/log/syslog
Also, you can check the status of the following services:
sudo systemctl status zentyal.webadmin-nginx zentyal.webadmin-uwsgi
sudo journalctl --no-pager -u zentyal.webadmin-nginx
Moreover, you can see if the port is listening:
sudo ss -tunpl | grep ':8443'
Finally, in case the services are running and the port is listening, make sure the firewall is not blocking the connection. You can stop it temporarily with the below command so you can adjust the rules.
sudo zs firewall stop
--
“This world is ours, and by the Holy Light we will keep it safe, now and forever".
-
root@agamennone:~# systemctl status zentyal.webadmin-nginx zentyal.webadmin-uwsgi
● zentyal.webadmin-nginx.service - Nginx http daemon for Zentyal web admin
Loaded: loaded (/lib/systemd/system/zentyal.webadmin-nginx.service; static; vendor preset: enabled)
Active: active (running) since Tue 2023-04-11 11:09:18 CEST; 4h 34min ago
Main PID: 6489 (nginx)
Tasks: 5 (limit: 19135)
Memory: 6.0M
CGroup: /system.slice/zentyal.webadmin-nginx.service
├─6489 nginx: master process /usr/sbin/nginx -c /var/lib/zentyal/conf/nginx.conf
├─6498 nginx: worker process
├─6499 nginx: worker process
├─6500 nginx: worker process
└─6501 nginx: worker process
apr 11 11:09:18 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
● zentyal.webadmin-uwsgi.service - uWSGI daemon for Zentyal webadmin
Loaded: loaded (/lib/systemd/system/zentyal.webadmin-uwsgi.service; static; vendor preset: enabled)
Active: active (running) since Tue 2023-04-11 11:09:16 CEST; 4h 34min ago
Main PID: 6437 (uwsgi)
Tasks: 4 (limit: 19135)
Memory: 132.5M
CGroup: /system.slice/zentyal.webadmin-uwsgi.service
├─ 6437 /usr/bin/uwsgi --master --ignore-sigpipe --buffer-size 10240 --plugins 0:psgi --uid ebox --gid ebox --umask 000 -s /run/zentyal-webadmin/webadmin.sock --touch-reload /var/lib/zentyal/we>
├─ 6497 /usr/bin/uwsgi --master --ignore-sigpipe --buffer-size 10240 --plugins 0:psgi --uid ebox --gid ebox --umask 000 -s /run/zentyal-webadmin/webadmin.sock --touch-reload /var/lib/zentyal/we>
├─60070 sh -c wget --quiet -O /tmp/new-release - http://update.zentyal.org/update-from-'7.0'.txt
└─60071 wget --quiet -O /tmp/new-release - http://update.zentyal.org/update-from-7.0.txt
apr 11 15:12:52 agamennone sudo[60044]: pam_unix(sudo:session): session closed for user root
apr 11 15:12:52 agamennone sudo[60050]: ebox : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/var/lib/zentyal/tmp/_dNr91qdVP.cmd
apr 11 15:12:52 agamennone sudo[60050]: pam_unix(sudo:session): session opened for user root by (uid=0)
apr 11 15:12:52 agamennone sudo[60050]: pam_unix(sudo:session): session closed for user root
apr 11 15:12:52 agamennone sudo[60055]: ebox : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/var/lib/zentyal/tmp/koYis4wNPi.cmd
apr 11 15:12:52 agamennone sudo[60055]: pam_unix(sudo:session): session opened for user root by (uid=0)
apr 11 15:12:54 agamennone sudo[60055]: pam_unix(sudo:session): session closed for user root
apr 11 15:12:54 agamennone sudo[60066]: ebox : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/var/lib/zentyal/tmp/ZQzB4qSCtn.cmd
apr 11 15:12:54 agamennone sudo[60066]: pam_unix(sudo:session): session opened for user root by (uid=0)
apr 11 15:12:54 agamennone sudo[60066]: pam_unix(sudo:session): session closed for user root
root@agamennone:~# journalctl --no-pager -u zentyal.webadmin-nginx
-- Logs begin at Fri 2023-04-07 10:13:07 CEST, end at Tue 2023-04-11 15:43:44 CEST. --
apr 11 09:02:42 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 09:02:42 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 09:02:42 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 09:02:42 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 09:11:02 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 09:11:45 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 09:11:45 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 09:11:45 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 09:11:45 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 09:16:49 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 09:28:27 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 09:28:27 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 09:28:27 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 09:28:27 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 09:36:36 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 09:39:11 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 09:39:11 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 09:39:11 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 09:39:11 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 09:42:58 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 09:54:16 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 09:54:16 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 09:54:16 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 09:54:16 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 09:57:55 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 10:14:36 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 10:14:36 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 10:14:36 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 10:14:36 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 10:19:00 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 10:34:39 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 10:34:39 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 10:34:39 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 10:34:39 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 10:38:18 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
apr 11 10:56:58 agamennone systemd[1]: Stopping Nginx http daemon for Zentyal web admin...
apr 11 10:56:58 agamennone systemd[1]: zentyal.webadmin-nginx.service: Control process exited, code=exited, status=1/FAILURE
apr 11 10:56:58 agamennone systemd[1]: zentyal.webadmin-nginx.service: Failed with result 'exit-code'.
apr 11 10:56:58 agamennone systemd[1]: Stopped Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 11:00:14 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
-- Reboot --
apr 11 11:09:18 agamennone systemd[1]: Started Nginx http daemon for Zentyal web admin.
-
root@agamennone:/# sudo ss -tunpl | grep ':8443'
tcp LISTEN 0 511 0.0.0.0:8443 0.0.0.0:* users:(("nginx",pid=6501,fd=7),("nginx",pid=6500,fd=7),("nginx",pid=6499,fd=7),("nginx",pid=6498,fd=7),("nginx",pid=6489,fd=7))
-
* /var/log/zentyal/error.log
...
2023/04/11 15:10:23 [error] 6498#6498: *25 upstream timed out (110: Connection timed out) while reading response header from upstream, client: [CLIENT_IP], server: , request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///run/zentyal-webadmin/webadmin.sock", host: "[SERVER_IP]:8443"
-
/var/log/nginx/error.log
...
2023/04/11 10:56:58 [alert] 4581#4581: unlink() "/var/lib/zentyal/tmp/nginx.pid" failed (2: No such file or directory)
-
Hmm, both services are up and running and the port is listening, so the module seems to be working as expected. Did you try to connect from another machine?
--
“This world is ours, and by the Holy Light we will keep it safe, now and forever".