The officially official Devuan Forum!

You are not logged in.

#26 Yesterday 21:08:13

rolfie
Member
Registered: 2017-11-25
Posts: 1,299  

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

greenjeans wrote:

    ... do you have an /etc/machine-id file?

Of course, I say so in one of my last posts.
I wrote:

    Machine-id is set thus:

    $ cat /var/lib/dbus/machine-id
    26a708d3d7dc6778fc6ff9f55921b024
    $

That means your machine-id is fixed. The patch changing the machine-id works fine if that file does not exist. I don't have this file on my Daedalus and changing ids.

Last edited by rolfie (Yesterday 21:08:48)

Offline

#27 Yesterday 21:28:17

greenjeans
Member
Registered: 2017-04-07
Posts: 1,173  
Website

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

No not the /var/lib/dbus/machine-id file, I specifically mean  /etc/machine-id which is a different file..located in /etc...lol. You shouldn't have one but if you do it might be an issue.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded August 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#28 Yesterday 21:46:12

Altoid
Member
Registered: 2017-05-07
Posts: 1,834  

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

Hello:

@Rolfie

Rolfie wrote:

... patch changing the machine-id works fine if that file does not exist.

But it does ...

$ ls -l /etc/machine-id
-r--r--r-- 1 root root 33 Dec 13  2017 /etc/machine-id
$ 

And then the patch does not work.

@greenjeans

greenjeans wrote:

No not the /var/lib/dbus/machine-id file ...

Right ...

I knew which one you were referring to because I had both seen it and remembered that I had seen it.
But, as you can gather *...

See the date and the attributes?
It has probably been there since my first Devuan Linux installation, Jesse.
The patch evidently did not act on an existing machine-id and so it remained static.

I'll nuke it, see what happens after a few reboots and report back, later or early tomorrow.

Sorry about the distraction. 8^/

Best,

A.

Offline

#29 Yesterday 22:13:58

greenjeans
Member
Registered: 2017-04-07
Posts: 1,173  
Website

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

Yeah that should change things Altoid, from the mountain of dbus documentation i've been reading today the presence of /etc/machine-id will stop uuidgen from generating new id's. So that seems like the issue in your case. The /etc/machine-id file is some systemd hooha, may have been a leftover from the very early days.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded August 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#30 Yesterday 22:38:22

Altoid
Member
Registered: 2017-05-07
Posts: 1,834  

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

Hello:

greenjeans wrote:

... presence of /etc/machine-id will stop uuidgen from generating new id's.

Yes, that was it.

But clearing out all the files in /.dbus/session-bus and rebooting twice got me this:

$ ls -h -l ~/.dbus/session-bus
total 8.0K
-rw-r--r-- 1 groucho groucho 462 Sep 18 19:15 aa86e5c7c1dc0ddb9ce2992a68cc8415-0
-rw-r--r-- 1 groucho groucho 462 Sep 18 19:08 d843ea5611c4fca72eb6d57968cc81d2-0
$ 

Patch now works but it does not serve any purpose if the previous id file is also there.
And I'll have a huge collection of session-bus files in no time.

Maybe deleting the file on shutdown with a script would do the trick?
I saw an example today, have to look for it.

Best,

A.

Offline

#31 Yesterday 22:55:20

greenjeans
Member
Registered: 2017-04-07
Posts: 1,173  
Website

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

Maybe deleting the file on shutdown with a script would do the trick?

That's my first thought as well, but it would be a band-aid...be nicer if we could mod the behavior of whatever is creating/updating those folders though.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded August 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#32 Yesterday 23:25:18

RedGreen925
Member
Registered: 2024-12-07
Posts: 165  

Re: Growing file bloat in ~/.dbus/session-bus and /root/.dbus/session-bus

I have not seen anyone (yet) report that their system is actually working as intended. ie: creating a new machine-id at boot.

Mine does it, this is the last time the machine was booted.

root@9600k:~# ls -l /var/lib/dbus/machine-id
-rw-r--r-- 1 root root 33 Sep 12 15:17 /var/lib/dbus/machine-id

Only it does not create the files everyone else talks about in the .dbus directories. Not like I care much everything works like it should without them.

Offline

Board footer