<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/</id><updated>2020-02-27T15:44:43.803000Z</updated><subtitle>Recent posts to Codesys control stopped unexpectedly</subtitle><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#61c8" rel="alternate"/><published>2020-02-27T15:44:43.803000Z</published><updated>2020-02-27T15:44:43.803000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com3598621e6654bfbbf1e5548e8585bd3d2c1ca459</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Your log file shows CODESYS 3.5.15.10.&lt;br/&gt;
There was a vulnerability reported in this version fixed in V3.5.15.20.  You should definitely update to the latest version (now 3.5.15.30).&lt;br/&gt;
&lt;a class="" href="https://www.codesys.com/security/security-reports.html" rel="nofollow"&gt;https://www.codesys.com/security/security-reports.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;About logging, maybe wireshark?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#8dfe" rel="alternate"/><published>2020-02-27T15:44:43.047000Z</published><updated>2020-02-27T15:44:43.047000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com693f94db0e75d6b4f3ec6957cfd0cbaac1565289</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Automatic restart codesyscontrol service is not a good solution but better than none.&lt;br/&gt;
For this I create this script started from cron on every minute and log to file. It seems to work:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;S1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;(running)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="nv"&gt;info&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;$&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;systemctl&lt;/span&gt; &lt;span class="nv"&gt;status&lt;/span&gt; &lt;span class="nv"&gt;codesyscontrol&lt;/span&gt;.&lt;span class="nv"&gt;service&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nv"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;NR==3&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nv"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;{print $3}&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; [ $&lt;span class="nv"&gt;info&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; $&lt;span class="nv"&gt;S1&lt;/span&gt; ]
&lt;span class="k"&gt;then&lt;/span&gt; 
   &lt;span class="nv"&gt;sudo&lt;/span&gt; &lt;span class="nv"&gt;service&lt;/span&gt; &lt;span class="nv"&gt;codesyscontrol&lt;/span&gt; &lt;span class="nv"&gt;restart&lt;/span&gt;
    &lt;span class="nv"&gt;echo&lt;/span&gt; `&lt;span class="nv"&gt;date&lt;/span&gt; &lt;span class="o"&gt;+%&lt;/span&gt;&lt;span class="nv"&gt;d&lt;/span&gt;&lt;span class="o"&gt;-%&lt;/span&gt;&lt;span class="nv"&gt;m&lt;/span&gt;&lt;span class="o"&gt;-%&lt;/span&gt;&lt;span class="nv"&gt;y&lt;/span&gt;&lt;span class="o"&gt;/%&lt;/span&gt;&lt;span class="nv"&gt;H&lt;/span&gt;:&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nv"&gt;M&lt;/span&gt;:&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nv"&gt;S&lt;/span&gt;` &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt; Codesyscontrol restarting... &lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
   &lt;span class="k"&gt;exit&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt; 
   #&lt;span class="nv"&gt;echo&lt;/span&gt; `&lt;span class="nv"&gt;date&lt;/span&gt; &lt;span class="o"&gt;+%&lt;/span&gt;&lt;span class="nv"&gt;d&lt;/span&gt;&lt;span class="o"&gt;-%&lt;/span&gt;&lt;span class="nv"&gt;m&lt;/span&gt;&lt;span class="o"&gt;-%&lt;/span&gt;&lt;span class="nv"&gt;y&lt;/span&gt;&lt;span class="o"&gt;/%&lt;/span&gt;&lt;span class="nv"&gt;H&lt;/span&gt;:&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nv"&gt;M&lt;/span&gt;:&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="nv"&gt;S&lt;/span&gt;` &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt; Codesyscontrol running &lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
   &lt;span class="k"&gt;exit&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="nv"&gt;fi&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I there any way to log or count every connection to webvisu?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#b911" rel="alternate"/><published>2020-02-27T15:44:42.335000Z</published><updated>2020-02-27T15:44:42.335000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comdc7c85a377723b4136e0955fb36510baa75a9652</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I suspect that's the cause. Either a well intentioned vulnerability scanner, or a malicious actor is DoS attacking your webvisu.&lt;/p&gt;
&lt;p&gt;So that's the cause sorted, now what's the fix?&lt;/p&gt;
&lt;p&gt;My first thought is a hardened proxy server that only forwards valid requests to the pi.&lt;/p&gt;
&lt;p&gt;But you mentioned you are happy just to reset the CODESYS service.  Maybe:&lt;/p&gt;
&lt;p&gt;pgrep -x codesyscontrol &amp;gt;/dev/null&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#78f1" rel="alternate"/><published>2020-02-27T15:44:40.238000Z</published><updated>2020-02-27T15:44:40.238000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com30952b669438b3c1aafa60634222b492b7936b0f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Visu is running on both raspberry. On both webvisu is accessible from internet on port 8080, on first one on main page is only button to login (more ofter codesyscontrol was stopping), on second one visu is without login requirements (only one time codesyscontrol was stop).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#e8dc" rel="alternate"/><published>2020-02-27T15:44:39.482000Z</published><updated>2020-02-27T15:44:39.482000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comc6f56b1985d2070b951550bb1f80602781c32632</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Have you made your webvisu 8080 directly accessible to the internet? Some of your log messages looks like it might be the case.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#d735" rel="alternate"/><published>2020-02-27T15:44:37.337000Z</published><updated>2020-02-27T15:44:37.337000Z</updated><author><name>vitovt1877</name><uri>https://forge.codesys.com/u/vitovt1877/</uri></author><id>https://forge.codesys.comd94a1d1b670446e845f0286f8dc9beeab263a5df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Are you running visualization also on this Raspberry PI? I had a similar problem also and figured out that Chromium was crashing and stopping CodeSys. It was crashing every 2-4 weeks. I updated Chromium to the latest version and never saw it crashing again. What is interesting, that I had an Raspberry PI with earlier version of Raspbian/Chromium and it was working without problems. As I think it was a problem with specific version of Chromium. May be will be useful for somebody if it is not your case.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#ab67" rel="alternate"/><published>2020-02-27T15:44:36.621000Z</published><updated>2020-02-27T15:44:36.621000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.comf98edc97e6e3b31fedfcbadb5e5913de5c72ada6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not so often, once every few weeks. What steps to take next time to diagnose the reason for the codesyscontrol stop?&lt;br/&gt;
I want to create bash script to check if codesyscontrol is running, if not then restart and write  message in log, but command&lt;br/&gt;
```&lt;/p&gt;
&lt;p&gt;systemctl is-active codesyscontrol.service&lt;/p&gt;
&lt;p&gt;``` return "active" even if codesyscontrol service status is "active (exited)"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#f8b7" rel="alternate"/><published>2020-02-27T15:44:35.890000Z</published><updated>2020-02-27T15:44:35.890000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7651765a8c6df2186a83b4d61206b4337927849d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
think this is not a licensing problem,&lt;br/&gt;
mem leak or what ever it is...&lt;/p&gt;
&lt;p&gt;how often does this happen, hours, days or week...?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#c608" rel="alternate"/><published>2020-02-27T15:44:33.847000Z</published><updated>2020-02-27T15:44:33.847000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.comf68b1800d52c04913598d067dc86d2d188ad00f2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I attach dmesg output from another raspberry also with license on runtime key. Situation with codesys stop was the same. This rpi was not rebooted, only codesysservice was restarted. This situation was about 17.01.2020. I hope this will help to investigate the problem.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=5178" rel="nofollow"&gt;dmesg_2.txt &lt;span&gt;&lt;span&gt;[18.17 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys control stopped unexpectedly</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8d22ba792f/?limit=25#add9" rel="alternate"/><published>2020-02-27T15:44:33.088000Z</published><updated>2020-02-27T15:44:33.088000Z</updated><author><name>pawel3410</name><uri>https://forge.codesys.com/u/pawel3410/</uri></author><id>https://forge.codesys.com88fb5b7412c2362107072eb918c64356920a1ca5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, license is on runtime key compact. Its connected directly to Raspberry USB port.&lt;br/&gt;
I attach dmesg output but rpi was rebooted after this fault.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=5177" rel="nofollow"&gt;dmesg.txt &lt;span&gt;&lt;span&gt;[17.64 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>