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

database conversion to master node faild

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.2.1
    • Server (S)
    • None
    • - Ubuntu 12.4 LTS
      - Zabbix 2.2.1 (Ubuntu package)

      Hello,

      we tried to convert the database to a server with NodeID 1 with the command: ./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf
      (the NodeID before was 0). The NodeID in zabbix_server.conf is set to 1 and zabbix-server is stopped.

      In result of the command "./zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf" we got following error message:
      Dropping foreign keys ....................................................................................................................................... done.
      Converting tables ............................................................................................................ done.
      Creating foreign keys .................................................................................................................................zabbix_server [1958]: Error: [Z3005] query failed: [1452] Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`#sql-343_a6`, CONSTRAINT `c_sessions_1` FOREIGN KEY (`userid`) REFERENCES `users` (`userid`) ON DELETE CASCADE) [ALTER TABLE `sessions` ADD CONSTRAINT `c_sessions_1` FOREIGN KEY (`userid`) REFERENCES `users` (`userid`) ON DELETE CASCADE]
      ......Conversion failed.

      How we can fix this issue?

            Unassigned Unassigned
            cochran cochran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: