Support

Site Restoration

#38859 Restore from Azure host to Docker container, front-end not loading

Posted in ‘Site restoration’
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

PHP version
8.0.28
CMS Type
Joomla!
CMS Version
3.10.11
Backup Tool Version
6.1.6
Kickstart version
n/a

Latest post by tampe125 on Tuesday, 18 April 2023 02:40 CDT

meldedchaoz

Hello again! Long time since my last ticket, as everything ahs been working smoothly.  Here's the issue that I'm running into:  I'm trying to restore our site to a docker image of Joomla so that I can test the upgrade from 3.10.11 to Joomla 4.  I go through the following steps:

  1. Loading up a new Joomla 3.10.11 installation on Docker
  2. Installing Akeeba Pro into the Joomla instance
  3. Copy the backup file I have into the Docker container
  4. Import the backup into the Akeeba Backup "mange backups" area
  5. I go through the restore (everything runs smoothly)
  6. I have the restore reset the .htaccess file
  7. Upon completion, I go in through PHPMyAdmin and disable a few of the extensions like AdminTools and JCH Optimize
  8. I update the configuration.php to have the appropriate cache (none) and session handler (database), as well as setting $debug to "1" and $error_reporting to 'maximum'

I'm able to get into the back end of the restored site, but the front end isn't loading...and it may be related to JQuery (based on errors).  What can you recommend to get the front end working again?  I've gone through these items in your commonly-found issues, and don't believe that any are keeping this from working: https://www.akeeba.com/documentation/troubleshooter/post-restoration.html

  • Memory_limit is 128MB
  • Cache has been set to off
  • .htaccess was removed entirely (no effect)
  • I've attached my configuration.php file (actually, I tried to but your site has blocked the submission if it's included)
  • apache2handler reports: 
    Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_expires mod_filter mod_mime prefork mod_negotiation mod_php mod_remoteip mod_reqtimeout mod_rewrite mod_setenvif mod_status

tampe125
Akeeba Staff

Hello,

can you please double check if the variable $live_site inside the configuration.php file is empty?

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!

meldedchaoz

Yes, I have included the config file contents below, as every time I attempt to attach it to my reply your site blocks the reply in total.  It appears that I'm getting a 500 error related to:

    1. Referrer Policy: strict-origin-when-cross-origin

Could this be related to SSL somehow (not having it on the local Docker install)?

 

 

Config file:

 

<?php /**  * Joomla Global Configuration  *  * This file has been modified by ANGIE, the Akeeba Backup restoration script, when restoring or transferring your site.  *   * This comment is removed whe you save the Global Configuration from Joomla's interface and/or when a third party  * extension modifies your site's Global Configuration.  */ class JConfig { public $MetaAuthor = '0'; public $MetaDesc = 'The Body Healer Protocol is a cutting edge approach to achieving health, wealth, and happiness through the power of high vibrational living.  Learn how high vibrational foods and lifestyle habits are the key to losing weight, healing from disease, and manifesting the life of your dreams!'; public $MetaKeys = 'high vibrational living, high vibration, high vibrations, energy vibration, energy vibrations, personal transformation, manifest, diet, weight loss, detoxification, detox, protocol, natural healing, heal cancer naturally, heal diabetes naturally, cancer treatment, integrative medicine, cancer protocol, health coaching, nutritional coaching'; public $MetaRights = 'The Body Healer, LLC'; public $MetaTitle = '1'; public $MetaVersion = '0'; public $access = '10'; public $asset_id = '1'; public $behind_loadbalancer = '0'; public $block_floc = '1'; public $cache_handler = 'file'; public $cache_platformprefix = '0'; public $cachetime = '1440'; public $caching = '0'; public $captcha = 'recaptcha'; public $cookie_domain = ''; public $cookie_path = ''; public $db = 'joomla'; public $dbprefix = 'tbhwww_'; public $dbtype = 'mysqli'; public $debug = '1'; public $debug_lang = '0'; public $debug_lang_const = '1'; public $display_offline_message = '1'; public $editor = 'jce'; public $error_reporting = 'maximum'; public $feed_email = 'none'; public $feed_limit = '10'; public $force_ssl = '0'; public $fromname = 'The Body Healer'; public $frontediting = '0'; public $ftp_enable = '0'; public $ftp_host = ''; public $ftp_pass = ''; public $ftp_port = '21'; public $ftp_root = ''; public $ftp_user = ''; public $gzip = '1'; public $helpurl = 'https://help.joomla.org/proxy?keyref=Help{major}{minor}:{keyref}&lang={langcode}'; public $host = 'joomladb:3306'; public $lifetime = '120'; public $list_limit = '50'; public $live_site = ''; public $log_path = '/var/www/html/administrator/logs'; public $mailer = 'smtp'; public $mailfrom = '[email protected]'; public $mailonline = '0'; public $massmailoff = '1'; public $memcache_compress = '0'; public $memcache_persist = '1'; public $memcache_server_host = 'localhost'; public $memcache_server_port = '11211'; public $memcached_compress = '1'; public $memcached_persist = '1'; public $memcached_server_host = 'localhost'; public $memcached_server_port = '11211'; public $offline = '0'; public $offline_image = 'images/icons/construction_wrench.png'; public $offline_message = 'We\'re down for maintenance...but fear not!<br />We\'ll be back online ASAP.'; public $offset = 'America/Denver'; public $offset_user = 'UTC'; public $password = 'Definite-Isotope-Tall1'; public $proxy_enable = '0'; public $proxy_host = ''; public $proxy_pass = ''; public $proxy_port = ''; public $proxy_user = ''; public $redis_persist = '1'; public $redis_server_db = '0'; public $redis_server_host = 'localhost'; public $redis_server_port = '6379'; public $replyto = ''; public $replytoname = ''; public $robots = ''; public $secret = 'IUomRgio3HHt7NtSXuGcGyDq1FnVscCw'; public $sef = '1'; public $sef_rewrite = '1'; public $sef_suffix = '0'; public $sendmail = '/usr/sbin/sendmail'; public $session_handler = 'database'; public $session_memcache_server_host = 'localhost'; public $session_memcache_server_port = '11211'; public $session_memcached_server_host = 'localhost'; public $session_memcached_server_port = '11211'; public $session_redis_persist = '1'; public $session_redis_server_db = '0'; public $session_redis_server_host = 'localhost'; public $session_redis_server_port = '6379'; public $shared_session = '0'; public $sitename = 'The Body Healer'; public $sitename_pagetitles = '0'; public $smtpauth = '1'; public $smtphost = 'smtp.office365.com'; public $smtppass = '***'; public $smtpport = '587'; public $smtpsecure = 'tls'; public $smtpuser = '[email protected]'; public $tmp_path = '/var/www/html/tmp'; public $unicodeslugs = '0'; public $user = 'joomla'; }

 

tampe125
Akeeba Staff

Can you please try to replace your current .htaccess file with Joomla default one? Does is correctly work?

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!

meldedchaoz

Yes, I have already had a default .htaccess created by Admin Tools and just straight up removed the .htaccess file both.

meldedchaoz

I have also restored in many different ways, using the Backup plugin and kickstart both, as well as restoring the default /htaccess file as part of the restore

meldedchaoz

Here is some additional detail on the 500 error from the element inspector/console.  I see that the referrer is "http://www.thebodyhealer.com/installation/index.php?view=finalise" which concerns me...is that a problem?

Request URL: http://www.thebodyhealer.com/
Request Method: GET
Status Code: 500 Internal Server Error
Remote Address: 127.0.0.1:80
Referrer Policy: strict-origin-when-cross-origin
Connection: close
Content-Length: 1782
Content-Type: text/html; charset=UTF-8
Date: Fri, 14 Apr 2023 18:11:13 GMT
Server: Apache/2.4.56 (Debian)
X-Powered-By: PHP/8.0.28
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cache-Control: max-age=0
Connection: keep-alive
Cookie: b8cfbd0aa866e5e499a291ba538f68f7=191b60f4c0b5d60bfbc53e497753227c; 9d4bb4a09f511681369671a08beff228=9df512a4cb4f8ed1f96587141091467a; 53bb1c4fa815949d9492f9933a9802a9=b57414ccb6a6ee02e613067fe19da786; ecc72ae3949198f7558f20080144dcbe=7ebd37176f84ebbb74353b7d8fbfc945; 322f4d0aa192b8cf7a1dcf66a80fa1dd=ab34c7054d29feb9a7439e9137d28c01; c2c3de00eed9cefd5ec5a4a002a33138=50183c379839bc1845460464ea3941f6
Host: www.thebodyhealer.com
Referer: http://www.thebodyhealer.com/installation/index.php?view=finalise
Sec-GPC: 1
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

 

 

...additionally, when I turn on Joomla! error reporting to anything more than system default or none, the 500 error goes away.

tampe125
Akeeba Staff

Can you please upload the archive somewhere and post here the share link? So I can try to restore it locally and see what's going on.

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!

meldedchaoz

https://technologyronin-my.sharepoint.com/:f:/g/personal/travis_photoronin_com/EpEO9SYJcMNOgo01tZWfjyMBeY_0u0sZv8vk4tRCL5QI_w?e=mkiTc3
PW: Chili-Overpower-Kitty5

tampe125
Akeeba Staff

Hello,

I just restored it locally and everything seems to be working fine (see attachment). Maybe there's something wrong on the docker image you're using or the settings on your system?

I'm sorry but we can offer only limited support about restoration on local machines, since there could be several things interfering. For example, did you try to disable your antivirus? From time to time they get in the way and prevent the copy of all the files.

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!

meldedchaoz

Thanks for testing! A few questions about this:

  1. Is this a restore to a local web server, or into a Docker container?
  2. Is HTTPS enabled or disabled for the site?
  3. Were there any options that you specifically selected as part of the restore process?
  4. Did you change any configuration files or .htaccess files?

 

meldedchaoz

Oh, and I just tried disabling A/V and firewall (which I had not tried before), but still the same issue. It's the same where some resources load, but everything else doesn't.

tampe125
Akeeba Staff

I installed to a local web server, I'm running Ubuntu. I disabled HTTPS because it makes debug easier

I didn't change anything else.

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

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!