jdkillian Posted September 27, 2016 Share Posted September 27, 2016 Upgraded to the newest version. Im trying to do a file back up and am getting this: Error: PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open archive 'backup/files_6.0.12_27Sep16-020437.zip' in wb mode When trying to back up the database Im getting this: PCLZIP_ERR_MISSING_FILE (-4) : File '/var/www/html/creations/backup/database_full_6.0.12_creations_27Sep16-020743.sql' does not exist Database backup failed. Not sure whats going on here Anyone? Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 27, 2016 Share Posted September 27, 2016 Please determine how much memory your host is giving your account. If there is not enough, these may be related to running out. You might also want to view the folder /backup/ and determine what the folder's permissions are. Quote Link to comment Share on other sites More sharing options...
jk2125 Posted September 27, 2016 Share Posted September 27, 2016 Actually I run my own server I know its pushing enough memory. I figured it might be permissions and set full read and write on the files and folders and Im getting the same. It was throwing a couple of other similar errors but those were cleared with the permission changes Not sure what "wb" is? With regards to memory. Are you talking about the amount allocated by php Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 27, 2016 Share Posted September 27, 2016 The term "wb" means to "for writing in binary". For memory, yes, in admin, PHP Info, scroll to Core table and note the 'memory_limit" value. Quote Link to comment Share on other sites More sharing options...
jk2125 Posted September 27, 2016 Share Posted September 27, 2016 Looks like its set to 128m Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 27, 2016 Share Posted September 27, 2016 Plenty of memory. Please let us know if there are any files currently in the /backup/ folder. If so, do any have the same names as what the error messages say? (We do not need to know the names of the files.) Quote Link to comment Share on other sites More sharing options...
jk2125 Posted September 27, 2016 Share Posted September 27, 2016 Thats whats weird. There isnt but there should be. Thats the last backup I did before i upgraded the files to the newest version Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 27, 2016 Share Posted September 27, 2016 The Maintenance functions call the database functions (a 'class') to do a SQL Backup. The database class function 'doSQLBackup()' opens (creates a file first if necessary) a file in the backup folder. This function writes a bunch of stuff to that file. When finished dumping the contents of the database tables into this file, then, if you chose to compress the file, this function calls the PclZip class to zip it. The way the database function is written, even if the compression fails, the original dump file is still deleted. (I think that is a bad decision. I will post a bug report.) As an experiment, make a database backup again, but deselect 'compression'. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.