Dietpi: Roon Bridge service migration to own user - Files permissions prevent start of service

Created on 20 Jul 2018  路  11Comments  路  Source: MichaIng/DietPi

Required Information:

  • DietPi version | 6.12
  • Distro version | stretch
  • Kernel version | Linux RPi-Salon 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux
  • SBC device | RPi 2 Model B (armv7l)
  • Power supply used | Official RPi PS, 2.5A 5V
  • SDcard used | SanDisk ultra

Additional Information (if applicable):

  • Software title | Roon Bridge
  • Was the software title installed freshly or updated/migrated? | It was migrated, but an uninstall, deleting logs and reinstall changes nothing
  • Can this issue be replicated on a fresh installation of DietPi? | Don't know, not tried, but probably
  • dietpi-bugreport ID d963ca2e-6db8-441a-ab40-00d779e10e93

Steps to reproduce:

  1. Install Roon Bridge from dietpi-software

Expected behaviour:

  • the Roon Bridge service should be starting normally

Actual behaviour:

  • The Roon Bridge service fails to start because of failure to open/move files due to wrong file permissions

Extra details:

journalctl logs extract | https://pastebin.com/9jESKE4P

Bug Known Issue Solution available

Most helpful comment

YAY! Glad to have been a trigger!
Thanks for DietPi, I love it!

Used at home this way:
Redhill, UK - http://www.youplala.net/wp-content/uploads/2018/02/2018021201-Multimedia-Setup.pdf
One additional baby bedroom with SqueezeLite and motionEye
All with netdata monitoring

And in other places these ways:

Around Seattle, USA - https://www.youplala.net/wp-content/uploads/2017/12/2017121501-Music-System-Diagrams.png

Dar Es Salaam, Tanzania (before in Dubai, UAE) all migrated to DietPi for the Bridges since - https://www.youplala.net/wp-content/uploads/2017/12/2017011405-Home-setup.png?w=1000

All 11 comments

@camelreef
When did you update your DietPi? Yesterday I did an emergency fix about this issue, but that was about 2 hours after release: https://github.com/Fourdee/DietPi/issues/1939
Checking your bug report, it seems you updated just during this two hours, which should be at least 11 hours ago. Can you confirm? Otherwise I need to recheck.

But the fix is at least easy:

mkdir -p /var/log/roon
chown roon:dietpi /var/log/roon
rm $G_FP_DIETPI_USERDATA/roon/RoonBridge/Logs
rm $G_FP_DIETPI_USERDATA/roon/RAATServer/Logs
ln -sf /var/log/roon $G_FP_DIETPI_USERDATA/roon/RoonBridge/Logs
ln -sf /var/log/roon $G_FP_DIETPI_USERDATA/roon/RAATServer/Logs
systemctl restart roonbridge

I did the upgrade 1-2 hours ago only, so after the window.

The fix you've given me does indeed work, Many thanks for that!

@camelreef
Thanks for feedback. Hmm that is strange. Current update should include all the steps above:

But checking your bug report, your dietpi-software is on the stage before the hotfix. Hmm not sure about caching issues here 馃.

Checking: When I download current master zip (which dietpi-update does), I have the current version with fix as expected. Very strange. However I hope you are a single case 馃槄.

Ahhh, forgot the master mirror on dietpi.com: https://dietpi.com/downloads/dietpi-update_mirror/master/
Will bring it up to date!

Okay done, at least this will prevent the issue for all updating from now on. I will keep this issue open, in case other user already ran into it.

YAY! Glad to have been a trigger!
Thanks for DietPi, I love it!

Used at home this way:
Redhill, UK - http://www.youplala.net/wp-content/uploads/2018/02/2018021201-Multimedia-Setup.pdf
One additional baby bedroom with SqueezeLite and motionEye
All with netdata monitoring

And in other places these ways:

Around Seattle, USA - https://www.youplala.net/wp-content/uploads/2017/12/2017121501-Music-System-Diagrams.png

Dar Es Salaam, Tanzania (before in Dubai, UAE) all migrated to DietPi for the Bridges since - https://www.youplala.net/wp-content/uploads/2017/12/2017011405-Home-setup.png?w=1000

@camelreef
I really just use a tiny part of SBC potential. It is always nice, involving with DietPi, to get known with the full potential of the software offer. Great what roon, kodi etc. developers do and great that we can help a bid to spread this nice software to people 馃槏.

@MichaIng

Great work on the fast fix for this 馃憤

Very strange, how this passed local testing for me without issues during dev. I must of missed something, so apologies from my side.

Ok, lets do a v6.13 hotfix today/tomorrow, just to ensure all users are updated with the hotfix.

@Fourdee
Yeah, I was hoping to prevent a needed hotfix version, but forgot that DietPi code is downloaded from dietpi.com. There should not be much affected due to numbers of RoonBridge installs and updates over the night, but at least all which updates during the night will face an error when installing RoonBridge (new) and some will have tmpfs on /var/log who don't chose/uninstalled dietpi-ramlog.

I think, if no other issues appear now, hotfix update is not needed, but lets see.

I think, if no other issues appear now, hotfix update is not needed, but lets see.

@MichaIng

Yep, agree 馃憤

I will mark this as closed. @camelreef Thanks again for reporting, I guess this saved many others from running to the same issue 馃憤.

Was this page helpful?
0 / 5 - 0 ratings