<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to ERROR: GetNetLinkSockAndInfoByMac(): could not open netlink socket: Too many open files</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/18b950acc7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/18b950acc7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/18b950acc7/</id><updated>2024-09-19T02:13:35.069000Z</updated><subtitle>Recent posts to ERROR: GetNetLinkSockAndInfoByMac(): could not open netlink socket: Too many open files</subtitle><entry><title>ERROR: GetNetLinkSockAndInfoByMac(): could not open netlink socket: Too many open files</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/18b950acc7/?limit=25#eccd" rel="alternate"/><published>2024-09-19T02:13:35.069000Z</published><updated>2024-09-19T02:13:35.069000Z</updated><author><name>jeffg</name><uri>https://forge.codesys.com/u/jeffg/</uri></author><id>https://forge.codesys.com9442966f86132338622280d730fde88a219babac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;I just installed codesys runtime on a raspberry pi Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz (Compute Module 4) I am running on Codesys control for raspberry pi 64 SL ver 4.13.0 and I keep getting a crash after about five to ten minutes.&lt;br/&gt;
This program was running fine on a 32bit system with runtime 4.8 previously but they upgraded the panel PC cause it got smashed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Looking at the logs I see this error "ERROR: GetNetLinkSockAndInfoByMac(): could not open netlink socket: Too many open files" at the time of crash. &lt;/p&gt;
&lt;p&gt;I do have a UDP socket open for a serial to ethernet adapter and im wondering if maybe its opening a bunch of sockets and while receiving messages, Im not sending anything to the device only receiving.&lt;/p&gt;
&lt;p&gt;Below is the code used for the UDP&lt;/p&gt;
&lt;p&gt;VAR&lt;br/&gt;
    // Scale Comm&lt;br/&gt;
    fbPeerServer        : NBS.UDP_Peer;&lt;br/&gt;
    ipAddress           : NBS.IPv4Address;&lt;br/&gt;
    fbReceive           : NBS.UDP_Receive;&lt;br/&gt;
    xPeerActiv          : BOOL  := TRUE;&lt;br/&gt;
    abyReceive          : ARRAY &lt;span&gt;[0..255]&lt;/span&gt; OF BYTE;&lt;br/&gt;
    sLastValidReceive   : STRING(255);&lt;br/&gt;
    udiIndex            : UDINT;&lt;br/&gt;
  END_VAR&lt;/p&gt;
&lt;p&gt;IF xPeerActiv AND NOT fbPeerServer.xBusy THEN&lt;br/&gt;
    ipAddress.SetInitialValue(ipAddress := gvlSettings.sIPAddres);&lt;br/&gt;
    fbPeerServer(xEnable := TRUE,&lt;br/&gt;
                    itfIPAddress := ipAddress,&lt;br/&gt;
                    uiPort := gvlSettings.uiPort); &lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;fbPeerServer();&lt;/p&gt;
&lt;p&gt;fbReceive(xEnable := fbPeerServer.xBusy, itfPeer := fbPeerServer, pData := ADR(abyReceive), udiSize := SIZEOF(abyReceive));&lt;/p&gt;
&lt;p&gt;IF fbReceive.udiCount &amp;gt; 0 THEN&lt;br/&gt;
    IF fbReceive.udiCount &amp;lt; SIZEOF(sLastValidReceive) THEN&lt;br/&gt;
        SysMem.SysMemCpy(pDest := ADR(sLastValidReceive), pSrc := ADR(abyReceive), udiCount := fbReceive.udiCount);&lt;br/&gt;
        // Set End of String&lt;br/&gt;
        sLastValidReceive&lt;span&gt;[fbReceive.udiCount]&lt;/span&gt; := 0;&lt;br/&gt;
    END_IF&lt;br/&gt;
END_IF&lt;/p&gt;
&lt;p&gt;If anyone as seen this I could really use some help figuring it out.&lt;br/&gt;
I included the Log report &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>