Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. `exec format error` when running a Docker image for Writefreely

`exec format error` when running a Docker image for Writefreely

Scheduled Pinned Locked Moved App Packaging & Development
4 Posts 4 Posters 849 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pepicrftP Offline
    pepicrftP Offline
    pepicrft
    wrote on last edited by
    #1

    Hi,
    I'm forked Writefreely to add a CloudronManifest.json file and adjusted the Dockerfile 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 runs box: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

    timconsidineT girishG 2 Replies Last reply
    1
    • pepicrftP pepicrft

      Hi,
      I'm forked Writefreely to add a CloudronManifest.json file and adjusted the Dockerfile 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 runs box: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

      timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by
      #2

      @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

      subvenS 1 Reply Last reply
      1
      • girishG girish moved this topic from Support on
      • timconsidineT timconsidine

        @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

        subvenS Offline
        subvenS Offline
        subven
        wrote on last edited by
        #3

        @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)?

        1 Reply Last reply
        0
        • pepicrftP pepicrft

          Hi,
          I'm forked Writefreely to add a CloudronManifest.json file and adjusted the Dockerfile 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 runs box: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

          girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #4

          @pepicrft run.sh needs to be an executable i.e chmod +x in the repo.

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search