-
-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
I have 3 Raspberry Pi's running raspbian/pi-os (just a flavor of debian) and I am running into issues with both the service based install and the docker install.
Service based: Does not correctly create the systemd service files.
Error:
user@Rin:~ $ SERVER_TOKEN="token_redacted" POCKETBASE_URL="URL_redacted" SERVER_NAME="Rin-Pi" AGENT_ID="agent_redacted" OS_TYPE="debian" CHECK_INTERVAL="60" RETRY_ATTEMPTS="3" sudo -E bash ./server-agent.sh
=============================================
CheckCle Server Monitoring Agent
One-Click Installation
=============================================
[SUCCESS] Environment validation passed
[INFO] SERVER_TOKEN: srv_48vg...
[INFO] POCKETBASE_URL: URL_redacted
[INFO] SERVER_NAME: Rin-Pi
[INFO] AGENT_ID: agent_redacted
[INFO] Detecting system architecture and package format...
[INFO] Detected OS: debian
[SUCCESS] System detection complete:
[INFO] Architecture: aarch64 -> arm64
[INFO] Package format: deb
[INFO] Package manager: dpkg
[INFO] Package URL: https://github.com/operacle/checke-server-agent/releases/download/v1.0.0/monitoring-agent_1.0.0_arm64.deb
[INFO] Auto-detecting system information...
[INFO] Detected hostname: Rin
[INFO] Detected IP address: 10.10.3.101
[INFO] Detected OS: debian
[INFO] Starting automated installation...
[INFO] Downloading monitoring agent package...
[INFO] URL: https://github.com/operacle/checke-server-agent/releases/download/v1.0.0/monitoring-agent_1.0.0_arm64.deb
[SUCCESS] Package downloaded successfully: monitoring-agent_1.0.0_arm64.deb
[INFO] Installing monitoring agent package using dpkg...
[WARNING] Package installation had dependency issues, fixing...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra libbasicusageenvironment1 libc++1-16 libc++abi1-16 libcamera0.2 libcamera0.3 libcamera0.4 libgroupsock8 liblivemedia77 libqt5qmlworkerscript5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libraspberrypi0 libslirp0
libunwind-16 libwpe-1.0-1 libwpebackend-fdo-1.0-1 linux-headers-6.6.20+rpt-common-rpi linux-headers-6.6.20+rpt-rpi-2712 linux-headers-6.6.20+rpt-rpi-v8 linux-headers-6.6.47+rpt-common-rpi linux-headers-6.6.47+rpt-rpi-2712 linux-headers-6.6.47+rpt-rpi-v8
linux-headers-6.6.62+rpt-common-rpi linux-headers-6.6.62+rpt-rpi-2712 linux-headers-6.6.62+rpt-rpi-v8 linux-headers-6.6.74+rpt-common-rpi linux-headers-6.6.74+rpt-rpi-2712 linux-headers-6.6.74+rpt-rpi-v8 linux-image-6.6.20+rpt-rpi-2712 linux-image-6.6.20+rpt-rpi-v8
linux-image-6.6.47+rpt-rpi-2712 linux-image-6.6.47+rpt-rpi-v8 linux-image-6.6.62+rpt-rpi-2712 linux-image-6.6.62+rpt-rpi-v8 linux-image-6.6.74+rpt-rpi-2712 linux-image-6.6.74+rpt-rpi-v8 linux-kbuild-6.6.20+rpt linux-kbuild-6.6.47+rpt linux-kbuild-6.6.62+rpt linux-kbuild-6.6.74+rpt
qml-module-qtgraphicaleffects qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtquick2 slirp4netns
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 180 not upgraded.
[SUCCESS] Dependencies resolved and package installed
[INFO] Configuring agent with provided settings...
[INFO] Final configuration:
[INFO] Server Name: Rin-Pi
[INFO] Agent ID: agent_redacted
[INFO] PocketBase URL: URL_redacted
[INFO] IP Address: 10.10.3.101
[INFO] OS Type: debian
[INFO] Health Check Port: 8081
[INFO] Writing configuration to /etc/monitoring-agent/monitoring-agent.env...
[SUCCESS] Configuration written successfully
[INFO] Starting monitoring agent service...
Failed to enable unit: Unit file monitoring-agent.service does not exist.
[SUCCESS] Service enabled for auto-start
Failed to start monitoring-agent.service: Unit monitoring-agent.service not found.
[ERROR] Failed to start service
[INFO] Check logs with: journalctl -u monitoring-agent -f
[ERROR] Service failed to start properly
[INFO] Check configuration: sudo nano /etc/monitoring-agent/monitoring-agent.env
[INFO] Restart service: sudo systemctl restart monitoring-agent
Docker: Incorrect IP address being passed

Metadata
Metadata
Assignees
Labels
No labels