netvolt / LinuxRMM-Script

To help users that want to add Linux Agents to Tactical RMM, without need to pay upfront for code signed agents. Thanks to @ZoLuSs for the initial commit. If this solution works for you, consider contributing to Tactical RMM project!
MIT License
89 stars 39 forks source link

install fails on ubuntu 23.10 #19

Closed badsmoke closed 9 months ago

badsmoke commented 9 months ago

Hey,

I have now been able to install the agent several times without any problems, thank you for that.

but unfortunately it didn't work the last time i tried. to recreate it, i created a vm with similar conditions, but the installation didn't work either.

does anyone have an idea what the problem could be? system is freshly installed

install logs

``` --2023-12-08 09:16:37-- https://raw.githubusercontent.com/netvolt/LinuxRMM-Script/main/rmmagent-linux.sh Auflösen des Hostnamens raw.githubusercontent.com (raw.githubusercontent.com) … 185.199.111.133, 185.199.110.133, 185.199.108.133, ... Verbindungsaufbau zu raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK Länge: 9064 (8,9K) [text/plain] Wird in ‘rmmagent-linux.sh’ gespeichert. rmmagent-linux.sh 100%[=====================================================================================================>] 8,85K --.-KB/s in 0,002s 2023-12-08 09:16:38 (5,22 MB/s) - ‘rmmagent-linux.sh’ gespeichert [9064/9064] Fixing $PATH Variable --2023-12-08 09:16:38-- https://go.dev/dl/go1.18.3.linux-amd64.tar.gz Auflösen des Hostnamens go.dev (go.dev) … 216.239.32.21, 216.239.36.21, 216.239.38.21, ... Verbindungsaufbau zu go.dev (go.dev)|216.239.32.21|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found Platz: https://dl.google.com/go/go1.18.3.linux-amd64.tar.gz [folgend] --2023-12-08 09:16:38-- https://dl.google.com/go/go1.18.3.linux-amd64.tar.gz Auflösen des Hostnamens dl.google.com (dl.google.com) … 142.251.209.142, 2a00:1450:4005:801::200e Verbindungsaufbau zu dl.google.com (dl.google.com)|142.251.209.142|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK Länge: 141748419 (135M) [application/x-gzip] Wird in ‘/tmp/golang.tar.gz’ gespeichert. /tmp/golang.tar.gz 100%[=====================================================================================================>] 135,18M 15,3MB/s in 9,8s 2023-12-08 09:16:48 (13,9 MB/s) - ‘/tmp/golang.tar.gz’ gespeichert [141748419/141748419] go/ go/AUTHORS go/CONTRIBUTING.md go/CONTRIBUTORS go/LICENSE go/PATENTS go/README.md go/SECURITY.md go/VERSION go/api/ go/api/README go/api/except.txt go/api/go1.1.txt go/api/go1.10.txt go/api/go1.11.txt go/api/go1.12.txt go/api/go1.13.txt go/api/go1.14.txt . . . Golang Install Done ! --2023-12-08 09:16:50-- http://rmm-test-vm/ Auflösen des Hostnamens rmm-test-vm (rmm-test-vm) … 127.0.1.1 Verbindungsaufbau zu rmm-test-vm (rmm-test-vm)|127.0.1.1|:80 … fehlgeschlagen: Verbindungsaufbau abgelehnt. rm: das Entfernen von '/tmp/meshagent.msh' ist nicht möglich: Datei oder Verzeichnis nicht gefunden Agent Compile begin --2023-12-08 09:16:50-- https://github.com/amidaware/rmmagent/archive/refs/heads/master.zip Auflösen des Hostnamens github.com (github.com) … 140.82.121.4 Verbindungsaufbau zu github.com (github.com)|140.82.121.4|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found Platz: https://codeload.github.com/amidaware/rmmagent/zip/refs/heads/master [folgend] --2023-12-08 09:16:50-- https://codeload.github.com/amidaware/rmmagent/zip/refs/heads/master Auflösen des Hostnamens codeload.github.com (codeload.github.com) … 140.82.121.10 Verbindungsaufbau zu codeload.github.com (codeload.github.com)|140.82.121.10|:443 … verbunden. HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK Länge: 97229 (95K) [application/zip] Wird in ‘/tmp/rmmagent.zip’ gespeichert. /tmp/rmmagent.zip 100%[=====================================================================================================>] 94,95K --.-KB/s in 0,09s 2023-12-08 09:16:51 (1,09 MB/s) - ‘/tmp/rmmagent.zip’ gespeichert [97229/97229] Archive: /tmp/rmmagent.zip dd17ae64a7889fd1094a7f06da4c2ca6bc5525c5 creating: /tmp/rmmagent-master/ creating: /tmp/rmmagent-master/.github/ creating: /tmp/rmmagent-master/.github/workflows/ inflating: /tmp/rmmagent-master/.github/workflows/ci.yml inflating: /tmp/rmmagent-master/.gitignore creating: /tmp/rmmagent-master/.vscode/ inflating: /tmp/rmmagent-master/.vscode/settings.json inflating: /tmp/rmmagent-master/LICENSE.md inflating: /tmp/rmmagent-master/README.md creating: /tmp/rmmagent-master/agent/ inflating: /tmp/rmmagent-master/agent/agent.go inflating: /tmp/rmmagent-master/agent/agent_unix.go inflating: /tmp/rmmagent-master/agent/agent_windows.go inflating: /tmp/rmmagent-master/agent/checkin.go inflating: /tmp/rmmagent-master/agent/checks.go inflating: /tmp/rmmagent-master/agent/choco_windows.go inflating: /tmp/rmmagent-master/agent/embed_darwin.go inflating: /tmp/rmmagent-master/agent/embed_stub.go inflating: /tmp/rmmagent-master/agent/eventlog_windows.go inflating: /tmp/rmmagent-master/agent/install.go inflating: /tmp/rmmagent-master/agent/install_unix.go inflating: /tmp/rmmagent-master/agent/install_windows.go inflating: /tmp/rmmagent-master/agent/patches_windows.go inflating: /tmp/rmmagent-master/agent/process.go inflating: /tmp/rmmagent-master/agent/rpc.go creating: /tmp/rmmagent-master/agent/scripts/ inflating: /tmp/rmmagent-master/agent/scripts/macos_fix_mesh_install.sh inflating: /tmp/rmmagent-master/agent/services_windows.go inflating: /tmp/rmmagent-master/agent/software_windows_386.go inflating: /tmp/rmmagent-master/agent/software_windows_amd64.go inflating: /tmp/rmmagent-master/agent/svc.go inflating: /tmp/rmmagent-master/agent/syscall_windows.go inflating: /tmp/rmmagent-master/agent/tasks_windows.go inflating: /tmp/rmmagent-master/agent/utils.go inflating: /tmp/rmmagent-master/agent/wmi_windows.go inflating: /tmp/rmmagent-master/agent/wua_windows.go creating: /tmp/rmmagent-master/build/ inflating: /tmp/rmmagent-master/build/rmm.exe.manifest inflating: /tmp/rmmagent-master/build/setup.iss inflating: /tmp/rmmagent-master/go.mod inflating: /tmp/rmmagent-master/go.sum inflating: /tmp/rmmagent-master/main.go creating: /tmp/rmmagent-master/shared/ inflating: /tmp/rmmagent-master/shared/types.go inflating: /tmp/rmmagent-master/versioninfo.json warning: GOPATH set to GOROOT (/usr/local/go) has no effect go: downloading github.com/sirupsen/logrus v1.9.3 go: downloading github.com/kardianos/service v1.2.2 go: downloading github.com/elastic/go-sysinfo v1.11.1 go: downloading github.com/go-cmd/cmd v1.4.2 go: downloading github.com/go-ping/ping v1.1.0 go: downloading github.com/go-resty/resty/v2 v2.10.0 go: downloading github.com/jaypipes/ghw v0.12.0 go: downloading github.com/nats-io/nats.go v1.31.0 go: downloading github.com/shirou/gopsutil/v3 v3.23.10 go: downloading github.com/spf13/viper v1.17.0 go: downloading github.com/ugorji/go/codec v1.2.11 go: downloading github.com/wh1te909/trmm-shared v0.0.0-20220227075846-f9f757361139 go: downloading golang.org/x/sys v0.14.0 go: downloading github.com/google/uuid v1.3.0 go: downloading golang.org/x/net v0.17.0 go: downloading golang.org/x/sync v0.3.0 go: downloading github.com/klauspost/compress v1.17.2 go: downloading github.com/nats-io/nkeys v0.4.6 go: downloading github.com/nats-io/nuid v1.0.1 go: downloading github.com/tklauser/go-sysconf v0.3.12 go: downloading github.com/fsnotify/fsnotify v1.6.0 go: downloading github.com/mitchellh/mapstructure v1.5.0 go: downloading github.com/sagikazarmark/slog-shim v0.1.0 go: downloading github.com/spf13/afero v1.10.0 go: downloading github.com/spf13/cast v1.5.1 go: downloading github.com/spf13/pflag v1.0.5 go: downloading github.com/ghodss/yaml v1.0.0 go: downloading github.com/jaypipes/pcidb v1.0.0 go: downloading howett.net/plist v1.0.0 go: downloading github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901 go: downloading github.com/prometheus/procfs v0.8.0 go: downloading golang.org/x/exp v0.0.0-20230905200255-921286631fa9 go: downloading golang.org/x/crypto v0.15.0 go: downloading golang.org/x/text v0.14.0 go: downloading github.com/subosito/gotenv v1.6.0 go: downloading github.com/hashicorp/hcl v1.0.0 go: downloading gopkg.in/ini.v1 v1.67.0 go: downloading github.com/magiconair/properties v1.8.7 go: downloading github.com/pelletier/go-toml/v2 v2.1.0 go: downloading gopkg.in/yaml.v3 v3.0.1 go: downloading github.com/tklauser/numcpus v0.6.1 go: downloading github.com/mitchellh/go-homedir v1.1.0 go: downloading gopkg.in/yaml.v2 v2.4.0 # golang.org/x/exp/slog /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/level.go:159:13: undefined: atomic.Int64 /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/attr.go:20:19: undefined: StringValue /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/attr.go:68:19: undefined: GroupValue /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/handler.go:446:15: undefined: StringValue /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/json_handler.go:109:20: v.str undefined (type Value has no field or method str) /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/record.go:192:9: undefined: GroupValue /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/text_handler.go:99:20: v.str undefined (type Value has no field or method str) /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:87:7: undefined: stringptr /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:91:7: undefined: groupptr /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:173:10: undefined: StringValue /usr/local/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:173:10: too many errors note: module requires Go 1.20 cp: Aufruf von stat für '/tmp/temp_rmmagent' nicht möglich: Datei oder Verzeichnis nicht gefunden rmmagent-linux.sh: Zeile 200: /tmp/temp_rmmagent: Datei oder Verzeichnis nicht gefunden rm: das Entfernen von '/tmp/temp_rmmagent' ist nicht möglich: Datei oder Verzeichnis nicht gefunden Created symlink /etc/systemd/system/multi-user.target.wants/tacticalagent.service → /etc/systemd/system/tacticalagent.service. Tactical Agent Install is done ```

ah sorry....have overlooked the merge request, so it works