It was a file permissions problem. The console user didn't have read access of the .env
file, but there was no error at time of reading.
I have been setting permissions as strict as possible and loosening them each time a problem arose... unfortunately this time took too long to realise it was a permissions problem.