Hi, I have just set up a scheduled backup to an S3 bucket. The backup fails every time but does not produce any output as to why. I get the message:
Starting backup of 2 domains to directory/%Y-%m-%d–%H-%M-%S in Amazon S3 bucket mybucketname …
But then immediately I get:
Backup failed! See the progress output above for the reason why.
But there is no progress output.
If I change the schedule to backup locally it works fine. I have the AWS CLI installed and I am able to copy files to the bucket via the command line with no problem.
How can I troubleshoot the issue here?
Operating system: CentOS Linux
OS version: 8.2.2004
Hi Ilia, I grabbed that file and placed it at /usr/libexec/webmin/virtual-server (first renaming my existing file to s3-lib.pl.old). Firstly can you confirm that’s what you intended me to do?
I ran my backup script again, and just as before, it failed with no output whatsoever as to what the error may be.
I can confirm I have the awscli installed, and I can manually copy files to the bucket from the command line with no problem.
OK, so I ran: /etc/init.d/webmin stop
and /etc/init.d/webmin start
Should that be sufficient to get Webmin to use the new s3-lib.pl file?
I ran the backup again, and as before, it errors without any output, except to direct me to the output for the reason for failure.
In /var/webmin I checked the file miniserv.error but there is nothing in there related to the failure - is that the file into which S3 errors are written?
@Ilia or @Jamie do I need to do a reboot to get Webmin to use the updated s3-lib.pl file? Restarting Webmin doesn’t appear to have changed anything - backups are still failing with no output.
Thanks @Jamie for confirming, I have done that and run the scheduled backup again, it still fails with no output as to why, so the new s3-lib.pl file does not appear to make any difference in my case. Any idea how I can troubleshoot this any further?