-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected host seen in list of hosts #5518
Comments
What do you see when click the little down arrow on the right? Doesn't it show a trash can? Clicking it will remove the entry. In some rare cases, you may need to reload, or click the 'Synchronize' to see it removed. The only cases I can imagine of how you'd see a host you didn't expect there are the following:
If you think that none of these are true, we can dig a bit further. |
I click trash then remove. |
Can you try the following:
|
I did this, but I saw http://ruhighload.com:19999/ again. |
I think it is a version issue. I tried to remove my website properly. |
No it doesn't have to do with the version of that host. Of course if you visit that host, it will be added again to the list. Do you know how to use the browser's console to investigate the requests sent and received? At the very minimum, we could look at the errors that appear in the console, but what's more interesting is the requests/responses when you delete it and when you press synchronize. |
That's not totally unexpected actually, there are cases when the delete could fail (usually happens when one switches registries). Regardless of the error, if you are signed in when that happens, there should be another call to netdata.cloud, showing in the network view as
If you don't see that, or it fails, then we have a bug. |
Is this?
|
Yes. So the delete request is sent properly and a simple reload should be removing that entry from your list (until you visit that server again of course). You should see an |
The JSON response.
|
Can you open the Console (f12) and write:
and press enter. Please expand the result and copy paste it here. Is the ruhighload server included? Please do the same for:
(press enter, copy-paste result here). Btw, forget my previous advice to click |
But how to delete registry agents.
|
@gmosx I think this is side effect of syncing registry and netdata.cloud. The only solution I can think is to delete entries from netdata.cloud only when they are deleted from the registry. If the registry denies to delete it, we may get this result. The registry may deny to delete a host for the following reasons:
I reviewed the deletion code of the registry, and I think it is error prone. The key problem is that the delete command does not take as argument the machine_guid of the machine the |
This would make things significantly worse. The most common case we have encountered is when someone switches from one registry to another. It's not mentioned in the list, but the new registry actually doesn't have that host at all. The user would need to completely clear the browser local storage to get rid of that entry. So we deliberately ignore the registry errors. The cases you mentioned are in general valid security precautions, so that person A don't get to delete person B's entries. But we definitely have a disconnect between the code that decides what to put in the list it returs (e.g. for the case in this issue) and the code that decides if the browser that received that list is allowed to delete it. It sounds like the problem would indeed be the last thing you wrote:
I'll check what happens in this case. |
Replicated the 412 error for a machine_guid that appears with multiple URLs. Starting on the fix. |
That wasn't it, it was a different failure and it wasn't actually testing the opposite scenario that @ktsaou mentioned, same URL multiple machine_guids. |
@clarencetw we checked the logs and saw that you were removing that host's entry, while you were looking at the console of that host. That limitation was there by design, because a refresh will then just add that host again to the registry. We removed that limitation, but if you remove the host the same way again, just close that browser tab. Even better, do the delete from the UI of a host you actually want to keep. |
Sorry, I'll see ruhighload.com again by use trash can delete.
I use
|
You're right, we just updated the code in the global registry a few minutes ago. If you do it again, you won't get a 412 now. Again, please ensure you do NOT load http://ruhighload.com:19999 after the delete. |
I am still trying to get 412 now.
|
I deleted successfully using chrome force refresh. |
On Wed, Feb 27, 2019 at 11:12 AM Clarence Lin mr.lin.clarence@gmail.com wrote:
Hi,
In my google oauth login I see http://ruhighload.com:19999/, but I can't delete it.
Why?
This not my site.
Component Name
web
The text was updated successfully, but these errors were encountered: