-
Problem report
-
Resolution: Fixed
-
Major
-
5.0.5rc1, 5.0.5
-
Debian Buster 10.6
OpenJDK 11.0.9 2020-10-20
Using officiel Debian packages
Zabbix Server 5.0.5
Zabbix Agent 5.0.5
-
Sprint 69 (Oct 2020), Sprint 70 (Nov 2020)
-
0.5
Steps to reproduce:
- Upgrade java_gateway to v5.0.5 using official packages
Result:
# apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: {{ zabbix-java-gateway}} 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/840 kB of archives. After this operation, 31.7 kB disk space will be freed. Do you want to continue? [Y/n] Reading changelogs... Done (Reading database ... 71982 files and directories currently installed.) Preparing to unpack .../zabbix-java-gateway_1%3a5.0.5-1+buster_all.deb ... Unpacking zabbix-java-gateway (1:5.0.5-1+buster) over (1:5.0.4-1+buster) ... Setting up zabbix-java-gateway (1:5.0.5-1+buster) ... [zabbix-java-gateway.conf:1] Line references path below legacy directory /var/run/, updating /var/run/zabbix → /run/zabbix; please update the tmpfiles.d/ drop-in file accordingly. Job for zabbix-java-gateway.service failed because the control process exited with error code. See "systemctl status zabbix-java-gateway.service" and "journalctl -xe" for details. invoke-rc.d: initscript zabbix-java-gateway, action "restart" failed. ● zabbix-java-gateway.service - Zabbix Java Gateway {{ Loaded: loaded (/lib/systemd/system/zabbix-java-gateway.service; enabled; vendor preset: enabled)}} {{ Active: failed (Result: exit-code) since Tue 2020-10-27 08:32:48 CET; 8ms ago}} {{ Process: 101831 ExecStart=/usr/sbin/zabbix_java_gateway (code=exited, status=1/FAILURE)}}Oct 27 08:32:48 frscydgbbzbx01 systemd[1]: Starting Zabbix Java Gateway... Oct 27 08:32:48 frscydgbbzbx01 zabbix_java_gateway[101831]: Error: Could not find or load main class com.zabbix.gateway.JavaGateway Oct 27 08:32:48 frscydgbbzbx01 zabbix_java_gateway[101831]: Caused by: java.lang.ClassNotFoundException: com.zabbix.gateway.JavaGateway Oct 27 08:32:48 frscydgbbzbx01 zabbix_java_gateway[101831]: Zabbix Java Gateway did not start Oct 27 08:32:48 frscydgbbzbx01 systemd[1]: zabbix-java-gateway.service: Control process exited, code=exited, status=1/FAILURE Oct 27 08:32:48 frscydgbbzbx01 systemd[1]: zabbix-java-gateway.service: Failed with result 'exit-code'. Oct 27 08:32:48 frscydgbbzbx01 systemd[1]: Failed to start Zabbix Java Gateway. dpkg: error processing package zabbix-java-gateway (--configure): {{ installed zabbix-java-gateway package post-installation script subprocess returned error exit status 1}} Processing triggers for systemd (241-7~deb10u4) ... Errors were encountered while processing: {{ zabbix-java-gateway}} E: Sub-process /usr/bin/dpkg returned an error code (1)
Expected:
Java gateway process should be running
It seeme the jar file for Zabbix Java gateway is missing from deb package (comparing files from 5.0.4 and 5.0.5) :
dpkg -c zabbix-java-gateway_5.0.4-1+buster_all.deb | grep '/usr/share/zabbix-java-gateway'
drwxr-xr-x root/root 0 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/
drwxr-xr-x root/root 0 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/bin/
rw-rr- root/root 33005 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/bin/zabbix-java-gateway-5.0.4.jar
drwxr-xr-x root/root 0 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/lib/
rw-rr- root/root 665 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/lib/README
rw-rr- root/root 17677 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/lib/android-json-4.3_r3.1.jar
rw-rr- root/root 243745 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/lib/logback-classic-0.9.27.jar
rw-rr- root/root 309017 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/lib/logback-core-0.9.27.jar
rw-rr- root/root 25491 2020-09-28 09:00 ./usr/share/zabbix-java-gateway/lib/slf4j-api-1.6.1.jar
# dpkg -c zabbix-java-gateway_5.0.5-1+buster_all.deb | grep '/usr/share/zabbix-java-gateway'
drwxr-xr-x root/root 0 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/
drwxr-xr-x root/root 0 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/bin/
drwxr-xr-x root/root 0 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/lib/
rw-rr- root/root 665 2020-05-10 19:36 ./usr/share/zabbix-java-gateway/lib/README
rw-rr- root/root 17677 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/lib/android-json-4.3_r3.1.jar
rw-rr- root/root 243745 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/lib/logback-classic-0.9.27.jar
rw-rr- root/root 309017 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/lib/logback-core-0.9.27.jar
rw-rr- root/root 25491 2020-10-26 09:00 ./usr/share/zabbix-java-gateway/lib/slf4j-api-1.6.1.jar
- is duplicated by
-
ZBX-18560 zabbix-java-gateway not work after upgrade 1:5.0.4-1 -> 1:5.0.5-1
- Closed