question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hosts of a deleted user break the host lists

See original GitHub issue

This error message happens when deleting a user which created hosts. “Cannot read property ‘avatar’ of null”

Are you in the right place? - I hope so, if not sorry.

  • If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit.

  • If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask.

  • If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the right place.

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? - No
  • Are you sure you’re not using someone else’s docker image? - Yes
  • If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? - No

Describe the bug

  • Cannot read property ‘avatar’ of null when deleting a user and going back to created hosts
  • What version of Nginx Proxy Manager is reported on the login page? - v2.8.1

To Reproduce Steps to reproduce the behavior:

  • Create a new user
  • Create a new redirection host
  • Delete user
  • End up seeing “Cannot read property ‘avatar’ of null” where new redirection host should be

Expected behavior Got error when deleting user to a created redirection host, not sure what I should be seeing but it’s broken I think.

Screenshots Screenshots attached. Capture

Operating System

  • Ubuntu 20.10

Additional context Docker Engine - 20.10.6

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
MichelBaiecommented, Aug 11, 2021

I think you should reopen this issue because it need to be fixed by the developpers. I’ve did the same error as deleting users with existing hosts.

2reactions
aab12345commented, Apr 25, 2021

looks like I fixed it by doing the following;

Installed DB Browser SQLite (Windows) Going to /srv/dev-disk-by-label-Files/Config/Nginx-Proxy Open the database.sqlite with DB Browser SQLite Browsing the Data > Table user Modifying Is_Deleted=0 Go to > redirection host table > delete line 1 > Save Then file > write changes > Stopped the container Copied over edited database back to /srv/dev-disk-by-label-Files/Config/Nginx-Proxy Restarted the service > Bingo!

No more error and the users are back. I couldn’t find how to connect to the sql via docker but this way seemed to work so not sure if this is still a bug when deleting a user. Still might need looking into though but this above works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hosts of a deleted user break the host lists #1038 - GitHub
This error message happens when deleting a user which created hosts. "Cannot read property 'avatar' of null" Are you in the right place?...
Read more >
How to reset the Hosts file back to the default - Microsoft Support
To reset the Hosts file back to the default, follow these steps: 1. Open Notepad.
Read more >
Remove a Host from vCenter Server - VMware Docs
In the vSphere Client home page, navigate to Home > Hosts and Clusters. 2. Select a host in the inventory. (Optional) If the...
Read more >
Known hosts file keeps getting deleted - ssh - Super User
Have a weird issue where my known_hosts file is getting deleted periodically. Is there any way I can watch the file to see...
Read more >
Failed to add the host to the list of know hosts - Stack Overflow
For guys on Ubuntu, if you get this error: Failed to add the host to the list of known hosts. Then simply delete...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found