Amazon S3/cron-job issues | General Questions and Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters – maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
Amazon S3/cron-job issues
December 9, 2012
2:00 pm
Avatar
lesm
Member
Members
Forum Posts: 12
Member Since:
November 17, 2012
sp_UserOfflineSmall Offline
Hi,
I can't store my backup into my Amazon S3's bucket.  My cron-job script reads:
/usr/local/bin/php5 /home/mysite/public_html/xcloner/cloner.cron.php?config=dbase_mysite_nblog.php
On cron-job's execution I get this error:
Could not open input file: /home/mysite/public_html/xcloner/cloner.cron.php?config=dbase_mysite_nblog.php
Of course “/configs/dbase_mysite_nblog.php” already exists.
The cron.log shows entries like this only (nothing in between, no even an stamped time):
Log output started
Log output finished
If I click the link 'Execute Cron' the response is:
Access Denied for ip xxx.xxx.xxx.xxx!
In “Backup store mode” I have tried both 'Local server' and 'Remote ftp account' with same result, however I'm not sure which is the correct one for Amazon S3.
Is there anything else I'm missing?
Thanks.
December 11, 2012
4:45 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Try and use this cron command

 

 
 
/usr/local/bin/php5 /home/mysite/public_html/xcloner/cloner.cron.php dbase_mysite_nblog.php
December 11, 2012
7:05 pm
Avatar
lesm
Member
Members
Forum Posts: 12
Member Since:
November 17, 2012
sp_UserOfflineSmall Offline

Thanks Ovidiu,

I make it work using the wget command, however your suggestion worked just fine as well, so I reverted to the php command.

Regarding the 'Access denied' problem, in the 'Execute Cron' link, it was resolved adding mi IP.  I overlooked this 🙂

The only problem so far are the warnings due to the open_basedir setting, but overall it works okay anyway.

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 737
Members: 9955
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Hüseyin Yıldırım
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0