mbc0 Posted June 25, 2022 Share Posted June 25, 2022 Hi, I have a couple of scripts that I have not run for about a year but they no longer run and each have the same error OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "/UNRAIDSHARE/bashfile/opus.bash": permission denied: > I have tried changing the user but it makes no difference? has something changed in unraid? Here is my script #!/bin/bash docker exec -u root -i Blender-Desktop-G3 /UNRAIDSHARE/bashfile/opus.bash /UNRAIDSHARE/opustest Quote Link to comment
trurl Posted June 25, 2022 Share Posted June 25, 2022 Where is this script stored? Quote Link to comment
mbc0 Posted June 25, 2022 Author Share Posted June 25, 2022 Ah! I see all scripts are stored on the boot usb and that is now not possible. Why does unraid create scripts there if you are unable to run them from boot? I cannot see a way to move/change the script location? Quote Link to comment
itimpi Posted June 25, 2022 Share Posted June 25, 2022 4 minutes ago, mbc0 said: Why does unraid create scripts there if you are unable to run them from boot? As a persistent storage location that survives a reboot. You can store them on /boot, but not set the execute bit. 5 minutes ago, mbc0 said: cannot see a way to move/change the script location? You can add an entry to the /boot/config/go file to move them to a suitable runtime location and set the execute bit. Alternatively you can precede the script invocation with the bash command so it reads bash path-to-script as in that case it is not necessary to have the execute bit set on the script file. 1 Quote Link to comment
mbc0 Posted June 25, 2022 Author Share Posted June 25, 2022 Thank you, I had just found that on the CA scripts forum, added the "bash" and now all running again! Thank you! 🙂 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.