Giter Club home page Giter Club logo

Comments (5)

tkatsoulas avatar tkatsoulas commented on May 28, 2024

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.

  1. Remove netdata via the package manager.
  2. Make sure that any apt process is not stucked in the backgrounf
  3. 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.

Clete2 avatar Clete2 commented on May 28, 2024

Here's what I did:

  1. Remove netdata and all other related packages via apt remove and apt autoremove
  2. 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'.

  1. Removed netdata-repo again
  2. Removed /etc/apt/sources.list.d/netdata.list
  3. Ran apt update to ensure netdata is not in the sources list
  4. Double checked apt list --installed | grep netdata is empty
  5. 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.

tkatsoulas avatar tkatsoulas commented on May 28, 2024

Sorry for the delay, I asked @Ferroin to check your ticket. In the meantime some WAs that might help you

  1. Provide an alternative temp dir TMPDIR (https://learn.netdata.cloud/docs/installing/one-line-installer-for-all-linux-systems#environment-variables)
  2. Install static builds

from netdata.

Clete2 avatar Clete2 commented on May 28, 2024

@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.

ilyam8 avatar ilyam8 commented on May 28, 2024

just a note: static build has no systemd-journal plugin.

from netdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.