edgex-modbus无法启动
(1)报错信息:level=ERROR ts=2021-06-02T08:00:25.787456359Z app=edgex-device-modbus source=config.go:135 msg="could not get configuration from Configuration provider: 1 error(s) decoding:\n\n* cannot parse 'Logging.EnableRemote' as bool: strconv.ParseBool: parsing \"123\": invalid syntax"
问题原因是,在127.0.0.1:8500/ui 中 将Key/Values/edgex/devices/1.0/edgex-device-modbus/Logging中将EnableRemote的值做了修改!!!! 修改回**false**即可。
(2)报错信息:edgex-device-modbus | level=WARN ts=2020-10-31T08:24:43.942224395Z app=edgex-device-modbus source=registry.go:139 msg="registry is not available"
问题原因是,在docker-compose.yml文件中,device-modbus配置环境需要依赖一系列的环境。
# all common shared environment variables defined here:x-common-env-variables: &common-variables EDGEX_SECURITY_SECRET_STORE: "false" Registry_Host: edgex-core-consul Clients_CoreData_Host: edgex-core-data Clients_Data_Host: edgex-core-data # For device Services Clients_Notifications_Host: edgex-support-notifications Clients_Metadata_Host: edgex-core-metadata Clients_Command_Host: edgex-core-command Clients_Scheduler_Host: edgex-support-scheduler Clients_RulesEngine_Host: edgex-kuiper Clients_VirtualDevice_Host: edgex-device-virtual Databases_Primary_Host: edgex-redis # Required in case old configuration from previous release used. # Change to "true" if re-enabling logging service for remote logging Logging_EnableRemote: "false" # Clients_Logging_Host: edgex-support-logging # un-comment if re-enabling logging service for remote loggingdevice-modbus: image: edgexfoundry/docker-device-modbus-go:1.3.0 ports: - 49991:49991 container_name: edgex-device-modbus hostname: edgex-device-modbus networks: edgex-network: {} environment: <<: *common-variables Service_Host: edgex-device-modbus depends_on: - data - command
央视天气网