mbc0 Posted October 2, 2019 Share Posted October 2, 2019 Hi, I downloaded this bliss docker in feb Author:romancin DockerHub:romancin/bliss Repository:DockerHub Repository Private Repository and although it works whenever it creates new files it does so with root privilages and gets itself in a knot. Is there a way I can get it to run as nobody? the files it tries to modify are set to nobody but it then tries to create a new file as root? Any help would be massively appreciated as I asked for help back in Feb on his github but yet to receive a reply. Thank you Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/11%20-%20Gruff%20Rhys%20-%20John%20Adoring%20at%20Yale.mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/12%20-%20Gruff%20Rhys%20-%20Set%20Fire%20to%20the%20Strings.mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/07%20-%20Gruff%20Rhys%20-%20After%20Hours_Tension.mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/04%20-%20Gruff%20Rhys%20-%20Tremble%20(Down).mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/10%20-%20Gruff%20Rhys%20-%20Log%20Cabin%203.mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/05%20-%20Gruff%20Rhys%20-%20Tremble%20to%20the%20Light.mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/22%20-%20Gruff%20Rhys%20-%20Dylan's%20Demons.mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/06%20-%20Gruff%20Rhys%20-%20Tremble%20(Up).mp3 Couldn't write artwork to enforce artwork count in file:/music/Artists-Bands/Gruff%20Rhys/Set%20Fire%20to%20the%20Stars/13%20-%20Gruff%20Rhys%20-%20After%20Hours_Tender.mp3 Quote Link to comment
saarg Posted October 2, 2019 Share Posted October 2, 2019 Looks like he is using our base image, so you can try to add the PUID and PGID variables to your template. PUID should be 99. PGID should be 100. Quote Link to comment
mbc0 Posted October 2, 2019 Author Share Posted October 2, 2019 Thanks so much for that @saarg I tried it but no success sadly, I also removed the old USER_ID & GROUP_ID variables so got left with just the PUID & GUID as recommended but still have the same result sadly. Cannot understand why it is trying to create these files with these permissions The files in green are the files I put into the directory, the .new files are what the docker creates when trying to process them Quote Link to comment
saarg Posted October 2, 2019 Share Posted October 2, 2019 It's simply because the author didn't care to set it up so you can set the user ID to have correct permissions. Quote Link to comment
mbc0 Posted October 2, 2019 Author Share Posted October 2, 2019 Thanks for the reply @saarg I will try to learn how to find a way to do this, do you think it is possible to "fix" this docker or should I try to create one from scratch, please bear in mind I will be learning from zero. Again, thank you for your time. Quote Link to comment
saarg Posted October 2, 2019 Share Posted October 2, 2019 2 hours ago, mbc0 said: Thanks for the reply @saarg I will try to learn how to find a way to do this, do you think it is possible to "fix" this docker or should I try to create one from scratch, please bear in mind I will be learning from zero. Again, thank you for your time. The easiest would be to ask the author to fix it. Or create one from scratch. Quote Link to comment
mbc0 Posted October 2, 2019 Author Share Posted October 2, 2019 ok, being trying to contact him since Feb with no joy so I will make this my project 🙂 Thank you Quote Link to comment
Squid Posted October 2, 2019 Share Posted October 2, 2019 Can you do this? https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15 Quote Link to comment
saarg Posted October 3, 2019 Share Posted October 3, 2019 9 hours ago, Squid said: Can you do this? https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15 That parameter I completely forgot about. Should work. Quote Link to comment
mbc0 Posted October 3, 2019 Author Share Posted October 3, 2019 13 hours ago, Squid said: Can you do this? https://medium.com/redbubble/running-a-docker-container-as-a-non-root-user-7d2e00f8ee15 Thanks so much for your post, what I read from that link is to do this? problem is the docker does not run due to access denied exception No existing installation in /?/.bliss/code. Will install from /bliss/lib java.nio.file.AccessDeniedException: /? at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) at java.nio.file.Files.createDirectory(Files.java:674) Quote Link to comment
Squid Posted October 3, 2019 Share Posted October 3, 2019 They setting it to a different appdata folderSent from my NSA monitored device Quote Link to comment
mbc0 Posted October 3, 2019 Author Share Posted October 3, 2019 ok, it's a shame as it works without the --user parameter just privileges are wrong. but with the --user parameter the docker won't load. I am going to have to try and learn how to make a docker from scratch I guess like @saarg suggested.. Quote Link to comment
Squid Posted October 3, 2019 Share Posted October 3, 2019 Since tapatalk mangled my prior post, did you try a different appdata folder? Quote Link to comment
mbc0 Posted October 3, 2019 Author Share Posted October 3, 2019 Haha well done tapatalk! 😄 This is the appdata I am using /mnt/cache/appdata/bliss2 Quote Link to comment
mbc0 Posted October 3, 2019 Author Share Posted October 3, 2019 just tried /mnt/cache/appdata/bliss as well with the same result Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.