dreamfactorysoftware / dreamfactory

DreamFactory API Management Platform
https://www.dreamfactory.com
Apache License 2.0
1.53k stars 311 forks source link

Ubuntu Jeanie script "CACHE DRIVER" and "SQLSTATE[IM001]" errors #235

Open bspach opened 5 years ago

bspach commented 5 years ago

Just tried deploying 3.0 beta using the deployment script on an Ubuntu 18.04.2 server (using commits merged to master branch on July 19). Script works great, but getting a few warnings on screen right at the end, after entering credentials for the MSSQL database connection.

Deployed

Copy of output:

CACHE DRIVER  is not supported. Using default driver file.
Configuration complete!
*************************************************** WARNING! *********************************************************
*
* Please take a moment to review the .env file. You can make any changes as necessary there.
*
* Please run "php artisan df:setup" to complete the setup process.
*
**********************************************************************************************************************
Application key <REDACTED> set successfully.
**********************************************************************************************************************
* Welcome to DreamFactory Setup.
**********************************************************************************************************************
Running Migrations...
Migration table created successfully.
Migration driver used: sqlsrv
Migration driver used: sqlsrv
SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute
bspach commented 5 years ago

"CACHE DRIVER" error appears to cause this to be logged:

dreamfactory[1172]: production.ERROR: file_put_contents(/opt/dreamfactory/storage/framework/cache/data/89/30/89307b64e2edec772a421cd038ab902464c8fd1c): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): file_put_contents(/opt/dreamfactory/storage/framework/cache/data/89/30/89307b64e2edec772a421cd038ab902464c8fd1c): failed to open stream: No such file or directory at /opt/dreamfactory/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)"} []

Folder permissions are wrong. Fixed by running chown -R www-data:<REDACTED> /opt/dreamfactory/storage/framework/cache/data