Démon en ligne, mais plus de remontée

Oui, Mips je tourne sur des VM.

Pour le log de MQTT Manager, j’ai des erreurs, mais difficile de savoir si c’est au même instant car je n’ai pas l’heure de l’autre côté. Et ça date d’il y a 2 jours.

[2025-04-02 09:57:21] ERROR  : Error on send to jeedom : {"message":"Request failed with status code 500","name":"AxiosError","stack":"AxiosError: Request failed with status code 500
at settle (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:1913:12)
at IncomingMessage.handleStreamEnd (/var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios/dist/node/axios.cjs:2995:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.5.1","Content-Length":"1456","Accept-Encoding":"gzip, compress, deflate, br"},"httpAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":false,"noDelay":true,"path":null},"requests":{},"sockets":{"127.0.0.1:80:":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_closeAfterHandlingError":false,"_events":{"close":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":1},"allowHalfOpen":false,"_eventsCount":7,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null,"parser":null,"_httpMessage":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":false,"_last":true,"chunkedEncoding":false,"shouldKeepAlive":false,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":true,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":"1456","_hasBody":true,"_trailer":"","finished":true,"_headerSent":true,"_closed":false,"_header":"POST /plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded
User-Agent: axios/1.5.1
Content-Length: 1456
Accept-Encoding: gzip, compress, deflate, br
Host: 127.0.0.1
Connection: close
","_keepAliveTimeout":0,"method":"POST","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","_ended":true,"res":{"_events":{"end":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"httpVersionMajor":1,"httpVersionMinor":0,"httpVersion":"1.0","complete":true,"rawHeaders":["Date","Wed, 02 Apr 2025 09:57:21 GMT","Server","Apache","X-Content-Type-Options","nosniff","X-Frame-Options","sameorigin","X-XSS-Protection","1; mode=block","Referrer-Policy","strict-origin-when-cross-origin","Permissions-Policy","accelerometer=(),battery=(),fullscreen=(self),geolocation=(),camera=(),ambient-light-sensor=(self),autoplay=(self)","Content-Security-Policy","default-src 'self' file: data: blob: filesystem:;script-src-attr 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr *.googleapis.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr;script-src-elem 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.google.fr;img-src 'self' * data:;style-src 'self' 'unsafe-inline';style-src-attr 'self' 'unsafe-inline';worker-src blob:;frame-src 'self' *.jeedom.com *.google.com *.google.fr *.googleapis.com data:;","Access-Control-Allow-Origin","*","Access-Control-Allow-Credentials","true","Access-Control-Allow-Headers","origin, x-requested-with, content-type","Access-Control-Allow-Methods","PUT, GET, POST, DELETE, OPTIONS","Content-Length","0","Connection","close","Content-Type","text/html; charset=UTF-8"],"rawTrailers":[],"aborted":false,"upgrade":false,"url":"","method":null,"statusCode":500,"statusMessage":"Internal Server Error","_consuming":false,"_dumped":false,"_eventsCount":4,"responseUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","redirects":[]},"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"127.0.0.1","protocol":"http:","_redirectable":{"_events":{},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"http:","path":"/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","method":"POST","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","User-Agent":"axios/1.5.1","Content-Length":"1456","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{},"beforeRedirects":{},"hostname":"127.0.0.1","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0}},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0,"maxCachedSessions":100,"_sessionCache":{"map":{},"list":[]}}}},"pathname":"/plugins/mqtt2/core/php/jeeMqtt2.php","search":"?apikey=XXXXXXXXX"},"_ended":true,"_ending":true,"_redirectCount":0,"_redirects":[],"_requestBodyLength":1456,"_requestBodyBuffers":[],"_eventsCount":3,"_currentUrl":"http://127.0.0.1/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX"}}}]},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":false,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":1},"method":"post","url":"http://127.0.0.1:80/plugins/mqtt2/core/php/jeeMqtt2.php?apikey=XXXXXXXXX","data":"{\"home\":{\"TGW_2648\":{\"BTtoMQTT\":{\"DCDA0CCEDADE\":{\"manufacturerdata\":\"280b0040dcda0ccedadc01000002\",\"name\":\"CERSM-wd1-5A\",\"id\":\"DC:DA:0C:CE:DA:DE\",\"rssi\":-80,\"mfr\":\"CHACON\"},\"5004A3B2F618\":{\"id\":\"50:04:A3:B2:F6:18\",\"rssi\":-64,\"servicedatauuid\":\"fef3\",\"servicedata\":\"4a1723465856441134b1348262c081f52b061a2377f20f43b840a4\"}}}},\"tgw\":{\"2595\":{\"LWT\":\"offline\"},\"2617\":{\"LWT\":\"offline\"},\"2648\":{\"LWT\":\"offline\"},\"2765\":{\"LWT\":\"offline\"}},\"shellies\":{\"shellyem-pvcar-pisc\":{\"online\":false},\"shellymini-ambiances\":{\"online\":false},\"shellymini-pergola\":{\"online\":false},\"shellymini-veranda\":{\"online\":false},\"shellymini-parking\":{\"online\":false},\"shellymini-petanque\":{\"online\":false},\"shellyem-linkypvm\":{\"online\":false},\"shellyem-climvmc\":{\"online\":false},\"shellymini-escalier\":{\"online\":false},\"shellymini-carport\":{\"online\":false},\"shellymini-alim\":{\"online\":false},\"shelly_ecs\":{\"online\":false},\"shellymini-extsalon\":{\"online\":false},\"shellyplus1-piscine\":{\"online\":false},\"shellyplus1pm_cumulus\":{\"online\":false}},\"mqttmanager\":{\"state\":\"offline\"},\"zigbee2mqtt\":{\"bridge\":{\"state\":{\"state\":\"offline\"}}},\"openevse-garage\":{\"announce\":{\"ebc0\":{\"state\":\"disconnected\",\"id\":\"94b555a1ebc0\",\"name\":\"borne-garage\"}}},\"state\":{\"F0F5BD743284\":{\"up\":false,\"reason\":\"LWT\"},\"F0F5BD73709C\":{\"up\":false,\"reason\":\"LWT\"},\"F0F5BD73777C\":{\"up\":false,\"reason\":\"LWT\"}},\"openevse-carport\":{\"announce\":{\"9c94\":{\"state\":\"disconnected\",\"id\":\"94b5557d9c94\",\"name\":\"borne-carport\"}}}}"},"code":"ERR_BAD_RESPONSE","status":500}
[2025-04-02 09:57:22] ERROR  : Reconnection to mqtt server
[2025-04-02 09:57:22] ERROR  : Error on connection to mqtt server : Error: connect ECONNREFUSED 127.0.0.1:8883

le swap est tombé à 0 :


il redémarre tous les 24h maintenant et repasse :

J’ai suivi les conseils d’ici car config deb11 :

Et ce post surtout qui indique une fuite mémoire du plugin xiaomi avec debian11 (sans log ni rien).

Sur ce point, je suis en train de migrer mon réseau zigbee vers une clé zigbee pour à terme sortir du plugin xiaomi.