문제

I am running s3cmd on Ubuntu as root and it works fine, no issues. But as www-data which is the user my cron uses it fails and I get this.

/var/backups/archives/files/file_name_27-01-2013_01:00:27.tar.gz -> s3://yolkmesh/london/archives/files/file_name_27-01-2013_01:00:27.tar.gz [1 of 69] 57344 of 73404 78% in 1s 31.58 kB/s failed WARNING: Upload failed: /london/archives/files/file_name_27-01-2013_01:00:27.tar.gz ([Errno 32] Broken pipe) WARNING: Retrying on lower speed (throttle=0.00) WARNING: Waiting 3 sec...

This keeps failing with longer and longer waiting periods. Why is this occurring for one user and not another.

If there is no fix can I run the following as root from my cron script?

s3cmd put --recursive /var/backups/archives/ s3://yolkmesh/london/archives/

s3cmd is up to date.

도움이 되었습니까?

해결책

Its possible that s3cmd isn't configured for the second user. Do you have a .s3cfg file for www-data? If not, run s3cmd --configure as that user to allow s3cmd to work.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top