# claim fails with "ERROR: FAILED TO UPDATE NETDATA : You are running this script as user with uid 0. We recommend to run this script as root (user with uid 0)

**URL:** https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703
**Category:** Help
**Tags:** agent, update
**Created:** [March 26, 2022, 9:17pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703 "2022-03-26T21:17:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dvh](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dvh](https://community.netdata.cloud/u/dvh)
#### Post date: [March 26, 2022, 9:17pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/1 "2022-03-26T21:17:50Z")

</div>

## Problem/Question

I am very new to netdata, and I am having trouble “claiming” a new node into .cloud. the local agent works fine, and I can see the dashboard and such. I have created a working .cloud account. when I use the .cloud GUI to attempt to connect to my new node (copy and past the script provided by the GUI), the host script fails with "ERROR: FAILED TO UPDATE NETDATA : You are running this script as user with uid 0. We recommend to run this script as root (user with uid 0).

## Relevant docs you followed/actions you took to solve the issue

i tried to use the netdata-claim script as suggested by another topic here, but that fails also, but differently, throwing off many script errors

## What I expected to happen

i expected the script to run fine. seems like an odd message anyway, as it recommends exactly what it calls out as the issue.

please help

---

<div class="post-metadata">

### Author: ![Tasos\_Katsoulas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/tasos_katsoulas/32/1344_2.png) [@Tasos\_Katsoulas](https://community.netdata.cloud/u/Tasos_Katsoulas)
#### Post date: [March 28, 2022, 2:24pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/2 "2022-03-28T14:24:23Z")

</div>

Hello @dvh and welcome in our community. What installation method you used to install Netdata? Could you provide us with your `netdata -W buildinfo` for the node in question?

---

<div class="post-metadata">

### Author: ![dvh](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dvh](https://community.netdata.cloud/u/dvh)
#### Post date: [March 28, 2022, 10:23pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/3 "2022-03-28T22:23:52Z")

</div>

thank you for the reply and for the welcome. I originally used your one-line install script on my nodes. I was root at the time I did the install. I did manage to get the netdata-claim script to work after some grief with bash and my PATH. so I have my nodes adopted now, but the copy/paste from the .cloud GUI does not work. I do the copy/paste, then edit the command to instead run the netdata-claim script. I have more nodes I would like to include, so it would be great if it worked as advertised, but I can make this work.

maybe I screwed up by originally installing as root?

-dvh

---

<div class="post-metadata">

### Author: ![Tasos\_Katsoulas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/tasos_katsoulas/32/1344_2.png) [@Tasos\_Katsoulas](https://community.netdata.cloud/u/Tasos_Katsoulas)
#### Post date: [March 29, 2022, 1:01pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/4 "2022-03-29T13:01:14Z")

</div>

> I was root at the time I did the install.

This is not a problem

> I did manage to get the netdata-claim script to work after some grief with bash and my PATH.

To get in sync, you claimed some nodes in the cloud and you can see them in Netdata Cloud with the `netdata-claim.sh` script and your TOKENs from your Netdata Cloud account? Which section in our docs did you follow?

---

<div class="post-metadata">

### Author: ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)
#### Post date: [March 29, 2022, 7:13pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/5 "2022-03-29T19:13:20Z")

</div>

The issue [has been fixed](https://github.com/netdata/netdata/pull/12524). @dvh you need to update Netdata manually

> sudo apt-get update && sudo apt-get upgrade

The latest version contains the fix.

---

<div class="post-metadata">

### Author: ![dvh](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dvh](https://community.netdata.cloud/u/dvh)
#### Post date: [March 29, 2022, 7:24pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/6 "2022-03-29T19:24:56Z")

</div>

roger that. Thank you!

---

<div class="post-metadata">

### Author: ![dvh](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dvh](https://community.netdata.cloud/u/dvh)
#### Post date: [March 29, 2022, 7:30pm UTC](https://community.netdata.cloud/t/claim-fails-with-error-failed-to-update-netdata-you-are-running-this-script-as-user-with-uid-0-we-recommend-to-run-this-script-as-root-user-with-uid-0/2703/7 "2022-03-29T19:30:14Z")

</div>

regarding which section in your docs I followed…none of them. I found a message in this forum that related to a slightly different issue, but it informed me about the existence of the netdata-claim script. I thought that it would not hurt for me to try it, and after a few failed attempts (the parameter format is different, and I had to get my bash path correct), the claim worked!

I can’t right now find the forum message I am referring to…I can’t figure out how to search the forums effectively

-dvh
