[ZBX-11544] File locks failed on zabbix server and zabbix agent Created: 2016 Dec 01 Updated: 2024 Apr 10 Resolved: 2018 Jul 19 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D) |
Affects Version/s: | None |
Fix Version/s: | 4.0 (plan) |
Type: | Documentation task | Priority: | Minor |
Reporter: | Roger | Assignee: | Martins Valkovskis |
Resolution: | Fixed | Votes: | 1 |
Labels: | lock, semaphores, ssh, systemd | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu Server 16.04 LTS 64bit |
Team: | Team D |
Team: | Team D |
Sprint: | Sprint 33, Sprint 34, Sprint 35, Sprint 36, Sprint 37, Sprint 38 |
Story Points: | 1 |
Description |
During installation of Ubuntu server 16.04 I created an user called "zabbix". zabbix_server [27730]: [file:'selfmon.c',line:375] lock failed: [22] Invalid argument zabbix_server [27716]: [file:'dbconfig.c',line:5266] lock failed: [22] Invalid argument zabbix_server [27706]: [file:'log.c',line:238] lock failed: [22] Invalid argument zabbix_agentd [27796]: [file:'log.c',line:238] lock failed: [22] Invalid argument As a workaround i just login as another user, but has this issue an official fix? Thank you. |
Comments |
Comment by Alexey Pustovalov [ 2016 Dec 01 ] |
can not reproduce the issue. Please tell us how you added "zabbix" user. |
Comment by Roger [ 2016 Dec 01 ] |
I didn't added "zabbix" user, i just created it during installation. |
Comment by Alexey Pustovalov [ 2016 Dec 01 ] |
Yes, show us how you created it. |
Comment by Roger [ 2016 Dec 01 ] |
By default, after installation, the created user has this configuration:
Did I forget something? |
Comment by Aleksandrs Saveljevs [ 2016 Dec 05 ] |
Looks like a duplicate of |
Comment by Roger [ 2016 Dec 05 ] |
In this case I only have one server and one agent. It seems not to be a descriptors or semaphores problem. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Feb 06 ] |
Dear rblancop, could you please execute commands mentioned in this comment? |
Comment by Roger [ 2017 Feb 07 ] |
Here you are: root@zabbix:~# ipcs -s | grep zabbix root@zabbix:~# printf '%0.2x%0.4x\n' $(($(stat -c '%d' /etc/zabbix/zabbix_server.conf) & 0xff)) $(($(stat -c '%i' /etc/zabbix/zabbix_server.conf) & 0xffff)) root@zabbix:~# printf '%0.2x%0.4x\n' $(($(stat -c '%d' /etc/zabbix/zabbix_agentd.conf) & 0xff)) $(($(stat -c '%i' /etc/zabbix/zabbix_agentd.conf) & 0xffff)) |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Feb 07 ] |
Your problem is not the same as |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Feb 07 ] |
Maybe semaphores are removed by system when user who created them (cuid) logs out? |
Comment by Roger [ 2017 Feb 07 ] |
It could be, but how can i check it? |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Feb 07 ] |
A brief test on my CentOS 7 with Oracle 11 XE installed. I login via ssh as zabbix, create semaphore using ipcmk -S ... and logout. Semaphore is removed, I verify it in a parallel ssh session under root. I login as oracle, create semaphore and logout - semaphore stays in place. How does oracle manages it? There must be a system setting for this. Yes, there is! From man logind.conf:
Seems there is nothing to fix in the code. kodai, is there something we can improve in packages? Or is it purely documentation issue then? |
Comment by Roger [ 2017 Feb 07 ] |
On my ubuntu 16.04 I've established the parameter "RemoveIPC=no" on the file /etc/systemd/logind.conf |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Feb 23 ] |
One more case of the same problem. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Feb 23 ] |
Let's document it. |
Comment by dimir [ 2018 Jul 06 ] |
martins-v, I have added recommended solution, as proposed by dotneft. Please review the 4.0 version https://www.zabbix.com/documentation/4.0/manual/appendix/other_issues and if all good copy to 2.2, 3.0 and 3.4 . Thanks! martins-v Done. CLOSED. |
Comment by dimir [ 2018 Jul 16 ] |
Looks great now! |