After reading a whole lot and not getting anywhere I hope someone here can help guide me in the right direction. I have been getting an e-mail from my server after reconfiguring a domain. I installed the Webconfiguration Troubleshooter and did a lot of the stuff that I found in the articles.
What I found so far:
I am running OpenSuse 13.1
Plesk 12.0.18
Shown in Plesk
Running
which results in
Running strace gives me:
And
Most of the stuff I searched for did not return anything useful other than add more debug statements. So if anyone has some ideas what I can try, I would be very glad.
What I found so far:
I am running OpenSuse 13.1
Plesk 12.0.18
Shown in Plesk
Code:
Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server:.
Running
Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all
...
[2017-01-24 22:02:38] DEBUG [util_exec] [97a7f768ff6d88f778c4d509aa969517][223] Finished in 0.1256s, Error code: 0, stdout: , stderr: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
Syntax OK
[2017-01-24 22:02:40] DEBUG [util_exec] [dba24a5ed73128d59bf850e8a431e967][0] Starting: apache_control_adapter --restart --restart-interval 0 --http-port 80 --https-port 443, stdin:
[2017-01-24 22:02:42] ERR [util_exec] proc_close() failed
[2017-01-24 22:02:42] DEBUG [util_exec] [dba24a5ed73128d59bf850e8a431e967][0] Finished in 1.5077s, Error code: 255, stdout: , stderr:
PleskUtilException: '/usr/local/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' failed with code 255.
stdout:
stderr:
file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 57
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(26): Service_Agent_Transport_Local->_command(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))
#2 /usr/local/psa/admin/plib/Service/Agent.php(172): Service_Agent_Transport_Local->process('dba24a5ed73128d...', Array)
#3 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php(102): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php(86): Service_Driver_Web_Server_Apache->restart()
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(212): Template_Writer_Webserver_Abstract->restart()
#6 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(112): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#7 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(92): Template_Configuration_Applier->applyConfiguration(true)
#8 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php(406): WebServerManager_Adapter_Apache->sync()
#9 /usr/local/psa/admin/plib/api-common/Httpdmng.php(281): Service_Driver_Web_Server_Apache->syncConfigurations()
#10 /usr/local/psa/admin/plib/api-common/Httpdmng.php(101): Httpdmng->_reconfigureDomains(Array)
#11 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#12 {main}
which results in
Code:
[2017-01-24 22:02:54] DEBUG [panel] Template_Exception: Can not restart web server:
file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
trace: #0 /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php(86): Service_Driver_Web_Server_Apache->restart()
#1 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(212): Template_Writer_Webserver_Abstract->restart()
#2 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(112): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#3 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(92): Template_Configuration_Applier->applyConfiguration(true)
#4 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php(406): WebServerManager_Adapter_Apache->sync()
#5 /usr/local/psa/admin/plib/api-common/Httpdmng.php(281): Service_Driver_Web_Server_Apache->syncConfigurations()
#6 /usr/local/psa/admin/plib/api-common/Httpdmng.php(101): Httpdmng->_reconfigureDomains(Array)
#7 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#8 {main}
[2017-01-24 22:02:54] ERR [panel] Apache config (14852917450.74329700) generation failed: Template_Exception: Can not restart web server:
file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
PleskMultipleException: Can not restart web server:
file: /usr/local/psa/admin/plib/Template/Configuration/Applier.php
line: 108
code: 0
trace: #0 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(92): Template_Configuration_Applier->applyConfiguration(true)
#1 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php(406): WebServerManager_Adapter_Apache->sync()
#2 /usr/local/psa/admin/plib/api-common/Httpdmng.php(281): Service_Driver_Web_Server_Apache->syncConfigurations()
#3 /usr/local/psa/admin/plib/api-common/Httpdmng.php(101): Httpdmng->_reconfigureDomains(Array)
#4 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#5 {main}
Running strace gives me:
Code:
strace /usr/local/psa/admin/bin/apache_control_adapter --restart --restart-interval 0 --http-port 80 --https-port 443
openat(AT_FDCWD, "/etc/apache2/plesk.conf.d/wildcards", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
chdir("/etc/apache2/plesk.conf.d/wildcards") = 0
getdents(4, /* 2 entries */, 32768) = 48
lstat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
chdir("/etc/apache2/plesk.conf.d") = 0
pipe([4, 5]) = 0
pipe([6, 7]) = 0
fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f3ed18079d0) = 22286
close(7) = 0
close(5) = 0
select(7, [4 6], NULL, NULL, {1, 0}) = 1 (in [6], left {0, 983918})
read(6, "Job for apache2.service failed. "..., 4095) = 105
select(7, [4 6], NULL, NULL, {1, 0}) = 1 (in [4], left {0, 998987})
read(4, "", 4095) = 0
close(4) = 0
select(7, [6], NULL, NULL, {1, 0}) = 1 (in [6], left {0, 999927})
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22286, si_status=1, si_utime=0, si_stime=0} ---
read(6, "", 3990) = 0
close(6) = 0
wait4(22286, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WSTOPPED, NULL) = 22286
lseek(3, 0, SEEK_SET) = 0
ftruncate(3, 0) = 0
write(3, "1485292496 0 0 n\n", 17) = 17
close(3) = 0
exit_group(-1) = ?
+++ exited with 255 +++
And
Code:
systemctl status apache2.service:
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
Active: failed (Result: resources)
Jan 24 22:08:10 s15395105 systemd[1]: Failed to start The Apache Webserver.
Jan 24 22:08:11 s15395105 systemd[1]: Starting The Apache Webserver...
Jan 24 22:08:11 s15395105 systemd[1]: apache2.service failed to run 'start' task: Too many links
Jan 24 22:08:11 s15395105 systemd[1]: Failed to start The Apache Webserver.
Jan 24 22:14:55 s15395105 systemd[1]: Starting The Apache Webserver...
Jan 24 22:14:55 s15395105 systemd[1]: apache2.service failed to run 'start' task: Too many links
Jan 24 22:14:55 s15395105 systemd[1]: Failed to start The Apache Webserver.
Jan 24 22:14:56 s15395105 systemd[1]: Starting The Apache Webserver...
Jan 24 22:14:56 s15395105 systemd[1]: apache2.service failed to run 'start' task: Too many links
Jan 24 22:14:56 s15395105 systemd[1]: Failed to start The Apache Webserver.
Most of the stuff I searched for did not return anything useful other than add more debug statements. So if anyone has some ideas what I can try, I would be very glad.