<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Couldn&#x27;t create a symlink &#x27;&#x2F;dev&#x2F;ttyMySensorsGateway&#x27; to PTY! (17) File exists]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have an RPi3 with nrf24l01+ directly attached and mysgw 2.2.0-beta.....</p>
<p dir="auto">It works for a while (ofetn more than a week), but then crashed and a reboot won't help.<br />
msygw -d reports...</p>
<pre><code> $ mysgw -d
mysgw: Starting gateway...
mysgw: Protocol version - 2.2.0-beta
mysgw: Couldn't create a symlink '/dev/ttyMySensorsGateway' to PTY! (17) File exists
mysgw: Failed to open serial port.

</code></pre>
<p dir="auto">Not really sure how to get this working again? Any ideas out there please?</p>
]]></description><link>https://forum.mysensors.org/topic/7789/couldn-t-create-a-symlink-dev-ttymysensorsgateway-to-pty-17-file-exists</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 01:35:13 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7789.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Oct 2017 20:28:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Couldn&#x27;t create a symlink &#x27;&#x2F;dev&#x2F;ttyMySensorsGateway&#x27; to PTY! (17) File exists on Tue, 10 Oct 2017 15:44:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/skywatch" aria-label="Profile: skywatch">@<bdi>skywatch</bdi></a> the Arduino-based serial gateways are more proven. They have been around for a longer time so more people have tried them.</p>
<p dir="auto">But the Raspberry Pi gateway should work. May I suggest that you enable debug logging on the gateway using <a href="https://www.mysensors.org/build/raspberry#troubleshooting" rel="nofollow ugc">these instructions</a>? You should then be able to get a clue in /var/log/syslog when/if the gateway stops working again.</p>
]]></description><link>https://forum.mysensors.org/post/77287</link><guid isPermaLink="true">https://forum.mysensors.org/post/77287</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Tue, 10 Oct 2017 15:44:27 GMT</pubDate></item><item><title><![CDATA[Reply to Couldn&#x27;t create a symlink &#x27;&#x2F;dev&#x2F;ttyMySensorsGateway&#x27; to PTY! (17) File exists on Tue, 10 Oct 2017 13:08:43 GMT]]></title><description><![CDATA[<p dir="auto">Aha! - Ok that does make sense :)</p>
<p dir="auto">I was mistaken in that I believed that mysgw -d enabled debug, but now realise that in order to do this it starts a new instance of mysgw.</p>
<p dir="auto">What I still can't get to the bottom of is what caused the problems in the first place. I suddenly loose all data from nodes but not from internal pi mqtt metrics.</p>
<p dir="auto">Over on MyController they think it is because I have nrf24l01+ attached directly to the pi and that people that use an additional arduino to attach the radio module and then HW serial to the pi have not had such problems. Does this seem likely in your experience?</p>
<p dir="auto">Thanks :)</p>
]]></description><link>https://forum.mysensors.org/post/77279</link><guid isPermaLink="true">https://forum.mysensors.org/post/77279</guid><dc:creator><![CDATA[skywatch]]></dc:creator><pubDate>Tue, 10 Oct 2017 13:08:43 GMT</pubDate></item><item><title><![CDATA[Reply to Couldn&#x27;t create a symlink &#x27;&#x2F;dev&#x2F;ttyMySensorsGateway&#x27; to PTY! (17) File exists on Tue, 10 Oct 2017 12:27:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/skywatch" aria-label="Profile: skywatch">@<bdi>skywatch</bdi></a> sounds like you are trying to start two instances of mysgw at the same time. The first is started automatically at boot, and when you run <em>sudo systemctl start mysgw.service</em>. Then you try to start one more instance with <em>sudo mysgw -d</em>. The new instance can't create /dev/ttyMySensorsGateway because /dev/ttyMySensorsGateway already exists (it was created by the first instance of mysgw).</p>
]]></description><link>https://forum.mysensors.org/post/77277</link><guid isPermaLink="true">https://forum.mysensors.org/post/77277</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Tue, 10 Oct 2017 12:27:24 GMT</pubDate></item><item><title><![CDATA[Reply to Couldn&#x27;t create a symlink &#x27;&#x2F;dev&#x2F;ttyMySensorsGateway&#x27; to PTY! (17) File exists on Tue, 10 Oct 2017 11:22:45 GMT]]></title><description><![CDATA[<p dir="auto">Anyway, today brings a new mystery for me as I did the following.....</p>
<p dir="auto">sudo systemctl daemon-reload<br />
sudo systemctl restart mysgw.service<br />
sudo systemctl stop mysgw.service<br />
sudo systemctl start mysgw.service</p>
<p dir="auto">Then to see what was going on....<br />
tail -f /var/log/syslog</p>
<p dir="auto">This showed data, so I connected to the web server (running MyController on the same pi as the MYSGW) and graphs were showing of data received since last night.... It looks like it's all back to normal, except it isn't as I still get <em>exactly</em> the same error message from mysgw -d.</p>
<p dir="auto">Weirder still!</p>
]]></description><link>https://forum.mysensors.org/post/77271</link><guid isPermaLink="true">https://forum.mysensors.org/post/77271</guid><dc:creator><![CDATA[skywatch]]></dc:creator><pubDate>Tue, 10 Oct 2017 11:22:45 GMT</pubDate></item></channel></rss>