[ZBX-17907] Error Installing Zabbix on Red Hat Openshift 4.4 Created: 2020 Jun 13  Updated: 2020 Sep 25  Resolved: 2020 Sep 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.4.8
Fix Version/s: 5.0.3, 5.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Alessandro Silva Assignee: Renats Valiahmetovs (Inactive)
Resolution: Fixed Votes: 0
Labels: cloud, installation, openshift
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
  • AWS
  • Openshift 4.4.6
  • Openshift Container Storage 4.4 to provide persitence for Zabbix Database
  • Zabbix Operator for Openshift

Attachments: PNG File Captura de tela de 2020-06-12 19-40-25.png     PNG File Captura de tela de 2020-06-12 19-40-35.png     PNG File Captura de tela de 2020-06-12 19-40-49.png     PNG File Captura de tela de 2020-06-12 19-40-58.png     PNG File Captura de tela de 2020-06-12 19-41-36.png     PNG File Captura de tela de 2020-06-12 19-41-45.png     PNG File Captura de tela de 2020-06-12 19-41-59.png     PNG File Captura de tela de 2020-06-12 19-42-05.png     PNG File Screenshot_2020-06-23 Kubernetes installation Dashboard.png     PNG File route-frontend.png     File zabbix-appliance-appliance-59dc6c5858-lvxkn-zabbixappliance.log     File zabbix-full-db-59dfddbc7-89bgs-zabbixdb-1.log     File zabbix-full-db-59dfddbc7-89bgs-zabbixdb.log     File zabbix-full-server-7889f764d6-ljwzp-zabbix-server-1.log     File zabbix-full-server-7889f764d6-ljwzp-zabbix-server.log     File zabbix-operator-certified-5898d64d5d-8szj7-ansible.log     File zabbix_DB_queries.log     File zabbix_server_POD.log    

 Description   

Steps to reproduce:

Once Zabbix is certified in the Red Hat Ecossystem, I'm trying to install on Openshift 4.4.6 using the Operator provided from Zabbix SIA.

  1. Create a secret and Volumeclaim
  2. Install Zabbix from Operator Hub
  3. Create ZabbixFull

 

Result:

  1. Zabbix server POD is not running:

 

Logs from Zabbix Server POD

7:20200612:222712.924 Starting Zabbix Server. Zabbix 4.4.8 (revision 3d7663f).
7:20200612:222712.924 ****** Enabled features ******
7:20200612:222712.924 SNMP monitoring: YES
7:20200612:222712.924 IPMI monitoring: NO
7:20200612:222712.924 Web monitoring: YES
7:20200612:222712.924 VMware monitoring: YES
7:20200612:222712.924 SMTP authentication: YES
7:20200612:222712.924 ODBC: YES
7:20200612:222712.924 SSH support: YES
7:20200612:222712.924 IPv6 support: YES
7:20200612:222712.924 TLS support: YES
7:20200612:222712.924 ******************************
7:20200612:222712.924 using configuration file: /etc/zabbix/zabbix_server.conf
7:20200612:222712.930 cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?)

 

Logs from Database POD:

2020-06-12 22:13:17 0 [Note] InnoDB: 10.3.17 started; log sequence number 6170053; transaction id 5347
2020-06-12 22:13:17 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/data/ib_buffer_pool
2020-06-12 22:13:18 0 [Note] InnoDB: Buffer pool(s) load completed at 200612 22:13:18
2020-06-12 22:13:18 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-06-12 22:13:18 0 [Note] Server socket created on IP: '::'.
2020-06-12 22:13:18 0 [Warning] 'user' entry 'root@zabbix-full-db-66489c67ff-qxrq2' ignored in --skip-name-resolve mode.
2020-06-12 22:13:18 0 [Warning] 'user' entry '@zabbix-full-db-66489c67ff-qxrq2' ignored in --skip-name-resolve mode.
2020-06-12 22:13:18 0 [Warning] 'proxies_priv' entry '@% root@zabbix-full-db-66489c67ff-qxrq2' ignored in --skip-name-resolve mode.
2020-06-12 22:13:18 0 [Note] Reading of all Master_info entries succeeded
2020-06-12 22:13:18 0 [Note] Added new Master_info '' to hash table
2020-06-12 22:13:18 0 [Note] /usr/libexec/mysqld: ready for connections.
Version: '10.3.17-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server

 

Screenshot are attached!



 Comments   
Comment by Alexey Pustovalov [ 2020 Jun 13 ]

Hello!

Please attach full logs from Zabbix server pod (Logs tab).

Comment by Alessandro Silva [ 2020 Jun 15 ]

zabbix_server_POD.log

Comment by Alessandro Silva [ 2020 Jun 15 ]

zabbix-operator-certified-5898d64d5d-8szj7-ansible.log

Comment by Alessandro Silva [ 2020 Jun 15 ]

I try another strategy (Zabbix Appliance) and works. I understand the problem is with Zabbix full strategy.

Comment by Alexey Pustovalov [ 2020 Jun 17 ]

It looks like you used claim volume with already existing DB, probably from previous tests:

** Creating 'zabbix' user in MySQL database
** Database 'zabbix' already exists. Please be careful with database COLLATE!
** Table 'zabbix.dbversion' already exists.
** Preparing Zabbix server configuration file

Could you try completely new volume claim and check log file again?

Comment by Alessandro Silva [ 2020 Jun 22 ]

I built a new environment from scratch and the same issue persists.
Again, If I build an Appliance strategy, everything works as expected.
Do you have a specific guide/reproducer for this Zabbix full strategy ? I would be more than happy to test and provide a feedback to you.

Comment by Alexey Pustovalov [ 2020 Jun 23 ]

It must be simple, no any additional prerequisites! Terrible sorry for such issue! We will check it and solve as soon as possible!

Comment by Alessandro Silva [ 2020 Jun 23 ]

I'm just adding some information to show this is working on the Appliance strategy.
zabbix-appliance-appliance-59dc6c5858-lvxkn-zabbixappliance.log

Comment by Alexey Pustovalov [ 2020 Jun 23 ]

According log file appliance looks correct. Do you have any issues with Appliance as well?

Comment by Alessandro Silva [ 2020 Jun 24 ]

How I said before, Appliance strategy is working as expected. My problem is just with Zabbix Full strategy.

Comment by Alessandro Silva [ 2020 Jul 02 ]

Just to set up my expectation: Have you ever a chance to take a look on that? Do you have an ETA ?

Comment by Alexey Pustovalov [ 2020 Jul 02 ]

Hello Alessandro, I hope this or next week maximum!

It would be great if you can attach MySQL database log file from Zabbix Full strategy after scratch install to empty volume claim.

Comment by Alexey Pustovalov [ 2020 Jul 25 ]

Hello Alessandro!

I'm terrible sorry for a delay with response. I can not reproduce the problem. I followed the next procedure:
1. Created secrets:

kind: Secret
apiVersion: v1
metadata:
  name: zabbix-full-secrets
data:
  mysql_root_password: emFiYml4X3N1cGVyX3Jvb3Q=
  mysql_zabbix_password: emFiYml4X3VzZXJfcGFzc3dvcmQ=
  mysql_zabbix_username: emFiYml4
type: Opaque

2. Volume claim:

% kubectl get pvc                     
NAME           STATUS   VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
mysql-zabbix   Bound    pv0007   100Gi      RWO,ROX,RWX                   9m
% kubectl get pv | grep pv0007
pv0007   100Gi      RWO,ROX,RWX    Recycle          Bound       zabbix/mysql-zabbix                                                           13d

3. Zabbix Full:

spec:
  java_gateway_size: 1
  server_env:
    general:
      zabbix_mysql_volumeclaim: mysql-zabbix
      zabbix_mysqlsecret: zabbix-full-secrets
    java_gateway:
      debug_level: info
      start_pollers: 5
      timeout: 3
    server:
      start_discoverers: 1
      trend_cache_size: 4M
      start_trappers: 5
      timeout: 4
      log_slow_queries: 0
      cache_update_frequency: 60
      start_java_pollers: 5
      start_alerters: 3
      start_db_syncers: 4
      start_preprocessors: 3
      start_ipmi_pollers: 0
      history_cache_size: 16M
      start_pollers: 5
      start_timers: 1
      unreachable_period: 45
      value_cache_size: 8M
      start_http_pollers: 1
      proxy_config_frequency: 3600
      vmware_frequency: 60
      vmware_perf_frequency: 60
      trapper_timeout: 300
      max_housekeeper_delete: 5000
      unavailable_delay: 60
      history_index_cache_size: 4M
      vmware_timeout: 10
      vmaware_cache_size: 8M
      start_pingers: 1
      unreachable_delay: 15
      proxy_data_frequency: 1
      debug_level: 3
      start_proxy_pollers: 0
      start_escalators: 1
      housekeeping_frequency: 1
      cache_size: 8M
      start_pollers_unreachable: 1
    web:
      max_execution_time: 300
      max_input_time: 300
      memory_limit: 128M
      post_max_size: 16M
      server_name: Kubernetes installation
      session_name: zbx_sessionid
      timezone: Europe/Riga
      upload_max_filesize: 2M
  version: latest
  web_size: 2

Finally everything is working fine:

% kubectl get pods
NAME                                         READY   STATUS    RESTARTS   AGE
zabbix-full-db-6b8756c6f9-8snnd              1/1     Running   0          9m46s
zabbix-full-java-gw-0                        1/1     Running   0          9m36s
zabbix-full-server-58d65fcf67-9kds7          1/1     Running   0          9m42s
zabbix-full-web-0                            1/1     Running   0          9m29s
zabbix-full-web-1                            1/1     Running   0          8m1s
zabbix-operator-certified-6779868fdf-wchf8   2/2     Running   0          14m

Zabbix server pod:

% kubectl logs zabbix-full-server-58d65fcf67-9kds7 | head -n 120
** Preparing Zabbix server
** Using MYSQL_USER variable from ENV
** Using MYSQL_PASSWORD variable from ENV
** Using MYSQL_ROOT_PASSWORD variable from ENV
********************
* DB_SERVER_HOST: zabbix-full-mysql
* DB_SERVER_PORT: 3306
* DB_SERVER_DBNAME: zabbix
********************
** Creating 'zabbix' user in MySQL database
** Database 'zabbix' does not exist. Creating...
** Creating 'zabbix' schema in MySQL
** Preparing Zabbix server configuration file
** Updating '/etc/zabbix/zabbix_server.conf' parameter "ListenPort": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SourceIP": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogType": 'console'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogFileSize": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "PidFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DebugLevel": '3'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBHost": 'zabbix-full-mysql'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBName": 'zabbix'... updated
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBSchema": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBUser": 'zabbix'... updated
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBPort": '3306'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBPassword": 'zabbix_user_password'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageURL": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageTypes": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageDateIndex": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBSocket": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StatsAllowedIP": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPollers": '5'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartIPMIPollers": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPollersUnreachable": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTrappers": '5'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPingers": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartDiscoverers": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartHTTPPollers": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPreprocessors": '3'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTimers": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartEscalators": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartAlerters": '3'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTimers": '1'... updated
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartEscalators": '1'... updated
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartLLDProcessors": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "JavaGateway": 'zabbix-full-java-gw-zabbix'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "JavaGatewayPort": '10052'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartJavaPollers": '5'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartVMwareCollectors": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareFrequency": '60'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwarePerfFrequency": '60'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareCacheSize": '8M'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareTimeout": '10'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SNMPTrapperFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartSNMPTrapper": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "HousekeepingFrequency": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "MaxHousekeeperDelete": '5000'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SenderFrequency": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "CacheSize": '8M'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "CacheUpdateFrequency": '60'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartDBSyncers": '4'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryCacheSize": '16M'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryIndexCacheSize": '4M'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "TrendCacheSize": '4M'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "ValueCacheSize": '8M'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "Timeout": '4'... updated
** Updating '/etc/zabbix/zabbix_server.conf' parameter "TrapperTimeout": '300'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnreachablePeriod": '45'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnavailableDelay": '60'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnreachableDelay": '15'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "AlertScriptsPath": '/usr/lib/zabbix/alertscripts'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "ExternalScripts": '/usr/lib/zabbix/externalscripts'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "FpingLocation": '/usr/sbin/fping'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "Fping6Location": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSHKeyLocation": '/var/lib/zabbix/ssh_keys'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogSlowQueries": '0'... updated
** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartProxyPollers": '0'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "ProxyConfigFrequency": '3600'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "ProxyDataFrequency": '1'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLCertLocation": '/var/lib/zabbix/ssl/certs/'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLKeyLocation": '/var/lib/zabbix/ssl/keys/'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLCALocation": '/var/lib/zabbix/ssl/ssl_ca/'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "LoadModulePath": '/var/lib/zabbix/modules/'... added
** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCAFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCRLFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCertFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSKeyFile": ''... removed
** Updating '/etc/zabbix/zabbix_server.conf' parameter "User": '1000580000'... added
Starting Zabbix Server. Zabbix 4.4.8 (revision 3d7663f).
Press Ctrl+C to exit.

     9:20200725:150302.488 Starting Zabbix Server. Zabbix 4.4.8 (revision 3d7663f).
     9:20200725:150302.489 ****** Enabled features ******
     9:20200725:150302.489 SNMP monitoring:           YES
     9:20200725:150302.489 IPMI monitoring:            NO
     9:20200725:150302.489 Web monitoring:            YES
     9:20200725:150302.489 VMware monitoring:         YES
     9:20200725:150302.489 SMTP authentication:       YES
     9:20200725:150302.489 ODBC:                      YES
     9:20200725:150302.489 SSH support:               YES
     9:20200725:150302.489 IPv6 support:              YES
     9:20200725:150302.489 TLS support:               YES
     9:20200725:150302.489 ******************************
     9:20200725:150302.489 using configuration file: /etc/zabbix/zabbix_server.conf
     9:20200725:150302.516 current database version (mandatory/optional): 04040000/04040002
     9:20200725:150302.516 required mandatory version: 04040000
Comment by Alessandro Silva [ 2020 Jul 30 ]

Still not working, but let's move one step back. My environment is AWS + Openshift 4.4 + Openshift Container Storage (4.4) for storage backend (RBD).

Again, I'm doing the same steps to Zabbix Appliance and is working as expected. Maybe, OCS is not supported as storage backend?

I see the installer is not creating Zabbix Database:

 Welcome to the MariaDB monitor. Commands end with ; or \g.
 Your MariaDB connection id is 754
 Server version: 10.3.17-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases; 
 +--------------------+
|Database|

+--------------------+
|information_schema|
|test|

+--------------------+
 2 rows in set (0.000 sec)MariaDB [(none)]> 

My Pods:

 NAME READY STATUS RESTARTS AGE
 zabbix-full-db-85c5f6fb69-s24pt 1/1 Running 0 84s
 zabbix-full-java-gw-0 1/1 Running 0 77s
 zabbix-full-server-5d89b585-v9qkf 0/1 CrashLoopBackOff 2 81s
 zabbix-full-web-0 1/1 Running 0 74s
 zabbix-full-web-1 1/1 Running 0 47s
 zabbix-operator-certified-6549c99b5f-46f25 2/2 Running 0 24m}}
{{[user@localhost src]# oc logs zabbix-full-server-5d89b585-v9qkf
 * 
 ** Preparing Zabbix server
 ** Using MYSQL_USER variable from ENV
 ** Using MYSQL_PASSWORD variable from ENV
 ** Using MYSQL_ROOT_PASSWORD variable from ENV
 ********************
 * DB_SERVER_HOST: zabbix-full-mysql
 * DB_SERVER_PORT: 3306
 * DB_SERVER_DBNAME: zabbix
 ********************
 ** Creating 'zabbix' user in MySQL database
 ** Database 'zabbix' already exists. Please be careful with database COLLATE!
 ** Table 'zabbix.dbversion' already exists.
 ** Preparing Zabbix server configuration file
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ListenPort": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SourceIP": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogType": 'console'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogFileSize": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "PidFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DebugLevel": '3'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBHost": 'zabbix-full-mysql'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBName": 'zabbix'... updated
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBSchema": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBUser": 'zabbix'... updated
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBPort": '3306'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBPassword": 'zabbix_user_password'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageURL": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageTypes": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageDateIndex": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBSocket": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StatsAllowedIP": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPollers": '5'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartIPMIPollers": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPollersUnreachable": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTrappers": '5'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPingers": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartDiscoverers": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartHTTPPollers": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPreprocessors": '3'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTimers": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartEscalators": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartAlerters": '3'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTimers": '1'... updated
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartEscalators": '1'... updated
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartLLDProcessors": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "JavaGateway": 'zabbix-full-java-gw-zabbix'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "JavaGatewayPort": '10052'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartJavaPollers": '5'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartVMwareCollectors": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareFrequency": '60'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwarePerfFrequency": '60'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareCacheSize": '8M'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareTimeout": '10'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SNMPTrapperFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartSNMPTrapper": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HousekeepingFrequency": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "MaxHousekeeperDelete": '5000'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SenderFrequency": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "CacheSize": '8M'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "CacheUpdateFrequency": '60'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartDBSyncers": '4'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryCacheSize": '16M'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryIndexCacheSize": '4M'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TrendCacheSize": '4M'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ValueCacheSize": '8M'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "Timeout": '4'... updated
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TrapperTimeout": '300'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnreachablePeriod": '45'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnavailableDelay": '60'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnreachableDelay": '15'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "AlertScriptsPath": '/usr/lib/zabbix/alertscripts'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ExternalScripts": '/usr/lib/zabbix/externalscripts'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "FpingLocation": '/usr/sbin/fping'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "Fping6Location": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSHKeyLocation": '/var/lib/zabbix/ssh_keys'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogSlowQueries": '0'... updated
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartProxyPollers": '0'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ProxyConfigFrequency": '3600'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ProxyDataFrequency": '1'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLCertLocation": '/var/lib/zabbix/ssl/certs/'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLKeyLocation": '/var/lib/zabbix/ssl/keys/'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLCALocation": '/var/lib/zabbix/ssl/ssl_ca/'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LoadModulePath": '/var/lib/zabbix/modules/'... added
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCAFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCRLFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCertFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSKeyFile": ''... removed
 ** Updating '/etc/zabbix/zabbix_server.conf' parameter "User": 'zabbix'... added
 Starting Zabbix Server. Zabbix 4.4.8 (revision 3d7663f).
 Press Ctrl+C to exit.

8:20200730:203831.658 Starting Zabbix Server. Zabbix 4.4.8 (revision 3d7663f).
 8:20200730:203831.658 ****** Enabled features ******
 8:20200730:203831.658 SNMP monitoring: YES
 8:20200730:203831.658 IPMI monitoring: NO
 8:20200730:203831.658 Web monitoring: YES
 8:20200730:203831.658 VMware monitoring: YES
 8:20200730:203831.658 SMTP authentication: YES
 8:20200730:203831.658 ODBC: YES
 8:20200730:203831.658 SSH support: YES
 8:20200730:203831.658 IPv6 support: YES
 8:20200730:203831.658 TLS support: YES
 8:20200730:203831.658 ******************************
 8:20200730:203831.658 using configuration file: /etc/zabbix/zabbix_server.conf
 8:20200730:203831.669 cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?)}}
Comment by Alexey Pustovalov [ 2020 Jul 31 ]

According the output the DB schema and tables already exist:

 ** Creating 'zabbix' user in MySQL database
 ** Database 'zabbix' already exists. Please be careful with database COLLATE!
 ** Table 'zabbix.dbversion' already exists.

If OCS is transparent for MySQL server, I do not see any problems with the storage.

Is it possible to pass DEBUG_MODE="true" env variable to Zabbix server container and then attach extended log?

Comment by Alessandro Silva [ 2020 Jul 31 ]

My hundred installation from scratch is showing the same result.
The reproducer in debug mode is available here: https://paste.centos.org/view/52f83a1d

Sorry, but I'd like to know:

1. What is the storage used by you ?
2. Are you using Vanilla Kubernetes or Openshift in your reproducer ?

Comment by Alexey Pustovalov [ 2020 Aug 01 ]

I tried to use Openshift of course

I'm thinkg in you case some issue with InnoDB storage engine. So could you pass DEBUG_MODE="true" env variable to Zabbix server pod and show us logs? Also I see Zabbix frontend is running, are you able to use it?

Comment by Renats Valiahmetovs (Inactive) [ 2020 Sep 07 ]

We have noticed that this issue has not been updated for a long time. May we assume that this case is resolved? If it is not and requires additional work, please comment on the ticket and we will respond accordingly. Alternatively, we're going to change the state of the issue to Resolved in 14 days if we don't hear back from you.

Comment by Alessandro Silva [ 2020 Sep 08 ]

Issue was not solved. Unfortunately, I'm not able to reproduce the issue again cause I don't have the same env anymore. I will do it soon.

Comment by Alessandro Silva [ 2020 Sep 21 ]

zabbix_DB_queries.log

Comment by Alessandro Silva [ 2020 Sep 21 ]

zabbix-full-server-7889f764d6-ljwzp-zabbix-server.log

Comment by Alessandro Silva [ 2020 Sep 21 ]

zabbix-full-db-59dfddbc7-89bgs-zabbixdb.log

Comment by Alessandro Silva [ 2020 Sep 21 ]

I added zabbix server POD log on debug mode and more logs about DB that I think you should consider.

The route for the service is configured and after try to access ZBX frontend I'm facing an issue.

My current status still the same:

# oc get pods --namespace zabbix

NAME READY STATUS RESTARTS AGE
zabbix-full-db-59dfddbc7-89bgs 1/1 Running 0 3h
zabbix-full-java-gw-0 1/1 Running 0 3h
zabbix-full-server-7889f764d6-ljwzp 0/1 CrashLoopBackOff 32 145m
zabbix-full-server-c5cb6c65f-chmfp 0/1 CrashLoopBackOff 33 148m
zabbix-full-web-0 1/1 Running 0 3h
zabbix-full-web-1 1/1 Running 0 179m
zabbix-operator-certified-5f8d8d7f79-2b78h 2/2 Running 0 17h

Comment by Alexey Pustovalov [ 2020 Sep 21 ]

Hello!

We found the issue, the operator will be updated during this week. Currently I can recommend you provide more resources to Zabbix Full.

Kind regards,
Alexey.

Comment by Alessandro Silva [ 2020 Sep 21 ]

That's definitely a good news! What do you mean about more resources? Please, could you elaborate more ?

I know you are moving to update the operator this week, but I would like to still working on it to understand.

Thanks!

Comment by Alexey Pustovalov [ 2020 Sep 22 ]

We have fixed the issue and upgraded operator to 5.0. Please try new version!

Comment by Alessandro Silva [ 2020 Sep 24 ]

I have upgraded the Operator as your sugestion, re-deployed Zabbix Full and worked as expected, but just to confirm that we don't have a bug anymore, I did:

  1. Delete zabbix-full cluster, volumes and secret
  2. Delete Zabbix Operator
  3. Installed Zabbix Operator LTS from scratch
  4. Create a new secret and volume claim
  5. Deploy Zabbix Full again

I tried this many times and unfortunately is not working. The issue is the same of the beginning.

Do you have any specific suggestion about parameters to deploy Zabbix full strategy to avoid these issues?

You have mention something about resources but this is not clear for me.

Thanks!

 

Comment by Alessandro Silva [ 2020 Sep 24 ]

Now, I tested again and works. I really do not know why because the procedure is the same. Maybe this could be related to the resources or my cluster.

POD events is showing:
Startup probe failed: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 
So, I understand this could be an intermittent issue.

Comment by Alexey Pustovalov [ 2020 Sep 25 ]

Yes, it is related to node resources + previously was incorrect specification to use only livenessProbe. Currently added as well:

       startupProbe:
        tcpSocket:
          port: 10051
        initialDelaySeconds: 15
        timeoutSeconds: 3
        periodSeconds: 5
        successThreshold: 1
        failureThreshold: 40

Which can help with initial DB schema creation.

Can we consider the issue resolved?

PS: If you have 5.0.3 version, it is completely new operator with included bug fix

Generated at Mon Apr 28 11:08:41 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.