Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Error when trying to backup database Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
camti
Posts: 12
Joined: Thu May 11, 2023 12:36 pm
Has thanked: 4 times
Been thanked: 2 times

Error when trying to backup database

Unread post 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!
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Re: Error when trying to backup database

Unread post 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/
nuBuilderForte .... BIG Like !!!
camti
Posts: 12
Joined: Thu May 11, 2023 12:36 pm
Has thanked: 4 times
Been thanked: 2 times

Re: Error when trying to backup database

Unread post 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!
Post Reply