Closed javierspn closed 8 months ago
Unfortunately I was not able to reproduce this on my end. The installation works fine with Debian 11.6 on DigitalOcean and a Docker Container.
I installed the official debian package from the official repo yesterday. The server is installed on a virtual machine. I had to rollback the VM to a previous snapshot.
Would be interesting to know, what the first error was, that let you restore your system.
I uninstalled the agent from the agent host. After using apt remove open....etc files are left on /etc/openitcockpit-agent and /var/log/openitcockpit-agent; I removed those manually.
If you use apt-get remove
the configuration files will be not removed by the system. From the man page of apt-get
:
remove
remove is identical to install except that packages are removed instead of installed.
Note that removing a package leaves its configuration files on the system. If a plus
sign is appended to the package name (with no intervening space), the identified
package will be installed instead of removed.
purge
purge is identical to remove except that packages are removed and purged (any
configuration files are deleted too).
I'm not sure about this one
dpkg: error processing package openitcockpit-agent (--configure):
installed openitcockpit-agent package post-installation script subprocess returned error exit status 5
Errors were encountered while processing:
openitcockpit-agent
E: Sub-process /usr/bin/dpkg returned an error code (1)
You should execute the postinst script directly as root user to get more information about the error /var/lib/dpkg/info/openitcockpit-agent.postinst
.
The postinst.sh isn't doing much that could fail: https://github.com/it-novum/openitcockpit-agent-go/blob/main/build/package/postinst.sh#L11-L51
Inactive
Hi!
Agent Mode: [x] Pull Model (openITCOCKPIT Server request data from Agent) [ ] Push Model (Agent send data to openITCOCKPIT)
Versions openITCOKPIT Server Version: 4.6.2 openITCOCKPIT Monitoring Agent Version: 3.0.10
Operating system Linux Debian Bullseye 11.6 AMD64
Describe the bug I installed the official debian package from the official repo yesterday. The server is installed on a virtual machine. I had to rollback the VM to a previous snapshot.
I uninstalled the agent from the agent host. After using apt remove open....etc files are left on /etc/openitcockpit-agent and /var/log/openitcockpit-agent; I removed those manually.
Then I executed apt autoremove and apt purge.
Once I install the agent with apt, the following error triggers:
To Reproduce Steps to reproduce the behavior:
Expected behavior APT installs the agent properly
Screenshots
Additional context NOTE: same error on two machines, same OS.