lesaff / serverpilot-letsencrypt

(NO LONGER MAINTAINED) | Bash script to generate and install Let's Encrypt certificate for your websites on your ServerPilot account (Free or Paid Plan)
MIT License
346 stars 84 forks source link

Job for nginx-sp.service failed because the control process exited with error code. #70

Closed cekmseq closed 6 years ago

cekmseq commented 6 years ago

Hello,

My nginx-sp does not restart after the issuing of the SSL cert. After cert's deletion, Everything is back to normal.

Is there anything that I miss? Should I make further arrangements than README guide?

I would like to mention that I tried robocert before this implementation. Could that bring any problems?

Thank you in advance.

EDIT: I have seen the closed issues and I have tried the A record pointing to the server. nginx-sp still cannot start.

sam0jones0 commented 6 years ago

It appears I too have this same issue. Job for nginx-sp.service failed because the control process exited with error code.

$ status nginx-sp.service nginx-sp.service - nginx-sp Loaded: loaded (/lib/systemd/system/nginx-sp.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2018-04-30 18:33:55 UTC; 10s ago Process: 10504 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS) Process: 10250 ExecStartPost=/bin/sleep 0.1 (code=exited, status=0/SUCCESS) Process: 10246 ExecStart=/opt/sp/nginx/sbin/nginx (code=exited, status=0/SUCCESS) Process: 10601 ExecStartPre=/opt/sp/nginx/sbin/nginx -t (code=exited, status=1/FAILURE Main PID: 10249 (code=exited, status=0/SUCCESS)

I've tried a couple of times, not sure what else to try.

sam0jones0 commented 6 years ago

@cekmseq, I found this other fork to work

rehmatworks/serverpilot-letsencrypt

Apologies if this against any rules

cekmseq commented 6 years ago

Hello,

Mine worked after making the A record pointing my new server and issuing the certificate after a couple of days.

Maybe the only thing needed is time for A record to completely indicate the server.