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. Error message when buliding sample NodeJS cloudron app

Error message when buliding sample NodeJS cloudron app

Scheduled Pinned Locked Moved App Packaging & Development
5 Posts 2 Posters 793 Views 2 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.
  • ChristopherMagC Offline
    ChristopherMagC Offline
    ChristopherMag
    wrote on last edited by
    #1

    I have installed docker and am trying to locally build the cloudron tutorial nodejs app but I am hitting an error that doesn't make sense.

    Docker version 24.0.6, build ed223bc

    Here are the commands I am running:

    git clone https://git.cloudron.io/cloudron/tutorial-nodejs-app
    docker build -t myapp .
    docker run myapp
    

    This results in the output:

    exec /app/code/start.sh: no such file or directory
    

    If I change the dockerfile to just execute bash , CMD [ "bash" ], it runs. with the exec error.

    If I enter the container I can confirm the file is there, the permissions are correct with execute enabled, but trying to execute the file directly without prefixing it with bash doesn't work.

    Any idea what might be causing this?

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      Seems to work here atleast. I had to comment out the chown /app/data line because that will work only when deployed in Cloudron.

      $ docker run myapp
      Starting Node.js app
      Server running at port 3000
      
      
      1 Reply Last reply
      0
      • ChristopherMagC Offline
        ChristopherMagC Offline
        ChristopherMag
        wrote on last edited by
        #3

        @girish I am running this on Windows 11 professional with docker using the windows subsystem for linux.

        I am working on trying this from an Ubuntu virtual machine.

        What operating system and docker version are you using?

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          I am using Ubuntu 22.04 and docker 23.0.6 . I don't have any experience with WSL, maybe someone else can comment if things are different there.

          1 Reply Last reply
          0
          • ChristopherMagC Offline
            ChristopherMagC Offline
            ChristopherMag
            wrote on last edited by ChristopherMag
            #5

            I tried this on an Ubuntu 22.04 virtual machine and it worked properly as expected. I am not sure what the issue is but Windows 11 pro with Windows Subsystem for Linux 2 and Docker version 24.0.6 results in the no such file or directory.

            I did test other non cloudron related containers with Docker for windows using WSL2 and they worked fine.

            I also reconfigured docker for windows to use it's own VM hosted on Hyper V, no longer using Windows Subsystem for Linux 2, and it also had the same problem with no such file or directory.

            I will stick to running the build process from a Ubuntu VM for now and at present it doesn't look like Docker for Windows, however it is configured, is usable for building containers to be run on cloudron.

            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