Closed AlexHimself closed 6 months ago
I managed to fix the database, but I think the underlying issue may still exist. My resolution was the following:
From web SSH Terminal, I ran the following:
apk add sqlite
nginx
database with sqlite3 /addon_configs/a0d7b954_nginxproxymanager/database.sqlite
update certificate set owner_user_id = 2; update proxy_host set owner_user_id = 2; .exit
Observation - I noticed when running SELECT * FROM 'auth'
that there are 3 users and is_deleted = 0
for all of them. I only have 1 user account (MyAdmin@MyDomain.com
).
When running SELECT * FROM 'user'
however, I see is_deleted=1
for the two other accounts that shouldn't be there. One is admin@example.com
and the other is admin@example2.com
, which was my attempt to recreate the default admin account.
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
Problem/Motivation
Receiving error
Cannot read properties of null (reading 'avatar')
after deletingadmin@example.com
account. Uninstalling/reinstalling nginx is not removing previous settings. I'm using the Raspberry Pi Home Assistant image (not sure technical name of that install).I believe this is after the auto-upgrade breaking change and deleting the
admin@example.com
user. #507 .The following error appears on nearly every configuration page, not just SSL Certificates.
Expected behavior
Uninstalling nginx and reinstalling would be a vanilla install again.
Actual behavior
Same settings, user accounts, and errors persist after each uninstall/install and even mixing in restarts.
Steps to reproduce
The steps that lead to this error were essentially:
admin@example.com
/changeme
and it allowed me to login. This was likely due to #507admin@example.com
account.MyAdmin@MyDomain.com
as admin.admin@example.com
.admin@example.com
and in asMyAdmin@MyDomain.com
.admin@example.com
account.This is in the log, if relevant: