I don’t see much that’s unusual, except maybe the LAN Manager which says:
fails to discover devices over network - Illegal netmask in "192.168.0.0/254".
Maybe try asking for more logs?
I don’t see much that’s unusual, except maybe the LAN Manager which says:
fails to discover devices over network - Illegal netmask in "192.168.0.0/254".
Maybe try asking for more logs?
Starting with 150:
docker logs gladys --tail=150
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 0,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError]
},
_eventsCount: 2,
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: 'https:',
path: '/google/report_state',
method: 'POST',
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: 'api.gladysgateway.com',
port: null,
nativeProtocols: [Object],
pathname: '/google/report_state'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 81,
_requestBodyBuffers: [ [Object] ],
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
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: 81,
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /google/report_state HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json\r\n' +
'authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6ImJlZTdiOTNjLTE0Y2ItNDBjNS1iYmRiLWFlZmFlMjg4MTM1MSIsImlhdCI6MTY5MDE5MjU2NCwiZXhwIjoxNjkwMTk2MTY0LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.dc1OI7F0Xzgjzv8fkOql1ZbVZQqFekErscBJbG-aJyg\r\n' +
'User-Agent: axios/0.21.4\r\n' +
'Content-Length: 81\r\n' +
'Host: api.gladysgateway.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/google/report_state',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'api.gladysgateway.com',
protocol: 'https:',
_redirectable: [Circular *1],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'https://api.gladysgateway.com/google/report_state',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
2023-07-24T12:19:50+0200 <info> lan-manager.scan.js:19 (LANManager.scan) LANManager starts scanning devices...
2023-07-24T12:20:00+0200 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 24 Jul 2023 10:20:00 GMT
2023-07-24T12:20:21+0200 <error> lan-manager.scan.js:49 (NmapScan.onError) LANManager fails to discover devices over network - Illegal netmask in "192.168.0.0/254". Assuming /32 (one host)
2023-07-24T12:20:21+0200 <info> lan-manager.stop.js:12 (LANManager.stop) LANManager stops scanning devices
2023-07-24T12:21:00+0200 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 24 Jul 2023 10:21:00 GMT
2023-07-24T12:21:31+0200 <warn> handleMqttMessage.js:106 () Zigbee2mqtt device 0xa4c138720bd5bffb, feature indicator_mode not configured in Gladys.
2023-07-24T12:21:31+0200 <warn> handleMqttMessage.js:106 () Zigbee2mqtt device 0xa4c138720bd5bffb, feature power_outage_memory not configured in Gladys.
2023-07-24T12:21:31+0200 <warn> handleMqttMessage.js:106 () Zigbee2mqtt device 0xa4c138720bd5bffb, feature indicator_mode not configured in Gladys.
2023-07-24T12:21:31+0200 <warn> handleMqttMessage.js:106 () Zigbee2mqtt device 0xa4c138720bd5bffb, feature power_outage_memory not configured in Gladys.
2023-07-24T12:21:50+0200 <info> lan-manager.scan.js:19 (LANManager.scan) LANManager starts scanning devices...
2023-07-24T12:21:51+0200 <info> calendar.requests.js:53 () CalDAV : Found calendar b3N p3Rso
2023-07-24T12:21:51+0200 <info> calendar.requests.js:53 () CalDAV : Found calendar aabo
2023-07-24T12:21:51+0200 <info> calendar.requests.js:53 () CalDAV : Found calendar Contacts\&Anniv
2023-07-24T12:21:51+0200 <info> calendar.requests.js:53 () CalDAV : Found calendar Oscar, Léo, vacances \& Cie
2023-07-24T12:21:51+0200 <info> calendar.requests.js:53 () CalDAV : Found calendar Jours fériés en France
2023-07-24T12:21:51+0200 <info> calendar.syncUserCalendars.js:38 (CalDAVHandler.syncUserCalendars) CalDAV : Found 5 calendars.
2023-07-24T12:21:57+0200 <error> lan-manager.scan.js:49 (NmapScan.onError) LANManager fails to discover devices over network - Illegal netmask in "192.168.0.0/254". Assuming /32 (one host)
2023-07-24T12:21:57+0200 <info> lan-manager.stop.js:12 (LANManager.stop) LANManager stops scanning devices
2023-07-24T12:22:00+0200 <info> scene.checkCalendarTriggers.js:24 (SceneManager.checkCalendarTriggers) Checking calendar triggers at Mon, 24 Jul 2023 10:22:00 GMT
Yes, I’ve disabled LAN Manager in the meantime
Why don’t you ask for more at once and send all of that here via https://pastebin.com/?
At the same time, can you tell me more about your setup?
Which integrations have been configured? How many devices do you have?
I’ve configured the services that are turned on
And for the devices it’s mostly Zigbee:
5 temperature/humidity sensors
5 bulbs
7 plugs
1 roller shutter switch
3 no-neutral switches
4 double-pole switches
2 single buttons
There are 66 active scenes and 8 disabled…
Should I ask for 1000? like in your example?
The ideal would be everything ![]()
Do you know how to transfer a file from this server to your machine or not? If yes you can send the docker logs gladys to a file and then retrieve that complete file and upload it to Pastebin
Otherwise, copy-paste a large number of lines like you’re doing now (10k, 20k?) — up to whatever point you see something interesting in the logs ![]()
Ideally everything
I tested 20K and 30K and if I’m not mistaken both display the same result, I believe everything is there:
Great, that’s indeed all the logs ![]()
I downloaded it — please delete it because there’s some sensitive information in it.
And if you run:
docker stats
And:
htop
You may need to install htop with:
apt-get install htop
Is your machine underwater or not?
Ok, but right now is everything okay?
Could it by any chance have been your LAN Manager that was scanning too aggressively before?
Yes, just now, everything is functional, it’s not at all unlikely that it’s the LAN Manager
I don’t have a clearly defined use for it yet… I’ll leave it off for a while to confirm.
Ok, keep us posted! Indeed, that could explain all those problems, because in the logs you had quite a few network-related errors (DNS resolution failing in particular)
If the network interface is saturated, that would explain why you couldn’t SSH or access the interface
Ok, keep us posted!
I’ll be sure to, and thank you for your time
Or there is an IP address conflict, with your Ubuntu server trying to assign itself an address that’s already in use on the network. Try setting one that’s available (from Ubuntu or from your router).
The DHCP on my router is supposed to assign addresses between 10 and 50.
During setup I assigned a fixed IP for the server at 200.
In principle, that’s not the problem.
Well, finally Gladys has been running very well for a little over a month on the mini PC.
And I’m delighted.
Just one thing: in case of a power cut (or when the nanny unplugs an outlet at random to charge her phone!!!
), a mini PC doesn’t restart by itself, unlike the Pi…
Do I need another device (a Pi or a VM on my Freebox) to send a Wake-on-LAN (WoL)?
I haven’t reactivated the LAN Manager, though…
To be honest, I don’t have any use for it at the moment!
On a PC, you can enable an option in the BIOS so that it turns itself back on in the event of a power outage… I can’t tell you more because the procedure depends on the brand and model!