Page 2 of 3

Re: Server downtime

Posted: 27 Jul 2021 22:50
by stephen_usher
:excited: :stars: :chairsmack: :headbang: :crazy:

Re: Server downtime

Posted: 23 Jan 2022 23:16
by exxos
Apologies for the down time earlier tonight. Was down between about 7pm and 9pm. I was at my girlfriend's so couldn't access the server from her PC. Basically someone forgot to renew the HTTPS certs again :roll: :chairsmack: :roll:

Re: Server downtime

Posted: 23 Jan 2022 23:26
by rubber_jonnie
exxos wrote: 23 Jan 2022 23:16 Apologies for the down time earlier tonight. Was down between about 7pm and 9pm. I was at my girlfriend's so couldn't access the server from her PC. Basically someone forgot to renew the HTTPS certs again :roll: :chairsmack: :roll:
:dizzy: :dizzy: :dizzy:

Re: Server downtime

Posted: 24 Jan 2022 08:13
by stephen_usher
I can find out how I've got my Linux box renewing the LetsEncrypt certificates automatically if you like.

Re: Server downtime

Posted: 24 Jan 2022 10:33
by exxos
stephen_usher wrote: 24 Jan 2022 08:13 I can find out how I've got my Linux box renewing the LetsEncrypt certificates automatically if you like.
Yeah may help. I'm using getssl and should be possible as a cron job, but I've never got it working :( I use gzip and rsync as a cron job and that works fine :shrug:

Re: Server downtime

Posted: 24 Jan 2022 11:01
by stephen_usher
OK, try this...

I've removed my account details (I think) but it still has my domains.

It's using acme.sh but in a global location, which acme.sh isn't really designed to do for some stupid reason.

Re: Server downtime

Posted: 24 Jan 2022 11:46
by exxos
I found a crontab generator so I guess this would / should work

Capture.JPG

Re: Server downtime

Posted: 24 Jan 2022 18:40
by derkom
Be careful with things like "./scriptname" in your crontab, because that's going to try to execute a script in whatever is cwd when crond runs the task. I honestly don't even know what that will be, $HOME? /? I would suggest always using absolute paths in crontabs.

Re: Server downtime

Posted: 24 Jan 2022 19:21
by stephen_usher
derkom wrote: 24 Jan 2022 18:40 Be careful with things like "./scriptname" in your crontab, because that's going to try to execute a script in whatever is cwd when crond runs the task. I honestly don't even know what that will be, $HOME? /? I would suggest always using absolute paths in crontabs.
:dualthumbup:

Assume nothing, including the PATH for scripts which run as root.

Re: Server downtime

Posted: 24 Jan 2022 19:23
by derkom
stephen_usher wrote: 24 Jan 2022 19:21 including the PATH for scripts which run as root.
Good point, especially the PATH for scripts which run as root! :lol: