Support

Akeeba Backup for Joomla!

#24044 Cron job failed

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Monday, 28 December 2015 02:10 CST

baijianpeng
hi, I created a Cron job on my own VPS to make it automatically backup my Joomla website with Akeeba Backup. I set the time to 3:00 AM each day.

Last night is the first time it was executed. Today I login in via FTP to check the result. It seems not finished, because the file extension is still .j01 instead of .jps, and the file size is very small. Then I checked the backend of Akeeba Backup, there listed many of failed backups.

I also got email notification, at the end of that email, there is an error message:

An error has occurred:

Could not rename last JPS part to .JPS extension.


I am a newbie of server management. I think maybe something of file permissions blocked my backup process.

Well, I checked the file permission via FTP, it was 644, while the backup package from manual backend backup is 755.

I just can not understand: Why in the same directory , those two files have different permissions? One is from CLI backup process activated by Cron Job, one is from Akeeba Backup backend performed manually.

I tried to check the log file, but it is zero size. It seems that CLI can not write to log file either.

How to fix this?

Thank you.

nicholas
Akeeba Staff
Manager
The PHP CLI and the PHP FastCGI binaries (you may also see them referred to as "SAPIs") are two entirely different things, reading two entirely different configuration files and running under entirely different users.

At this point, stop. Go to our documentation and read the entire Security Information chapter. It's a crash course to users, groups and process ownership. Read it again until you understand all of it, otherwise you won't have an idea what I'm talking about.

Most likely you do have an issue with permissions. The best way to proceed would be creating a backup output directory outside your web server root and change its ownership to the user used by your web server and the group used by your CRON jobs, then give it 0775 permissions. If you have no clue what I just said, forget the ownership and just give it 0777 permissions. I know 0777 is "bad" but in this case you're outside the web server root so it's not that bad.

Please note that this ticket sits squarely into server administration territory and as such it's outside the scope of our support. You need to either get your host to help you or, if you are on an unmanaged VPS, learn how to be your own systems administrator. I'm afraid we can't help with that: we are here to provide software support, not teach systems administration.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!