Support

Akeeba Backup for Joomla!

#37517 Trouble using Site Transfer Wizard to Make Staging Copy

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
3.10.10
PHP version
7.4.30
Akeeba Backup version
8.1.9

Latest post by tampe125 on Tuesday, 02 August 2022 09:19 CDT

dgreenspan52

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 10MiB, please upload it on your server and post a link to it.

Hello,

I'm trying to create a staging copy of my site (https://www.itcareerfinder.com/) in the newly created subdomain (stageone.itcareerfinder.com/). I made a backup and tried to use Site Transfer Wizard, but I got this error message -->

"Akeeba Backup cannot verify that the connection information you entered corresponds to the site URL you have entered. If you are trying to restore inside a subdirectory of an existing site this means that the main site is blocking access to the subdirectory; please contact your site administrator. In any other case you have entered the wrong connection information, most likely a wrong directory. Please contact your host and ask them for the correct connection information, including the directory, which corresponds to your the URL you have entered in this wizard. Then come back here, enter the correct information and continue with the restoration."

I already contacted Siteground but they were unable to help. 

I've also attached screenshot of what I entered into Site Transfer Wizard (one of the attempts, anyway).

Regardless of the method, I just want to create a staging site outside of the root folder of the live site. Please advise.

Thanks!
Daniel

tampe125
Akeeba Staff

Hello,

Akeeba Backup will double check if you're trying to restore on the same domain to prevent destructive actions.

The screenshot wasn't uploaded, so I can't double check your settings, however in these cases I usually suggest to perform the transfer manually.
If the Site Transfer Wizard is working out of the box, that's great, you'll save some time; if it's not, there's no gain in trying to troubleshoot why it's not working.
There could be a firewall in place or any other connection issue prevent the transfer of the archive. At the end of the day, Site Wizard will simply move the backup from your website to the new server, you can do the same thing manually.

 

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!

dgreenspan52

Ok I did manual backup and used kickstart to copy the site into subdomain. The site was copied successfully to subdomain, but the actual root site died, and I need this to remain live for users. The error message on live root site was after restoration was "Error: Failed to start application: Failed to start the session".

I tried your troubleshooting tips on https://www.akeeba.com/documentation/troubleshooter/post-restoration.html etc. but to no avail.

I've since reverted. All I need is to make a staging copy of site without removing current site. Please advise.

Thanks.

tampe125
Akeeba Staff

Please create a folder and upload the archive there.

Then create a new database and provide me the access details for the database and FTP access. I'll perform the restoration there, to double check if there's anything wrong.

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!

dgreenspan52

Ok I created folder with jpa archive called akeeba_archive . 

And created new database:

  • database -- dbg5lgsv5bv2ja (label = akeeba)
  • database user -- u8jmd1gfeefsl (label = akeeba_user)
  • database user password -- Akeeba888

FTP access:

  • Hostname: ftp.itcareerfinder.com
  • Username: [email protected]
  • Password: Jellybean2233
  • Port: 21

Let me know if you need anything else.

Thanks!

tampe125
Akeeba Staff

I just restored your site in the "staging" folder, so you can access it here: https://www.itcareerfinder.com/staging/administrator/index.php

I just checked and the root site seems to be working fine, can you please double check?

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!

dgreenspan52

Thanks. I see the site but none of the internal links are working on the front-end, for example https://www.itcareerfinder.com/staging/it-careers.html. Please advise. 

dgreenspan52

Based on your troubleshooting documentation, I've tried these steps to fix the issue on staging site, but none worked:

  • Edited live_site parameter in config.php to include "/staging" - didn’t work
  • Turned off EFSEO plugin
  • Turned off JCH Optimize plugin
  • Deleted/renamed htaccess file
  • Renamed pnp.ini to php.ini.bak
  • Disabled system redirect plugin

I've since reverted all of the above.

Please advise.

tampe125
Akeeba Staff

mhm... can I have access to the backend area of the staging website? I'd wish to double check a couple of things

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!

dgreenspan52

Sure. Here's login for https://www.itcareerfinder.com/staging/administrator/index.php

  • username - hamfist
  • pw - Quivers36!

Also, please be mindful not to crash the main site at https://www.itcareerfinder.com/.

Thanks,
Daniel

tampe125
Akeeba Staff

Ok, my hunch was correct. I can see that there are several menu items flagged as "URL", moreover I can see that there are several redirection stored inside your .htaccess file.

I simply disabled SEO in your Joomla installation (on the staging website, of course) and everything is working fine. I think it's a mix of hardcoded URLs and redirections. Please note that .htaccess files are applied hierarchically. Since the staging domain is in a folder under the root, redirections kicks in before the request can land on your staging website. The best thing to do would be to create a subdomain with the folder containing the staging website on a different level than the "main" one, so these issues won't happen.

If you only have to work on the content and position, I think that disabling the SEO is a quick workaround.

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!

dgreenspan52

I appreciate the fix and info, but creating the staging site on a subdomain outside of the root was my original request in this ticket. I just assumed it wasn't possible when you responded with a copy in a subdirectory of root folder instead. 

When I manually created a staging copy in subdomain, the staging site worked but it broke my root website (itcareerfinder.com) which is most important as it's user-facing.

Here's an excerpt from earlier ticket:

Ok I did manual backup and used kickstart to copy the site into subdomain. The site was copied successfully to subdomain, but the actual root site died, and I need this to remain live for users. The error message on live root site was after restoration was "Error: Failed to start application: Failed to start the session".

I tried your troubleshooting tips on https://www.akeeba.com/documentation/troubleshooter/post-restoration.html etc. but to no avail.

I've since reverted. All I need is to make a staging copy of site without removing current site. Please advise.

So how can I create a staging copy in subdomain without breaking the root site?

Thanks for your help getting over this initial hump. Once the process is established I will be able to replicate myself. 

tampe125
Akeeba Staff

Well, it depends on how and what broke on the main website. Creating a subdomain with the folder on a different level is something handled directly by your hosting. Usually the process is pretty straightforward, but the devil's in the details. Maybe a DNS record is not correctly set? Maybe there's some special configuration required? 

Those two websites shouldn't be talking each other, so it's pretty strange that the main site broke when you tried to create the staging one.

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!

dgreenspan52

Hi, I spoke w my host (SiteGround) - they say that no DNS record I have is affecting this nor is any special configuration required.

I hired someone to create a staging site in staging.itcarerfinder.com. Then I created another subdomain called staging2.itcareerfinder.com. I then took an Akeeba backup of staging and simply tried to restore a copy of that site into staging2 using Akeeba, but somehow even that broke the main site itcareerfinder.com, even though the main site wasn't even part of this process. I'm at a loss re what's going on here. 

Please advise.

Thanks,
Daniel

tampe125
Akeeba Staff

How did you restore it? Using the Site Transfer Wizard or by doing it manually?

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!

dgreenspan52

I’ve tried both methods w same result. 

tampe125
Akeeba Staff

When you restore the subdomain, are you using a different database (just to be sure)? Moreover, can you please replace subdomain .htaccess with Joomla default one?

Akeeba Backup will simply take a copy of your site/database and copy it to a new location. What you see in the "setup" step are just minor changes to the configuration.php file, things that you can do manually.

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!

dgreenspan52

No I was using the same database. Do I need to use diff database and user? 

tampe125
Akeeba Staff

You can use the same details, but you should need to use a different table prefix. Otherwise you're going to overwrite your main site data with the subdomain one, and things will break. This is why when I use the credentials you gave me here, the site was working.

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!

Support Information

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!