Rkpaxam Posted September 16, 2023 Share Posted September 16, 2023 Hi Can someone help me set up unraid, it looses its connection to my netdata account with every restart aswel as loosing all its data. I have tried a previous thread but it doesn't stick. Quote Link to comment
JorgeB Posted September 17, 2023 Share Posted September 17, 2023 Best bet would be using the existing container support thread/discord, assuming one exists: Quote Link to comment
Rkpaxam Posted September 17, 2023 Author Share Posted September 17, 2023 8 hours ago, JorgeB said: Best bet would be using the existing container support thread/discord, assuming one exists: i have and followed the guides, no luck with either Quote Link to comment
Solution Rkpaxam Posted September 18, 2023 Author Solution Share Posted September 18, 2023 So I downloaded the "official" Docker Version from the Unraid App Store Dont change anything yet just let it Run (i have mine on "Privileged" not sure if this make a difference.) Set yourself an account up on Netdata and make a "room" (if you want to monitor remotely if not ignore steps after step 4) Then Stop the container Click Edit the container and enter the following "paths" https://imgur.com/a/6ng8ZmW Now Login to your cloud account and under Integrations > Deploy > Docker & Kubernetes > click Docker * Copy the Docker CLI output and paste it into Notepad or a text editor * click "Add another Path, Port, Variable, Label or Device" * Change the type to Variable * For Name and Key paste in NETDATA_CLAIM_TOKEN *for Value paste in your claim token from your text file *Repeat adding variables and values for NETDATA_CLAIM_URL and NETDATA_CLAIM_ROOMS It will look like the picture above ( This will connect the docker to your account whenever it is stopped or updated, otherwise its a right pain) 6) Save the container DO NOT START! 7) open an Unraid Terminal and paste the following command cd /mnt/cache/appdata/netdata/ mkdir config mkdir cache mkdir lib docker run -d --name netdata_tmp netdata/netdata docker cp netdata_tmp:/etc/netdata /mnt/user/appdata/netdata/cacheconfig/ docker cp netdata:/var/cache/netdata/netdata-meta.db /mnt/user/appdata/netdata/cache/netdata docker cp netdata:/var/lib/netdata /mnt/user/appdata/netdata/lib docker rm -f netdata_tmp chmod 777 -R /mnt/user/appdata/netdata Start your Container ( if it comes up with an error press back on your browser DONT click ok as this removes the container) .. Enjoy something like this https://imgur.com/a/VE5fjql NOTE this does save data if the container is stopped/restarted but for some reason if the container is updated which is daily it looses previous data. If i find a way i will update the thread! Thank you to everyone on Unraid this is everything i found on the forum in one place for ease 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.