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

/admin/backups not working if on socket? #4211

Closed
noizo opened this issue Oct 13, 2017 · 3 comments
Closed

/admin/backups not working if on socket? #4211

noizo opened this issue Oct 13, 2017 · 3 comments
Labels
❓ not sure if bug This issue has not been confirmed as a bug yet

Comments

@noizo
Copy link

noizo commented Oct 13, 2017

Hi.

I'm on latest Version v4.0.9 build 215 (g36cbffa) of snipeitapp.

I'm connecting to db through socket.
My connections string in .env is
DB_SOCKET='/cloudsql/gcp-inventory:europe-west1:inventory-db'
&
DB_DUMP_PATH='/usr/bin/' where mysqldump is located.

Backups won't create any DB dump files, as well as .env
ll /var/www/html/storage

drwxr-xr-x  8 www-data www-data 4096 Oct 13 09:12 ./
drwxr-xr-x 18 www-data www-data 4096 Oct 13 09:16 ../
drwxr-xr-x  3 www-data www-data 4096 Oct 13 08:59 app/
drwxr-xr-x  2 www-data www-data 4096 Oct 13 08:59 debugbar/
drwxr-xr-x  5 www-data www-data 4096 Oct 13 08:59 framework/
drwxr-xr-x  3 www-data www-data 4096 Oct 13 09:12 laravel-backups/
drwxr-xr-x  2 www-data www-data 4096 Oct 13 09:06 logs/
-rw-r--r--  1 www-data www-data 3292 Oct 13 09:08 oauth-private.key
-rw-r--r--  1 www-data www-data  812 Oct 13 09:08 oauth-public.key
drwxr-xr-x  8 www-data www-data 4096 Oct 13 08:59 private_uploads/

ll /var/www/html/storage/app/
drwxr-xr-x 3 www-data www-data 4096 Oct 13 08:59 backups/

If i will run mysqldump manually, i can backup DB as expected.
mysqldump --set-gtid-purged=OFF -u snipeit -psomestrongpass -S /cloudsql/gcp-inventory\:europe-west1\:inventory-db snipeit > /opt/snipeit.sql

Any suggestions?

@snipe
Copy link
Owner

snipe commented Oct 14, 2017

No idea. Sounds like maybe an issue with the backup package (spatie/laravel-backups)

@snipe
Copy link
Owner

snipe commented Oct 19, 2017

This looks like this issue was fixed a long time ago in spatie/laravel-backup.

spatie/laravel-backup#24

What's the output on the screen when you try to run the backup via cli?

@snipe snipe added the ❓ not sure if bug This issue has not been confirmed as a bug yet label Oct 19, 2017
@snipe
Copy link
Owner

snipe commented Oct 24, 2017

Haven't heard back, so I'm going to close this ticket for now, but will re-open it if you're still having issues.

hackerman-hacking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ not sure if bug This issue has not been confirmed as a bug yet
Projects
None yet
Development

No branches or pull requests

2 participants