1/5/2021 7:12 AM | |
Joined: 10/14/2019 Last visit: 10/28/2024 Posts: 7 Rating: (0) |
Dear all, I'm using Simatic IOT2040 for my project. I'm using 32GB microSD class10 in it. I'm simply fetching data from PLC and coded in function for data publishing time and lastly sending it to an MQTT out (Thingsboard) the FLOW of node-red is attached. Before I had used 16GB microSD class4 in it and configured it. Data was sending properly from device for a period of 15 days and it stopped working. So I thought of upgrading microSD to recommended class and I upgraded it to 32GB microSD class10 and configured it with same flow. I had configured it on 1-Dec-2020 and data was sending perfectly till now. But on 3-Jan-2021 the same problem has been occurred (the data sending has been stopped). After the problem occurred again I had pinged the device IP and it was pinging. Device was also accessed on PUTTY. Through WinSCP I copied the log files of device. BUT NODE-RED was not accessible. I tried a lot to access NODE-RED was couldn't access it. Later when I checked Node-red log it displayed me only from 20-Dec-2020 to 28-Dec-2020. But problem occurred on 3-Jan-2021 so I couldn't find the root cause of problem. And also it showed Connection Failed to MQTT broker on dated 20-Dec-2020, but data was sending on that day there was no issue. (Node-red log images attached below). I also checked messages log file so it showed me some message dated 3-Jan-2021 (the day problem occurred). The message is Jan 3 01:46:17 iot2000 user.warn kernel: node-red invoked oom-killer: gfp_mask=0x24201ca, order=0, oom_score_adj=0 Jan 3 01:46:17 iot2000 user.info kernel: node-red cpuset=/ mems_allowed=0 Jan 3 01:46:17 iot2000 user.warn kernel: CPU: 0 PID: 341 Comm: node-red Tainted: G A O 4.4.185-cip35 #1 Jan 3 01:46:17 iot2000 user.warn kernel: Hardware name: Intel Corp. QUARK/SIMATIC IOT2000, BIOS V24.01.01 01/01/2014 The message log file is also attached below, kindly look for it. Later I removed Module power and again powered it up, the Node-red was accessible and data sending started. But Didn't understood what was the actual cause to occur this problem now and then. So please have a look at the Log files and images attached below and provide me with the cause of problem and some solution to it. I HAVE ATTACHED ALL THE LOG FILES BELOW IN ZIP. Thanks and Regards, Huzaif Shaikh Attachmentlog.zip (440 Downloads) |
2/2/2021 2:16 PM | |
Joined: 10/14/2019 Last visit: 10/28/2024 Posts: 7 Rating: (0) |
Thanks for your reply sir. Actually I haven't checked the memory usage of module. The same problem has occurred again. I copied the log files from module. And again the Node-red.log file is above 400MB. But one important point has come in observation that in messages file there are messages occurred the same day module getting stuck. The message is as follow : Jan 30 18:33:03 iot2000 user.warn kernel: node-red invoked oom-killer: gfp_mask=0x24201ca, order=0, oom_score_adj=0 Jan 30 18:33:03 iot2000 user.info kernel: node-red cpuset=/ mems_allowed=0 Jan 30 18:33:03 iot2000 user.warn kernel: CPU: 0 PID: 341 Comm: node-red Tainted: G A O 4.4.185-cip35 #1 Jan 30 18:33:03 iot2000 user.warn kernel: Hardware name: Intel Corp. QUARK/SIMATIC IOT2000, BIOS V24.01.01 01/01/2014 Jan 30 18:33:03 iot2000 user.warn kernel: f6671ce0 f6671ce0 f670dd00 c13eab79 f670dd40 c1131a09 c186f520 f6671ce0 Jan 30 18:33:03 iot2000 user.warn kernel: 024201ca 00000000 00000000 c1958ec0 f670dd40 c13ef The same message is in previous message log file of the last time it got stuck. The both files are attached below, please do check it and provide some solution. And please explain the above method to decrease level of logging. Thank You Attachmentmessage log files.zip (420 Downloads) |
2/4/2021 5:59 PM | |
Joined: 12/12/2016 Last visit: 4/8/2024 Posts: 640 Rating: (60)
|
Hello, The logs you mentioned are solely warnings and can be ignored in my opinion, there are also some errors in the logs you sent but they do not seem related to your problem. As mentioned above, it would be helpful if you could enter the command:
And provide a screenshot for us to check the usage of your SD-Card. Since you mentioned the log-files were very large, my assumption is that you could be running out of space on the IOT2000 due to the large amount of logs your user program is generating. A screenshot of
Would also be helpful to ensure we are not running into any RAM-related issues. What I meant with settings.js is this. You can edit you settings file with
And change the logging level as described in the documentation:
By setting it to error for an example, you should be able to generate less logs than you are currently generating (no info, no warn). Best regards! |
Follow us on