Symptoms
-
Apache goes down after
plesk repair web example.com -y
is run with following error:# plesk repair web example.com
Checking web server configuration
Repair web server configuration for domains example.com? [Y/n] y
Repairing web server configuration for the domain
example.com ...............................................
[2020-09-22 14:41:22.557] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmng' '--reconfigure-domain' example.com'] with exit code [1]
[FAILED]
- httpdmng failed:
[2020-09-22 14:41:21.873] ERR [util_exec]
proc_close() failed
['/opt/psa/admin/bin/apache_control_adapter' '--restart'
'--restart-interval' '0' '--http-port' '7080' '--https-port'
'7081'] with exit code [255]
[2020-09-22 14:41:22.359] ERR [panel] Apache config
(16007783440.36871400) generation failed: Template_Exception:
Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 122
code: 0
Can not restart web server:
Error messages: 0; Warnings: 0; Errors resolved: 0 -
Another Apache webserver process is running:
# ps auxwwff | grep -B2 apache
root 1749 0.0 0.2 598104 39556 ? Ssl Sep29 0:05 /usr/bin/containerd
root 7401 0.0 0.0 11788 5164 ? Sl Sep29 0:01 _ containerd-shim -namespace moby -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/moby/00966c4ea498300fc454fc563a4869d0556fe94b2818898b0c6f2a03a6d9b0ec -address /run/containerd/containerd.sock -containerd-binary /usr/bin/containerd -runtime-root /var/run/docker/runtime-runc
root 7826 0.0 0.1 83360 24708 ? Ss Sep29 0:01 _ apache2 -DFOREGROUND
www-data 8250 0.0 0.0 83392 7228 ? S Sep29 0:00 _ apache2 -DFOREGROUND
www-data 8251 0.0 0.0 83392 7228 ? S Sep29 0:00 _ apache2 -DFOREGROUND
—
plesk_s+ 14984 0.0 0.0 37084 4632 ? Ss 03:38 0:00 /lib/systemd/systemd –user
plesk_s+ 14985 0.0 0.0 143988 2360 ? S 03:38 0:00 _ (sd-pam)
root 20185 0.0 0.3 274624 51020 ? Ss 05:56 0:00 /usr/sbin/apache2 -k start
www-data 20189 0.0 0.2 274540 43264 ? S 05:56 0:00 _ /usr/sbin/apache2 -k start
Cause
Software issue with ID #PPPM-12387 that will be resolved in future updates of the product.
Resolution
-
Connect to the server via SSH
-
Execute the following command:
# sed -i -e ‘s|^(apache_status_linux_debian)|_1|g’ /opt/psa/admin/sbin/pleskrc
-
Restart Apache webserver