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

child processes ignore main process for termination when they cannot rotate export file

XMLWordPrintable

    • Sprint 57 (Oct 2019), Sprint 58 (Nov 2019), Sprint 59 (Dec 2019)
    • 4

      I have one history syncer and it cannot rotate export history file, because folder permission decreased by admin (write perm is lost).

      I try to terminate zabbix_server normally (SIGTERM to main process), but the child history syncer does not exit on parent's request:

       19672:20191015:222556.503 cannot rename export file '/tmp/22/history-history-syncer-1.ndjson': [13] Permission denied: retrying in 10 seconds
      ... repeated many times ....
       19666:20191015:223234.329 Got signal [signal:15(SIGTERM),sender_pid:10497,sender_uid:0,reason:0]. Exiting ...
       19672:20191015:223236.514 cannot rename export file '/tmp/22/history-history-syncer-1.ndjson': [13] Permission denied: retrying in 10 seconds
       19672:20191015:223246.515 cannot rename export file '/tmp/22/history-history-syncer-1.ndjson': [13] Permission denied: retrying in 10 seconds
       19672:20191015:223256.515 cannot rename export file '/tmp/22/history-history-syncer-1.ndjson': [13] Permission denied: retrying in 10 seconds
       19672:20191015:223306.515 cannot rename export file '/tmp/22/history-history-syncer-1.ndjson': [13] Permission denied: retrying in 10 seconds
       19672:20191015:223316.516 cannot rename export file '/tmp/22/history-history-syncer-1.ndjson': [13] Permission denied: retrying in 10 seconds
       19672:20191015:223326.517 End of DCexport_history_and_trends()
       19672:20191015:223326.517 In zbx_export_events() events:0
       19672:20191015:223326.517 End of zbx_export_events()
       19672:20191015:223326.517 zbx_setproctitle() title:'history syncer #1 [processed 2 values, 1 triggers in 450.016295 sec, idle 1 sec]'
       19672:20191015:223326.518 syncing history data in progress...
       19666:20191015:223326.541 syncing history data...
       19666:20191015:223326.590 syncing history data... 100.000000%
       19666:20191015:223326.590 syncing history data done
       19666:20191015:223326.590 syncing trend data...
       19666:20191015:223326.590 exporting trend data...
       19666:20191015:223326.592 exporting trend data done
       19666:20191015:223326.595 syncing trend data done
       19666:20191015:223326.595 Zabbix Server stopped. Zabbix 4.4.0 (revision cfac660b25).
      

      The child exited only when I fixed permissions on /tmp/22/ folder that it finally could rotate the export file.

      Interesting that in finally rotated file server wrote only one value - dated "2019-10-15 22:25:55". This time stamp is ~ when server started to attempt to rotate the export file.

      In the log output the syncer was in Debug level.

            mabele Martins Abele
            zalex_ua Oleksii Zagorskyi
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: