thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

[BUG]make_packages.sh error #309

Closed qwyinxiang closed 4 years ago

qwyinxiang commented 4 years ago

Describe the bug I clone the latest release of thingsboard-gateway 2.3.0.1 on my centos7.7. and make some changes to the source code. Now I want to generate an rpm package, but when I execute the make_packages.sh file. some errors occurs.

Error traceback (If available):

warning: install_lib: byte-compiling is disabled, skipping.

+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD/thingsboard-gateway-2.3.0.1
find: 'debug': No such file or directory
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile python3 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ cd thingsboard-gateway-2.3.0.1
+ rm -rf /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64
+ exit 0
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ rm -rf thingsboard-gateway-2.3.0.1
+ exit 0
+ umask 022
+ cd /root/rpmbuild/BUILD
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/etc/thingsboard-gateway
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/lib/thingsboard_gateway
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/lib/thingsboard_gateway/extensions
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/log/thingsboard-gateway
+ sudo chown -R thingsboard_gateway:thingsboard_gateway /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/log/thingsboard-gateway
chown: invalid user: 'thingsboard_gateway:thingsboard_gateway'
错误:/var/tmp/rpm-tmp.bbzhb7 (%build) 退出状态不好
    /var/tmp/rpm-tmp.bbzhb7 (%build) 退出状态不好
cp: 无法获取"/home/root/rpmbuild/RPMS/noarch/*.rpm" 的文件状态(stat): 没有那个文件或目录
mv: 无法获取"thingsboard-gateway-2.3.0.1-1.noarch.rpm" 的文件状态(stat): 没有那个文件或目录
chown: 无法访问"*.rpm": 没有那个文件或目录
[root@wlw153 tb-gateway]# clear
[root@wlw153 tb-gateway]# ./make_packages.sh
Building DEB package
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_deb'
cp: 无法创建目录"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway": 没有那个文件或目录
cp: 无法创建目录"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway": 没有那个文件或目录
cp: 无法创建目录"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway": 没有那个文件或目录
chown: 无法访问"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway/": 没有那个文件或目录
chown: 无法访问"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway/var/": 没有那个文件或目录
chmod: 无法访问"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway/DEBIAN/preinst": 没有那个文件或目录
chown: 无法访问"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway/DEBIAN/preinst": 没有那个文件或目录
./make_packages.sh:行56: dpkg-deb: 未找到命令
cp: 无法获取"deb_dist/thingsboard-gateway-2.3.0.1/debian/python3-thingsboard-gateway.deb" 的文件状态(stat): 没有那个文件或目录
cp: 无法获取"python3-thingsboard-gateway.deb" 的文件状态(stat): 没有那个文件或目录
Building RPM package
running bdist_rpm
running egg_info
writing thingsboard_gateway.egg-info/PKG-INFO
writing dependency_links to thingsboard_gateway.egg-info/dependency_links.txt
writing entry points to thingsboard_gateway.egg-info/entry_points.txt
writing requirements to thingsboard_gateway.egg-info/requires.txt
writing top-level names to thingsboard_gateway.egg-info/top_level.txt
reading manifest file 'thingsboard_gateway.egg-info/SOURCES.txt'
writing manifest file 'thingsboard_gateway.egg-info/SOURCES.txt'
writing 'build/bdist.linux-x86_64/rpm/SPECS/thingsboard-gateway.spec'
running sdist
running check
creating thingsboard-gateway-2.3.0.1
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/bacnet
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/ble
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/can
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/modbus
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/mqtt
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/odbc
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/opcua
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/request
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client
creating thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_utility
copying files to thingsboard-gateway-2.3.0.1...
copying README.md -> thingsboard-gateway-2.3.0.1
copying setup.py -> thingsboard-gateway-2.3.0.1
copying thingsboard_gateway/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway
copying thingsboard_gateway/tb_gateway.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway
copying thingsboard_gateway/tests.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway
copying thingsboard_gateway.egg-info/PKG-INFO -> thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
copying thingsboard_gateway.egg-info/SOURCES.txt -> thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
copying thingsboard_gateway.egg-info/dependency_links.txt -> thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
copying thingsboard_gateway.egg-info/entry_points.txt -> thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
copying thingsboard_gateway.egg-info/requires.txt -> thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
copying thingsboard_gateway.egg-info/top_level.txt -> thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info
copying thingsboard_gateway/connectors/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors
copying thingsboard_gateway/connectors/connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors
copying thingsboard_gateway/connectors/converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors
copying thingsboard_gateway/connectors/bacnet/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_downlink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_utilities/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_application.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_device.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying thingsboard_gateway/connectors/ble/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/ble_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/ble_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/bytes_ble_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/can/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/bytes_can_downlink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/bytes_can_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/can_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/can_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/modbus/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/bytes_modbus_downlink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/bytes_modbus_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/modbus_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/modbus_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/mqtt/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/json_mqtt_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/mqtt_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/mqtt_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/odbc/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/odbc_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/odbc_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/odbc_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/opcua/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/opcua_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/opcua_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/opcua_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/request/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/json_request_downlink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/json_request_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/request_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/request_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/request_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request
copying thingsboard_gateway/extensions/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions
copying thingsboard_gateway/extensions/bacnet/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/bacnet
copying thingsboard_gateway/extensions/ble/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/ble
copying thingsboard_gateway/extensions/can/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/can
copying thingsboard_gateway/extensions/modbus/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/modbus
copying thingsboard_gateway/extensions/mqtt/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/mqtt
copying thingsboard_gateway/extensions/mqtt/custom_mqtt_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/mqtt
copying thingsboard_gateway/extensions/odbc/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/odbc
copying thingsboard_gateway/extensions/opcua/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/opcua
copying thingsboard_gateway/extensions/request/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/request
copying thingsboard_gateway/extensions/request/custom_request_uplink_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/request
copying thingsboard_gateway/extensions/serial/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial
copying thingsboard_gateway/extensions/serial/custom_serial_connector.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial
copying thingsboard_gateway/extensions/serial/custom_serial_converter.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial
copying thingsboard_gateway/gateway/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_client.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_gateway_remote_configurator.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_gateway_service.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_logger.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway
copying thingsboard_gateway/storage/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_files.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_reader.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_reader_pointer.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_writer.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/file_event_storage.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/file_event_storage_settings.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/storage/memory_event_storage.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage
copying thingsboard_gateway/tb_client/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client
copying thingsboard_gateway/tb_client/tb_device_mqtt.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client
copying thingsboard_gateway/tb_client/tb_gateway_mqtt.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client
copying thingsboard_gateway/tb_utility/__init__.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_utility
copying thingsboard_gateway/tb_utility/tb_utility.py -> thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_utility
Writing thingsboard-gateway-2.3.0.1/setup.cfg
Creating tar archive
removing 'thingsboard-gateway-2.3.0.1' (and everything under it)
copying dist/thingsboard-gateway-2.3.0.1.tar.gz -> build/bdist.linux-x86_64/rpm/SOURCES
building RPMs
rpmbuild -ba --define __python python3 --define _topdir /opt/tb-gateway/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/thingsboard-gateway.spec
执行(%prep): /bin/sh -e /var/tmp/rpm-tmp.vcQjsO
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ rm -rf thingsboard-gateway-2.3.0.1
+ /usr/bin/gzip -dc /opt/tb-gateway/build/bdist.linux-x86_64/rpm/SOURCES/thingsboard-gateway-2.3.0.1.tar.gz
+ /usr/bin/tar -xvvf -
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities/
-rw-r--r-- root/root       587 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities/__init__.py
-rw-r--r-- root/root     10029 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_application.py
-rw-r--r-- root/root       861 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_device.py
-rw-r--r-- root/root       587 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/__init__.py
-rw-r--r-- root/root     13876 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_connector.py
-rw-r--r-- root/root       826 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_converter.py
-rw-r--r-- root/root       884 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_downlink_converter.py
-rw-r--r-- root/root      2681 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/bacnet/bacnet_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble/__init__.py
-rw-r--r-- root/root     27851 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble/ble_connector.py
-rw-r--r-- root/root       811 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble/ble_uplink_converter.py
-rw-r--r-- root/root      3223 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/ble/bytes_ble_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can/
-rw-r--r-- root/root       615 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can/__init__.py
-rw-r--r-- root/root      2804 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can/bytes_can_downlink_converter.py
-rw-r--r-- root/root      2864 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can/bytes_can_uplink_converter.py
-rw-r--r-- root/root     30288 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can/can_connector.py
-rw-r--r-- root/root       786 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/can/can_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus/__init__.py
-rw-r--r-- root/root      4638 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus/bytes_modbus_downlink_converter.py
-rw-r--r-- root/root      7005 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus/bytes_modbus_uplink_converter.py
-rw-r--r-- root/root     18974 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus/modbus_connector.py
-rw-r--r-- root/root       807 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/modbus/modbus_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt/__init__.py
-rw-r--r-- root/root      4642 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt/json_mqtt_uplink_converter.py
-rw-r--r-- root/root     31228 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt/mqtt_connector.py
-rw-r--r-- root/root       812 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/mqtt/mqtt_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc/
-rw-r--r-- root/root       615 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc/__init__.py
-rw-r--r-- root/root     19639 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc/odbc_connector.py
-rw-r--r-- root/root       786 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc/odbc_converter.py
-rw-r--r-- root/root      1919 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/odbc/odbc_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua/__init__.py
-rw-r--r-- root/root     28199 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua/opcua_connector.py
-rw-r--r-- root/root       806 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua/opcua_converter.py
-rw-r--r-- root/root      2234 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/opcua/opcua_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/
-rw-r--r-- root/root       627 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/__init__.py
-rw-r--r-- root/root      2914 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/json_request_downlink_converter.py
-rw-r--r-- root/root      3127 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/json_request_uplink_converter.py
-rw-r--r-- root/root     12469 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/request_connector.py
-rw-r--r-- root/root       818 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/request_converter.py
-rw-r--r-- root/root       825 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/request/request_uplink_converter.py
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/__init__.py
-rw-r--r-- root/root      1120 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/connector.py
-rw-r--r-- root/root       801 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/connectors/converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/bacnet/
-rw-r--r-- root/root       587 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/bacnet/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/ble/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/ble/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/can/
-rw-r--r-- root/root       615 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/can/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/modbus/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/modbus/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/mqtt/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/mqtt/__init__.py
-rw-r--r-- root/root      2643 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/mqtt/custom_mqtt_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/odbc/
-rw-r--r-- root/root       615 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/odbc/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/opcua/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/opcua/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/request/
-rw-r--r-- root/root       636 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/request/__init__.py
-rw-r--r-- root/root      3695 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/request/custom_request_uplink_converter.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial/
-rw-r--r-- root/root       627 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial/__init__.py
-rw-r--r-- root/root     10516 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial/custom_serial_connector.py
-rw-r--r-- root/root      2430 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/serial/custom_serial_converter.py
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/extensions/__init__.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway/__init__.py
-rw-r--r-- root/root      5368 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway/tb_client.py
-rw-r--r-- root/root     15328 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway/tb_gateway_remote_configurator.py
-rw-r--r-- root/root     32901 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway/tb_gateway_service.py
-rw-r--r-- root/root      3211 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/gateway/tb_logger.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/__init__.py
-rw-r--r-- root/root      1059 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/event_storage.py
-rw-r--r-- root/root       977 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/event_storage_files.py
-rw-r--r-- root/root      9016 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/event_storage_reader.py
-rw-r--r-- root/root      1116 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/event_storage_reader_pointer.py
-rw-r--r-- root/root      4890 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/event_storage_writer.py
-rw-r--r-- root/root      3703 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/file_event_storage.py
-rw-r--r-- root/root      1461 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/file_event_storage_settings.py
-rw-r--r-- root/root      1782 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/storage/memory_event_storage.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client/__init__.py
-rw-r--r-- root/root     16780 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client/tb_device_mqtt.py
-rw-r--r-- root/root      9444 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_client/tb_gateway_mqtt.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_utility/
-rw-r--r-- root/root       617 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_utility/__init__.py
-rw-r--r-- root/root      6645 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_utility/tb_utility.py
-rw-r--r-- root/root       693 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/__init__.py
-rw-r--r-- root/root      1072 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tb_gateway.py
-rw-r--r-- root/root     18292 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/thingsboard_gateway/tests.py
drwxr-xr-x root/root         0 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/
-rw-r--r-- root/root      4820 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/PKG-INFO
-rw-r--r-- root/root      4587 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/SOURCES.txt
-rw-r--r-- root/root         1 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/dependency_links.txt
-rw-r--r-- root/root        79 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/entry_points.txt
-rw-r--r-- root/root       101 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/requires.txt
-rw-r--r-- root/root        20 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/thingsboard_gateway.egg-info/top_level.txt
-rw-r--r-- root/root      3923 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/README.md
-rw-r--r-- root/root      2984 2020-05-18 11:48 thingsboard-gateway-2.3.0.1/setup.py
-rw-r--r-- root/root      4820 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/PKG-INFO
-rw-r--r-- root/root        38 2020-05-18 16:57 thingsboard-gateway-2.3.0.1/setup.cfg
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd thingsboard-gateway-2.3.0.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
执行(%build): /bin/sh -e /var/tmp/rpm-tmp.cnJF0k
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ cd thingsboard-gateway-2.3.0.1
+ python3 setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/thingsboard_gateway
copying thingsboard_gateway/__init__.py -> build/lib/thingsboard_gateway
copying thingsboard_gateway/tb_gateway.py -> build/lib/thingsboard_gateway
copying thingsboard_gateway/tests.py -> build/lib/thingsboard_gateway
creating build/lib/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/__init__.py -> build/lib/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_client.py -> build/lib/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_gateway_remote_configurator.py -> build/lib/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_gateway_service.py -> build/lib/thingsboard_gateway/gateway
copying thingsboard_gateway/gateway/tb_logger.py -> build/lib/thingsboard_gateway/gateway
creating build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/__init__.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_files.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_reader.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_reader_pointer.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/event_storage_writer.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/file_event_storage.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/file_event_storage_settings.py -> build/lib/thingsboard_gateway/storage
copying thingsboard_gateway/storage/memory_event_storage.py -> build/lib/thingsboard_gateway/storage
creating build/lib/thingsboard_gateway/tb_client
copying thingsboard_gateway/tb_client/__init__.py -> build/lib/thingsboard_gateway/tb_client
copying thingsboard_gateway/tb_client/tb_device_mqtt.py -> build/lib/thingsboard_gateway/tb_client
copying thingsboard_gateway/tb_client/tb_gateway_mqtt.py -> build/lib/thingsboard_gateway/tb_client
creating build/lib/thingsboard_gateway/connectors
copying thingsboard_gateway/connectors/__init__.py -> build/lib/thingsboard_gateway/connectors
copying thingsboard_gateway/connectors/connector.py -> build/lib/thingsboard_gateway/connectors
copying thingsboard_gateway/connectors/converter.py -> build/lib/thingsboard_gateway/connectors
creating build/lib/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/__init__.py -> build/lib/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/ble_connector.py -> build/lib/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/ble_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/ble
copying thingsboard_gateway/connectors/ble/bytes_ble_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/ble
creating build/lib/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/__init__.py -> build/lib/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/json_mqtt_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/mqtt_connector.py -> build/lib/thingsboard_gateway/connectors/mqtt
copying thingsboard_gateway/connectors/mqtt/mqtt_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/mqtt
creating build/lib/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/__init__.py -> build/lib/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/opcua_connector.py -> build/lib/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/opcua_converter.py -> build/lib/thingsboard_gateway/connectors/opcua
copying thingsboard_gateway/connectors/opcua/opcua_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/opcua
creating build/lib/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/__init__.py -> build/lib/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/json_request_downlink_converter.py -> build/lib/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/json_request_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/request_connector.py -> build/lib/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/request_converter.py -> build/lib/thingsboard_gateway/connectors/request
copying thingsboard_gateway/connectors/request/request_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/request
creating build/lib/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/__init__.py -> build/lib/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/bytes_modbus_downlink_converter.py -> build/lib/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/bytes_modbus_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/modbus_connector.py -> build/lib/thingsboard_gateway/connectors/modbus
copying thingsboard_gateway/connectors/modbus/modbus_converter.py -> build/lib/thingsboard_gateway/connectors/modbus
creating build/lib/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/__init__.py -> build/lib/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/bytes_can_downlink_converter.py -> build/lib/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/bytes_can_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/can_connector.py -> build/lib/thingsboard_gateway/connectors/can
copying thingsboard_gateway/connectors/can/can_converter.py -> build/lib/thingsboard_gateway/connectors/can
creating build/lib/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/__init__.py -> build/lib/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_connector.py -> build/lib/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_converter.py -> build/lib/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_downlink_converter.py -> build/lib/thingsboard_gateway/connectors/bacnet
copying thingsboard_gateway/connectors/bacnet/bacnet_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/bacnet
creating build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying thingsboard_gateway/connectors/bacnet/bacnet_utilities/__init__.py -> build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_application.py -> build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_device.py -> build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities
creating build/lib/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/__init__.py -> build/lib/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/odbc_connector.py -> build/lib/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/odbc_converter.py -> build/lib/thingsboard_gateway/connectors/odbc
copying thingsboard_gateway/connectors/odbc/odbc_uplink_converter.py -> build/lib/thingsboard_gateway/connectors/odbc
creating build/lib/thingsboard_gateway/tb_utility
copying thingsboard_gateway/tb_utility/__init__.py -> build/lib/thingsboard_gateway/tb_utility
copying thingsboard_gateway/tb_utility/tb_utility.py -> build/lib/thingsboard_gateway/tb_utility
creating build/lib/thingsboard_gateway/extensions
copying thingsboard_gateway/extensions/__init__.py -> build/lib/thingsboard_gateway/extensions
creating build/lib/thingsboard_gateway/extensions/mqtt
copying thingsboard_gateway/extensions/mqtt/__init__.py -> build/lib/thingsboard_gateway/extensions/mqtt
copying thingsboard_gateway/extensions/mqtt/custom_mqtt_uplink_converter.py -> build/lib/thingsboard_gateway/extensions/mqtt
creating build/lib/thingsboard_gateway/extensions/modbus
copying thingsboard_gateway/extensions/modbus/__init__.py -> build/lib/thingsboard_gateway/extensions/modbus
creating build/lib/thingsboard_gateway/extensions/opcua
copying thingsboard_gateway/extensions/opcua/__init__.py -> build/lib/thingsboard_gateway/extensions/opcua
creating build/lib/thingsboard_gateway/extensions/ble
copying thingsboard_gateway/extensions/ble/__init__.py -> build/lib/thingsboard_gateway/extensions/ble
creating build/lib/thingsboard_gateway/extensions/serial
copying thingsboard_gateway/extensions/serial/__init__.py -> build/lib/thingsboard_gateway/extensions/serial
copying thingsboard_gateway/extensions/serial/custom_serial_connector.py -> build/lib/thingsboard_gateway/extensions/serial
copying thingsboard_gateway/extensions/serial/custom_serial_converter.py -> build/lib/thingsboard_gateway/extensions/serial
creating build/lib/thingsboard_gateway/extensions/request
copying thingsboard_gateway/extensions/request/__init__.py -> build/lib/thingsboard_gateway/extensions/request
copying thingsboard_gateway/extensions/request/custom_request_uplink_converter.py -> build/lib/thingsboard_gateway/extensions/request
creating build/lib/thingsboard_gateway/extensions/can
copying thingsboard_gateway/extensions/can/__init__.py -> build/lib/thingsboard_gateway/extensions/can
creating build/lib/thingsboard_gateway/extensions/bacnet
copying thingsboard_gateway/extensions/bacnet/__init__.py -> build/lib/thingsboard_gateway/extensions/bacnet
creating build/lib/thingsboard_gateway/extensions/odbc
copying thingsboard_gateway/extensions/odbc/__init__.py -> build/lib/thingsboard_gateway/extensions/odbc
running egg_info
writing thingsboard_gateway.egg-info/PKG-INFO
writing dependency_links to thingsboard_gateway.egg-info/dependency_links.txt
writing entry points to thingsboard_gateway.egg-info/entry_points.txt
writing requirements to thingsboard_gateway.egg-info/requires.txt
writing top-level names to thingsboard_gateway.egg-info/top_level.txt
reading manifest file 'thingsboard_gateway.egg-info/SOURCES.txt'
writing manifest file 'thingsboard_gateway.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

+ exit 0
执行(%install): /bin/sh -e /var/tmp/rpm-tmp.hk1bRS
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ '[' /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64 '!=' / ']'
+ rm -rf /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64
++ dirname /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64
+ mkdir -p /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT
+ mkdir /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64
+ cd thingsboard-gateway-2.3.0.1
+ python3 setup.py install --single-version-externally-managed -O1 --root=/opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64 --record=INSTALLED_FILES
running install
running build
running build_py
running egg_info
writing thingsboard_gateway.egg-info/PKG-INFO
writing dependency_links to thingsboard_gateway.egg-info/dependency_links.txt
writing entry points to thingsboard_gateway.egg-info/entry_points.txt
writing requirements to thingsboard_gateway.egg-info/requires.txt
writing top-level names to thingsboard_gateway.egg-info/top_level.txt
reading manifest file 'thingsboard_gateway.egg-info/SOURCES.txt'
writing manifest file 'thingsboard_gateway.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

running install_lib
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway
copying build/lib/thingsboard_gateway/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway
copying build/lib/thingsboard_gateway/tb_gateway.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway
copying build/lib/thingsboard_gateway/tests.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/gateway
copying build/lib/thingsboard_gateway/gateway/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/gateway
copying build/lib/thingsboard_gateway/gateway/tb_client.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/gateway
copying build/lib/thingsboard_gateway/gateway/tb_gateway_remote_configurator.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/gateway
copying build/lib/thingsboard_gateway/gateway/tb_gateway_service.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/gateway
copying build/lib/thingsboard_gateway/gateway/tb_logger.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/gateway
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/event_storage.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/event_storage_files.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/event_storage_reader.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/event_storage_reader_pointer.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/event_storage_writer.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/file_event_storage.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/file_event_storage_settings.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
copying build/lib/thingsboard_gateway/storage/memory_event_storage.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/storage
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_client
copying build/lib/thingsboard_gateway/tb_client/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_client
copying build/lib/thingsboard_gateway/tb_client/tb_device_mqtt.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_client
copying build/lib/thingsboard_gateway/tb_client/tb_gateway_mqtt.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_client
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors
copying build/lib/thingsboard_gateway/connectors/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors
copying build/lib/thingsboard_gateway/connectors/connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors
copying build/lib/thingsboard_gateway/connectors/converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/ble
copying build/lib/thingsboard_gateway/connectors/ble/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/ble
copying build/lib/thingsboard_gateway/connectors/ble/ble_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/ble
copying build/lib/thingsboard_gateway/connectors/ble/ble_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/ble
copying build/lib/thingsboard_gateway/connectors/ble/bytes_ble_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/ble
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt
copying build/lib/thingsboard_gateway/connectors/mqtt/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt
copying build/lib/thingsboard_gateway/connectors/mqtt/json_mqtt_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt
copying build/lib/thingsboard_gateway/connectors/mqtt/mqtt_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt
copying build/lib/thingsboard_gateway/connectors/mqtt/mqtt_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/mqtt
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/opcua
copying build/lib/thingsboard_gateway/connectors/opcua/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/opcua
copying build/lib/thingsboard_gateway/connectors/opcua/opcua_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/opcua
copying build/lib/thingsboard_gateway/connectors/opcua/opcua_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/opcua
copying build/lib/thingsboard_gateway/connectors/opcua/opcua_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/opcua
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
copying build/lib/thingsboard_gateway/connectors/request/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
copying build/lib/thingsboard_gateway/connectors/request/json_request_downlink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
copying build/lib/thingsboard_gateway/connectors/request/json_request_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
copying build/lib/thingsboard_gateway/connectors/request/request_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
copying build/lib/thingsboard_gateway/connectors/request/request_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
copying build/lib/thingsboard_gateway/connectors/request/request_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/request
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/modbus
copying build/lib/thingsboard_gateway/connectors/modbus/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/modbus
copying build/lib/thingsboard_gateway/connectors/modbus/bytes_modbus_downlink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/modbus
copying build/lib/thingsboard_gateway/connectors/modbus/bytes_modbus_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/modbus
copying build/lib/thingsboard_gateway/connectors/modbus/modbus_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/modbus
copying build/lib/thingsboard_gateway/connectors/modbus/modbus_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/modbus
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/can
copying build/lib/thingsboard_gateway/connectors/can/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/can
copying build/lib/thingsboard_gateway/connectors/can/bytes_can_downlink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/can
copying build/lib/thingsboard_gateway/connectors/can/bytes_can_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/can
copying build/lib/thingsboard_gateway/connectors/can/can_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/can
copying build/lib/thingsboard_gateway/connectors/can/can_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/can
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet
copying build/lib/thingsboard_gateway/connectors/bacnet/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_downlink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_application.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet/bacnet_utilities
copying build/lib/thingsboard_gateway/connectors/bacnet/bacnet_utilities/tb_gateway_bacnet_device.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/bacnet/bacnet_utilities
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/odbc
copying build/lib/thingsboard_gateway/connectors/odbc/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/odbc
copying build/lib/thingsboard_gateway/connectors/odbc/odbc_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/odbc
copying build/lib/thingsboard_gateway/connectors/odbc/odbc_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/odbc
copying build/lib/thingsboard_gateway/connectors/odbc/odbc_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/connectors/odbc
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_utility
copying build/lib/thingsboard_gateway/tb_utility/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_utility
copying build/lib/thingsboard_gateway/tb_utility/tb_utility.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/tb_utility
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions
copying build/lib/thingsboard_gateway/extensions/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt
copying build/lib/thingsboard_gateway/extensions/mqtt/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt
copying build/lib/thingsboard_gateway/extensions/mqtt/custom_mqtt_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/mqtt
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/modbus
copying build/lib/thingsboard_gateway/extensions/modbus/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/modbus
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/opcua
copying build/lib/thingsboard_gateway/extensions/opcua/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/opcua
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/ble
copying build/lib/thingsboard_gateway/extensions/ble/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/ble
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/serial
copying build/lib/thingsboard_gateway/extensions/serial/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/serial
copying build/lib/thingsboard_gateway/extensions/serial/custom_serial_connector.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/serial
copying build/lib/thingsboard_gateway/extensions/serial/custom_serial_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/serial
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/request
copying build/lib/thingsboard_gateway/extensions/request/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/request
copying build/lib/thingsboard_gateway/extensions/request/custom_request_uplink_converter.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/request
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/can
copying build/lib/thingsboard_gateway/extensions/can/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/can
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/bacnet
copying build/lib/thingsboard_gateway/extensions/bacnet/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/bacnet
creating /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/odbc
copying build/lib/thingsboard_gateway/extensions/odbc/__init__.py -> /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway/extensions/odbc
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
Copying thingsboard_gateway.egg-info to /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway-2.3.0.1-py3.6.egg-info
running install_scripts
Installing thingsboard-gateway script to /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/bin
writing list of installed files to 'INSTALLED_FILES'
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD/thingsboard-gateway-2.3.0.1
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
find: 'debug': No such file or directory
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile python3 1
Bytecompiling .py files below /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6 using /usr/bin/python3.6
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
处理文件:thingsboard-gateway-2.3.0.1-1.noarch
Provides: thingsboard-gateway = 2.3.0.1-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/python3 python(abi) = 3.6
检查未打包文件:/usr/lib/rpm/check-files /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64
写道:/opt/tb-gateway/build/bdist.linux-x86_64/rpm/SRPMS/thingsboard-gateway-2.3.0.1-1.src.rpm
写道:/opt/tb-gateway/build/bdist.linux-x86_64/rpm/RPMS/noarch/thingsboard-gateway-2.3.0.1-1.noarch.rpm
执行(%clean): /bin/sh -e /var/tmp/rpm-tmp.9TpTBj
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ cd thingsboard-gateway-2.3.0.1
+ rm -rf /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64
+ exit 0
执行(--clean): /bin/sh -e /var/tmp/rpm-tmp.A8HX77
+ umask 022
+ cd /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILD
+ rm -rf thingsboard-gateway-2.3.0.1
+ exit 0
moving build/bdist.linux-x86_64/rpm/SRPMS/thingsboard-gateway-2.3.0.1-1.src.rpm -> dist
moving build/bdist.linux-x86_64/rpm/RPMS/noarch/thingsboard-gateway-2.3.0.1-1.noarch.rpm -> dist
config/ble.json
config/can.json
config/custom_serial.json
config/logs.conf
config/modbus.json
config/modbus_serial.json
config/mqtt.json
config/odbc.json
config/opcua.json
config/request.json
config/tb_gateway.yaml
extensions/bacnet/
extensions/bacnet/__init__.py
extensions/ble/
extensions/ble/__init__.py
extensions/can/
extensions/can/__init__.py
extensions/__init__.py
extensions/modbus/
extensions/modbus/__init__.py
extensions/mqtt/
extensions/mqtt/__init__.py
extensions/mqtt/custom_mqtt_uplink_converter.py
extensions/odbc/
extensions/odbc/__init__.py
extensions/opcua/
extensions/opcua/__init__.py
extensions/request/
extensions/request/__init__.py
extensions/request/custom_request_uplink_converter.py
extensions/serial/
extensions/serial/__init__.py
extensions/serial/custom_serial_connector.py
extensions/serial/custom_serial_converter.py
extensions/tcp/
extensions/tcp/__init__.py
extensions/tcp/audible_converter.py
extensions/tcp/audible_rpc_invoke.py
extensions/tcp/custom_tcp_connector.py
extensions/tcp/custom_tcp_converter.py
extensions/tcp/rpc_tcp_factory.py
extensions/tcp/rpcinvoke.py
extensions/tcpserver/
extensions/tcpserver/__init__.py
extensions/tcpserver/tcpserver_connector.py
extensions/tcpserver/tcpserver_converter.py
执行(%build): /bin/sh -e /var/tmp/rpm-tmp.bwMznU
+ umask 022
+ cd /root/rpmbuild/BUILD
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/etc/thingsboard-gateway
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/lib/thingsboard_gateway
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/lib/thingsboard_gateway/extensions
+ sudo mkdir -p /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/log/thingsboard-gateway
+ sudo chown -R thingsboard_gateway:thingsboard_gateway /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/log/thingsboard-gateway
chown: invalid user: 'thingsboard_gateway:thingsboard_gateway'
错误:/var/tmp/rpm-tmp.bwMznU (%build) 退出状态不好

RPM 构建错误:
    /var/tmp/rpm-tmp.bwMznU (%build) 退出状态不好
cp: 无法获取"/home/root/rpmbuild/RPMS/noarch/*.rpm" 的文件状态(stat): 没有那个文件或目录
mv: 无法获取"thingsboard-gateway-2.3.0.1-1.noarch.rpm" 的文件状态(stat): 没有那个文件或目录
chown: 无法访问"*.rpm": 没有那个文件或目录

Versions (please complete the following information):

imbeacon commented 4 years ago

Hi @qwyinxiang

Thank you, for your feedback. This issue caused by not existing user (thingsboard_gateway), to create it, you can use following commands:

sudo mkdir -p $RPM_BUILD_ROOT/var/lib/thingsboard_gateway || echo "ThingsBoard user home directory already exists"

/usr/bin/getent passwd thingsboard_gateway || /usr/sbin/useradd -c "ThingsBoard-Gateway Service" -r -U -d /var/lib/thingsboard_gateway thingsboard_gateway && passwd -d thingsboard_gateway

/usr/bin/chown thingsboard_gateway:thingsboard_gateway $RPM_BUILD_ROOT/var/lib/thingsboard_gateway -R

oliver225 commented 4 years ago

the RPM_BUILD_ROOT is what path

imbeacon commented 4 years ago

@oliver225

Usually, it is a rpmbuild folder in user home directory.

imbeacon commented 4 years ago

@oliver225

No, you have to run this script, only if the thingsboard_gateway user is existed. The simplest way to run it correctly - install the version from deb/rpm package and create your own package after installation. Installation from deb/rpm will create required user and folders.

qwyinxiang commented 4 years ago

@zbeacon ,The following is the commands I executed : I logged in my CentOS system as ROOT user, so I make a directory in /home directory use mkdir -p /home/root/rpmbuild Then I executed the following commands: mkdir -p /home/root/rpmbuild/var/lib/thingsboard_gateway || echo "thingsboard user home directory already exists" /usr/bin/getent passwd thingsboard_gateway || /usr/sbin/useradd -c "ThingsBoard-Gateway Service" -r -U -d /var/lib/thingsboard_gateway thingsboard_gateway && passwd -d thingsboard_gateway /usr/bin/chown thingsboard_gateway:thingsboard_gateway /home/root/rpmbuild/var/lib/thingsboard_gateway -R

Then, I execute the make_packages.sh. The following errors occurs.

running install_egg_info Copying thingsboard_gateway.egg-info to /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/lib/python3.6/site-packages/thingsboard_gateway-2.3.0.1-py3.6.egg-info running install_scripts Installing thingsboard-gateway script to /opt/tb-gateway/build/bdist.linux-x86_64/rpm/BUILDROOT/thingsboard-gateway-2.3.0.1-1.x86_64/usr/bin writing list of installed files to 'INSTALLED_FILES'

RPM 构建错误: /var/tmp/rpm-tmp.vfz8Bw (%build) 退出状态不好 cp: 无法获取"/home/root/rpmbuild/RPMS/noarch/.rpm" 的文件状态(stat): 没有那个文件或目录 mv: 无法获取"thingsboard-gateway-2.3.0.1-1.noarch.rpm" 的文件状态(stat): 没有那个文件或目录 chown: 无法访问".rpm": 没有那个文件或目录

imbeacon commented 4 years ago

@qwyinxiang

It looks like by some reasons the script didn't execute command cp for_build/etc/systemd/system/thingsboard-gateway.service /home/root/rpmbuild/SOURCES/ correctly. Please check - is file thingsboard-gateway.service exist in the folder /home/root/rpmbuild/SOURCES/ ?

qwyinxiang commented 4 years ago

yes, The thingsboard-gateway.service exist. image [root@wlw153 tb-gateway]# cd /home/root/rpmbuild/ [root@wlw153 rpmbuild]# ls BUILD BUILDROOT RPMS SOURCES SPECS SRPMS var [root@wlw153 rpmbuild]# cd S SOURCES/ SPECS/ SRPMS/
[root@wlw153 rpmbuild]# cd SOURCES/ [root@wlw153 SOURCES]# ls configs.tar.gz thingsboard-gateway-2.3.0.1.tar.gz thingsboard-gateway.service [root@wlw153 SOURCES]#

imbeacon commented 4 years ago

The issue in the script - If you use root user to build a package, you need to replace "/home/$CURRENT_USER/..." to "/root/...".

qwyinxiang commented 4 years ago

I replaced "/home/$CURRENT_USER/" to "/root/", and my make_packages.sh file looks like below: image

Then, I execute the following commands: sudo mkdir -p /root/rpmbuild/var/lib/thingsboard_gateway || echo "ThingsBoard user home directory already exists" /usr/bin/getent passwd thingsboard_gateway || /usr/sbin/useradd -c "ThingsBoard-Gateway Service" -r -U -d /var/lib/thingsboard_gateway thingsboard_gateway && passwd -d thingsboard_gateway /usr/bin/chown thingsboard_gateway:thingsboard_gateway /root/rpmbuild/var/lib/thingsboard_gateway -R Then I execute the make_packages.sh. The following error occurs:

RPM 构建错误: 没有找到文件:/root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/etc/systemd/system/thingsboard-gateway.service 没有找到目录:/root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/etc/thingsboard-gateway 没有找到目录:/root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/log/thingsboard-gateway 没有找到目录:/root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/var/lib/thingsboard_gateway 没有找到文件:/root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/usr/local/lib/python3.8 没有找到文件:/root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/usr/local/bin/thingsboard-gateway cp: 无法获取"/root/rpmbuild/RPMS/noarch/.rpm" 的文件状态(stat): 没有那个文件或目录 mv: 无法获取"thingsboard-gateway-2.3.0.1-1.noarch.rpm" 的文件状态(stat): 没有那个文件或目录 chown: 无法访问".rpm": 没有那个文件或目录 [root@wlw153 tb-gateway]# cd /root/rpmbuild/BUILDROOT/thingsboard-gateway-2.3.0-1.x86_64/ [root@wlw153 thingsboard-gateway-2.3.0-1.x86_64]# ls [root@wlw153 thingsboard-gateway-2.3.0-1.x86_64]# [root@wlw153 thingsboard-gateway-2.3.0-1.x86_64]# [root@wlw153 thingsboard-gateway-2.3.0-1.x86_64]# [root@wlw153 thingsboard-gateway-2.3.0-1.x86_64]# [root@wlw153 thingsboard-gateway-2.3.0-1.x86_64]#

luoyuanbin1991 commented 4 years ago

me,too.So how to solve it?

imbeacon commented 4 years ago

Hi everybody,

To solve this issue, before generation the package you have to has installed all required dependencies on your system, even the yours version of the gateway. Only after all dependencies will be installed in the system, you will be able to generate rpm package.