Closed j007bond007 closed 2 months ago
Would ask you to rerun and increase verbosity using -vvv
Attached is the verbose log (It only gave me the option for -vvvv in Semaphore) Zabbix deployment breaking system-August8th2024.log
I'm inclined to agree with @alexPykavy had their comment in #1366 based on this output that gets garbled up in the end:
{
"path": "/",
"changed": true,
"diff": {
"before": {
"path": "/",
"group": 0,
"mode": "0755"
},
"after": {
"path": "/",
"group": 117,
"mode": "0750"
}
},
"uid": 0,
"gid": 117,
"owner": "root",
"group": "zabbix",
"mode": "0750",
"state": "directory",
"size": 4096,
"invocation": {
"module_args": {
"path": "/",
"owner": "root",
"group": "zabbix",
"mode": "0750",
"state": "directory",
"recurse": false,
"force": false,
"follow": true,
"modification_time_format": "%Y%m%d%H%M.%S",
"access_time_format": "%Y%m%d%H%M.%S",
"unsafe_writes": false,
"_original_basename": null,
"_diff_peek": null,
"src": null,
"modification_time": null,
"access_time": null,
"seuser": null,
"serole": null,
"selevel": null,
"setype": null,
"attributes": null
}
}
}
What I don't understand though is why it's doing that because your vars at the top don't show you changing the zabbix_agent_include_dir
var.
OK try updating to 3.1.1 release and run it again. Let us know what happens. Will leave this open for a few days.
OK try updating to 3.1.1 release and run it again. Let us know what happens. Will leave this open for a few days.
Updated to 3.1.1 - and that seems to have fixed the corruption issue! Wikijs and the system/user login still work after running the playbook. All good! (Edited.... I had made a silly mistake in my playbook)
Great job!
SUMMARY
Deploying Zabbix agent (1) on Debian 12 machine causes system/user corruption, where the user can no longer login (error displayed on console is "Unable to cd to '/home/josh" and permissions on the home directory seem ok. My wiki software also breaks and displays "Internal Server Error". Odd warning was presented during playbook run:
10:47:52 AM TASK [community.zabbix.zabbix_agent : Create include dirs zabbix-agent] ******** 10:47:53 AM [WARNING]: Module invocation had junk after the JSON data: /bin/sh: 1: sleep: 10:47:53 AM Permission denied 10:47:54 AM fatal: [home1wikijs]: FAILED! => {"msg": "Failed to connect to the host via ssh: josh@home1wikijs: Permission denied (publickey,password)."}
ISSUE TYPE
COMPONENT NAME
community.zabbix.zabbix_agent
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
I'm using Semaphore as a GUI, and it's running on the same machine as Ansible which are in an LXC running on a Proxmox VE host. Target OS is Debian 12 and it's also running on the same Proxmox VE node as an LXC.
STEPS TO REPRODUCE
Run playbook below towards a fairly stock Debian 12 machine (the debian 12 machine was updated from 11, not sure if that matters and is running WikiJS software on it for a wiki). Notice errors in the log and then try logging in via SSH or console to the user account that ansible uses.
EXPECTED RESULTS
I would expect Zabbix to be installed with no errors and my user account/system not corrupted.
ACTUAL RESULTS
I had to restore the LXC from backup twice as it this re-occured both times I ran it on the machine.