`exec format error` when running a Docker image for Writefreely
-
wrote on Nov 24, 2022, 7:55 AM last edited by
Hi,
I'm forked Writefreely to add aCloudronManifest.json
file and adjusted theDockerfile
to 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 error
I did a bit of search on the internet and it turns out the
restartservice.sh
might 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.json
file and adjusted theDockerfile
to 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 error
I did a bit of search on the internet and it turns out the
restartservice.sh
might 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:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
Could try that out
-
-
@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:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
Could try that out
wrote on Nov 24, 2022, 8:25 AM last edited by@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.json
file and adjusted theDockerfile
to 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 error
I did a bit of search on the internet and it turns out the
restartservice.sh
might 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