• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Resolved THE SITE IS DOWN AFTER HAVING INSTALLED OBSIDIAN 18.0.23

roberto bruzzese

New Pleskian
THE SERVER IS DOWN
and I receive this error

New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/nginx.conf:41 nginx: configuration file /etc/nginx/nginx.conf test failed.


It seem to me that there is a problem with tempalte . But how to update this templates ?
I have tried to access with ssh and give the command :

plesk sbin httpdmng --reconfigure-all

But there was this error:

[root@www studiopsicologiaabruzzo.it]# plesk sbin httpdmng --reconfigure-server
[2020-01-26 09:44:39.244] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1]
[2020-01-26 09:44:41.161] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code [1]
[2020-01-26 09:44:41.361] ERR [panel] Apache config (15800282770.77047800) generation failed: Template_Exception: nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/nginx.conf:41
nginx: configuration file /etc/nginx/nginx.conf test failed
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/nginx.conf:41
nginx: configuration file /etc/nginx/nginx.conf test failed
exit status 1




How to solve it ?
 
Last edited:
Do you have any custom directives set in Nginx or are you not using the default Nginx setup provided by Plesk in any way?
you can try to login to your plesk panel and use the extension "Webserver Configurations Troubleshooter" and rebuild configuration files or via cli Plesk Repair Utility: Web
 
Last edited:
I have some custom directives in Nginx.
I have tried with the trobleshouter and also with rebuild configuration files . But did not work.
Now i am trying with this command from the shh:

plesk repair all -v
 
Last edited:
After the repair all -v the result is:

[root@www studiopsicologiaabruzzo.it]# plesk repair all -v


Reconfiguring the Plesk installation


Checking the structure of the Plesk database
........................ [OK]

Checking the consistency of the Plesk database ...................... [OK]

Checking system users ............................................... [OK]

Checking Linux system files





There are incorrect permissions on some items:


/var/log/psa-horde/psa-horde.log .................................. [ERROR]


- The file /var/log/psa-horde/psa-horde.log was not found.


Do you want to repair incorrect permissions? [Y/n] Y


Repairing incorrect permissions ................................. [2020-01-26 10:26:04.704] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/fsmng' '--set-ac' '/var/log/psa-horde/psa-horde.log'] with exit code [1]


[FAILED]


- fsmng failed: ERROR:[Errno 2] No such file or directory:


'/var/log/psa-horde/psa-horde.log'


Checking virtual hosts' file system

Failed to stat /var/www/vhosts/studiopsicologiaabruzzo.it/httpdocs/./psicologo/come-sarebbe-un-mondo-disabitato-compagnia-comunicazione-empatia.html: Permission denied

Failed to stat /var/www/vhosts/studiopsicologiaabruzzo.it/httpdocs/./psicologo/problemi-di-epistemologia-psicoanalitica.html: Permission denied

Failed to stat /var/www/vhosts/studiopsicologiaabruzzo.it/httpdocs/./psicologo/rss.xml: Permission denied


There are files or directories with suspicious permissions in the root


directory of the domain 'ilcentropsicologico.it' .................... [WARNING]


- /var/www/vhosts/ilcentropsicologico.it/httpdocs/sites/default/settings.php


Checking Plesk version


Installed Plesk version/build: 18.0.23 CentOS 7 1800200123.10


Checking for custom configuration templates


Custom template


/usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php


has been found


Custom template


/usr/local/psa/admin/conf/templates/custom/domain/nginxForwarding.php


has been found


Custom template


/usr/local/psa/admin/conf/templates/custom/server.php has been found


Some custom configuration templates have been found. The custom


templates have higher priority than default templates in case of


configs generation


Please check documentation for details:


https://docs.plesk.com/current/redirect.html?book=advanced-administration-guide-linux&page=68693.htm

................................................................... [WARNING]


Checking the JkWorkersFile directive in the Apache configuration .... [OK]


Checking associations between domains and IP addresses .............. [OK]

Checking for corrupted reference between IP collections and

IPaddresses ......................................................... [OK]


Checking for links between APS applications and subscriptions ....... [OK]


Checking for nginx ULIMIT value ..................................... [OK]


Checking for extra configurations in database not owned by any object


................................................................... [OK]


Checking the configuration of Apache modules ........................ [OK]





Checking web server configuration





Reinstall SSL/TLS certificates and set the default certificate for all IP addresses? [Y/n] Y


Reinstalling SSL/TLS certificates ............................... [OK]


Applying the default SSL/TLS certificate to all IP addresses .... [OK]


File not found: studiopsicologiaabruzzo.it.conf


File not found: ilcentropsicologico.it.conf


File not found: psicologoattacchidipanico.it.conf


File not found: opifer-psicoanalisti.it.conf


File not found: lepidopteravaria.it.conf


File not found: robertobruzzese.com.conf


File not found: cpo-psicologia.it.conf


File not found: studiopsicologiaabruzzo.it.conf


File not found: ilcentropsicologico.it.conf


File not found: psicologoattacchidipanico.it.conf


File not found: opifer-psicoanalisti.it.conf


File not found: lepidopteravaria.it.conf


File not found: robertobruzzese.com.conf


File not found: cpo-psicologia.it.conf ............................ [ERROR]



Repair web server configuration for all domains? [Y/n] Y


Repairing web server configuration for all domains. This aspect


can be used with individual domains ("plesk repair web


example.com"), and on the server level ("plesk repair web") ..... [2020-01-26 10:26:48.161] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-all'] with exit code [1]


Error occured while sending feedback. HTTP code returned: 429


[FAILED]


- httpdmng failed: Error occured while sending feedback. HTTP


code returned: 429


Error occured while sending feedback. HTTP code returned: 429


Execution failed.


Command: httpdmng


Arguments: Array


(


[0] => --reconfigure-server


[1] => -no-restart


)





Details: [2020-01-26 10:26:45.326] ERR [util_exec] proc_close()


failed ['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit


code [1]


[2020-01-26 10:26:47.010] ERR [util_exec] proc_close() failed


['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code


[1]


[2020-01-26 10:26:47.216] ERR [panel] Apache config


(15800308030.81008200) generation failed: Template_Exception:


nginx: [emerg] no "ssl_certificate" is defined for the "listen


... ssl" directive in /etc/nginx/nginx.conf:41


nginx: configuration file /etc/nginx/nginx.conf test failed





file:


/usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php


line: 75


code: 0


nginx: [emerg] no "ssl_certificate" is defined for the "listen


... ssl" directive in /etc/nginx/nginx.conf:41


nginx: configuration file /etc/nginx/nginx.conf test failed





Repair server-wide configuration parameters for web servers? [Y/n] Y


Repairing server-wide configuration parameters for web servers .. [2020-01-26 10:27:15.349] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-server'] with exit code [1]


[FAILED]


- httpdmng failed: [2020-01-26 10:27:12.629] ERR [util_exec]


proc_close() failed ['/usr/local/psa/admin/bin/nginx-config'


'-t'] with exit code [1]


[2020-01-26 10:27:14.690] ERR [util_exec] proc_close() failed


['/usr/local/psa/admin/bin/nginx-config' '-t'] with exit code


[1]


[2020-01-26 10:27:14.875] ERR [panel] Apache config


(15800308300.96468900) generation failed: Template_Exception:


nginx: [emerg] no "ssl_certificate" is defined for the "listen


... ssl" directive in /etc/nginx/nginx.conf:41


nginx: configuration file /etc/nginx/nginx.conf test failed


file:

/usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php

line: 75

code: 0


Error occured while sending feedback. HTTP code returned: 429


nginx: [emerg] no "ssl_certificate" is defined for the "listen


... ssl" directive in /etc/nginx/nginx.conf:41


nginx: configuration file /etc/nginx/nginx.conf test failed

Update the file of sharing passwords and permissions of users according to actual information? [Y/n] Y


Updating the file of sharing passwords and permissions of users


according to actual information ................................. [OK]


Checking the usage of PHP handlers .................................. [OK]


Repairing the mail server configuration

Reconfigure all domains and mailboxes? [Y/n] Y


Reconfiguring all domains and mailboxes .........................


[OK]

Checking the DNS configuration file ................................. [OK]

Restoring DNS server configuration

Synchronize DNS zones with the DNS server? [Y/n] Synchronizing DNS zones with the DNS server ..................... [OK]


Checking MySQL database servers ..................................... [OK]

Repair databases on available servers ............................... [OK]


Repair database users on available servers .......................... [OK]

Error messages: 2; Warnings: 2; Errors resolved: 0

exit status 1
 
just a guess, comment out (#) line 41 and run nginx -t to see if the error is gone and if yes try to rebuild the config files
 
Last edited:
LLine 41 is
server {

i should cancel all the following lines till } or only some line inside the parenthesis ?
I have deleted all the lines inside but the site is down (the error seem to be disapperared)
 
Last edited:
I think the problem is that no certificate ssl is defined. This is happened only after having installed obsidian version 18.0.3
see the message error:

New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/nginx.conf:41 nginx: configuration file /etc/nginx/nginx.conf test failed . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
 
It is always somehow tricky to help with customized configuration
if nginx -t does not show an error now, then you should be able to rebuild all, also the certs for the domain.
 
Last edited:
I have modified the nginx.conf in this way:

server {

listen 95.110.224.131:80;

listen 95.110.224.131:443 http2;

server_name 95.110.224.131;

return 301 https://www.studiopsicologiaabruzzo.it;

}

Now when i give the url on safari the answer is :

error: load cannot follow more than 20 redirections.

Now the answer is different : it says too many redirect ...

Then I have checked with the tool : Redirect Checker | Check your Statuscode 301 vs 302

and it revealed 20 redirects!
 
Last edited:
I HAVE SOLVED!
By setting on
nginx settings
(Proxy mode Nginx proxies requests to Apache. Turn off to stop using Apache.)

I do not know what happend , but only after obsidian update!
 
Well usually Plesk upgrades run fine, but if the config is "to individualy customized" then it might fail. Anyway you got it fixed and thats good.
Take into consider to mark the thread as solved now.
 
Last edited:
Back
Top