Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3274

semaphore array related issue with zabbix_proxy and sqlite

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.5
    • None
    • Proxy (P)
    • None

      attempting to start 3 zabbix_proxy processes on same system, all using sqlite db (different ones).

      only one process starts up, two further processes fail. initially they log :

      zabbix_proxy [21420]: php_sem_get: Can not create IPC key for path '/tmp/zabbix_proxy2.db', try to create for path '.' [No such file or directory]
      zabbix_proxy [21420]: php_sem_get: failed acquiring SYSVSEM_SETVAL for key 0x7a010002: Identifier removed
      zabbix_proxy [21420]: php_sem_get: failed for key 0x7a010002: Identifier removed
      zabbix_proxy [21420]: php_sem_get: failed releasing SYSVSEM_SETVAL for key 0x7a010002: Identifier removed
      21420:20101209:135858.405 Cannot open database file "/tmp/zabbix_proxy2.db": No such file or directory
      21420:20101209:135858.405 Creating database ...
      zabbix_proxy [21420]: php_sysvsem_semop: failed to acquire semaphore (id 950277): Identifier removed
      21420:20101209:135858.410 ERROR: Unable to create lock on SQLite database

      killing and attempting to start them again results in :

      22273:20101209:142455.502 Starting Zabbix Proxy. Zabbix 1.8.4rc2 (revision

      {ZABBIX_REVISION}

      ).
      22273:20101209:142455.503 **** Enabled features ****
      22273:20101209:142455.503 SNMP monitoring: YES
      22273:20101209:142455.503 IPMI monitoring: NO
      22273:20101209:142455.503 ODBC: NO
      22273:20101209:142455.503 SSH2 support: NO
      22273:20101209:142455.503 IPv6 support: NO
      22273:20101209:142455.504 **************************
      zabbix_proxy [22273]: php_sem_get: Can not create IPC key for path '/tmp/zabbix_proxy2.db', try to create for path '.' [No such file or directory]

      zabbix_proxy process does not seem to do anything and attaching strace to it it produces :

      semop(983045, {{2, 0, 0},

      {2, 1, SEM_UNDO}

      , {1, 1, SEM_UNDO}}, 3

      stopping all zabbix processes revealed 3 dangling semaphore arrays, belonging to zabbix user. removing all 3 of them with ipcrm allowed all proxy processes to start up successfully

            Unassigned Unassigned
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: