Support

Akeeba Backup for Joomla!

#32324 does not work with url backup

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 Wednesday, 29 January 2020 04:11 CST

Hana.HB
I will call backup from webcron.org or via url from the address bar. Both will give me a 404 error. The backup will start, but it will give an error immediately (see appendix) and will not be executed.
I have multiple sites in the same place and just this one doesn't work.

nicholas
Akeeba Staff
Manager
I will call backup from webcron.org or via url from the address bar.


You will never see the remote backup URL in your browser's address bar. Please go to the Schedule Automatic Backups to find out how to schedule a backup with WebCron.org.

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!

Hana.HB
I have set up webcron correctly, just like on other sites where it works.
Only for this one site it does not work, the backup starts but ends immediately. I attached the log in the previous post.

(Edit by support staff: removed links to screenshots)

nicholas
Akeeba Staff
Manager
Go to Components, Akeeba Backup, Options, Front-end backup.

Have you enabled "Enable Legacy Front-end Backup API (remote CRON jobs)"?

Is the "Secret word" the same you are using in the URL for WebCRON?

Do you have a SEF component installed on your site? If so, which one?

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!

Hana.HB
Front-end backup is enabled (cron is enabled)
The secret word is the same
Sef I only use it integrated in joomla

These are the basic things that I of course checked.

but if I turned off SEO in joomla, the remote backup was done

what with this?

Hana.HB
error happens if I put "use url transcript" in global settings
It does not matter .htaccess, error occurs even when empty.

What solution do you propose?

nicholas
Akeeba Staff
Manager
When I try accessing https://EXAMPLE.COM/index.php?option=com_akeeba it responds correctly. Can you please give me your secret word so I can try to take a backup from my computer? This will tell me if your problem is with your site configuration or something in the way you set up WebCRON. I've made the ticket private; only you and us can see its contents.

(Edit by support staff: removed site URL)

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!

Hana.HB
(Edit by support staff: removed secret URL)

nicholas
Akeeba Staff
Manager
Since you are using URL rewriting AND Apache rewrite you MUST create a .htaccess file as Joomla tells you to do in a yellow warning underneath that option. Since you have not done so you are causing your site to misbehave. This is not a bug in Akeeba Backup, this is not a bug in Joomla, it's simply a consequence of you not fully configuring your site.

Since you have a single page site you should simply disable URL rewriting. You don't need it. You don't benefit from it. There's no reason to get confused with .htaccess files for no reason whatsoever.

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!

Hana.HB
I need htaccess because it redirects to https and redirects the alias.
Unfortunately this hosting doesn't support Options +FollowSymlinks, but this command doesn't seem to be needed. That's why I originally didn't use joomla htaccess.
Don't know what commands from the default joomla htaccess are needed for remote backup to run properly?

Now I have combined the original htaccess and the default htaccess jommly and it works for me. But I'd like to find out what command htaccess was missing.
Apparently there was something missing in htaccess and I would like to know exactly what.

nicholas
Akeeba Staff
Manager
It's all explained here https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs

As to why the backup didn't work. When you access the frontend backup script it runs the backup for a small amount of time. Then it generates an HTTP redirection to a URL that continues the backup. This is repeated until the backup is complete. When you enable SEF URLs and URL rewriting the redirection URL is modified by Joomla to NOT include index.php. Instead, it tries to use something like /component/akeeba/.... The /component directory does not exist on your site. It's a fake directory. The RewriteEngine On command along with the RewriteBase and the other RewriteRule lines tell your server to call Joomla's index.php file when it comes across a fake directory or file in a URL. This is the magic that makes SEF URLs work. Since your .htaccess was missing these lines the fake URL wouldn't be redirected to Joomla's index.php, resulting in a 404 Not Found error. By using Joomla's index.php (minus the Options line which is indeed marked as optional in the comments above it) you rectified this issue.

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!

Hana.HB
Thank you for exhausting answer. I believe that other users could benefit from this answer.

nicholas
Akeeba Staff
Manager
In this case would you please allow me to make this ticket public so that other people can read it? It's currently private, meaning nobody else except you and me can access it. I will of course remove your site URL and secret key.

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!

Hana.HB
OK I agree

nicholas
Akeeba Staff
Manager
Thank you! I made the ticket public again. Have a great day!

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!