Support

Akeeba Backup for Joomla!

#25343 Database connection parameters not saved?

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 Sunday, 12 June 2016 07:05 CDT

petekuhn
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:

In earlier versions of Akeeba, it would save/access the database connection parameters when restoring the site. That is, I take a backup of a site and then restore it to itself. I did not have to enter the database host, userid, password, database name. In 5.1.0 (and maybe in early 5.0.x, I'm not sure) this is no longer the case. The restore displays some defaults that have nothing to do with the actual values, and I have to enter them manually.

This is not a huge deal, by the way.

nicholas
Akeeba Staff
Manager
If you are restoring to exactly the same location (subdomain, domain and directory) you don't have to re-enter this information, it is filled in automatically. If you are restoring to a new location these fields are empty. This has been the case for the last five and a half years.

Furthermore, if you go to Configuration, Database backup engine, Configure and check "Blank out username/password" you will always have to enter your database connection information when restoring. This has been the case since approximately 2 years ago.

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!

petekuhn
Your description is exactly how I thought it worked, and it did work that way until recently.

I redid my test today, restoring a backup taking with WebCron to exactly the same site. I verified that "Blank out username/password" was not set in the config. Duriing the restore, it asked for all of the database credentials.

Let me know what additional information I can send you on this.

nicholas
Akeeba Staff
Manager
Just to be perfectly sure I just did a test. I took a backup and used the integrated restoration (which merely extracts the backup in place) to restore it. Sure enough, I can see the database information filled in. Therefore the feature –that I have not touched since 2013 as I can see in the Got repository– works exactly as I described.

This leaves us with very few possibilities.

Are you restoring EXACTLY over the same site? Please note that if you were backing up a site at http://www.example.com restoring to the following locations will NOT preserve the db information:
  • https://www.example.com (different protocol)
  • http://www.example.net (different domain name)
  • http://foo.example.com (different subdomain)
  • http://www.example.com/something (different directory)


If you go to Options and change something, does the change stick? If not, you have a Joomla issue with the #__extensions table I cannot help you with.

Try disabling caching in Joomla's Global Configuration, go to Components, Akeeba Backup click on Configuration, save & close. This should refresh the saved URL of the site.

Are you accessing your site's backend using EXACTLY the same subdomain and path? For example, if your site's URL is http://www.example.com, accessing your back-end using one of the following URLs will NOT preserve the db information:
  • https://www.example.com (different protocol)
  • http://www.example.net (different domain name)
  • http://example.com (different subdomain – note the missing www!)
  • https://www.sharedssl.foo/yoursite (shared SSL: different protocol, domain and path!)


Likewise, does your webcron.org CRON URL match the protocol, domain name, subdomain and path of your site?

Finally, a minority of servers (about one in a hundred) will not report the current site's URL correctly to PHP. In these cases the restoration script cannot figure out if you are restoring on the same or a different site. According to our experience the safest bet is that someone in this situation is restoring to a different site and for this reason we blank out the database connection information.

This is an exhaustive list.

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!