Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Permission denied Error after DB backup


NewBudda

Recommended Posts

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:

 

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!!

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

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...

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

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!

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

From what you've posted:

 

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

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

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...

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

How about the permissions on these folders:

 

/admin/backups

 

Are they 755?

:unsure:

 

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

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

How about the permissions on these folders:

 

/admin/backups

 

Are they 755?

:unsure:

 

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.

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

I'm out of cards to play.

 

Ever consider using FTP to backup to your local PC?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I'm out of cards to play.

 

Ever consider using FTP to backup to your local PC?

:unsure:

Thats what I am doing atm.

Thank you very much for playing!

 

Any more players dare step up to the table?

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

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...

Open Source Newsletter: PhPList

Open Source Questionnaire: Lime Survey

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...