`exec format error` when running a Docker image for Writefreely
-
Hi,
I'm forked Writefreely to add aCloudronManifest.jsonfile and adjusted theDockerfileto install it in my Cloudron instance. The Docker image builds successfully but when Cloudron tries to run it, I get the following error when it runsbox:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx:standard_init_linux.go:228: exec user process caused: exec format errorI did a bit of search on the internet and it turns out the
restartservice.shmight be missing the shebang and therefore the OS doesn't know how to execute the script. I replaced the Alpine image with Ubuntu's and the issue persists so I'm not quite sure what I can install/configure in the OS for that script to run successfully. Any ideas?Thanks in advance,
Pedro -
Hi,
I'm forked Writefreely to add aCloudronManifest.jsonfile and adjusted theDockerfileto install it in my Cloudron instance. The Docker image builds successfully but when Cloudron tries to run it, I get the following error when it runsbox:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx:standard_init_linux.go:228: exec user process caused: exec format errorI did a bit of search on the internet and it turns out the
restartservice.shmight be missing the shebang and therefore the OS doesn't know how to execute the script. I replaced the Alpine image with Ubuntu's and the issue persists so I'm not quite sure what I can install/configure in the OS for that script to run successfully. Any ideas?Thanks in advance,
Pedro@pepicrft I'm not sure this will make a difference but generally recommended to build the Dockerfile using the cloudron base image
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263eaCould try that out
-
G girish moved this topic from Support on
-
@pepicrft I'm not sure this will make a difference but generally recommended to build the Dockerfile using the cloudron base image
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263eaCould try that out
@timconsidine thats what I tought too but the offical documentation not even mentions the Cloudron base image.
Have you took a look at other packed go apps for Cloudron? Is the user you exec with correct (because just a /usr/bin/sudo -S feels wrong)?
-
Hi,
I'm forked Writefreely to add aCloudronManifest.jsonfile and adjusted theDockerfileto install it in my Cloudron instance. The Docker image builds successfully but when Cloudron tries to run it, I get the following error when it runsbox:shell reload spawn: /usr/bin/sudo -S /home/yellowtent/box/src/scripts/restartservice.sh nginx:standard_init_linux.go:228: exec user process caused: exec format errorI did a bit of search on the internet and it turns out the
restartservice.shmight be missing the shebang and therefore the OS doesn't know how to execute the script. I replaced the Alpine image with Ubuntu's and the issue persists so I'm not quite sure what I can install/configure in the OS for that script to run successfully. Any ideas?Thanks in advance,
Pedro
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login