Ad Widget

Collapse

Semaphore problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LoZio
    Junior Member
    • Sep 2008
    • 2

    #1

    Semaphore problems

    Im' running FreeBSD 7 (FreeBSD zabbix 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep 2 19:32:35 UTC 2008 [email protected]:/usr/obj/usr/src/sys/GENERIC i386).

    After upgrading from 1.4 to 1.6 the zabbix_server does not start anymore. Looking around I found this should be the well known "recreate semaphore" problem.


    Message Queues:
    T ID KEY MODE OWNER GROUP

    Shared Memory:
    T ID KEY MODE OWNER GROUP
    m 65536 2052257578 --rw-rw-rw- zabbix zabbix

    Semaphores:
    T ID KEY MODE OWNER GROUP
    s 65536 2052197255 --rw-rw-rw- zabbix zabbix
    s 65537 2052257578 --rw-rw-rw- zabbix zabbix

    I can fix it manually doing ipcrm -s 65536 and 65537 and restarting the server, but it renders the machine unable to boot unassisted...

    Any idea?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Try to remove the shared resources using command 'ipcrm'. The well known problem has been fixed in 1.6, I am pretty sure it will disappear from your system as well.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • LoZio
      Junior Member
      • Sep 2008
      • 2

      #3
      Thanks for the reply.
      I'm *using* 1.6, after upgrading from 1.4.
      Using ipcrm i can have Zabbix start, but after a reboot there's the same problema again.

      Also I noted, but this is a problem related probably to the way FreeBSD processes startup scripts, you need to indicate the dependency from MySQL (this sounds reasonable..).
      Also you need to wait a couple of seconds before trying to start Zabbix (i put a bare "sleep 2s"), since the mysql.sock file seems to be created some instants after the startup of mysqld, and this prevents Zabbix from starting (cant' connect to mysql using /tmp/mysql.sock).
      Hope this can help other FreeBSD users.

      The base problem is that semaphore is still with us, in 1.6.
      Bye

      Comment

      • txalin
        Member
        • Jan 2008
        • 31

        #4
        Hi all,

        I have a zabbix 1.4.6 solution deployed on my company, i encounter for first time this semaphore issue on an aix 5.3, when i try ro execute the zabbix_agentd with a user different to zabbix. I fixed it using ipcrm command, but i have a question.

        If we have to reboot the machine, will the semaphore and shared memory be created for the zabbix user again, even if i have changed the owner of zabbix_agentd and zabbix_agentd.conf?

        Thx for reply

        Comment

        Working...