Ad Widget

Collapse

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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woger
    Member
    • Sep 2005
    • 56

    #31
    I have the same problem on Freebsd 5.5 with zabbix_agentd. I installed the one from ports and get this in my logs (DebugLevel=4):
    zabbix_agentd [61790]: Warning: ZABBIX semaphores already exist, trying to recreate.
    61790:20080212:132219 zabbix_agentd started. ZABBIX 1.4.4.

    70590:20080212:133455 zabbix_agentd started. ZABBIX 1.4.1.
    70901:20080212:133555 zabbix_agentd started. ZABBIX 1.4.1.
    70948:20080212:133611 zabbix_agentd started. ZABBIX 1.4.1.
    As you can see I compiled 1.4.1 agents to check if these are working but they just disappear.
    I now use 1.1beta2 again.

    Roger

    Comment

    • mikecrowe
      Member
      • Dec 2007
      • 34

      #32
      For me, I used the old init.d script, which seemed to run zabbix-server as root. It appeared to create the semaphores then bomb.

      So, I updated the init.d script with '--chuid zabbix' and started again, and then got this error.

      To remove the semaphores, I executed (as root):
      Code:
      ipcrm -m 0x7a0104cc
      ipcrm -S 0x7a0104cc
      (though it could have been a -M, not sure looking at my history).

      Hopefully, this will help somebody else.

      Mike

      Comment

      • bbrendon
        Senior Member
        • Sep 2005
        • 870

        #33
        i just tried the 1.5 beta release and am having semaphore issues. Whats the magic bullet for this?
        Unofficial Zabbix Expert
        Blog, Corporate Site

        Comment

        • maruscya
          Senior Member
          Zabbix Certified Specialist
          • Jul 2007
          • 129

          #34
          I have installed now Zabbix 1.5 on gentoo

          Same problem...

          UPDATE: Fixed ! add --chuid to /etc/init.d/zabibx_server
          Last edited by maruscya; 13-03-2008, 17:45.

          Comment

          • cbidwell
            Senior Member
            • Aug 2006
            • 127

            #35
            Originally posted by maruscya
            I have installed now Zabbix 1.5 on gentoo

            Same problem...

            UPDATE: Fixed ! add --chuid to /etc/init.d/zabibx_server

            Where does this get added in zabbix_server? Under the command that runs it? $BASEDIR/bin/zabbix_server --chuid?

            Comment

            • maruscya
              Senior Member
              Zabbix Certified Specialist
              • Jul 2007
              • 129

              #36
              Originally posted by cbidwell
              Where does this get added in zabbix_server? Under the command that runs it? $BASEDIR/bin/zabbix_server --chuid?
              I have added to /etc/init.d/zabbix-server

              Comment

              • toteleiche
                Junior Member
                • Mar 2008
                • 9

                #37
                I had the same problem.

                I accidentally ran "zabbix_server" as "root", there were no processes created but somehow I couldn't run it as "zabbix" user again and it exited with the semaphor error message. So I rebooted the server and it worked instantly...

                My installation:
                CentOS 5.1 x86_64
                2.6.18-53.1.14.el5
                Zabbix 1.5 Beta (Downloaded: 18.03.08)

                Comment

                • Anti_virus
                  Junior Member
                  • Jul 2007
                  • 7

                  #38
                  zabbix_server.1.5 [1364]: ERROR: Can't recreate ZABBIX semaphores for IPC key 0x7a062c12 Semaphore ID 524294. Operation not permitted.

                  One of decisions. A script

                  #/bin/sh
                  ipcrm -m 0x7a062c12
                  ipcrm -S 0x7a062c12
                  /patch/to/zabbixbin/zabbix_server.1.5
                  ipcrm -m 0x7a062c12
                  ipcrm -S 0x7a062c12

                  It work!


                  If reboot then Semaphor key: 0x7a062c12 don't work.

                  Comment

                  • topkoa
                    Member
                    • Oct 2007
                    • 47

                    #39
                    ERROR: Can't recreate shared memory for database cache.

                    Anyone got a solution for this?

                    I am testing this on my dev box, and I can't seem to get passed this.

                    Any Help?

                    Here is the exact error:

                    Code:
                    ERROR: Can't recreate shared memory for database cache. [too many attempts]
                    I'm using build: 1.5 Beta Build 5512

                    Thanks!

                    Comment

                    • maruscya
                      Senior Member
                      Zabbix Certified Specialist
                      • Jul 2007
                      • 129

                      #40
                      Code:
                      ERROR: Can't recreate shared memory for database cache. [too many attempts]
                      After reboot, i try run zabbix with a normal user.... and problem seems fixed

                      Good Luck !

                      Comment

                      • cstackpole
                        Senior Member
                        Zabbix Certified Specialist
                        • Oct 2006
                        • 225

                        #41
                        Just wanted to chime in.
                        Using Debian Lenny (testing) installed and fully updated on March 25, 2008 installing Zabbix pre 1.5 (beta) build 5514 also taken on March 25, 2008.

                        I too had this problem. Using the solution to add --chuid to /etc/init.d/zabibx_server mentioned earlier worked. I then had the same error as maruscya. I did the same thing he did (reboot) and it worked!

                        Everything appears to be working thus far.

                        Since this thread is kind of old (well it has been going for a couple of months at least) I just wanted to let the developers know that it looks like the problem still exists. If any of the developers need more information from me, please let me know. I would be glad to help out anyway I can.

                        Comment

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

                          #42
                          We are aware of this problem. I hope it will be fixed before 1.5.1.
                          Alexei Vladishev
                          Creator of Zabbix, Product manager
                          New York | Tokyo | Riga
                          My Twitter

                          Comment

                          • surftimer
                            Junior Member
                            • Apr 2007
                            • 9

                            #43
                            Centos 5.1 same problem

                            Originally posted by Palmertree
                            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]
                            Has anyone a fix for Centos 5.1 ?

                            thank you

                            Comment

                            • gazzerh
                              Member
                              • Jun 2006
                              • 36

                              #44
                              Under Centos5.1 I ran as root:

                              su - zabbix -c "/etc/init.d/zabbix_server start"

                              Comment

                              • surftimer
                                Junior Member
                                • Apr 2007
                                • 9

                                #45
                                Thank you for your answer , well when I try it , I get this Error :

                                /usr/sbin/zabbix_server [3025]: ERROR: Can't recreate shared memory for database cache. [too many attempts]
                                /etc/init.d/zabbix start: zabbix_server could not be started


                                Zabbix source downloaded and compiled today :

                                /usr/sbin/zabbix_server -V
                                ZABBIX Server (daemon) v1.5 (12 March 2008)
                                Compilation time: Mar 30 2008 13:19:59

                                My System : on CentOS release 5 (Final)

                                Comment

                                Working...