I just installed octopi the other day, and I've noticed that dbus-daemon slowly increases in memory until eventually it starts swapping, and eventually OOM killer takes action. I tried running dbus-monitor, but it didn't really show anything useful. Has anyone else seen this and/or know what could be causing it?
Here's dbus-monitor output. I let it run for a minute before ^C. The two messages listed show immediately, and then nothing:
dbus is a messaging provider and a bit like sockets perhaps. It's typically used for program-to-program communication. Presumably a pair of applications aren't configured correctly. You might look for errors in the octoprint.log. You'd especially try to run in safe mode to compare/contrast.
This was from a stock octopi install, with no plugins installed. I restarted in safemode, but dbus-daemon is still taking up 50% of memory (and slowly climbing). The only thing I see that's of warning/error level is a bunch of these:
Common culprit of this at least in my household is the Home Assistant integration which will regularly poll the printer endpoint. I need to find the time to prep a PR at some point that switches said integration over to socket communication...
Maybe the original poster would recognize the mentioned IP address as that of either their own workstation or something else on the network like a Home Assistant or similar.
We do in fact have home assistant, and that IP address is the address of it. Though it's also running zabbix, which is monitoring it. However, I don't believe it's zabbix as I'm not seeing this issue anywhere else. I'll try shutting off home assistant's access to it and see if that resolves the issue.
root@octoprint:~# /home/pi/oprint/bin/octoprint --version
octoprint, version 1.3.12
root@octoprint:~#
I had just downloaded octopi a night or two before this started, 2018-11-13-octopi-stretch-lite-0.16.0.img and doing a system update after.
Honestly, my own Orbi router will promiscuously try to determine who-is-who from a hostname and capabilities standpoint. So if it exists on my network, Orbi has tried to repeatedly ask a somewhat innocent-yet-stupid question every minute, basically: who are you? It's querying a non-existent endpoint (which I forget). Perhaps yours is doing the same.
@foosel it's certainly possible. Based on an image from over a year ago, there was a lot to update. With the Home Assistant portion shut off, I'm not seeing the issue anymore, so it definitely seems to be something to do with the way that HA is interacting with octoprint.
@OutsourcedGuru I have Ubiquiti hardware here. It doesn't seem to be doing anything untoward on the network as far as this is concerned. But it's possible?
My logs are absolutely full of this message - up to 5 times per second. It appears to be Home Assistant, but I have no idea why it would poll so frequently. Running both Home Assistant and OctoPrint in Docker on a NUC, so I guess it has a bit more horsepower than a Pi.
I had problems connecting to the printer this morning, so I'm going to have to rip out the Home Assistant integration, which is a shame.