OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Permission denied Error after DB backup
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > General Support
NewBudda
Hi all,
lateley when I back my database up via the admin panel and then try to back up the files via ssh I get the following error message:

QUOTE
tar: XXXXX/admin/backups/db_osrun234-2008011307XXX.sql: Cannot open: Permission denied
tar: Error exit delayed from previous errors


I use putty to log into my Debian server and the use the tar -cf command to back up the entire catalog folder. Usually this works fine, I have been doing this for months. But now I only get that error message.
I tired restarting the Server and restarting the apache (apache2ctl restart) but nothing helps.

Please helpme, I can't back up until then!!
Avec
So are you having problems access your site or the backup of the site or the backup of the db?
NewBudda
QUOTE (Avec @ Jan 13 2008, 10:20 PM) *
So are you having problems access your site or the backup of the site or the backup of the db?


I get this message after I used the feature in the admin zone to back the db and THEN try to tar the (php) files of the site. So while the DB backup seems successfull, I am not able to backup the site anymore...
NewBudda
Still have that problem. I've had it before and it used to "just" go away but not this time. I have not backed up for 5 days.
Please help!
germ
From what you've posted:

QUOTE
tar: XXXXX/admin/backups/db_osrun234-2008011307XXX.sql: Cannot open: Permission denied

I'd make sure the permissions on XXXXX/admin/backups/db_osrun234-2008011307XXX.sql are at least 644
NewBudda
QUOTE (germ @ Jan 16 2008, 12:34 PM) *
From what you've posted:
I'd make sure the permissions on XXXXX/admin/backups/db_osrun234-2008011307XXX.sql are at least 644


A good tip but sadly unsucessfull. I changed all the settings to all kind of things (including 644/755/777) but nothing changed...
germ
How about the permissions on these folders:

/admin/backups

Are they 755?
unsure.gif

If that doesn't work, you could get wild and set them to 777 briefly enough to try the TAR command once.
NewBudda
QUOTE (germ @ Jan 16 2008, 01:36 PM) *
How about the permissions on these folders:

/admin/backups

Are they 755?
unsure.gif

If that doesn't work, you could get wild and set them to 777 briefly enough to try the TAR command once.


The backup folder is 777 (755 doesnt work for my server) and the admin folder is 755.
germ
I'm out of cards to play.

Ever consider using FTP to backup to your local PC?
unsure.gif
NewBudda
QUOTE (germ @ Jan 16 2008, 10:21 PM) *
I'm out of cards to play.

Ever consider using FTP to backup to your local PC?
unsure.gif

Thats what I am doing atm.
Thank you very much for playing!

Any more players dare step up to the table?
NewBudda
Bump.
I still can't tar my files...
NewBudda
Thank you for your input but I found a way to circumvent this on my own.
Desperation made me just delete the database dump in question and make a new one.
That solved the problem alltogether...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.