Update break mail module

after an update i can’t access the web server… i have this error:

"[1] Class ‘NethServer\Module\Mail’ not found

See the system log for details."

i try with “yum clean all” and “yum update” but nothing change,

thank you very much for help me

So you have access to SSH. I am right?
With a fully-updated server, this is my output of rpm -qa nethserver-mail*

nethserver-mail-server-2.11.3-1.ns7.noarch
nethserver-mail-disclaimer-2.11.3-1.ns7.noarch
nethserver-mail-smarthost-2.11.3-1.ns7.noarch
nethserver-mail-filter-2.11.3-1.ns7.noarch
nethserver-mail-common-2.11.3-1.ns7.noarch
nethserver-mail-getmail-2.11.3-1.ns7.noarch

If you have the same output, consider to put a signal-event nethserver-mail-server-update into shell…

my output is:

nethserver-mail-common-2.11.3-1.ns7.noarch
nethserver-mail-smarthost-2.11.3-1ns7.noarch

i think i have to install all the other module listed…?

If you’re installing a mailserver, at least nethserver-mail-server is necessary.
Disclaimer, filter, and getmail are interesting and useful accessories.

i only use the nextcloud module, but i don’t know if it’s necessary the nethserver-mail-server to sent the notification from the admin of netxcloud to users and groups

thank you pike for help me

edit : i install the nethserver-mail-server but i always have the same error from the web interface

Does this command report any missing file?

rpm -Va nethserver-mail-smarthost

the command list that aren’t missing file,

i don’t know how to repair the problem , both the web interface with 980 and 9090 port aren’t accessible

Hi

Check if you can read the logs about httpd-admin
Maybe there’s a bit more info there WHY the httpd-admin (That’s the service running the 980/9090 web server) isn’t starting/running. httpd is the normal webserver, accessible on ports 80/443…

The logs can be found here:
ls /var/log/httpd-admin/

use cat / nano / tail or whatever to view the files…
(access_log and error_log are the latest ones…)

Sometimes it’s something simple or not obvious…

My 2 cents
Andy

:partying_face:

i’m using a monitor connected with the server and i found that there are some error in the log files,

what’s the command to enable the ssh service and use another pc with terminal.?

because with the phone i make a bad picture

AFAIK SSH is active by default. If you do a ssh root@ipaddress from a linux terminal (for ipaddress use the ip address of NethServer). If you have Windows, use PuTTy. You should be able to login with root. If you removed ssh access for root, use another account with ssh access.

cd /var/log/httpd-admin/

access_log
access_log-20200126
access_log-20200202
access_log-20200216
access_log-20200209

error_log
error_log-20200126
error_log-20200202
error_log-20200209
error_log-20200216

too many file…

error_log

[Sun Feb 16 06:51:11.088559 2020] [lbmethod_heartbeat:notice] [pid 1109] AH02282: No slotmem from mod_heartmonitor
[Sun Feb 16 06:51:11.088983 2020] [ssl:warn] [pid 1109] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Feb 16 06:51:11.089309 2020] [ssl:error] [pid 1109] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=.loca$
[Sun Feb 16 06:51:11.089317 2020] [ssl:error] [pid 1109] AH02235: Unable to configure server certificate for stapling
[Sun Feb 16 06:51:11.089329 2020] [ssl:warn] [pid 1109] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 16 06:51:11.089341 2020] [ssl:warn] [pid 1109] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Sun Feb 16 06:51:11.103762 2020] [mpm_prefork:notice] [pid 1109] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured – resuming normal operations
[Sun Feb 16 06:51:11.103794 2020] [core:notice] [pid 1109] AH00094: Command line: ‘/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConnectionsPerChild 12 -D FOREGROUND’
[Sun Feb 16 18:45:56.595222 2020] [suexec:notice] [pid 1091] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Feb 16 18:45:56.880166 2020] [ssl:error] [pid 1091] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=
.loca$
[Sun Feb 16 18:45:56.880196 2020] [ssl:error] [pid 1091] AH02235: Unable to configure server certificate for stapling
[Sun Feb 16 18:45:56.880216 2020] [ssl:warn] [pid 1091] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 16 18:45:56.880237 2020] [ssl:warn] [pid 1091] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Sun Feb 16 18:45:56.937531 2020] [lbmethod_heartbeat:notice] [pid 1091] AH02282: No slotmem from mod_heartmonitor
[Sun Feb 16 18:45:56.938033 2020] [ssl:warn] [pid 1091] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Feb 16 18:45:56.938433 2020] [ssl:error] [pid 1091] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=.loca$
[Sun Feb 16 18:45:56.938451 2020] [ssl:error] [pid 1091] AH02235: Unable to configure server certificate for stapling
[Sun Feb 16 18:45:56.938471 2020] [ssl:warn] [pid 1091] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Feb 16 18:45:56.938487 2020] [ssl:warn] [pid 1091] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Sun Feb 16 18:45:59.195394 2020] [mpm_prefork:notice] [pid 1091] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured – resuming normal operations
[Sun Feb 16 18:45:59.202120 2020] [core:notice] [pid 1091] AH00094: Command line: ‘/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConnectionsPerChild 12 -D FOREGROUND’
[Tue Feb 18 17:56:24.378530 2020] [:error] [pid 1814] [client 192.168.1.3:52541] PHP Fatal error: Class ‘NethServer\Module\Mail’ not found in /usr/share/nethesis/Nethgui/Module/M$
[Tue Feb 18 18:00:33.682796 2020] [suexec:notice] [pid 1104] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 18 18:00:33.777691 2020] [ssl:error] [pid 1104] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=
.loca$
[Tue Feb 18 18:00:33.777723 2020] [ssl:error] [pid 1104] AH02235: Unable to configure server certificate for stapling
[Tue Feb 18 18:00:33.777744 2020] [ssl:warn] [pid 1104] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Feb 18 18:00:33.777765 2020] [ssl:warn] [pid 1104] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Tue Feb 18 18:00:33.836808 2020] [lbmethod_heartbeat:notice] [pid 1104] AH02282: No slotmem from mod_heartmonitor
[Tue Feb 18 18:00:33.837455 2020] [ssl:warn] [pid 1104] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 18 18:00:33.837991 2020] [ssl:error] [pid 1104] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=.loca$
[Tue Feb 18 18:00:33.838009 2020] [ssl:error] [pid 1104] AH02235: Unable to configure server certificate for stapling
[Tue Feb 18 18:00:33.838028 2020] [ssl:warn] [pid 1104] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Feb 18 18:00:33.838049 2020] [ssl:warn] [pid 1104] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Tue Feb 18 18:00:36.086102 2020] [mpm_prefork:notice] [pid 1104] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured – resuming normal operations
[Tue Feb 18 18:00:36.086715 2020] [core:notice] [pid 1104] AH00094: Command line: ‘/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConnectionsPerChild 12 -D FOREGROUND’
[Tue Feb 18 18:03:15.315861 2020] [:error] [pid 1812] [client 192.168.1.3:52552] PHP Fatal error: Class ‘NethServer\Module\Mail’ not found in /usr/share/nethesis/Nethgui/Module/M$
[Tue Feb 18 18:06:24.727665 2020] [mpm_prefork:notice] [pid 1104] AH00169: caught SIGTERM, shutting down
[Tue Feb 18 18:08:00.392781 2020] [suexec:notice] [pid 1101] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Feb 18 18:08:00.750318 2020] [ssl:error] [pid 1101] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=
.loca$
[Tue Feb 18 18:08:00.750370 2020] [ssl:error] [pid 1101] AH02235: Unable to configure server certificate for stapling
[Tue Feb 18 18:08:00.750395 2020] [ssl:warn] [pid 1101] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Feb 18 18:08:00.750428 2020] [ssl:warn] [pid 1101] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Tue Feb 18 18:08:00.809382 2020] [lbmethod_heartbeat:notice] [pid 1101] AH02282: No slotmem from mod_heartmonitor
[Tue Feb 18 18:08:00.810021 2020] [ssl:warn] [pid 1101] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 18 18:08:00.810568 2020] [ssl:error] [pid 1101] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=*.loca$
[Tue Feb 18 18:08:00.810585 2020] [ssl:error] [pid 1101] AH02235: Unable to configure server certificate for stapling
[Tue Feb 18 18:08:00.810604 2020] [ssl:warn] [pid 1101] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Feb 18 18:08:00.810624 2020] [ssl:warn] [pid 1101] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Tue Feb 18 18:08:02.667424 2020] [mpm_prefork:notice] [pid 1101] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured – resuming normal operations
[Tue Feb 18 18:08:02.667502 2020] [core:notice] [pid 1101] AH00094: Command line: ‘/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConnectionsPerChild 12 -D FOREGROUND’
[Tue Feb 18 18:08:20.969379 2020] [:error] [pid 1804] [client 192.168.1.3:52587] PHP Fatal error: Class ‘NethServer\Module\Mail’ not found in /usr/share/nethesis/Nethgui/Module/M$
[Tue Feb 18 18:08:23.885299 2020] [:error] [pid 1805] [client 192.168.1.3:52588] PHP Fatal error: Class ‘NethServer\Module\Mail’ not found in /usr/share/nethesis/Nethgui/Module/M$
[Tue Feb 18 18:08:31.299946 2020] [:error] [pid 1807] [client 192.168.1.3:52591] PHP Fatal error: Class ‘NethServer\Module\Mail’ not found in /usr/share/nethesis/Nethgui/Module/M$
[Tue Feb 18 18:11:31.532236 2020] [:error] [pid 1806] [client 192.168.1.3:52656] PHP Fatal error: Class ‘NethServer\Module\Mail’ not found in /usr/share/nethesis/Nethgui/Module/M$
[Tue Feb 18 18:18:27.283834 2020] [mpm_prefork:notice] [pid 1101] AH00169: caught SIGTERM, shutting down
[Tue Feb 18 18:20:05.409958 2020] [suexec:notice] [pid 1095] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

the first file with error…

error_log-20200126

[Sun Jan 19 08:14:15.465532 2020] [lbmethod_heartbeat:notice] [pid 1147] AH02282: No slotmem from mod_heartmonitor
[Sun Jan 19 08:14:15.512891 2020] [ssl:warn] [pid 1147] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Jan 19 08:14:15.513338 2020] [ssl:error] [pid 1147] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=.loca$
[Sun Jan 19 08:14:15.513348 2020] [ssl:error] [pid 1147] AH02235: Unable to configure server certificate for stapling
[Sun Jan 19 08:14:15.513363 2020] [ssl:warn] [pid 1147] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 19 08:14:15.513378 2020] [ssl:warn] [pid 1147] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Sun Jan 19 08:14:15.806004 2020] [mpm_prefork:notice] [pid 1147] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured – resuming normal operations
[Sun Jan 19 08:14:15.806046 2020] [core:notice] [pid 1147] AH00094: Command line: ‘/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConnectionsPerChild 12 -D FOREGROUND’
[Wed Jan 22 13:43:32.054935 2020] [suexec:notice] [pid 1103] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 22 13:43:32.119496 2020] [ssl:error] [pid 1103] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=
.loca$
[Wed Jan 22 13:43:32.119518 2020] [ssl:error] [pid 1103] AH02235: Unable to configure server certificate for stapling
[Wed Jan 22 13:43:32.119537 2020] [ssl:warn] [pid 1103] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jan 22 13:43:32.119556 2020] [ssl:warn] [pid 1103] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Wed Jan 22 13:43:32.173801 2020] [lbmethod_heartbeat:notice] [pid 1103] AH02282: No slotmem from mod_heartmonitor
[Wed Jan 22 13:43:32.174396 2020] [ssl:warn] [pid 1103] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Jan 22 13:43:32.174970 2020] [ssl:error] [pid 1103] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: L=vicenza,C=–,OU=roccia,subjectAltName=*.loca$
[Wed Jan 22 13:43:32.174987 2020] [ssl:error] [pid 1103] AH02235: Unable to configure server certificate for stapling
[Wed Jan 22 13:43:32.175005 2020] [ssl:warn] [pid 1103] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jan 22 13:43:32.175024 2020] [ssl:warn] [pid 1103] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name
[Wed Jan 22 13:43:34.992678 2020] [mpm_prefork:notice] [pid 1103] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured – resuming normal operations
[Wed Jan 22 13:43:34.992755 2020] [core:notice] [pid 1103] AH00094: Command line: ‘/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConnectionsPerChild 12 -D FOREGROUND’
[Sun Jan 26 04:13:45.122136 2020] [mpm_prefork:notice] [pid 1103] AH00171: Graceful restart requested, doing restart

Hi

This line seems to be the problem:

[Tue Feb 18 18:00:33.777765 2020] [ssl:warn] [pid 1104] AH01909: RSA certificate configured for nethserver.localdomain.mac:443 does NOT include an ID which matches the server name

The ssl-cert has to match the server name at least once…

My 2 cents
Andy

ok thanks,

what i have to do.?

my nethserver is only in local and have self signed certificate…

Did you change the server name a while back? (1 month ago?)

no i don’t think so,
i only update the server every week with the web interface…
it’s better to reinstall everythink or i can fix it…?

thank you very much

If you have a working backup, i’d reinstall it a new…

For a full restore the “new” server would need the same name as the old one had.

my 2 cents
Andy

@mrmarkuz

Hi

This guy seems stuck with an invalid SSL - no access to 980 or 9090…
How could the local certificate be recreated via CLI?

Any ideas?

Thx
Andy

In the past this worked to reset certificate settings and fallback to self-signed cert:

config show pki    #just to know current settings
config setprop pki CrtFile ''
config setprop pki KeyFile ''
config setprop pki ChainFile ''
signal-event certificate-update
2 Likes