Bug 831626 - /var/lib/dbus/machine-id has different value than /etc/machine-id
Summary: /var/lib/dbus/machine-id has different value than /etc/machine-id
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 12.3
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Fridrich Strba
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-26 14:01 UTC by daniel frenzel
Modified: 2014-03-17 11:04 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
generate /var/lib/dbus/machine-id only if /etc/machine-id does not exist (695 bytes, patch)
2013-09-18 14:57 UTC, Fridrich Strba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description daniel frenzel 2013-07-26 14:01:03 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

If using i.e. steam with pulseaudio it is necessary, that the value of /var/lib/dbus/machine-id is the same as /etc/machine-id to work. Otherwise it will not connect to the pulseaudio daemon. Unfortunatly the values of both files are in all OpenSuse 12.3 installs ALWAYS different. It is highly reproducible in all installations I had so far. Furthermore the value of /var/lib/dbus/machine-id seems to be supposed to be the same as /etc/machine-id. A symlink to /etc/machine-id would solve the issue completely.

Reproducible: Always

Steps to Reproduce:
1.Just install OpenSuse 12.3
2.
3.
Actual Results:  
Different values in both files

Expected Results:  
Same value in both files
Comment 2 daniel frenzel 2013-07-30 09:15:12 UTC
Same bug in OpenSuse 13.1. Installed on different PC in a virtual box.
Comment 3 Fridrich Strba 2013-09-18 14:53:42 UTC
Now, the http://www.freedesktop.org/software/systemd/man/machine-id.html does not specify anywhere that the /etc/machine-id and /var/lib/dbus/machine-id must correspond to each other. So, it is a kind of mistake if a software relies on them being identical. The software normally should assume that they can be different and handle that case graciously.
Comment 4 Fridrich Strba 2013-09-18 14:57:10 UTC
Created attachment 558883 [details]
generate /var/lib/dbus/machine-id only if /etc/machine-id does not exist

Nonetheless, since dbus can use /etc/machine-id if /var/lib/dbus/machine-id is not found, we could eventually create the later only if the former does not exist. In the other case, we could let the dbus only use the /etc/machine-id by not providing the /var/lib/dbus/machine-id
Comment 5 Ludwig Nussel 2013-09-19 15:02:59 UTC
Timo?
Comment 6 daniel frenzel 2013-09-20 11:57:42 UTC
(In reply to comment #3)
> Now, the http://www.freedesktop.org/software/systemd/man/machine-id.html does
> not specify anywhere that the /etc/machine-id and /var/lib/dbus/machine-id must
> correspond to each other. So, it is a kind of mistake if a software relies on
> them being identical. The software normally should assume that they can be
> different and handle that case graciously.

Might be true. But where is the reason to create two files with different value in the system? I think your suggestion to create the second file only if the first one is not found is the method of choice. Nevertheless a check for same value is advised.
Comment 8 Bernhard Wiedemann 2013-10-07 15:00:35 UTC
This is an autogenerated message for OBS integration:
This bug (831626) was mentioned in
https://build.opensuse.org/request/show/202540 Factory / dbus-1
Comment 9 Guus Poort 2013-12-03 13:53:13 UTC
(In reply to comment #2)
> Same bug in OpenSuse 13.1. Installed on different PC in a virtual box.

Confirmed.

Installed openSUSE 13.1 about two weeks ago and installed steam.
I had no sound in any game from Valve.

What worked for me, delete the dbus one, then create a symlink.

sudo ln -s /etc/machine-id /var/lib/dbus/machine-id


https://github.com/ValveSoftware/steam-for-linux/issues/1179#issuecomment-13066470

Now I have sound again in all games from Valve.

This solution has helped already at least two other 13.1 users.(source openSUSE forum )
Comment 10 daniel frenzel 2013-12-04 09:12:43 UTC
I don't understand why it takes so long to change this. 
I mean really, why do have two files with the same name a different value and two locations?
Comment 11 Fridrich Strba 2014-03-17 11:04:15 UTC
This issue was fixed in openSUSE 13.1 by a maintenance update. It is also not issue anymore in openSUSE Factory. I am setting this to resolved-fixed.