Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bspach opened this issue Jul 22, 2019 · 1 comment
Open

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

bspach opened this issue Jul 22, 2019 · 1 comment

Comments

@bspach
Copy link

bspach commented Jul 22, 2019

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.

  • "CACHE DRIVER is not supported. Using default driver file."
  • "SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute"

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
Copy link
Author

bspach commented Jul 22, 2019

"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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant