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

Error during clean install - sudo: /usr/local/bin/eget: command not found #1818

Closed
L-U-C-K-Y opened this issue Jan 7, 2024 · 7 comments
Closed
Assignees
Labels
bug Something isn't working deployment

Comments

@L-U-C-K-Y
Copy link

Describe the issue
When trying to clean install on Ubuntu 22 LTS on Linode, I get the following error:

sudo: /usr/local/bin/eget: command not found

Steps to reproduce the issue

DOMAIN_NAME=test.com
sudo wget https://raw.githubusercontent.com/openreplay/openreplay/main/scripts/helmcharts/openreplay-cli -O /bin/openreplay 
sudo chmod +x /bin/openreplay
openreplay -i DOMAIN_NAME

Expected behavior
I expect the script to run through without error

Screenshots
SCR-20240107-qgli-2

OpenReplay Environment

  • Frontend stack: -
  • OpenReplay version: 1.16
  • Tracker version: -
  • Plugins used: -
  • Cloud provider: Linode
  • System specs: 4 CPU - 16GB

Additional context

Full log:

root@localhost:~# sudo wget https://raw.githubusercontent.com/openreplay/openreplay/main/scripts/helmcharts/openreplay-cli -O /bin/openreplay
sudo chmod +x /bin/openreplay
sudo openreplay -i DOMAIN_NAME
--2024-01-07 17:32:59--  https://raw.githubusercontent.com/openreplay/openreplay/main/scripts/helmcharts/openreplay-cli
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8002::154, 2606:50c0:8003::154, 2606:50c0:8001::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16946 (17K) [text/plain]
Saving to: ‘/bin/openreplay’

/bin/openreplay              100%[==============================================>]  16.55K  --.-KB/s    in 0s

2024-01-07 17:32:59 (35.5 MB/s) - ‘/bin/openreplay’ saved [16946/16946]

/usr/bin/openreplay: line 23: /var/lib/openreplay/vars.yaml: No such file or directory
[WARN] No kubeconfig file found. Exiting
[INFO] Using KUBECONFIG

- Installing packages
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2643k  100 2643k    0     0  3828k      0 --:--:-- --:--:-- --:--:-- 9442k
[INFO] Installing eget
[INFO] Installing stern
[INFO] Installing k9s
5 matches found: please select manually
(1) k9s_linux_amd64.apk
(2) k9s_linux_amd64.deb
(3) k9s_linux_amd64.rpm
(4) k9s_Linux_amd64.tar.gz
(5) k9s_Linux_amd64.tar.gz.sbom
Enter selection number: 2
[INFO] Installing kubecolor
[INFO] Installing yq
[INFO] Installing helm
[INFO] Installing kubectl
[INFO] Installing Busybox

- Installing OpenReplay

- Installing OpenReplay
[INFO] Working directory /tmp/tmp.B2Us9MrWkO
[INFO] git clone 'https://github.com/openreplay/openreplay' --depth 1 -b main
Cloning into 'openreplay'...
remote: Enumerating objects: 5324, done.
remote: Counting objects: 100% (5324/5324), done.
remote: Compressing objects: 100% (4132/4132), done.
remote: Total 5324 (delta 825), reused 3402 (delta 562), pack-reused 0
Receiving objects: 100% (5324/5324), 17.04 MiB | 12.92 MiB/s, done.
Resolving deltas: 100% (825/825), done.
+ RED='\033[0;31m'
+ GREEN='\033[0;32m'
+ YELLOW='\033[0;33m'
+ BWHITE='\033[1;37m'
+ NC='\033[0m'
++ whoami
+ usr=root
+ main
+ [[ x == \x\1 ]]
+ install_k8s
+ curl -sL https://get.k3s.io
+ sudo K3S_KUBECONFIG_MODE=644 INSTALL_K3S_VERSION=v1.25.6+k3s1 INSTALL_K3S_EXEC=--disable=traefik sh -
[INFO]  Using v1.25.6+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.25.6+k3s1/sha256sum-amd64.txt
[INFO]  Downloading binary https://github.com/k3s-io/k3s/releases/download/v1.25.6+k3s1/k3s
[INFO]  Verifying binary download
[INFO]  Installing k3s to /usr/local/bin/k3s
[INFO]  Skipping installation of SELinux RPM
[INFO]  Creating /usr/local/bin/kubectl symlink to k3s
[INFO]  Creating /usr/local/bin/crictl symlink to k3s
[INFO]  Creating /usr/local/bin/ctr symlink to k3s
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO]  systemd: Creating service file /etc/systemd/system/k3s.service
[INFO]  systemd: Enabling k3s unit
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service.
[INFO]  systemd: Starting k3s
+ [[ -d /root/.kube ]]
+ mkdir /root/.kube
+ sudo cp /etc/rancher/k3s/k3s.yaml /root/.kube/config
+ sudo chmod 0644 /root/.kube/config
+ sudo chown -R root /root/.kube/config
+ sleep 10
+ [[ x == \x\1 ]]
+ install_tools
+ exists kubectl
+ install_status=Upgrading
+ [[ '' -eq 1 ]]
+ which kubectl
+ return 0
+ exists eget
+ install_status=Upgrading
+ [[ '' -eq 1 ]]
+ which eget
+ return 0
+ exists stern
+ install_status=Upgrading
+ [[ '' -eq 1 ]]
+ which stern
+ return 0
+ exists k9s
+ install_status=Upgrading
+ [[ '' -eq 1 ]]
+ which k9s
+ return 1
+ info 'Upgrading K9s'
+ echo -e '\033[0;32m[INFO] ' 'Upgrading K9s' '\033[0m'
[INFO]  Upgrading K9s
+ sudo /usr/local/bin/eget -q --to /usr/local/bin derailed/k9s
sudo: /usr/local/bin/eget: command not found
@L-U-C-K-Y L-U-C-K-Y added the bug Something isn't working label Jan 7, 2024
@estradino estradino assigned rjshrjndrn and unassigned estradino Jan 7, 2024
@rjshrjndrn
Copy link
Contributor

Hi @L-U-C-K-Y I've just tried the same commands, and my installation was successful. Can you please give me the output for the following

ls -la /var/lib/openreplay

@rjshrjndrn
Copy link
Contributor

Ah... In your command, I see one issue

It shouldn't be
openreplay -i DOMAIN_NAME

but
openreplay -i $DOMAIN_NAME

@L-U-C-K-Y
Copy link
Author

Ah... In your command, I see one issue

It shouldn't be openreplay -i DOMAIN_NAME

but openreplay -i $DOMAIN_NAME

Maybe, we should update the docs then here, I can create an MR:
https://docs.openreplay.com/en/deployment/deploy-ubuntu/

Unfortunately, I still have the same issue

@L-U-C-K-Y
Copy link
Author

L-U-C-K-Y commented Jan 8, 2024

ls -la /var/lib/openreplay

image

Maybe we need to use the path:

/var/lib/openreplay/eget

@L-U-C-K-Y
Copy link
Author

@rjshrjndrn I am trying out some hosters, seems that a LTS ubuntu on Hetzner is working, but Linode might have issues. I don't know yet why that is happening.

See the right side Hetzner and left side the error:

SCR-20240114-nktu

@L-U-C-K-Y
Copy link
Author

I'm unable to reproduce this bug anymore

@rjshrjndrn
Copy link
Contributor

@L-U-C-K-Y If you happen to know what happened, please let me know. Interesting issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployment
Projects
None yet
Development

No branches or pull requests

3 participants