I'm blogging about Emacs, Drupal, php and exciting subjects

· Lars Nielsen

MySQL NOW() Was Two Hours Ahead of My UTC Data: The Container's Time Zone

In early July the admin statistics page of my search engine started reporting zero: zero pages crawled in the last hour, zero in the last 24 hours, on a pipeline that was visibly busy. At the same time, re-crawls were being scheduled two hours early. Both had the same cause, and none of the data was wrong. The database and the application disagreed about what time it was.

Read article MySQL NOW() Was Two Hours Ahead of My UTC Data: The Container's Time Zone
· Lars Nielsen

Docker .env Permission Denied: Mode 0600 Broke New PHP Processes and Left Old Ones Running Open

Tightening a file's permissions is supposed to be the safe direction. In July, on my search engine's frontend server, setting the application's .env file to mode 0600 instead did two things at once: it broke every newly started PHP process, and it left the admin area answering without a password for a few minutes. A smoke test after the deploy caught it.

Read article Docker .env Permission Denied: Mode 0600 Broke New PHP Processes and Left Old Ones Running Open
Subscribe to Linkhub