Koozali.org formerly Contribs.org

httpd-e-smith.service is not defined as a service

httpd-e-smith.service is not defined as a service
« on: April 23, 2021, 09:23:35 PM »
Hi, after having tried SME10 alpha/beta/RC1 in Virtualbox without any visible problem I decided to upgrade my home server to SME10. I did a backup to USB disk in console, replaced the server disk with a new one just to make sure that I can go back where I was before, if needed. I installed SME10 and restored my backup at reboot. After the final reboot I connected a computer to the internal network but didn’t get an IP. I configured one manually and I could access and ping the server.

But no access to the server-manager nor my hosted sites. I connected to a terminal, htop showed me that dovecot/ssl-params had been running at 100% CPU and stayed like this. Did a yum update, there had been a bunch of updates, rebooted and now DHCP seems to work and dovecot has calmed down. I can connect to web sites outside, but not those hosted on the server.

httpd -t gave me a Syntax error on line 1196 of httpd.conf
Invalid command ‘RequireSSL’

I moved my custom httpd et php templates to /root and did "systemctl restart httpd-e-smith.service". But this gives:
Information:  httpd-e-smith.service is not defined as a service in configuration DB but Job for  httpd-e-smith.service failed because the control process exited with error code. See “systemctl status httpd-e-smith.service” for details.

systemctl status httpd-e-smith.service gives: httpd-e-smith.service: control process exited, code=exited status=9
In var/log/httpd there is no access_log and no error_log. In mc both are in red colour with a leading “!”.

Did a signal-event post-upgrade; signal-event reboot and now httpd -t says Syntax OK.

UPDATE:
In var/log/httpd there is now an access_log and a error_log file, may be because there is no Syntax error anymore in httpd.conf.

In  error_log are only several lines repeating for each of my hosted sites:
RSA certificate configured for XXXXX:443 does NOT include an ID which matches the server name.
And
Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support.

UPDATE2:
Now I can access server-manger and hosted sites from internal network and I don't know why. And there are no new lines in error_log, but “systemctl restart httpd-e-smith.service” gives still the same error:
Information:  httpd-e-smith.service is not defined as a service in configuration DB but Job for  httpd-e-smith.service failed because the control process exited with error code. See “systemctl status httpd-e-smith.service” for details.

systemctl status httpd-e-smith.service gives: httpd-e-smith.service: control process exited, code=exited status=9

UPDATE3:
Lost access to server-manger and hosted sites again.
Don’t know what to do further and I’ve still not started to install all my contribs.

Offline Jean-Philippe Pialasse

  • *
  • 1,649
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: httpd-e-smith.service is not defined as a service
« Reply #1 on: April 23, 2021, 09:36:59 PM »
First of all how did you restore ?

After the final reboot I connected a computer to the internal network but didn’t get an IP. I configured one manually and I could access and ping the server.
known bug, fix is in smeupdates, will be in next iso

httpd -t gave me a Syntax error on line 1196 of httpd.conf
Invalid command ‘RequireSSL’

I moved my custom httpd et php templates to /root and did
classical issue with custom templates, we can not control what you put in there. After that you shoudl have done
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
httpd -t
systemctl restart httpd-e-smith.service

"systemctl restart httpd-e-smith.service"
httpd-e-smith.service is not defined as a service in configuration DB
what gives
Code: [Select]
config show httpd-e-smith

In  error_log are only several lines repeating for each of my hosted sites:
RSA certificate configured for XXXXX:443 does NOT include an ID which matches the server name.
And
Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support.
just noise

UPDATE2:
Now I can access server-manger and hosted sites from internal network and I don't know why. And there are no new lines in error_log, but “systemctl restart httpd-e-smith.service” gives still the same error:
Information:  httpd-e-smith.service is not defined as a service in configuration DB but Job for  httpd-e-smith.service failed because the control process exited with error code. See “systemctl status httpd-e-smith.service” for details.

systemctl status httpd-e-smith.service gives: httpd-e-smith.service: control process exited, code=exited status=9

UPDATE3:
Lost access to server-manger and hosted sites again.
Don’t know what to do further and I’ve still not started to install all my contribs.

as per above,
Code: [Select]
config show httpd-e-smith
and add also
Code: [Select]
/sbin/e-smith/audittools/templates
httpd -t

Re: httpd-e-smith.service is not defined as a service
« Reply #2 on: April 23, 2021, 10:11:07 PM »
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
httpd -t
systemctl restart httpd-e-smith.service
gives “Syntax ok”
but still: Information:  httpd-e-smith.service is not defined as a service in configuration DB but Job for  httpd-e-smith.service failed because the control process exited with error code. See “systemctl status httpd-e-smith.service” for details.

Code: [Select]
/sbin/e-smith/audittools/templatesnothing concernant httpd for me, there are 4 in var/qmail/control/smtproutes
1 in etc/rc.d/init.d/masq
and 1 in /etc/dar/DailyBackup.dcf

Code: [Select]
config show httpd-e-smithhttpd-e-smith=configuration
SSLv2=disabled
SSLv3=disabled
TCPPort=80
access=public
status=enabled

Re: httpd-e-smith.service is not defined as a service
« Reply #3 on: April 23, 2021, 10:33:42 PM »
Code: [Select]
First of all how did you restore ?At first reboot

Offline Jean-Philippe Pialasse

  • *
  • 1,649
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: httpd-e-smith.service is not defined as a service
« Reply #4 on: April 23, 2021, 11:07:16 PM »
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
httpd -t
systemctl restart httpd-e-smith.service
httpd-e-smith.service is not defined as a service in configuration DB.
Job for  httpd-e-smith.service failed because the control process exited with error code. See “systemctl status httpd-e-smith.service” for details.

Code: [Select]
config show httpd-e-smithhttpd-e-smith=configuration
SSLv2=disabled
SSLv3=disabled
TCPPort=80
access=public
status=enabled

one has played with its configuration db in the past and the issue is emerging now :

Code: [Select]
# cat /etc/e-smith/db/configuration/defaults/httpd-e-smith/type
service

as you played with this in the past, and the type is defined as configuration and not service, the result is that httpd-e-smith is not recognized as a service to enable for systemd, and the wrapper for systemctl also alert you about the fact that there is not such entry for httpd-e-smith as a service .


Code: [Select]
First of all how did you restore ?At first reboot
- Did I asked when ?
- Then, why do you answer when, while I asked how ?  :lol:
So I must assume you did a console backup on a usb disk and restored from that same archive.


Code: [Select]
config settype httpd-e-smith service
/etc/e-smith/events/actions/systemd-default
syestemctl restart httpd-e-smith.service
should fixed it, unless there is something else under the hood
« Last Edit: April 23, 2021, 11:09:29 PM by Jean-Philippe Pialasse »

Re: httpd-e-smith.service is not defined as a service
« Reply #5 on: April 23, 2021, 11:55:08 PM »
one has played with its configuration db in the past and the issue is emerging now :
Code: [Select]
# cat /etc/e-smith/db/configuration/defaults/httpd-e-smith/type
service
as you played with this in the past, and the type is defined as configuration and not service, the result is that httpd-e-smith is not recognized as a service to enable for systemd, and the wrapper for systemctl also alert you about the fact that there is not such entry for httpd-e-smith as a service .
I‘m quite sure I’ve never touched this, really I don’t see any reason.

- Did I asked when ?
- Then, why do you answer when, while I asked how ?  :lol:
So I must assume you did a console backup on a usb disk and restored from that same archive.
Sorry when I didn't understood your question right, I'm not used to speak english. But if it's this what you meant I said it already in the beginning.
Hi, after .... I did a backup to USB disk in console, replaced the server disk with a new one just to make sure that I can go back where I was before, if needed. I installed SME10 and restored my backup at reboot.
Code: [Select]
config settype httpd-e-smith service
/etc/e-smith/events/actions/systemd-default
syestemctl restart httpd-e-smith.service
should fixed it, unless there is something else under the hood
That was it, thank you so much. Three lines of code. Would have never found myself.
Everything seems to work and I can start to install my contribs.
Encore merci.

Offline Jean-Philippe Pialasse

  • *
  • 1,649
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: httpd-e-smith.service is not defined as a service
« Reply #6 on: April 24, 2021, 12:08:26 AM »
Code: [Select]
config settype httpd-e-smith service
signal-event post-upgrade; signal-event reboot
should have worked too ;)

try the French section next time .

bon week-end

Re: httpd-e-smith.service is not defined as a service
« Reply #7 on: April 24, 2021, 12:41:21 AM »
Bon week-end et merci de m’avoir aidé un vendredi soir.