Support

Akeeba Backup for Joomla!

#25092 akeeba-backup.php is missing, no crons/ copy cli outside joomla root?

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 on Friday, 10 June 2016 17:20 CDT

scannergmbh
We have the problem with Akeeba Backup, that suddenly no cron-jobs are running. This happens around every 1/4 year, without getting a message from anybody. We have to check frequently on a bunch of Joomla-sites...
I've read that Joomla (updates) sometimes doesn't copy the cli-folder correctly and kills the akeeba-backup.php file. So my question: May I copy the cli-folder outside of joomla? Or do you update the content of that file within your akeeba-updates?

Thanks and kind regards

scannergmbh
Sorry, there are messages from our provider: Could not open input file: /html/joomla/cli/akeeba-backup.php

tampe125
Akeeba Staff
Hello Andreas,

can you please double check if such file really exist?
I've read that Joomla (updates) sometimes doesn't copy the cli-folder correctly and kills the akeeba-backup.php file.
Mhm... as far as I know, Joomla sometimes doesn't install a file, but it never deletes it. Were did you read that?
You can't move the CLI folder outside of Joomla environment, since it is required to work properly.

If the file is not there, can you please install Akeeba Backup twice in a row, without uninstalling it?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

scannergmbh
Ciao Davide,
thanks for your fast reply

Yes, it's really missing. And we always fix it by doing an akeeba install (without ununstalling).
But as I told: it's happening again... and I couldn't find out who is killing the akeeba-backup.php: joomla update or my hoster (malware scanner e.g.). And we couldn't find out when it's happening exactly.
If the cron would have been running with cli outside joomla, it would have made clear that it's the hoster...

I have found 1 customer account which is unrepaired at the moment. See screenshot of cli-folder.
You want to examine that account? What would you need for that?

Regards Andreas

tampe125
Akeeba Staff
If the file keeps to be missing, it means that's the hosting, you should contact him.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

scannergmbh
Well, after reinstalling akeeba Backup the crons are running again ... for a while ... the files are not immediately deleted.

It's some kind of spooky... I don't know why, when (after a Joomla-update?), and where (sometimes most of the accounts, somtimes only 1-2 of them).

If you don't have an idea how to find out, let's wait for the answer of Mittwald (Hoster), I opened a ticket there....

scannergmbh
I just found another account at another hoster (1&1) with deleted akeeba-backup.php.

Long time ago, we started with akeeba core ... might that be a reason for these effects? I guess I 've read something like that in another post: Joomla-update remembers that and keeps only the core-files of akeeba ...?

tampe125
Akeeba Staff
I suspect there's a scanner that deletes such file.
Let's wait for hosting reply...

Akeeba Backup deletes the CLI file only if you install the Core version on top of the Pro one. Do you have any kind of automatic updates?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

scannergmbh
In the Akeeba Backup configuration area there is activated "Auto-update CLI settings: Notify and update". But I think this is by default. See Screenshot

I have suspected the hoster as well... but now two of them?
(I'll be out of office/WE in about 30min until Monday ... thanks meanwhile!)

tampe125
Akeeba Staff
That option is actually used only if you use the CLI script to check for updates.
Do you have any Joomla management system as Watchful.li?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

scannergmbh
No, nothing like that.
I let you know what Mittwald says, but I guess it will be on Monday

Thx a lot, have a good WE
Andreas

scannergmbh
Hello Davide,
they say:
---
We fixed the cronjob. Now everything should work.
Please watch out what will happen in future.

We wrote a script "akeebaTestCron.sh" and put it in under /files. It has the following content:
#!/bin/bash
/usr/local/bin/php_cli /html/joomla3/cli/akeeba-backup.php > /dev/null
---

Well... I don't understand what they try to fix with it, what actually the problem was.
and 2.: I don't know what to do with all the other accounts, where the cron maybe deletes files ...or someone else.

tampe125
Akeeba Staff
The problem is inside the CRON setup of your hosting.
It expects to receive a script file instead of a command, that's why they changed it.

You'll have to apply the same change inside every other account.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

scannergmbh
Alright. I will copy this script on all of our customers accounts, change the crons and then we'll see...
Btw, you may publish this post if you like... initially it wasn't possible, because of my attachments I guess.

1000 grazie !!

tampe125
Akeeba Staff
You're welcome!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!