After upgrade 1.9.3 can't download database

It’s frustrating, I had already lost phpmyadmin after 1.9.2 and was slowly downloading all sites and databases and moving to other server to reinstall but now after updating to 1.9.3 now the download database button doesn’t work

This site cannot be accessed
The website at https://hestiacp.raitnaudigital.com:8083/download/database/?database=administrador_inmobiliaria_db&token=a18804854c0d60ac50f8f9b6c4b5635e may be temporarily down or has been permanently moved to a new web address.
ERR_INVALID_RESPONSE

Now i’m working only from the console

I second it. I just checked after reading yours, and it does not download, but gives address moved error.

https://d.tld/download/database/?database=dname&token=token might have a temporary problem or it could have moved. Error code: 404

Moreover, if I try to login, it shows access denied, as hestia-sso seems to be not working.
Going through forum now to recollect what access was needed for it. A solution may be present.

BTW, just saw. The database file is getting downloaded to /backup folder. Odd. I thought the UI should allow to download as well, and not just create it in the /backup folder.

It creates a download and then it should download it aswell

exactly. But as Op and I too confirm, it just does not. I did update what else happens. :frowning: At least it does download to /backup.

Use this to fix it and try again:

sed -i 's/\$output\[1\]/\$output\[0\]/' /usr/local/hestia/web/download/database/index.php 
3 Likes

Yes working now. Should I open a PR for this by making the change here?
Credit Sanu :slight_smile:

Also, the filename auto prepends - or at times _ (which I think is the path name for backup). Example: _backup_user_databasename_mysql_2025-02-28_21-11-11.sql.gz

Yes, you can do it, but my knowledge of PHP is zero, so @eris should review it to ensure it’s the right change and that no other modifications are needed.

2 Likes

Thanks. PR 4876 raised. Let me know if I wrote anything incorrect (credits especially), and will gladly correct it. Thanks again for the quick fix mate. :slight_smile:

2 Likes