Ad Widget

Collapse

Ошибка после yum update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adm.zabbix69
    Junior Member
    • Oct 2022
    • 14

    #1

    Ошибка после yum update

    Добрый день. Обновил линукс () через yum update. В итоге сервис заббикса не стартует. В логах вот
    Click image for larger version

Name:	image.png
Views:	170
Size:	25.1 KB
ID:	457698
    в журнале вот:
    [root@appliance ~]# tail -n 30 /var/log/zabbix/zabbix_server.log
    1415:20230117:133559.144 using configuration file: /etc/zabbix/zabbix_server.conf
    1415:20230117:133559.274 current database version (mandatory/optional): 06000000/06000010
    1415:20230117:133559.274 required mandatory version: 06000000
    1415:20230117:133559.274 optional patches were found
    1415:20230117:133559.274 starting automatic database upgrade
    1415:20230117:133559.282 [Z3005] query failed: [1419] You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) [create trigger hosts_name_upper_insert
    before insert on hosts for each row
    set new.name_upper=upper(new.name)]
    1415:20230117:133559.282 database upgrade failed
    1420:20230117:133609.508 Starting Zabbix Server. Zabbix 6.0.12 (revision 126aa2f53e9).
    1420:20230117:133609.508 ****** Enabled features ******
    1420:20230117:133609.508 SNMP monitoring: YES
    1420:20230117:133609.508 IPMI monitoring: YES
    1420:20230117:133609.508 Web monitoring: YES
    1420:20230117:133609.508 VMware monitoring: YES
    1420:20230117:133609.508 SMTP authentication: YES
    1420:20230117:133609.508 ODBC: YES
    1420:20230117:133609.508 SSH support: YES
    1420:20230117:133609.508 IPv6 support: YES
    1420:20230117:133609.508 TLS support: YES
    1420:20230117:133609.508 ******************************
    1420:20230117:133609.508 using configuration file: /etc/zabbix/zabbix_server.conf
    1420:20230117:133609.524 current database version (mandatory/optional): 06000000/06000010
    1420:20230117:133609.525 required mandatory version: 06000000
    1420:20230117:133609.525 optional patches were found
    1420:20230117:133609.525 starting automatic database upgrade
    1420:20230117:133609.526 [Z3005] query failed: [1419] You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) [create trigger hosts_name_upper_insert
    before insert on hosts for each row
    set new.name_upper=upper(new.name)]
    1420:20230117:133609.526 database upgrade failed


    Подскажите, как можно решить проблему?​
  • Kos
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2015
    • 3404

    #2
    Как минимум, кому-то помогло выставить в файле my.cnf опцию
    Code:
    log_bin_trust_function_creators = 1
    Но вообще могли бы написать подробнее - не просто "обновил", а:
    • какой дистрибутив, обновил с чего и на что;
    • поменялась ли при этом версия сервера Zabbix;
    • явно указать, какая именно СУБД (и какой версии) использовалась раньше и используется теперь.

    Comment

    • adm.zabbix69
      Junior Member
      • Oct 2022
      • 14

      #3
      помогло вот это https://www.hasanaltin.com/you-do-no...ege-on-zabbix/

      Comment

      • Kos
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Aug 2015
        • 3404

        #4
        О, чё нашёл (ссылка).

        Comment

        • adm.zabbix69
          Junior Member
          • Oct 2022
          • 14

          #5
          Originally posted by Kos
          О, чё нашёл (ссылка).
          натыкался, не помогло

          Comment

          • Kos
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Aug 2015
            • 3404

            #6
            Originally posted by adm.zabbix69
            натыкался, не помогло
            Т.е. выставления на время обновления базы настроек
            Code:
            SET GLOBAL log_bin_trust_function_creators = 1​
            недостаточно, требуется именно "grant all privileges​ ..."?

            Comment

            • adm.zabbix69
              Junior Member
              • Oct 2022
              • 14

              #7
              Originally posted by Kos
              Т.е. выставления на время обновления базы настроек
              Code:
              SET GLOBAL log_bin_trust_function_creators = 1​
              недостаточно, требуется именно "grant all privileges​ ..."?
              да, верно...

              Comment

              Working...