Ad Widget

Collapse

Zabbix Pre 1.5 Build 4666: Can't recreate ZABBIX semaph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix Pre 1.5 Build 4666: Can't recreate ZABBIX semaph

    I get the following error under Fedora 7 when trying to execute zabbix_server (Version Pre 1.5 Build 4666)
    /zabbix_server [2464]: ERROR: Can't recreate ZABBIX semaphores. [too many attempts]
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi,

    the same bug hit me on FreeBSD 6.2
    I got rid of it by manually removing the left-over semaphores.

    Check the command "ipcs -a" for sempahoreId in use by the zabbix user
    and the do a "ipcrm -s semaphoreId"

    HTH,

    Norbert

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      I just tried build 4870 without success...
      Code:
      /usr/sbin/zabbix_server [13435]: DEBUG: Wait 1 sec for next attemtion of ZABBIX semaphores creation.
      /usr/sbin/zabbix_server [13435]: DEBUG: ZABBIX semaphores already exists, trying to recreate.
      /usr/sbin/zabbix_server [13435]: ERROR: Can't recreate ZABBIX semaphores. [too many attempts]
      No luck here. Nothing owned by zabbix when doing ipcs -a

      Linux server 2.6.22-2-amd64 #1 SMP Thu Sep 20 07:59:57 UTC 2007 x86_64 GNU/Linux

      .....
      Wait. I reverted back to 1.4.2 and it won't start either! Ahh! Same error.

      I'm not very familiar with semaphores.
      Code:
      # ipcs -a
      
      ------ Shared Memory Segments --------
      key        shmid      owner      perms      bytes      nattch     status      
      0x63063c78 294912     root      666        32560024   0                       
      0x790611a7 32769      asterisk  666        808        0                       
      0x00000000 65538      root      700        16777216   1          dest         
      0x00000000 98307      root      700        16777216   1          dest         
      0x50bdf811 131076     root      666        516        0                       
      
      ------ Semaphore Arrays --------
      key        semid      owner      perms      nsems     
      0x7a063c78 524288     root      666        2         
      
      ------ Message Queues --------
      key        msqid      owner      perms      used-bytes   messages    
      0x00007873 131072     root       666        0            0           
      
      #
      Well, I don't see a solution. I doubled all the values in /proc/sys/kernel/sem and still nothing. Could some of those root sephaphores be for zabbix?

      I don't know what else to do other than reboot!
      Last edited by bbrendon; 13-10-2007, 23:56.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        Still getting this error on 1.5 build 4940 (latest). OpenSuSE 10.2

        Anyone else found a work around?
        RHCE, author of zbxapi
        Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
        Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #5
          Nope. But thanks for posting and saving me the time of trying. I'd like to upgrade and get a bunch of patches, but this a major show stopper for me.
          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

          • nelsonab
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2006
            • 1233

            #6
            Ya I've noticed a few show stopppers with 1.5. First the sql file, now this. Alexi any word on when the sql file will be integrated and the ticket can be closed, and when this may be fixed so we can test?
            RHCE, author of zbxapi
            Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
            Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

            Comment

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

              #7
              It is fixed. Feel free to download and preview the latest code.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • nelsonab
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2006
                • 1233

                #8
                FANTASTIC!!!!!

                I shall get to this evening. Thanks!
                RHCE, author of zbxapi
                Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
                Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

                Comment

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

                  #9
                  Well, I meant the SQL problem. I have no idea about the semaphore problem yet...
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • nelsonab
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Sep 2006
                    • 1233

                    #10


                    Ya I got the email you closed the ticket this morning.
                    RHCE, author of zbxapi
                    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
                    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

                    Comment

                    • bbrendon
                      Senior Member
                      • Sep 2005
                      • 870

                      #11
                      Originally posted by Alexei
                      Well, I meant the SQL problem. I have no idea about the semaphore problem yet...
                      Damn. You got me all excited!
                      Unofficial Zabbix Expert
                      Blog, Corporate Site

                      Comment

                      • Palmertree
                        Senior Member
                        • Sep 2005
                        • 746

                        #12
                        Got 1.5 to work....

                        I got 1.5 to run and got rid of the semaphores errors.

                        For Fedora 7 ( may work for othe OS versions), the following lines should be appended to the "/etc/sysctl.conf" file.

                        kernel.shmall = 2097152
                        kernel.shmmax = 2147483648
                        kernel.shmmni = 4096
                        # semaphores: semmsl, semmns, semopm, semmni
                        kernel.sem = 250 32000 100 128
                        net.ipv4.ip_local_port_range = 1024 65000
                        net.core.rmem_default=4194304
                        net.core.rmem_max=4194304
                        net.core.wmem_default=262144
                        net.core.wmem_max=262144

                        Restart

                        Comment

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

                          #13
                          I do not think we have any problems with semaphore creation code in ZABBIX. I added more detailed debug information in case of any semaphore related errors to the latest code.
                          Alexei Vladishev
                          Creator of Zabbix, Product manager
                          New York | Tokyo | Riga
                          My Twitter

                          Comment

                          • 753713
                            Senior Member
                            • Apr 2006
                            • 137

                            #14
                            Hello,

                            i have installed a new Ubuntu 6.06 LTS VM Server for new tests with latest Zabbix 1.5 (from 19.11) and I have also this error:
                            Warning: ZABBIX semaphores already exist, trying to recreate.

                            I cannot start Zabbix Server.

                            root@zabbix:/home/zabbix/bin# ipcs -a

                            ------ Shared Memory Segments --------
                            key shmid owner perms bytes nattch status
                            0x7a01353b 0 zabbix 666 1099804 6
                            0x6301353c 196609 root 666 32120012 0

                            ------ Semaphore Arrays --------
                            key semid owner perms nsems
                            0x7a01353c 229376 root 666 3
                            0x00000000 65538 www-data 600 1

                            ------ Message Queues --------
                            key msqid owner perms used-bytes messages

                            root@zabbix:/home/zabbix/bin# /etc/init.d/zabbix-server start
                            Starting Zabbix server daemon: zabbix_server
                            /home/zabbix/bin/zabbix_server [4262]: Warning: ZABBIX semaphores already exist, trying to recreate.


                            Ideas for my problem???

                            Christian
                            Last edited by 753713; 19-11-2007, 22:00.
                            ______________________________
                            Version : 2.0.x
                            Server OS: Ubuntu 12.04
                            Zabbix Servers: 12
                            Monitored Windows Server: ~ 1000
                            ______________________________

                            Comment

                            • Palmertree
                              Senior Member
                              • Sep 2005
                              • 746

                              #15
                              What does ipcs -l show?

                              Comment

                              Working...