Skip to content

Unable to deploy empty project #26

Description

@jonas-lauber

Hi, I am desperately trying to deploy my Java app with nanobox but without any success..

I am getting the same error as #24, but his solution doesn't solve my problem...

I am also running on MacOs High Sierra with this config:

$ nanobox config ls
{
  "provider": "docker-machine",
  "ci-mode": false,
  "ci-sync-verbose": false,
  "mount-type": "native",
  "netfs-mount-opts": "",
  "cpus": 2,
  "ram": 2,
  "disk": 102400,
  "external-network-space": "192.168.99.50/24",
  "docker-machine-network-space": "172.21.0.1/16",
  "native-network-space": "172.20.0.1/16",
  "ssh-key": "default",
  "ssh-encrypted-keys": f
}

I even try to deploy an empty project without compile and still get the same error..

Here is my boxfile.yml:

run.config:
  engine: java

  engine.config:
    compile: 'echo "skip compile"'
    runtime: oracle-jdk8
    maven_version: '3.3'

And here is what I get:

$ nanobox deploy dry-run --debug
Compiling application :
  ✓ Starting docker container
  ✓ Preparing environment for compile
  ! Compiling code
    - Cleaning up any previous releases...
    - Copying code...
    - maven install :
      skip compile
    
    ! FAILED TO COMPILE APP !
    
    Exit
     1
    
    Command
     su - gonano -c "cd /opt/nanobox/engine/bin; export PATH=\"/data/sbin:/data/bin:/opt/gonano/sbin:/opt/gonano/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"; export CODE_DIR=\"/app\"; export DATA_DIR=\"/data\"; export APP_DIR=\"/mnt/app\"; export CACHE_DIR=\"/mnt/cache\"; export ETC_DIR=\"/data/etc\"; export ENV_DIR=\"/data/etc/env.d\"; stdbuf -o0 /opt/nanobox/engine/bin/compile '{\"code_dir\":\"/app\",\"data_dir\":\"/data\",\"app_dir\":\"/mnt/app\",\"cache_dir\":\"/mnt/cache/app\",\"etc_dir\":\"/data/etc\",\"env_dir\":\"/data/etc/env.d\",\"config\":{\"compile\":\"echo \\\"skip compile\\\"\",\"maven_version\":\"3.3\",\"runtime\":\"oracle-jdk8\"}}'"
    
    Output
     - maven install :
       skip compile
   
Failed to execute compile hook: [HOOKS] failed to execute hook (compile) on 45f9de78dd18f56558a279a8165f4d20b8c4de11da7de81958d89e34f88e033a: util:Exec:/opt/nanobox/hooks/compile: bad exit code(1):

Anyone have any clue of what is going on ? Or how I could debug it further ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions