Error WPCreateBackup - database backup fails

Hi guys,

The Wordpress database-only backups are failing (silently…)
I’ve set up the remote backups to Wasabi, which is working for files+database but the database-only files are 500 bytes.
I checked the logs and found these errors:

Error WPCreateBackup … Error: YIKES! It looks like you’re running this as root. You probably meant to run this as the user that your WordPress installation exists under.

If you REALLY mean to run this as root, we won’t stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

If you’d like to continue as root, please run this again, adding this flag: --allow-root

If you’d like to run it as the user that this site is under, you can run the following to become the respective user:

sudo -u USER -i -- wp <command>

It seems though, that the command is already fires with the --allow-root parameter @ 2695:

command = ‘sudo -u %s %s -d error_reporting=0 /usr/bin/wp --allow-root --skip-plugins --skip-themes --path=%s db export %s/%s.sql’ % (
VHuser, FinalPHPPath, WPsitepath, self.tempPath, DataBaseName)

This is the same command as in the combined backup, in which it is working.

Any ideas?

I added –allow-root to all /usr/bin/wp calls in the file and now the DB backups work.