I don't use DO, but from what I know they've restarted their servers recently (last week or so) in order to apply security patches for the Meltdown and Spectre security flaws in intel chips. Not sure if that has anything to do with it but thought I'd mention it as a possibility. You should have received an email from them saying when your droplet would be rebooted.
Forge Server - App decided .env would not get read..
So I had a weird one. I have a one week old DO droplet with a copy of my app on. Although PROD, it's not released. Well, over the weekend, it just fell over. Whoops errors all around.
After a few red herrings I realized that any env('ANY_SETTING') would always return null. Didn't matter what it was, all return NULL. Would not connect to mysql and so on and so forth. Nothing was changed that I did. No new code was sent to the server, no changes to nginx or anything.
I tried php artisan config:clear, config:cache, clear-compiled and all that. Trawled the log files looking for permissions errors, nginx access errors and zippo. Nada. Nothing.
Even in artisan tinker, all env('xx') commands return null.
Finally I just copied the .env contents to a clipboard, blew away the site and re-installed. Pasted back the .env and all is well with the world.
Anyone else seen this? Droplet a week old and PHP 7.2, MariaDB 10.2.11.
Looking through Laracasts, a few have seen this but all seemed to be cured with a config:clear etc.
I appear to be ok now and I'll probably add an .env check in the scheduler but weird.
Please or to participate in this conversation.