radiodan / radiodan.js

Radiodan audio server
Other
5 stars 1 forks source link

Config directory race between mopidy processes #21

Closed tthef closed 9 years ago

tthef commented 9 years ago

On startup, mopidy checks if $XDG_CONFIG_HOME/mopid directory tree exists, and if not it creates it. However, there is a race between the three processes the server starts on first boot, all three try to create this directory, and two will abort becaue the directory was already created by the first.

We can work around this by ensuring the directory exists in advance, but I expect the three instances might then fight over the files that they place into there. I'll make the Yocto build to ensure the directory, but I though I should flag this up.

tthef commented 9 years ago

Sorry, the directory in question is $XDG_DATA_DIR/mopidy

pixelblend commented 9 years ago

I've made some changes to the mopidy config so that each player uses a distinct path. That should prevent the race condition.