Skip to content
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

[Bug]: Trying to install netdata in the terminal with zsh #14807

Closed
alexthotse opened this issue Mar 26, 2023 · 5 comments
Closed

[Bug]: Trying to install netdata in the terminal with zsh #14807

alexthotse opened this issue Mar 26, 2023 · 5 comments
Labels
bug needs triage Issues which need to be manually labelled

Comments

@alexthotse
Copy link

alexthotse commented Mar 26, 2023

Bug description

When running zsh <(curl -Ss https://my-netdata.io/kickstart.sh), three things happen:

  1. FAILED: The following non-fatal warnings or errors were encountered
  2. ABORTED: Failed to download repository configuration package. This is usually a result of a networking issue.
  3. ERROR: Installer exited unexpectedly (0-2353)

Expected behavior

I believe it should behave similar to bash <(curl -Ss https://my-netdata.io/kickstart.sh) as all required packages are installed.

Steps to reproduce

  1. zsh <(curl -Ss https://my-netdata.io/kickstart.sh)
    ...

Installation method

kickstart.sh

System info

uname -a; grep -HvE "^#|URL" /etc/*release


Linux fedora 6.1.13-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 22 18:13:06 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
/etc/fedora-release:Fedora release 36 (Thirty Six)
/etc/os-release:NAME="Fedora Linux"
/etc/os-release:VERSION="36 (Xfce)"
/etc/os-release:ID=fedora
/etc/os-release:VERSION_ID=36
/etc/os-release:VERSION_CODENAME=""
/etc/os-release:PLATFORM_ID="platform:f36"
/etc/os-release:PRETTY_NAME="Fedora Linux 36 (Xfce)"
/etc/os-release:ANSI_COLOR="0;38;2;60;110;180"
/etc/os-release:LOGO=fedora-logo-icon
/etc/os-release:CPE_NAME="cpe:/o:fedoraproject:fedora:36"
/etc/os-release:REDHAT_BUGZILLA_PRODUCT="Fedora"
/etc/os-release:REDHAT_BUGZILLA_PRODUCT_VERSION=36
/etc/os-release:REDHAT_SUPPORT_PRODUCT="Fedora"
/etc/os-release:REDHAT_SUPPORT_PRODUCT_VERSION=36
/etc/os-release:SUPPORT_END=2023-05-16
/etc/os-release:VARIANT="Xfce"
/etc/os-release:VARIANT_ID=xfce
/etc/redhat-release:Fedora release 36 (Thirty Six)
/etc/system-release:Fedora release 36 (Thirty Six)

Netdata build info

(after using the bash option)
Version: netdata v1.38.0-301-nightly
Configure options:  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/usr/share' '--includedir=/usr/include' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/libexec' '--libdir=/usr/lib' '--with-zlib' '--with-math' '--with-user=netdata' '--disable-dependency-tracking' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CC=gcc' 'CFLAGS=-O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/root/rpmbuild/BUILD/.package_note-netdata-1.38.0.301.nightly-1.fc36.x86_64.ld' 'CXX=g++' 'CXXFLAGS=-O2  -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'PKG_CONFIG_PATH=:/usr/lib/pkgconfig:/usr/share/pkgconfig'
Install type: binpkg-rpm
    Binary architecture: x86_64
    Packaging distro:  
Features:
    dbengine:                   YES
    Native HTTPS:               YES
    Netdata Cloud:              YES 
    ACLK:                       YES
    TLS Host Verification:      YES
    Machine Learning:           YES
    Stream Compression:         YES
Libraries:
    protobuf:                YES (system)
    jemalloc:                NO
    JSON-C:                  YES
    libcap:                  NO
    libcrypto:               YES
    libm:                    YES
    tcalloc:                 NO
    zlib:                    YES
Plugins:
    apps:                    YES
    cgroup Network Tracking: YES
    CUPS:                    YES
    EBPF:                    YES
    IPMI:                    YES
    NFACCT:                  YES
    perf:                    YES
    slabinfo:                YES
    Xen:                     NO
    Xen VBD Error Tracking:  NO
Exporters:
    AWS Kinesis:             NO
    GCP PubSub:              NO
    MongoDB:                 NO
    Prometheus Remote Write: YES
Debug/Developer Features:
    Trace Allocations:       NO

Additional info

zsh <(curl -Ss https://my-netdata.io/kickstart.sh)
/proc/self/fd/11:cd:25: no such file or directory: pipe:[3688728]

 --- Using /tmp/netdata-kickstart-livO5Airjs 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-livO5Airjs]$ /usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-livO5Airjs/netdata-repo-edge-2-1.noarch.rpm https://repo.netdata.cloud/repos/repoconfig/fedora/36/x86_64/netdata-repo-edge-2-1.noarch.rpm 
curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to repo.netdata.cloud:443 
 FAILED 

The following non-fatal warnings or errors were encountered:

  - Command "/usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-livO5Airjs/netdata-repo-edge-2-1.noarch.rpm https://repo.netdata.cloud/repos/repoconfig/fedora/36/x86_64/netdata-repo-edge-2-1.noarch.rpm" failed with exit code 35.

 ABORTED  Failed to download repository configuration package. This is usually a result of a networking issue.

For community support, you can connect with us on:
  - GitHub: https://github.com/netdata/netdata/discussions
  - Discord: https://discord.gg/5ygS846fR6
  - Our community forums: https://community.netdata.cloud/
Root privileges required to run rm -rf /tmp/netdata-kickstart-livO5Airjs
[/home/zenitsu]$ sudo rm -rf /tmp/netdata-kickstart-livO5Airjs 
[sudo] password for zenitsu: 
 OK 

The following non-fatal warnings or errors were encountered:

  - Command "/usr/bin/curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-livO5Airjs/netdata-repo-edge-2-1.noarch.rpm https://repo.netdata.cloud/repos/repoconfig/fedora/36/x86_64/netdata-repo-edge-2-1.noarch.rpm" failed with exit code 35.

 ERROR  Installer exited unexpectedly (0-2353)

This is almost certainly the result of a bug. If you have time, please report it at https://github.com/netdata/netdata/issues/new/choose.
Root privileges required to run rm -rf /tmp/netdata-kickstart-livO5Airjs
[/home/zenitsu]$ sudo rm -rf /tmp/netdata-kickstart-livO5Airjs 
 OK 

(base)
@alexthotse alexthotse added bug needs triage Issues which need to be manually labelled labels Mar 26, 2023
@tkatsoulas
Copy link
Contributor

tkatsoulas commented Mar 27, 2023

Hello @alexthotse, did you retry the process? TTBOMK you received an SSL error (curl error 35) (mostly a temporary setback due to network issues)

@Ferroin
Copy link
Member

Ferroin commented Mar 28, 2023

This is probably not related to ZSH at all (@tkatsoulas is correct, curl failed with an exit code of 35, which means the TLS handshake failed in some way), but for the record:

  • We have not recommended the <() install syntax for some time now. The preferred command currently is wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh, or alternatively curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh if you don’t have wget.
  • We have never supported ZSH for actually running the install script. You can run the install command from a ZSH session, but using ZSH as the interpreter for the install script has never been officially supported (though it is likely to work without issue with the current install script).

@Dim-P
Copy link
Contributor

Dim-P commented Mar 28, 2023

@netdata/agent-sre We shouldn't be exiting with

This is almost certainly the result of a bug. If you have time, please report it at https://github.com/netdata/netdata/issues/new/choose.

in cases like this, as it can be misleading to users.

@Ferroin
Copy link
Member

Ferroin commented Mar 28, 2023

@Dim-P agreed. We need better handling for the case of the curl command failing.

@ilyam8
Copy link
Member

ilyam8 commented Apr 4, 2023

Closing based on #14807 (comment)

using ZSH as the interpreter for the install script has never been officially supported

@ilyam8 ilyam8 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Issues which need to be manually labelled
Projects
None yet
Development

No branches or pull requests

5 participants