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

Postgresql - Artisan backup not available #2508

Closed
jk-na opened this issue Dec 15, 2020 · 5 comments
Closed

Postgresql - Artisan backup not available #2508

jk-na opened this issue Dec 15, 2020 · 5 comments
Labels
⚙️ Deployment Related to specific deployments or configurations Status: Reported Issue may need more information or needs reproducing

Comments

@jk-na
Copy link

jk-na commented Dec 15, 2020

Unable to run the artisan backup:run command as the following response is returned:

Backup failed because: Cannot create a dumper for db driver 'postgres'. Use 'mysql', 'pgsql', 'mongodb' or 'sqlite'..

There is no mention of 'postgres' in my .env file so I gather this is incorrectly defined in some application file.

My relevant .env entries are:
DB_CONNECTION=pgsql
DB_DRIVER=pgsql

@trwnh
Copy link
Member

trwnh commented Jan 23, 2021

DB_DRIVER is not an env var anywhere in the config. But do you maybe have cached config? Try running the config:cache or config:clear Artisan tasks.

@trwnh trwnh added Status: Reported Issue may need more information or needs reproducing ⚙️ Deployment Related to specific deployments or configurations labels Jan 23, 2021
@jk-na
Copy link
Author

jk-na commented Jan 23, 2021

I removed DB_DRIVER from my .env file and ran config:cache as per normal with any env update.. still exactly the same error

@jk-na
Copy link
Author

jk-na commented Jan 23, 2021

I presume that the artisan job itself or associated file(s) contains a reference to 'postgres' rather than 'pgsql'

@jk-na jk-na changed the title Artisan backup not available for postgresql Postgresql - Artisan backup not available Apr 9, 2021
@dansup
Copy link
Member

dansup commented May 6, 2021

@jk-na Replace mysql with pgsql here

'mysql',

Then run php artisan config:cache

@dansup dansup closed this as completed May 6, 2021
@jk-na
Copy link
Author

jk-na commented May 6, 2021

this worked, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ Deployment Related to specific deployments or configurations Status: Reported Issue may need more information or needs reproducing
Projects
None yet
Development

No branches or pull requests

3 participants