• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue message about : /etc/cron.daily/logrotate:

pitufo_webmaster

Basic Pleskian
  1. SO: ‪Ubuntu 18.04.4 LTS‬
  2. Product: Plesk Obsidian
  3. Version: 18.0.28
  4. server VPS in strato
Hi guys
I have this issue in a new installation
cron started sending me the following e-mails a few days ago:


/etc/cron.daily/logrotate:
error: error running shared postrotate script for '/var/log/apache2/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

the solution on plesk is : Install the latest Plesk micro-updates.
but I have all update. It´s a new server , a new installation.
Also , I read this question 15 years ago in debian lists
thks in advance guys
 
Last edited:
There are punctual problems in SystemD handling the main Apache process. Try to do the following:

Restart Apache service:

# systemctl restart apache2

Verify that Apache service can be reloaded successfully with these commands:

# systemctl reload apache2

# invoke-rc.d apache2 reload

If the issue persists, contact Plesk Support
 
hi IgorG
thks for your support
theses are the answers:

# systemctl restart apache2
# systemctl reload apache2
# invoke-rc.d apache2 reload
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "reload" failed.
 
As you can see Apache cannot be reloaded correctly and that's a reason. For fixing the issue directly on your server I suggest you contact Plesk Support Team.
 
Hi again
Thks for reply:
1.- Our Plesk License is a license through the strato provider. this way , we do not have official sopport. And Strato does not offer support
2.- Does it a fatal issue, what problems can it cause?

thks for all.
 
Hi peter, thks for your support.
these are:

apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Mon 2020-06-29 12:12:30 CEST; 6h ago
Process: 24575 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCES
Process: 24642 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCC
Main PID: 24646 (apache2)
Tasks: 57 (limit: 60)
CGroup: /system.slice/apache2.service
├─ 6612 /opt/plesk/php/7.0/bin/php-cgi -c /var/www/vhosts/system/bluc
├─24646 /usr/sbin/apache2 -k start
├─24648 /usr/sbin/apache2 -k start
├─24649 /usr/sbin/apache2 -k start
└─24650 /usr/sbin/apache2 -k start

jun 29 12:12:30 h2722569.stratoserver.net systemd[1]: Starting The Apache HTTP S
jun 29 12:12:30 h2722569.stratoserver.net systemd[1]: Started The Apache HTTP Se
jun 29 12:32:12 h2722569.stratoserver.net sendmail[25473]: plesk sendmail[25473]
jun 29 12:36:05 h2722569.stratoserver.net sendmail[25601]: plesk sendmail[25601]
jun 29 13:06:25 h2722569.stratoserver.net sendmail[26989]: plesk sendmail[26989]
jun 29 14:58:13 h2722569.stratoserver.net sendmail[31426]: plesk sendmail[31426]
jun 29 18:25:11 h2722569.stratoserver.net sendmail[6086]: plesk sendmail[6086]:
lines 1-23
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Mon 2020-06-29 12:12:30 CEST; 6h ago
Process: 24575 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 24642 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 24646 (apache2)
Tasks: 57 (limit: 60)
CGroup: /system.slice/apache2.service
├─ 6612 /opt/plesk/php/7.0/bin/php-cgi -c /var/www/vhosts/system/blucer.com/etc/php.ini
├─24646 /usr/sbin/apache2 -k start
├─24648 /usr/sbin/apache2 -k start
├─24649 /usr/sbin/apache2 -k start
└─24650 /usr/sbin/apache2 -k start

jun 29 12:12:30 h2722569.stratoserver.net systemd[1]: Starting The Apache HTTP Server...
jun 29 12:12:30 h2722569.stratoserver.net systemd[1]: Started The Apache HTTP Server.
jun 29 12:32:12 h2722569.stratoserver.net sendmail[25473]: plesk sendmail[25473]: fork failed (11): Resource temporarily unavailable
jun 29 12:36:05 h2722569.stratoserver.net sendmail[25601]: plesk sendmail[25601]: fork failed (11): Resource temporarily unavailable
jun 29 13:06:25 h2722569.stratoserver.net sendmail[26989]: plesk sendmail[26989]: fork failed (11): Resource temporarily unavailable
jun 29 14:58:13 h2722569.stratoserver.net sendmail[31426]: plesk sendmail[31426]: fork failed (11): Resource temporarily unavailable
jun 29 18:25:11 h2722569.stratoserver.net sendmail[6086]: plesk sendmail[6086]: _mh_fork(): Error occured during fork(): Resource temporarily unavailable
lines 1-23...skipping...
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Mon 2020-06-29 12:12:30 CEST; 6h ago
Process: 24575 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 24642 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 24646 (apache2)
Tasks: 57 (limit: 60)
CGroup: /system.slice/apache2.service
├─ 6612 /opt/plesk/php/7.0/bin/php-cgi -c /var/www/vhosts/system/blucer.com/etc/php.ini
├─24646 /usr/sbin/apache2 -k start
├─24648 /usr/sbin/apache2 -k start
├─24649 /usr/sbin/apache2 -k start
└─24650 /usr/sbin/apache2 -k start

jun 29 12:12:30 h2722569.stratoserver.net systemd[1]: Starting The Apache HTTP Server...
jun 29 12:12:30 h2722569.stratoserver.net systemd[1]: Started The Apache HTTP Server.
jun 29 12:32:12 h2722569.stratoserver.net sendmail[25473]: plesk sendmail[25473]: fork failed (11): Resource temporarily unavailable
jun 29 12:36:05 h2722569.stratoserver.net sendmail[25601]: plesk sendmail[25601]: fork failed (11): Resource temporarily unavailable
jun 29 13:06:25 h2722569.stratoserver.net sendmail[26989]: plesk sendmail[26989]: fork failed (11): Resource temporarily unavailable
jun 29 14:58:13 h2722569.stratoserver.net sendmail[31426]: plesk sendmail[31426]: fork failed (11): Resource temporarily unavailable
jun 29 18:25:11 h2722569.stratoserver.net sendmail[6086]: plesk sendmail[6086]: _mh_fork(): Error occured during fork(): Resource temporarily unavailable
jun 29 18:25:11 h2722569.stratoserver.net sendmail[6086]: plesk sendmail[6086]: Error during 'check-quota' handler
jun 29 18:30:36 h2722569.stratoserver.net sendmail[6230]: plesk sendmail[6230]: fork failed (11): Resource temporarily unavailable


jun 29 18:42:08 h2722569.stratoserver.net postfix/smtpd[6648]: disconnect from unknown[212.70.149.2] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
jun 29 18:42:09 h2722569.stratoserver.net postfix/smtpd[4930]: connect from unknown[212.70.149.50]
jun 29 18:42:11 h2722569.stratoserver.net sshd[6650]: Invalid user miner from 79.143.181.103 port 48142
jun 29 18:42:11 h2722569.stratoserver.net sshd[6650]: pam_unix(sshd:auth): check pass; user unknown
jun 29 18:42:11 h2722569.stratoserver.net sshd[6650]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=79.143.181.103
jun 29 18:42:13 h2722569.stratoserver.net plesk_saslauthd[18074]: No such user '[email protected]' in mail authorization database
jun 29 18:42:13 h2722569.stratoserver.net plesk_saslauthd[18074]: failed mail authentication attempt for user '[email protected]' (password len=6)
jun 29 18:42:13 h2722569.stratoserver.net postfix/smtpd[6551]: warning: unknown[212.70.149.18]: SASL LOGIN authentication failed: authentication failure
jun 29 18:42:13 h2722569.stratoserver.net sshd[6650]: Failed password for invalid user miner from 79.143.181.103 port 48142 ssh2
jun 29 18:42:14 h2722569.stratoserver.net postfix/smtpd[6551]: disconnect from unknown[212.70.149.18] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
jun 29 18:42:14 h2722569.stratoserver.net plesk_saslauthd[18074]: No such user '[email protected]' in mail authorization database
jun 29 18:42:14 h2722569.stratoserver.net plesk_saslauthd[18074]: failed mail authentication attempt for user '[email protected]' (password len=10)
jun 29 18:42:14 h2722569.stratoserver.net postfix/smtpd[5247]: warning: unknown[212.70.149.82]: SASL LOGIN authentication failed: authentication failure
jun 29 18:42:14 h2722569.stratoserver.net plesk_saslauthd[18074]: No such user '[email protected]' in mail authorization database
jun 29 18:42:14 h2722569.stratoserver.net plesk_saslauthd[18074]: failed mail authentication attempt for user '[email protected]' (password len=7)
jun 29 18:42:14 h2722569.stratoserver.net postfix/smtpd[4930]: warning: unknown[212.70.149.50]: SASL LOGIN authentication failed: authentication failure
jun 29 18:42:15 h2722569.stratoserver.net postfix/smtpd[4930]: disconnect from unknown[212.70.149.50] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
jun 29 18:42:15 h2722569.stratoserver.net postfix/smtpd[5247]: disconnect from unknown[212.70.149.82] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
jun 29 18:42:16 h2722569.stratoserver.net sshd[6650]: Received disconnect from 79.143.181.103 port 48142:11: Bye Bye [preauth]
jun 29 18:42:16 h2722569.stratoserver.net sshd[6650]: Disconnected from invalid user miner 79.143.181.103 port 48142 [preauth]
jun 29 18:42:23 h2722569.stratoserver.net sshd[6654]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=51.161.11.56 us
jun 29 18:42:25 h2722569.stratoserver.net sshd[6654]: Failed password for root from 51.161.11.56 port 48982 ssh2
jun 29 18:42:25 h2722569.stratoserver.net sshd[6654]: Received disconnect from 51.161.11.56 port 48982:11: Bye Bye [preauth]
jun 29 18:42:25 h2722569.stratoserver.net sshd[6654]: Disconnected from authenticating user root 51.161.11.56 port 48982 [preauth]
jun 29 18:42:34 h2722569.stratoserver.net postfix/smtpd[6648]: connect from unknown[212.70.149.82]
jun 29 18:42:35 h2722569.stratoserver.net postfix/smtpd[6424]: connect from unknown[212.70.149.66]
jun 29 18:42:40 h2722569.stratoserver.net postfix/smtpd[6551]: connect from unknown[212.70.149.50]
jun 29 18:42:42 h2722569.stratoserver.net plesk_saslauthd[18074]: No such user '[email protected]' in mail authorization database
jun 29 18:42:42 h2722569.stratoserver.net plesk_saslauthd[18074]: failed mail authentication attempt for user '[email protected]' (password len=10)
jun 29 18:42:42 h2722569.stratoserver.net postfix/smtpd[6648]: warning: unknown[212.70.149.82]: SASL LOGIN authentication failed: authentication failure
jun 29 18:42:43 h2722569.stratoserver.net postfix/smtpd[4930]: connect from unknown[212.70.149.2]
jun 29 18:42:43 h2722569.stratoserver.net postfix/smtpd[6648]: disconnect from unknown[212.70.149.82] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
 
According to the first log Apache is up and running without any issues. You'll need to find the date and time in the log where Apache failed to restart or reload.

The second log only shows the current transactions for some auth and mail transactions.

By the way, but not linked to your question, the entry " plesk sendmail[25473]: fork failed (11): Resource temporarily unavailable " could point to a resource issue (not enough RAM).
 
Thanks for your help, Peter, once again.
So, Do I forget that mistake? It's not important. Because really Apache is running and the webs on the server like www.zainder.com are online
 
Last edited:
Back
Top