mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #2041] Hosts of a deleted user break the host list #1475
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1475
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @v3ss0n on GitHub (May 5, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2041
Re-issued #1038 Because it is not fixed , and owner of that issue is not reopening .
This annoying bug breaks NPM rendering anyone unable to change , very bad for production environment.
Please consider looking into it.
@damianog commented on GitHub (May 28, 2022):
I can confirm this issue, after deleting an old admin user I get the error: Cannot read properties of null (reading 'avatar')
@v3ss0n have you got a solution to restore the Hosts list?
@v3ss0n commented on GitHub (May 28, 2022):
Only way is to go in and fix using SQL.
@damianog commented on GitHub (May 28, 2022):
OK I managed to enable the user by:
update user set is_deleted = 0 where is_deleted = 1;
in mysql db
So the issue depend on the avatar icon on the host list?

The one with red spot is the undeleted user now only disabled.
@jc21 I whant to delete a secondary administrator user, but there are some proxy-host owned by this one.
How could I change the owner than?
@danielclough commented on GitHub (Jun 15, 2022):
I was able to reset the user by:
UPDATE user SET is_deleted=1;UPDATE user SET is_deleted=0;Upon logging in the deleted user is back along with their hosts.
There is probably a better way.
@v3ss0n commented on GitHub (Jun 15, 2022):
Thats shouldn't be the way , its a critical bug. We need a fix.
@wbloos commented on GitHub (Jun 24, 2022):
That is dangerous, because it will restore the admin user with the default username and password!! (admin@example.com/changeme)
@etfz commented on GitHub (Oct 14, 2022):
Just encountered this very unfortunate issue. Was able to recover by assigning the affected entries to a different owner.
This is also done directly in the database. In my case I was using SQLite.
docker psto find your container ID, if necessary)List all tables using
.tablesto find any other tables you may need to edit.Taken from here:
https://forums.unraid.net/topic/76460-support-djoss-nginx-proxy-manager/page/52/#comment-969943
Steps 1 through 3 can probably be done outside of the container, too, since the database should be bind mounted outside of the container.
@franciscopaniskaseker commented on GitHub (Nov 25, 2022):
Still happening. i followed @etfz steps and fixed the problem, but of course the bug can happen again.
@fiservedpi commented on GitHub (Apr 24, 2023):
Experiencing the same on latest version (v2.10.2 © 2022 ) applied the above fix and all is well. I do not know what started all this, I was updating some containers beforehand and then all of a sudden error!

@rubickecho commented on GitHub (Jun 29, 2023):
yes, I had a problem today too, looking forward to a quick fix
@devuar commented on GitHub (Jul 25, 2023):
Any update on this?
@v3ss0n commented on GitHub (Jul 26, 2023):
Consider moving to traefik . This is such a deal breaker bug that dev choose to ignore ( along with severe CVEs).
@devuar commented on GitHub (Jul 31, 2023):
This worked for me!
@alexsalex commented on GitHub (Aug 30, 2023):
Same issue here...
@Kevinsky86 commented on GitHub (Dec 22, 2023):
Can you elaborate on the CVE's?
@github-actions[bot] commented on GitHub (Aug 9, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@kerstenremco commented on GitHub (Nov 15, 2024):
Added PR #4166 for this issue
@github-actions[bot] commented on GitHub (Jun 16, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍