An error occurs in the MQTT client app. The following is the Output.log file. 05.06.19 16:13:38.667 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase WARN - Nothing to subscribe for ID 2! Please and some variables… 05.06.19 16:13:38.669 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase WARN - Nothing to subscribe for ID 2! Please and some variables… 05.06.19 16:13:38.671 Arp.Services.Ehmi.EhmiComponent INFO - 3055505472 EhmiComponent: LoadConfig 05.06.19 16:13:38.671 Arp.Services.Ehmi.EhmiComponent INFO - 3055505472 EhmiComponent: SetupConfig 05.06.19 16:13:38.928 Arp.Services.ProfiCloud.Internal.ProficloudTSDAdapter INFO - Could not read GDS metrics file /opt/plcnext/projects/ProfiCloud/metrics.json. 05.06.19 16:13:38.952 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration from file: /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json 05.06.19 16:13:38.961 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration schema. 05.06.19 16:13:38.972 PxceTcs.Mqtt.GdsConnectorComponent INFO - Configuration is valid. 05.06.19 16:13:38.975 PxceTcs.Mqtt.GdsConnectorComponent INFO - No status port has been specified. 05.06.19 16:13:38.976 PxceTcs.Mqtt.GdsConnectorComponent INFO - No reconnect port has been specified. 05.06.19 16:13:38.984 PxceTcs.Mqtt.GdsConnectorComponent INFO - Created MQTT Client with ID: 627 05.06.19 16:13:38.989 PxceTcs.MqttClient.MqttClientManager INFO - Connecting to MQTT server 05.06.19 16:14:19.069 PxceTcs.MqttClient.MqttClientManager ERROR - Exception in operation: Connect(627, ConnectOptions) 05.06.19 16:14:19.071 PxceTcs.MqttClient.MqttClientManager ERROR - MQTT error [-1]: 05.06.19 16:14:19.072 PxceTcs.Mqtt.GdsConnectorComponent ERROR - Error connecting to MQTT Client 627
Hello,
this looks like there might be something wrong with the connection options you added to the config file.
Please recheck the connect options according to the documentation.
Is the SSL Certificat at the right place?
And also make sure that the selected MQTT Broker is reachable by the PLC.kind regards,
Oliver
Hello, Oliver.
> > I want to connect to AWS by MQTT. I was able to confirm the screen shot I attached. Does this represent MQTT broker reachable by the PLC? I confirmed the location of the SSL certificate.I changed the host name and ssl option by "mqtt_gds.settings.json" > > > "mqtt_gds.settings.json" > ------------------------------------------------------------------------------- > {"servers":[{“host”: “ssl://a2qgxlovt99wxz-ats.iot.us-east-2.amazonaws.com:8883”, “client_name”: “MyPLCnext”, “connect_options”:{ “will_options”:{ “topic”: “last_will_topic”, “payload”: “auf wiedersehen” }, “ssl_options”: { “trust_store”: “/opt/plcnext/projects/AwsIotClient/AmazonRootCA1.pem”, “key_store”: “/opt/plcnext/projects/AwsIotClient/17dd2d71b8-certificate.pem.crt”, “private_key”: “/opt/plcnext/projects/AwsIotClient/17dd2d71b8-private.pem.key”, “enable_server_cert_auth”: true } }, “publish_data”:[{ “port” : “Arp.Plc.Eclr/MainInstance.PubMessage”, “qos”: 0, “retained”: false, “topics” :[ “MyPubTopic” ] }], “subscribe_data”:[{ “topic” : “MySubTopic”, “ports” :[ “Arp.Plc.Eclr/MainInstance.SubMessage” ] }] }] }
------------------------------------------------------------------------------- > > The following is the Output.log file. > > 27.06.19 12:31:58.081 Arp.Io.ProfinetStack.System.Internal.System INFO - Initialize: PN Version Info: v6.3.8745 > 27.06.19 12:31:58.081 Arp.Io.ProfinetStack.System.Internal.System INFO - Initialize: PN Version Info: v6.3.8745 > 27.06.19 12:31:59.575 Arp.Io.ProfinetStack.System.Internal.Adaption WARN - Event Archive Entry, Module ID: 0, Message: module 0x54 disabled > 27.06.19 12:32:01.573 Arp.Io.ProfinetStack.System.Internal.System INFO - ProfinetStack is initialized > 27.06.19 12:32:02.097 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the controller received > 27.06.19 12:32:02.097 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0 > 27.06.19 12:32:02.098 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 1 > 27.06.19 12:32:02.099 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the controller received > 27.06.19 12:32:02.100 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0 > 27.06.19 12:32:02.101 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 0 > 27.06.19 12:32:02.112 Arp.Io.ProfinetStack.Controller.Internal.Controller INFO - Controller instance added successfully > 27.06.19 12:32:02.614 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the device instance ID 1 received > 27.06.19 12:32:02.615 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0 > 27.06.19 12:32:02.616 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 1 > 27.06.19 12:32:02.617 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the device instance ID 1 received > 27.06.19 12:32:02.617 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0 > 27.06.19 12:32:02.618 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 0 > 27.06.19 12:32:02.623 Arp.Io.ProfinetStack.Device.Internal.Device INFO - Device Instance with Id = 1 (PRL-Supported) added successfully. > 27.06.19 12:32:02.707 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Enter EhmiComponent: Initialize > 27.06.19 12:32:02.710 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Exit EhmiComponent: Initialize > 27.06.19 12:32:02.711 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 EhmiComponent: SubscribeServices > 27.06.19 12:32:02.712 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Enter EhmiComponent: LoadSettings settingsPath=/etc/plcnext/device/Services/Ehmi/ehmi.settings > 27.06.19 12:32:02.728 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Exit EhmiComponent: LoadSettings > 27.06.19 12:32:02.728 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Enter EhmiComponent: SetupSettings > 27.06.19 12:32:02.731 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 SetThreshold level=6. > 27.06.19 12:32:02.734 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 IndentSize=0 > 27.06.19 12:32:02.734 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 IndentSize=0 > 27.06.19 12:32:02.738 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Initialize ehmiUsersBinPath=/opt/plcnext/projects/current/Services/__ehmiusers.bin, ehmiUsersBinFileServiceID=OSFileServiceID > 27.06.19 12:32:02.740 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 Exit EhmiComponent: SetupSettings > 27.06.19 12:32:02.740 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 EhmiComponent: PublishServices > 27.06.19 12:32:03.261 Arp.System.Commons.Security.IdentityStore INFO - Add cert: serialNumber=8949017230002848319,CN=PLCnext Device Signing CA,OU=PHOENIX CONTACT GmbH & Co KG,O=PHOENIX CONTACT,L=Blomberg,ST=NRW,C=DE > 27.06.19 12:32:03.265 Arp.System.Commons.Security.IdentityStore INFO - Add cert: CN=PhoenixSign License PLCnext Sub CA G1,OU=PHOENIX CONTACT GmbH & Co KG,O=PHOENIX CONTACT,L=Blomberg,ST=NRW,C=DE > 27.06.19 12:32:03.270 Arp.System.Commons.Security.IdentityStore INFO - Add cert: CN=PhoenixSign License Root CA G1,OU=PHOENIX CONTACT Cyber Security,O=PHOENIX CONTACT,L=Berlin,ST=Berlin,C=DE > 27.06.19 12:32:03.277 PxceTcs.MqttClient.MqttClientComponent INFO - Publishing MQTT Client service > 27.06.19 12:32:03.279 PxceTcs.MqttClient.MqttClientComponent INFO - Published MQTT Client service > 27.06.19 12:32:03.294 Arp.Services.AppManager.AppManager INFO - AppManager created > 27.06.19 12:32:03.319 Arp.Services.TraceController.TraceControllerComponent INFO - Loading settings from /etc/plcnext/device/Services/TraceController/TraceController.settings > 27.06.19 12:32:03.338 PxceTcs.Mqtt.GdsConnectorComponent INFO - Subscribed to MQTT Client Service. > 27.06.19 12:32:03.340 PxceTcs.Mqtt.GdsConnectorComponent INFO - Subscribed to GDS Data Access Service. > 27.06.19 12:32:03.341 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded settings: Path=/opt/plcnext/projects/MqttClient/mqtt_gds.settings.json > 27.06.19 12:32:03.343 Arp.Device.Interface.Internal.DeviceSettings INFO - DiUserConfigurationDocument at '/opt/plcnext/projects/Default/Device/Interface/Di.User.config' not found > 27.06.19 12:32:03.620 Arp.Plc.Esm.Internal.TaskController INFO - Configuring Sleep with a sync point interval of 50000us > 27.06.19 12:32:03.740 root WARN - Cannot resolve /opt/plcnext/projects/current/Io/Arp.Io.IbM/*.fbio.config: Directory does not exist. > 27.06.19 12:32:03.785 Arp.Io.Axioline.AxiolineComponent INFO - Axioline: Load configuration. > 27.06.19 12:32:03.798 Arp.Io.Axioline.Internal.AxiolineDomain INFO - Axioline: Load tic configuration. > 27.06.19 12:32:03.800 Arp.Io.Axioline.Internal.AxiolineDomain INFO - Axioline: XML-File: .tic > 27.06.19 12:32:03.801 Arp.Io.Axioline.Internal.AxiolineDomain INFO - Axioline: XML-File: 9c794d8b-b002-4bd8-8f79-df2d6dc62976.tic > 27.06.19 12:32:03.805 Arp.Io.Axioline.Internal.TicConfig.Tic2ConfigSvc INFO - Axioline: Start converting tic files. > 27.06.19 12:32:03.807 Arp.Io.Axioline.Internal.System INFO - Axioline: Initialize/configure bus. > 27.06.19 12:32:03.834 Arp.Io.Axioline.Internal.System INFO - Axioline: Connect to shared FbIo System. > 27.06.19 12:32:03.836 Arp.Io.EthernetIP.EthernetIPComponent INFO - LoadConfig > 27.06.19 12:32:03.837 Arp.Io.EthernetIP.EthernetIPComponent INFO - LoadPlc, isChanging=false > 27.06.19 12:32:03.852 root WARN - Cannot resolve /opt/plcnext/projects/current/Io/Arp.Io.EthernetIP/*.EthernetIP.config: Directory does not exist. > 27.06.19 12:32:03.857 Arp.Io.EthernetIP.EthernetIPComponent INFO - SetupConfig > 27.06.19 12:32:03.858 Arp.Io.EthernetIP.EthernetIPComponent INFO - SetupPlc, isChanging=false, startKind=Warm > 27.06.19 12:32:03.861 Arp.Io.EthernetIP.EthernetIPComponent INFO - 2973754048 OnPlcLoaded > 27.06.19 12:32:03.862 Arp.Io.EthernetIP.EthernetIPComponent INFO - 2973754048 ESDK 0xffff, AddAssemblies, toInstanceID=110, toSize=256, otInstanceID=100, otSize=256 > 27.06.19 12:32:03.938 Arp.Plc.Gds.Internal.GdsDomain INFO - GDS configuration successfully loaded. > 27.06.19 12:32:04.042 Arp.Plc.Gds.Internal.GdsDomain INFO - GDS data connections successfully created. > 27.06.19 12:32:04.047 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase WARN - Nothing to subscribe for ID 2! Please and some variables... > 27.06.19 12:32:04.049 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase WARN - Nothing to subscribe for ID 2! Please and some variables... > 27.06.19 12:32:04.050 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 EhmiComponent: LoadConfig > 27.06.19 12:32:04.051 Arp.Services.Ehmi.EhmiComponent INFO - 3055149120 EhmiComponent: SetupConfig > 27.06.19 12:32:04.446 Arp.Services.ProfiCloud.Internal.ProficloudTSDAdapter INFO - Could not read GDS metrics file /opt/plcnext/projects/ProfiCloud/metrics.json. > 27.06.19 12:32:04.473 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration from file: /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json > 27.06.19 12:32:04.479 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration schema. > 27.06.19 12:32:04.490 PxceTcs.Mqtt.GdsConnectorComponent INFO - Configuration is valid. > 27.06.19 12:32:04.501 PxceTcs.Mqtt.GdsConnectorComponent INFO - Created MQTT Client with ID: 27135 > 27.06.19 12:32:04.502 PxceTcs.Mqtt.GdsConnectorComponent INFO - Global timeout value has been set to 60000 milliseconds > 27.06.19 12:32:04.504 PxceTcs.Mqtt.GdsConnectorComponent INFO - No MQTT SSL/TLS Options provided. Defaults will be used. > 27.06.19 12:32:04.507 PxceTcs.MqttClient.MqttClientManager INFO - Connecting to MQTT server > 27.06.19 12:32:44.580 PxceTcs.MqttClient.MqttClientManager ERROR - Exception in operation: Connect(27135, ConnectOptions) > 27.06.19 12:32:44.582 PxceTcs.MqttClient.MqttClientManager ERROR - MQTT error [-1]: > 27.06.19 12:32:44.584 PxceTcs.Mqtt.GdsConnectorComponent ERROR - Error connecting to MQTT Client 27135 > 27.06.19 12:32:44.594 Arp.Device.Interface.Internal.DeviceStatus INFO - CheckHwTask running > 27.06.19 12:32:44.595 Arp.Device.Interface.Internal.DeviceStatus INFO - Alloc memory for 2 ports > 27.06.19 12:32:44.601 Arp.Device.Interface.Internal.DeviceStatus WARN - SD Card inserted > 27.06.19 12:32:44.895 Arp.Services.OpcUAServer.Internal.Config.OpcUAConfigManager INFO - Using the self-signed certificate. >
Hello, The interesting line in the log file is this one:
27.06.19 12:32:04.504 PxceTcs.Mqtt.GdsConnectorComponent INFO - No MQTT SSL/TLS Options provided. Defaults will be used.
This indicates that the named config file does not contain an ssl_options section, although I see this section in your post above. Are you 100% sure that the file contents you posted are from the file at
/opt/plcnext/projects/MqttClient/mqtt_gds.settings.json? Can you attach a screen shot showing the result of the commandcat /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json, perhaps?
Thank you. The file contents was not changed correctly. After the change,"No MQTT SSL/TLS Options provided. Defaults will be used."is not displayed. However, it was not a fundamental solution."MQTT error [-1]: "is still visible 28.06.19 17:45:58.191 Arp.Io.EthernetIP.EthernetIPComponent INFO - PublishServices
28.06.19 17:45:58.247 Arp.Device.HmiLed.Internal.LedManager INFO - LedManager: PN-Dev at 1
28.06.19 17:45:58.250 Arp.Device.HmiLed.Internal.LedManager INFO - LedManager: PN-Ctrl at 1
28.06.19 17:45:58.251 Arp.Io.ProfinetStack.System.Internal.System INFO - Initialize: PN Version Info: v6.3.8745
28.06.19 17:45:59.869 Arp.Io.ProfinetStack.System.Internal.Adaption WARN - Event Archive Entry, Module ID: 0, Message: module 0x54 disabled
28.06.19 17:46:01.866 Arp.Io.ProfinetStack.System.Internal.System INFO - ProfinetStack is initialized
28.06.19 17:46:03.154 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the controller received
28.06.19 17:46:03.155 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0
28.06.19 17:46:03.156 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 1
28.06.19 17:46:03.157 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the controller received
28.06.19 17:46:03.158 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0
28.06.19 17:46:03.159 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 0
28.06.19 17:46:03.171 Arp.Io.ProfinetStack.Controller.Internal.Controller INFO - Controller instance added successfully
28.06.19 17:46:04.115 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the device instance ID 1 received
28.06.19 17:46:04.116 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0
28.06.19 17:46:04.117 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 1
28.06.19 17:46:04.119 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the device instance ID 1 received
28.06.19 17:46:04.119 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSlotNumber = 0
28.06.19 17:46:04.120 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - wSubslotNumber = 0
28.06.19 17:46:04.125 Arp.Io.ProfinetStack.Device.Internal.Device INFO - Device Instance with Id = 1 (PRL-Supported) added successfully.
28.06.19 17:46:04.206 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Enter EhmiComponent: Initialize
28.06.19 17:46:04.208 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Exit EhmiComponent: Initialize
28.06.19 17:46:04.209 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 EhmiComponent: SubscribeServices
28.06.19 17:46:04.210 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Enter EhmiComponent: LoadSettings settingsPath=/etc/plcnext/device/Services/Ehmi/ehmi.settings
28.06.19 17:46:04.225 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Exit EhmiComponent: LoadSettings
28.06.19 17:46:04.226 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Enter EhmiComponent: SetupSettings
28.06.19 17:46:04.230 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 SetThreshold level=6.
28.06.19 17:46:04.232 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 IndentSize=0
28.06.19 17:46:04.234 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 IndentSize=0
28.06.19 17:46:04.236 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Initialize ehmiUsersBinPath=/opt/plcnext/projects/current/Services/__ehmiusers.bin, ehmiUsersBinFileServiceID=OSFileServiceID
28.06.19 17:46:04.239 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Exit EhmiComponent: SetupSettings
28.06.19 17:46:04.240 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 EhmiComponent: PublishServices
28.06.19 17:46:04.757 Arp.System.Commons.Security.IdentityStore INFO - Add cert: serialNumber=8949017230002848319,CN=PLCnext Device Signing CA,OU=PHOENIX CONTACT GmbH & Co KG,O=PHOENIX CONTACT,L=Blomberg,ST=NRW,C=DE
28.06.19 17:46:04.761 Arp.System.Commons.Security.IdentityStore INFO - Add cert: CN=PhoenixSign License PLCnext Sub CA G1,OU=PHOENIX CONTACT GmbH & Co KG,O=PHOENIX CONTACT,L=Blomberg,ST=NRW,C=DE
28.06.19 17:46:04.766 Arp.System.Commons.Security.IdentityStore INFO - Add cert: CN=PhoenixSign License Root CA G1,OU=PHOENIX CONTACT Cyber Security,O=PHOENIX CONTACT,L=Berlin,ST=Berlin,C=DE
28.06.19 17:46:04.777 PxceTcs.MqttClient.MqttClientComponent INFO - Publishing MQTT Client service
28.06.19 17:46:04.779 PxceTcs.MqttClient.MqttClientComponent INFO - Published MQTT Client service
28.06.19 17:46:04.794 Arp.Services.AppManager.AppManager INFO - AppManager created
28.06.19 17:46:04.824 Arp.Services.TraceController.TraceControllerComponent INFO - Loading settings from /etc/plcnext/device/Services/TraceController/TraceController.settings
28.06.19 17:46:04.847 PxceTcs.Mqtt.GdsConnectorComponent INFO - Subscribed to MQTT Client Service.
28.06.19 17:46:04.849 PxceTcs.Mqtt.GdsConnectorComponent INFO - Subscribed to GDS Data Access Service.
28.06.19 17:46:04.849 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded settings: Path=/opt/plcnext/projects/MqttClient/mqtt_gds.settings.json
28.06.19 17:46:04.852 Arp.Device.Interface.Internal.DeviceSettings INFO - DiUserConfigurationDocument at ‘/opt/plcnext/projects/Default/Device/Interface/Di.User.config’ not found
28.06.19 17:46:05.291 Arp.Plc.Esm.Internal.TaskController INFO - Configuring Sleep with a sync point interval of 50000us
28.06.19 17:46:05.437 root WARN - Cannot resolve /opt/plcnext/projects/current/Io/Arp.Io.IbM/.fbio.config: Directory does not exist.
28.06.19 17:46:05.478 Arp.Io.Axioline.AxiolineComponent INFO - Axioline: Load configuration.
28.06.19 17:46:05.495 Arp.Io.Axioline.Internal.AxiolineDomain INFO - Axioline: Load tic configuration.
28.06.19 17:46:05.497 Arp.Io.Axioline.Internal.AxiolineDomain INFO - Axioline: XML-File: .tic
28.06.19 17:46:05.498 Arp.Io.Axioline.Internal.AxiolineDomain INFO - Axioline: XML-File: 9c794d8b-b002-4bd8-8f79-df2d6dc62976.tic
28.06.19 17:46:05.502 Arp.Io.Axioline.Internal.TicConfig.Tic2ConfigSvc INFO - Axioline: Start converting tic files.
28.06.19 17:46:05.503 Arp.Io.Axioline.Internal.System INFO - Axioline: Initialize/configure bus.
28.06.19 17:46:05.531 Arp.Io.Axioline.Internal.System INFO - Axioline: Connect to shared FbIo System.
28.06.19 17:46:05.534 Arp.Io.EthernetIP.EthernetIPComponent INFO - LoadConfig
28.06.19 17:46:05.534 Arp.Io.EthernetIP.EthernetIPComponent INFO - LoadPlc, isChanging=false
28.06.19 17:46:05.547 root WARN - Cannot resolve /opt/plcnext/projects/current/Io/Arp.Io.EthernetIP/.EthernetIP.config: Directory does not exist.
28.06.19 17:46:05.551 Arp.Io.EthernetIP.EthernetIPComponent INFO - SetupConfig
28.06.19 17:46:05.553 Arp.Io.EthernetIP.EthernetIPComponent INFO - SetupPlc, isChanging=false, startKind=Warm
28.06.19 17:46:05.555 Arp.Io.EthernetIP.EthernetIPComponent INFO - 2973758144 OnPlcLoaded
28.06.19 17:46:05.556 Arp.Io.EthernetIP.EthernetIPComponent INFO - 2973758144 ESDK 0xffff, AddAssemblies, toInstanceID=110, toSize=256, otInstanceID=100, otSize=256
28.06.19 17:46:05.633 Arp.Plc.Gds.Internal.GdsDomain INFO - GDS configuration successfully loaded.
28.06.19 17:46:05.737 Arp.Plc.Gds.Internal.GdsDomain INFO - GDS data connections successfully created.
28.06.19 17:46:05.744 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase WARN - Nothing to subscribe for ID 2! Please and some variables…
28.06.19 17:46:05.746 Arp.Plc.Gds.Internal.Subscription.SubscriptionBase WARN - Nothing to subscribe for ID 2! Please and some variables…
28.06.19 17:46:05.748 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 EhmiComponent: LoadConfig
28.06.19 17:46:05.750 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 EhmiComponent: SetupConfig
28.06.19 17:46:06.143 Arp.Services.ProfiCloud.Internal.ProficloudTSDAdapter INFO - Could not read GDS metrics file /opt/plcnext/projects/ProfiCloud/metrics.json.
28.06.19 17:46:06.168 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration from file: /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json
28.06.19 17:46:06.173 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration schema.
28.06.19 17:46:06.182 PxceTcs.Mqtt.GdsConnectorComponent INFO - Configuration is valid.
28.06.19 17:46:06.185 PxceTcs.Mqtt.GdsConnectorComponent INFO - No status port has been specified.
28.06.19 17:46:06.186 PxceTcs.Mqtt.GdsConnectorComponent INFO - No reconnect port has been specified.
28.06.19 17:46:06.193 PxceTcs.Mqtt.GdsConnectorComponent INFO - Created MQTT Client with ID: 37595
28.06.19 17:46:06.196 PxceTcs.MqttClient.MqttClientManager INFO - Connecting to MQTT server
28.06.19 17:46:46.270 PxceTcs.MqttClient.MqttClientManager ERROR - Exception in operation: Connect(37595, ConnectOptions)
28.06.19 17:46:46.272 PxceTcs.MqttClient.MqttClientManager ERROR - MQTT error [-1]:
28.06.19 17:46:46.273 PxceTcs.Mqtt.GdsConnectorComponent ERROR - Error connecting to MQTT Client 37595
28.06.19 17:46:46.281 Arp.Device.Interface.Internal.DeviceStatus INFO - CheckHwTask running
28.06.19 17:46:46.283 Arp.Device.Interface.Internal.DeviceStatus INFO - Alloc memory for 2 ports
28.06.19 17:46:46.293 Arp.Device.Interface.Internal.DeviceStatus WARN - SD Card inserted
28.06.19 17:46:46.536 Arp.Services.OpcUAServer.Internal.Config.OpcUAConfigManager INFO - Using the self-signed certificate.
28.06.19 17:46:47.081 OpcServer INFO - OPC UA server opened endpoint URI opc.tcp://axc-f-2152-1:4840 listening at opc.tcp://0.0.0.0:4840
28.06.19 17:46:47.083 Arp.Services.OpcUAServer.OpcUAServerComponent INFO - Started OPC UA Server successfully.
28.06.19 17:46:47.084 Arp.Services.OpcUAServer.Internal.Security.SessionManager INFO - Applying configuration for client authentication to 1 endpoints: trustAll=true, checkCRLs=false, checkIssuerCRLs=false, ignoreValidity=false
28.06.19 17:46:47.096 Arp.Io.Axioline.AxiolineComponent INFO - Axioline: Start.
28.06.19 17:46:47.453 Arp.Io.EthernetIP.EthernetIPComponent INFO - Start
28.06.19 17:46:47.454 Arp.Io.EthernetIP.EthernetIPComponent INFO - StartPlc, startKind=Warm
28.06.19 17:46:47.455 Arp.Io.EthernetIP.EthernetIPComponent INFO - 2973758144 OnPlcStarted
28.06.19 17:46:47.455 Arp.Io.EthernetIP.EthernetIPComponent INFO - 2973758144 ESDK 0xffff, SetRunMode, run=1
28.06.19 17:46:47.467 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Enter EhmiComponent: Start
28.06.19 17:46:47.476 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 OpenListenSocket ListenSocket=0x2b, BindPort=127.0.0.1:9999
28.06.19 17:46:47.482 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Cannot find authorizationTokenTimeout in project.json
28.06.19 17:46:47.485 Arp.Services.Ehmi.EhmiComponent WARN - 3055034432 LoadDefaultTimeout Cannot get sessionTimeout from project.json
28.06.19 17:46:47.490 Arp.Services.Ehmi.EhmiComponent WARN - 3055034432 Cannot read the type.dictionary.json file.
28.06.19 17:46:47.496 Arp.Services.Ehmi.EhmiComponent WARN - 3055034432 Load Cannot read fileName=data.dictionary.json
28.06.19 17:46:47.498 Arp.Services.Ehmi.EhmiComponent INFO - 3055034432 Exit EhmiComponent: Start
28.06.19 17:46:47.502 CommonRemoting INFO - Starting remoting server (version=4)
28.06.19 17:46:47.503 CommonRemoting INFO - Start listening on TCP port 41100
28.06.19 17:46:47.505 Arp.Services.ProfiCloud.Internal.ProficloudConnectAdapter INFO - Will not start Proficloud service. It is disabled via service settings.
28.06.19 17:46:47.509 Arp.System.Acf.Internal.ApplicationBase INFO - Application ‘MainProcess’ was setup successfully.
Hello, Can you please check that all the certificates you are using have read permissions for all users. You can also try using openssl on the PLC command line to test the connection with the AWS server, using the same certificates. If this does not work then there is a problem with the AWS configuration and/or the certificates. If the openssl connection to AWS does work, and you are still having problems with the MQTT client app, please let us know.
That couldn’t connect. What is wrong?
> Is there a way to check the port for PLC? >[
admin@axcf2152:/opt/plcnext/projects/MqttClient$](mailto:admin@axcf2152:/opt/plcnext/projects/MqttClient$) openssl s_client -showcerts -cert ddfe942db2-certificate.pem.crt -key ddfe942db2-private.pem.key -connect a2qgxlovt99wxz-ats.iot.us-east-2.amazonaws.com:8883
gethostbyname failure
connect:errno=11 admin@axcf2152:/opt/plcnext/projects/MqttClient$ lsof -i
-sh: lsof: command not found
There could be a few problems. The PLC is connected to the internet, right? You can ping external web sites (like www.google.com) from the PLC? If this works then there it is probably something wrong with the AWS configuration and/or certificates. It has been a while since I set up an AWS device, so I cannot remember exactly how to do this. Here is some information from AWS on diagnosing connection issues - you could try this command from a Windows or Linux machine to eliminate the PLC as the cause of the problem.
The firewall was bad. We were able to connect to MQTT client. Thank you very much.
How do I set the port?17.07.19 14:34:57.272 Arp.Services.ProfiCloud.Internal.ProficloudTSDAdapter INFO - Could not read GDS metrics file /opt/plcnext/projects/ProfiCloud/metrics.json. 17.07.19 14:34:57.272 Arp.Services.ProfiCloud.Internal.ProficloudTSDAdapter INFO - Could not read GDS metrics file /opt/plcnext/projects/ProfiCloud/metrics.json. 17.07.19 14:34:57.307 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration from file: /opt/plcnext/projects/MqttClient/mqtt_gds.settings.json 17.07.19 14:34:57.314 PxceTcs.Mqtt.GdsConnectorComponent INFO - Loaded configuration schema. 17.07.19 14:34:57.327 PxceTcs.Mqtt.GdsConnectorComponent INFO - Configuration is valid. 17.07.19 14:34:57.331 PxceTcs.Mqtt.GdsConnectorComponent INFO - No status port has been specified. 17.07.19 14:34:57.332 PxceTcs.Mqtt.GdsConnectorComponent INFO - No reconnect port has been specified. 17.07.19 14:34:57.343 PxceTcs.Mqtt.GdsConnectorComponent INFO - Created MQTT Client with ID: 3460 17.07.19 14:34:57.347 PxceTcs.MqttClient.MqttClientManager INFO - Connecting to MQTT server 17.07.19 14:34:58.479 PxceTcs.MqttClient.MqttClientManager INFO - Connected 17.07.19 14:34:58.479 PxceTcs.Mqtt.GdsConnectorComponent INFO - Connected to MQTT Client 3460 17.07.19 14:34:58.482 PxceTcs.Mqtt.GdsConnectorComponent ERROR - Port Arp.Plc.Eclr/MainInstance.PubMessage: NotExists 17.07.19 14:34:58.490 Arp.Device.Interface.Internal.DeviceStatus INFO - CheckHwTask running 17.07.19 14:34:58.492 Arp.Device.Interface.Internal.DeviceStatus INFO - Alloc memory for 2 ports
Hello, I guess that you are looking at the error message for this port - Arp.Plc.Eclr/MainInstance.PubMessage ? As mentioned in the technical documentation for that app:
Ports on PLCnext Engineer programs must be specified in the following format: Arp.Plc.Eclr/ProgramInstance.PortName … where ProgramInstance must be the name of the program instance in the PLCnext Engineer project, and PortName must the name of a port variable defined in that program
So you must create a Program in PLCnext Engineer with at least one port - data to publish should be in an OUT port. According to the error message, this port variable must be called
PubMessage. The program containing this port variable must then be instantiated in a task - according to the error message, this program instance should be calledMainInstance. Then, the project must be downloaded to the PLC, and the PLC should be restarted. The error message should then disappear. Hope this helps. - Martin.
That problem has been resolved. Thank you very much. What is this error 17.07.19 19:13:16.649 Arp.Io.ProfinetStack.System.Internal.Adaption WARN - Event Archive Entry, Module ID: 0, Message: module 0x54 disabled 17.07.19 19:13:16.649 Arp.Io.ProfinetStack.System.Internal.Adaption WARN - Event Archive Entry, Module ID: 0, Message: module 0x54 disabled 17.07.19 19:13:18.647 Arp.Io.ProfinetStack.System.Internal.System INFO - ProfinetStack is initialized 17.07.19 19:13:19.176 Arp.Io.ProfinetStack.System.Internal.Adaption ERROR - Error Stack Entry 0: ModId: 57 ErrCode = 0xD357060B, AddInfo = 0x0 Codelab: 0x5500012B dcparp_util.c(299) 17.07.19 19:13:19.177 Arp.Io.ProfinetStack.System.Internal.Adaption INFO - I&M0; request for the controller received
That error message is unrelated to the MQTT app. It is a symptom of a known issue with the Profinet stack, but should not cause any ill-effects in your project. - Martin.
