cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
416 stars 280 forks source link

Dotenv values containing spaces must be surrounded by quotes #398

Open binerf opened 3 years ago

binerf commented 3 years ago

Describe the bug Cannot start CachetHQ via docker-compose.

cachet_1  | + checkdbinitmysql
cachet_1  | 
cachet_1  | + table=sessions
cachet_1  | ++ mysql -N -s -h 172.17.0.1 -u cachet -ppassword cachet -P 3306 -e 'select count(*) from information_schema.tables where             table_schema='\''cachet'\'' and table_name='\''chq_sessions'\'';'
cachet_1  | + [[ 0 -eq 1 ]]
cachet_1  | + echo 'Table chq_sessions does not exist! ...'
cachet_1  | + init_db
cachet_1  | + echo 'Initializing Cachet database ...'
cachet_1  | Table chq_sessions does not exist! ...
cachet_1  | Initializing Cachet database ...
cachet_1  | + php artisan cachet:install --no-interaction
cachet_1  | The environment file is invalid: Dotenv values containing spaces must be surrounded by quotes.

Environment

Used app version Docker release of Cachet (v.2.4 in docker-compose.yml file)

TobiTenno commented 2 years ago

I have the same issue my errors are also pretty unhelpful:

cachet_1    | Initializing Cachet container ...
cachet_1    | Attempting to connect to database ...
cachet_1    | 
cachet_1    | Table chq_sessions does not exist! ...
cachet_1    | Initializing Cachet database ...
cachet_1    | The environment file is invalid: Dotenv values containing spaces must be surrounded by quotes.cachetdocker_cachet_1 exited with code 1