interbrite / letsencrypt-vesta

Automate Let's Encrypt Certificate Installation for VestaCP
Other
217 stars 64 forks source link

Problem restarting httpd after certificate request #18

Open andreagobetti opened 8 years ago

andreagobetti commented 8 years ago

When the script tries to restart httpd after a certificate request I have the following error:

Starting httpd: (98)Address already in use: make_sock: could not bind to address xxx.xxx.xxx.xxx:8080
no listening sockets available, shutting down
Unable to open logs

To resolve the problem I used:

lsof -i :8080

to see who was binding port 8080, and then i terminated manually the httpd processes that were listening on port 8080 using

kill -SIGTERM <pid>

I'm not sure it is strictly related with this project, but if it's not this can be helpful for other users experiencing similar problems

My server is running: CentOS release 6.7 Vesta 0.9.8 Apache 2.2.15 nginx 1.10.0

jpitoniak commented 8 years ago

It kind of sounds like you have something going on that's causing Apache to hang when it tries to shutdown. While I haven't seen this particular issue on any Vesta server, I have seen Apache hiccup on restarts in other environments before.

Two things you might try:

andreagobetti commented 8 years ago

Hi, thanks for your reply!

exaexa commented 8 years ago

+1

Please change to reload, it solves the problem for me too. IIRC there's no need to restart the server when only changing the SSL params.