Support

Akeeba Backup for Joomla!

#20799 Akeeba Backup and MightySites from AlterBrains

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 Sunday, 19 October 2014 17:20 CDT

BPP
EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:

Hi Team,

I am attempting to set up a daily Cron job for my site but I am not having much luck.

The Cron command is;

/usr/bin/php /home/dentaldm/public_html/cli/akeeba-backup.php --profile=3 --description=”Akeeba Incremental BU Cron test” >> $HOME/testcron_log.txt


The job does not run - the error I get is;

Invalid domain, please ensure that MightySites is configured properly.


MightySites (version 3.1.2) is installed on the site and working well. Is there any known conflicts between Akeeba Backup and MightySites? I was getting some success using frontend backup with a Cron job using wget, is this my only option?

Thanks for your help.
Dean

nicholas
Akeeba Staff
Manager
Please contact the developers of MightySites. It seems that they are using a system plugin which also loads in CLI. They should disable the domain check in CLI and provide the configuration values for the master site.

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!

BPP
Thanks Nicholas,

I contacted MightySites - please see their comment below;

using CLI we can't identify which domain is actually requested, so configuration file loading fails.



Please use 'wget' command (according to https://www.akeebabackup.com/documentation/akeeba-backup-documentation/automating-your-backup.html):


I have had success with wget so will continue to use the frontend backup method.

Cheers

nicholas
Akeeba Staff
Manager
OK, I understand what they are saying but I disagree that their solution is optimal. When they detect CLI (which is really damn easy, they can simply take a look at Joomla!'s JApplicationCli) they should NOT, repeat NOT, try to detect the domain name. Instead, they should use the default. What is the default? Well, they can either arbitrarily choose one or let you define it. Do they need it? Absolutely NOT. They just need to make sure they don't get in the way of a properly written CLI application by having their code try to override global configuration values. That's all there is to it, really.

FYI, it's not just Akeeba Backup using the CLI. Joomla! itself comes with CLI scripts (check the cli directory of a vanilla Joomla! installation) and so do all non-trivial components nowadays. AlterBrains' code prevents all of them from working at all. Therefore AlterBrains' code is INCOMPATIBLE WITH CORE JOOMLA! FEATURES and they are unwilling to change it. I understand that they forgot about the CLI. That's OK, crap happens. What is not OK is being made aware of this blatant bug AND a way to fix it and declining to even acknowledge that their code screws up Joomla!.

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!

BPP
Hi Nicholas,

Well it seems MightySites have made some changes - their latest reply;

"We have released a new version - now configuration of master site is used as default for CLI commands, so you can revert back to CLI cronjobs."

I'll give it a go and advise if I have any further problems.

Regards
Dean

nicholas
Akeeba Staff
Manager
Awesome! Thank you very much for the update :)

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!

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!