Page 1 of 1

Error when trying to backup database

Posted: Sat May 27, 2023 9:19 pm
by camti
Hello,

nubuilder 4.5 has a button to backup the database.
When I use it, I am greeted with this:
"Export Error: Output file is not writable"

I had tried a couple of options in Setup > Settings:
Either leave $nuConfigBackupLocation blank, or
set it to /www/mysqldumper/work/backup

In both cases, this error appears.

The backup dir in the path above has "770" as permissions.

What must be done to make the output file writable?
Thanks in advance for any pointers!

Re: Error when trying to backup database

Posted: Sun May 28, 2023 4:33 pm
by gerese
viewtopic.php?p=28243&hilit=backup#p28243

or try this command in linux

Status SeLinux

Code: Select all

sestatus -b
Deactivate SeLinux

Code: Select all

setenforce 0 
Status list directory

Code: Select all

ls -halZ
set write rights for httpd in the specified directory

Code: Select all

chcon -R -t httpd_sys_rw_content_t /var/www/html/nubuilder4/core/libs\mysqldump/dumps/

Re: Error when trying to backup database

Posted: Sun May 28, 2023 9:31 pm
by camti
Thanks gerese - the link you included put me on the right path!
In my case the folder /dumps was present, but the permission was set to 750. When I changed that to 770, it worked!