Comments (5)
This step
N: Download is performed unsandboxed as root as file '/tmp/netdata-kickstart-X70OXCYHSn/netdata-repo_2-2+debian12_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
OK
of kickstart failed silently. So you ended up with a netdata package from Debian repos.
Let's see if this was a transient error for you or it's a consistent error.
- Remove netdata via the package manager.
- Make sure that any apt process is not stucked in the backgrounf
- Run the kickstart again with the option
--repositories-only
and if you want the release channel https://learn.netdata.cloud/docs/installing/one-line-installer-for-all-linux-systems#release-channel
At any case you bumped into a bug, we need to catch this case and fall back or exit
from netdata.
Here's what I did:
- Remove netdata and all other related packages via
apt remove
andapt autoremove
- Ran kickstart again with
--repositories-only
but it failed transiently again:
⚡ ~ wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --claim-token <token> --claim-rooms <room> --claim-url https://app.netdata.cloud --repositories-only
--2024-02-09 07:04:17-- https://get.netdata.cloud/kickstart.sh
Resolving get.netdata.cloud (get.netdata.cloud)... 104.26.9.141, 104.26.8.141, 172.67.72.170, ...
Connecting to get.netdata.cloud (get.netdata.cloud)|104.26.9.141|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88187 (86K) [application/octet-stream]
Saving to: ‘/tmp/netdata-kickstart.sh’
/tmp/netdata-kickstart.sh 100%[==============================================================================================>] 86.12K --.-KB/s in 0.004s
2024-02-09 07:04:17 (22.1 MB/s) - ‘/tmp/netdata-kickstart.sh’ saved [88187/88187]
--- Using /tmp/netdata-kickstart-WZNhCDBLYV as a temporary directory. ---
--- Checking for existing installations of Netdata... ---
--- No existing installations of netdata found, assuming this is a fresh install. ---
--- Attempting to install using native packages... ---
--- Checking for availability of repository configuration package. ---
[/tmp/netdata-kickstart-WZNhCDBLYV]# /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-WZNhCDBLYV/netdata-repo_2-2+debian12_all.deb https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_2-2+debian12_all.deb
OK
[/tmp/netdata-kickstart-WZNhCDBLYV]# env apt-get update
Hit:1 http://security.debian.org bookworm-security InRelease
Get:2 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
Hit:3 http://repo.netdata.cloud/repos/stable/debian bookworm/ InRelease
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:5 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Hit:6 http://ftp.us.debian.org/debian bookworm InRelease
Get:7 http://ftp.us.debian.org/debian bookworm-backports InRelease [56.5 kB]
Get:8 http://apt.puppetlabs.com bullseye InRelease [83.7 kB]
Get:9 http://apt.puppet.com bullseye InRelease [83.7 kB]
Get:10 http://apt.puppetlabs.com bullseye/puppet7 amd64 Packages [177 kB]
Get:11 http://apt.puppetlabs.com bullseye/puppet7 all Packages [12.0 kB]
Get:12 http://apt.puppet.com bullseye/puppet7 all Packages [12.0 kB]
Get:13 http://apt.puppet.com bullseye/puppet7 amd64 Packages [177 kB]
Fetched 645 kB in 1s (439 kB/s)
Reading package lists... Done
OK
[/tmp/netdata-kickstart-WZNhCDBLYV]# find /var/cache/apt/archives -type f -name netdata*.deb -delete
OK
[/tmp/netdata-kickstart-WZNhCDBLYV]# env apt-get install /tmp/netdata-kickstart-WZNhCDBLYV/netdata-repo_2-2+debian12_all.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'netdata-repo' instead of '/tmp/netdata-kickstart-WZNhCDBLYV/netdata-repo_2-2+debian12_all.deb'
The following NEW packages will be installed:
netdata-repo
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 4,098 B of archives.
After this operation, 18.4 kB of additional disk space will be used.
Get:1 http://repo.netdata.cloud/repos/stable/debian bookworm/ netdata-repo 2-2 [4,098 B]
Fetched 4,098 B in 0s (56.5 kB/s)
Selecting previously unselected package netdata-repo.
(Reading database ... 239850 files and directories currently installed.)
Preparing to unpack .../netdata-repo_2-2_all.deb ...
Unpacking netdata-repo (2-2) ...
Setting up netdata-repo (2-2) ...
W: Sources disagree on hashes for supposedly identical version '2-2' of 'netdata-repo:amd64'.
OK
[/tmp/netdata-kickstart-WZNhCDBLYV]# env apt-get update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://repo.netdata.cloud/repos/stable/debian bookworm/ InRelease
Hit:3 http://ftp.us.debian.org/debian bookworm InRelease
Get:4 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:6 http://ftp.us.debian.org/debian bookworm-backports InRelease
Hit:7 http://repo.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Hit:8 http://apt.puppetlabs.com bullseye InRelease
Hit:9 http://apt.puppet.com bullseye InRelease
Fetched 43.3 kB in 1s (36.8 kB/s)
Reading package lists... Done
OK
--- Successfully installed repository configuraion package. ---
[/root]# rm -rf /tmp/netdata-kickstart-WZNhCDBLYV
OK
I thought the transient error was strange: W: Sources disagree on hashes for supposedly identical version '2-2' of 'netdata-repo:amd64'.
- Removed
netdata-repo
again - Removed
/etc/apt/sources.list.d/netdata.list
- Ran
apt update
to ensurenetdata
is not in the sources list - Double checked
apt list --installed | grep netdata
is empty - Ran script with repo only again:
⚡ ~ wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh && sh /tmp/netdata-kickstart.sh --stable-channel --claim-token <token> --claim-rooms <claim> --claim-url https://app.netdata.cloud --repositories-only
--2024-02-09 07:05:45-- https://get.netdata.cloud/kickstart.sh
Resolving get.netdata.cloud (get.netdata.cloud)... 104.26.9.141, 104.26.8.141, 172.67.72.170, ...
Connecting to get.netdata.cloud (get.netdata.cloud)|104.26.9.141|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 88187 (86K) [application/octet-stream]
Saving to: ‘/tmp/netdata-kickstart.sh’
/tmp/netdata-kickstart.sh 100%[==============================================================================================>] 86.12K --.-KB/s in 0.007s
2024-02-09 07:05:45 (12.4 MB/s) - ‘/tmp/netdata-kickstart.sh’ saved [88187/88187]
--- Using /tmp/netdata-kickstart-nInKduoT4g as a temporary directory. ---
--- Checking for existing installations of Netdata... ---
--- No existing installations of netdata found, assuming this is a fresh install. ---
--- Attempting to install using native packages... ---
--- Checking for availability of repository configuration package. ---
[/tmp/netdata-kickstart-nInKduoT4g]# /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-nInKduoT4g/netdata-repo_2-2+debian12_all.deb https://repo.netdata.cloud/repos/repoconfig/debian/bookworm/netdata-repo_2-2+debian12_all.deb
OK
[/tmp/netdata-kickstart-nInKduoT4g]# env apt-get update
Hit:1 http://ftp.us.debian.org/debian bookworm InRelease
Get:2 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
Hit:3 http://security.debian.org bookworm-security InRelease
Hit:4 http://ftp.us.debian.org/debian bookworm-backports InRelease
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:6 http://apt.puppetlabs.com bullseye InRelease
Hit:7 http://apt.puppet.com bullseye InRelease
Fetched 43.3 kB in 1s (45.9 kB/s)
Reading package lists... Done
OK
[/tmp/netdata-kickstart-nInKduoT4g]# find /var/cache/apt/archives -type f -name netdata*.deb -delete
OK
[/tmp/netdata-kickstart-nInKduoT4g]# env apt-get install /tmp/netdata-kickstart-nInKduoT4g/netdata-repo_2-2+debian12_all.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'netdata-repo' instead of '/tmp/netdata-kickstart-nInKduoT4g/netdata-repo_2-2+debian12_all.deb'
The following NEW packages will be installed:
netdata-repo
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/4,098 B of archives.
After this operation, 18.4 kB of additional disk space will be used.
Get:1 /tmp/netdata-kickstart-nInKduoT4g/netdata-repo_2-2+debian12_all.deb netdata-repo all 2-2 [4,098 B]
Selecting previously unselected package netdata-repo.
(Reading database ... 239850 files and directories currently installed.)
Preparing to unpack .../netdata-repo_2-2+debian12_all.deb ...
Unpacking netdata-repo (2-2) ...
Setting up netdata-repo (2-2) ...
N: Download is performed unsandboxed as root as file '/tmp/netdata-kickstart-nInKduoT4g/netdata-repo_2-2+debian12_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
OK
[/tmp/netdata-kickstart-nInKduoT4g]# env apt-get update
Hit:1 http://security.debian.org bookworm-security InRelease
Get:2 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
Hit:3 http://ftp.us.debian.org/debian bookworm InRelease
Hit:4 http://ftp.us.debian.org/debian bookworm-backports InRelease
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:6 http://apt.puppet.com bullseye InRelease
Hit:7 http://apt.puppetlabs.com bullseye InRelease
Fetched 43.3 kB in 1s (46.6 kB/s)
Reading package lists... Done
OK
--- Successfully installed repository configuraion package. ---
[/root]# rm -rf /tmp/netdata-kickstart-nInKduoT4g
OK
Again I encounter this issue: N: Download is performed unsandboxed as root as file '/tmp/netdata-kickstart-nInKduoT4g/netdata-repo_2-2+debian12_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Edit: I also have a second Proxmox host which has a similar configuration, and it has the exact same error.
Any advice?
from netdata.
Sorry for the delay, I asked @Ferroin to check your ticket. In the meantime some WAs that might help you
- Provide an alternative temp dir TMPDIR (https://learn.netdata.cloud/docs/installing/one-line-installer-for-all-linux-systems#environment-variables)
- Install static builds
from netdata.
@tkatsoulas static build install worked. Alternate temp dir erred with the same issue (except in a different directory).
Of note, I ran into this issue where it tried to create an init.d
file: #2148 after removing that file, I found systemctl enable netdata
worked.
from netdata.
just a note: static build has no systemd-journal plugin.
from netdata.
Related Issues (20)
- [Bug]: Storage tiers keep reenabling themselves HOT 15
- [Bug]: Netdata service restarting randomly in one of the server HOT 6
- [Bug]: Parents are dying unexpectedly without any signs of problems happening before HOT 18
- Tag nightlies
- [Bug]: dbengine storage tiers cause Segmentation fault HOT 5
- [Bug]: building on FreeBSD fails because of network-viewer.plugin
- [Feat]: Custom HTML dashboard v2
- [Bug]: Dead links on "Data Collection" sub pages for alerts on the website HOT 1
- [Bug]: Netdata agent on TrueNas upgrade error HOT 1
- [Feat]: add CE & UE counter for EDAC collector HOT 2
- [Bug]: Missing container name for the alert Container ${label:k8s_container_name} of pod ${label:k8s_pod_name} of namespace ${label:k8s_namespace} HOT 1
- [Bug]: FreeBSD rc.d init script sends wrong signal for savedb
- [Bug]: incorrect documentation about ebpf plugin configuration HOT 6
- [Bug]: High CPU ACLKSYNC HOT 7
- [Bug]: Source build fails HOT 2
- [Bug]: Running netdata increases oom_kill HOT 2
- [Feat]: network interface hardware statistics HOT 1
- [Bug]: Postgres collector in static build does not use correct config base HOT 4
- [Bug]: Postgres collector needs explicit enabling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netdata.