You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After failing the most recent update (see issue #84 ), I tried to restore the pre-upgrade backup of my Weblate instance, which failed, for apparently two reasons:
Failure on postgre backup restore command execution:
uwsgi[3721077]: open("/etc/uwsgi/apps-available/weblate.ini"): Permission denied [core/io.c line 525]
Which is due to not properly setting access rights to the file.
Context
Hardware: Dedicated server
YunoHost version: 11.1.18
I have access to my server: Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Using, or trying to install package version/branch: Latest
If upgrading, current package version: 4.15.2~ynh1
Steps to reproduce
Restoring from either the web admin interface or through the 'yunohost backup restore' command through SSH will yield the same problem.
Expected behavior
App gets back up and running =) .
Logs
Relevant log lines shared at the top.
Conclusion:
I succeeded in restoring my backup archive by untaring, editing the restore script so that:
The first command for postgre is now surrounded by commands to set 'weblate' user as superuser before calling the db script, and undoing this after (not best way to deal with the problem maybe, but does the job fine):
ynh_psql_execute_as_root --sql="alter role weblate superuser;" --database=$db_name
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name< ./db.sql
ynh_psql_execute_as_root --sql="alter role weblate nosuperuser;" --database=$db_name
Chmoding the problematic file to allow read by all others, before the service start lines, so that
Describe the bug
After failing the most recent update (see issue #84 ), I tried to restore the pre-upgrade backup of my Weblate instance, which failed, for apparently two reasons:
Returned:
Which is due to not giving proper postgresql rights to user 'weblate' used in the command.
Returned:
uwsgi[3721077]: open("/etc/uwsgi/apps-available/weblate.ini"): Permission denied [core/io.c line 525]
Which is due to not properly setting access rights to the file.
Context
Steps to reproduce
Restoring from either the web admin interface or through the 'yunohost backup restore' command through SSH will yield the same problem.
Expected behavior
App gets back up and running =) .
Logs
Relevant log lines shared at the top.
Conclusion:
I succeeded in restoring my backup archive by untaring, editing the restore script so that:
I could make a pull request with these changes if that can help ;)
The text was updated successfully, but these errors were encountered: