Koozali.org: home of the SME Server

[Solved] I cannot access web server / server manager

Offline RDMidtun

  • *
  • 27
  • +0/-0
[Solved] I cannot access web server / server manager
« on: July 30, 2021, 08:40:36 AM »
After restore from SME9.2 to my fresh install SME10 I cannot access web server / server manager.

Both wan and lan networks are working and I am able to ping my server over the lan network. Putting the netbrowser to https://192.168.185.1/server-manager says connection refused.

Here are my customized templates:
[root@e-smith ~]#  /sbin/e-smith/audittools/templates
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/17check_basicheaders: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/17check_basicheaders: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/smtpfront-qmail/runenv/Concurrency: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/home/e-smith/ssl.crt: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/smb.conf/ibays/40veto: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq/45AllowSSH: MANUALLY_ADDED, ADDITION


httpd config seems to be OK
[root@e-smith ~]# httpd -t
Syntax OK

Service status:
[root@e-smith ~]# systemctl status  httpd-e-smith.service
● httpd-e-smith.service - httpd-e-smith The Koozali SME Server Apache HTTP Service
   Loaded: loaded (/usr/lib/systemd/system/httpd-e-smith.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2021-07-29 19:05:18 CEST; 11h ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 4879 ExecStart=/usr/sbin/httpd -f /etc/httpd/conf/httpd.conf -DFOREGROUND (code=exited, status=1/FAILURE)
  Process: 4875 ExecStartPre=/sbin/e-smith/systemd/httpd-e-smith-prepare (code=exited, status=0/SUCCESS)
  Process: 4872 ExecStartPre=/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf (code=exited, status=0/SUCCESS)
  Process: 4865 ExecStartPre=/sbin/e-smith/service-status httpd-e-smith (code=exited, status=0/SUCCESS)
 Main PID: 4879 (code=exited, status=1/FAILURE)

Jul 29 19:05:18 e-smith.midtun.dyndns.org systemd[1]: Starting httpd-e-smith The Koozali SME Server Apache HTTP Service...
Jul 29 19:05:18 e-smith.midtun.dyndns.org systemd[1]: httpd-e-smith.service: main process exited, code=exited, status=1/FAILURE
Jul 29 19:05:18 e-smith.midtun.dyndns.org systemd[1]: Failed to start httpd-e-smith The Koozali SME Server Apache HTTP Service.
Jul 29 19:05:18 e-smith.midtun.dyndns.org systemd[1]: Unit httpd-e-smith.service entered failed state.
Jul 29 19:05:18 e-smith.midtun.dyndns.org systemd[1]: httpd-e-smith.service failed.


« Last Edit: July 30, 2021, 11:53:54 PM by TerryF »

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: I cannot access web server / server manager
« Reply #1 on: July 30, 2021, 03:41:22 PM »
This was a certificate problem that I managed to fix with the following commands:

Code: [Select]
[root@e-smith ssl.key]# rm /home/e-smith/ssl.*/* -f
[root@e-smith ssl.key]# signal-event ssl-update
[root@e-smith ssl.key]# systemctl restart httpd-e-smith

Offline geoff

  • **
  • 61
  • +0/-0
Re: [Solved] I cannot access web server / server manager
« Reply #2 on: August 01, 2021, 04:38:17 PM »
Thank you for your good work.  :-)

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: [Solved] I cannot access web server / server manager
« Reply #3 on: August 01, 2021, 11:31:02 PM »
after restore have you post-upgrade and reboot ?

outdated (including small size key) ssl cert should have been deleted  and regenerated.

if you did this, and cert was not renewed leading to this, this is a bug.
would need your message log

Offline geoff

  • **
  • 61
  • +0/-0
Re: [Solved] I cannot access web server / server manager
« Reply #4 on: August 30, 2021, 12:12:21 PM »
Happened again today after the PHP Updates.post-upgrade & reboot didn't fix it.

Your script is great.