Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Che Using Docker - npm error #2247

Closed
motorina0 opened this issue Aug 29, 2016 · 11 comments
Closed

Build Che Using Docker - npm error #2247

motorina0 opened this issue Aug 29, 2016 · 11 comments
Assignees
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@motorina0
Copy link

motorina0 commented Aug 29, 2016

Trying to "Build Che Using Docker" as described here:
https://github.com/eclipse/che/wiki/Development-Workflow#build-che-using-docker

Reproduction Steps:

  1. Install latest version of Docker Toolbox
  2. Start and connect to the VM
  3. Run the docker command for running the Che build (see docker-che-build.txt)

Expected behavior:
Build runs with success. On my host's Maven repo I have all the Che artifacts

Observed behavior:
Build Fails with:
An Ant BuildException has occured: exec returned: 185 around Ant part ...... @ 4:82 in /home/user/che-build/dashboard/target/antrun/build-main.xml

Attached two files with the logs from "docker run" and "npm" (docker-che-build.txt and npm-debug.log )

Che version: Source Code (branch created from tag 4.6.1)
OS and version: Windows 7 Profesional
Docker version:
Client:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 23:54:00 2016
OS/Arch: linux/amd64

Server:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 23:54:00 2016
OS/Arch: linux/amd64

Che install: Docker

Additional information:
Increased VM memory from 1 GB to 3GB, but build still fails.

  • Problem started happening recently, didn't happen in an older version of Che: [Yes/No]
    • older versions did not had build using Che
  • Problem can be reliably reproduced, doesn't happen randomly: [Yes]
@motorina0
Copy link
Author

Log files:
docker-che-build.txt
npm-debug.log.txt

@TylerJewell
Copy link

@benoitf - assigned to you.

@TylerJewell TylerJewell added the kind/question Questions that haven't been identified as being feature requests or bugs. label Aug 29, 2016
@ghost
Copy link

ghost commented Aug 29, 2016

@motorina0 This is a VBox issue. When dashboard is built, a symlink is created. Since project sources are mounted in your Windows OS, it is not allowed to create symlinks there.

npm/npm#9901 similar issue

@benoitf
Copy link
Contributor

benoitf commented Aug 29, 2016

@motorina0 could you add after line
https://github.com/eclipse/che/blob/master/dashboard/pom.xml#L63

 <arg value=" --no-bin-links" />

@motorina0
Copy link
Author

updated like this:

       <!-- Download NPM dependencies -->
       <exec dir="${basedir}" executable="npm" failonerror="true">
          <arg value="install" />
          <arg value="--no-bin-links" />
       </exec>

Got new error:

     [exec] npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
     [exec] npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
     [exec]
     [exec] (null):0
     [exec] (null)
     [exec]
     [exec] RangeError: Maximum call stack size exceeded
[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (compile) on project che-dashboard-war: An Ant BuildException has occured: exec returned: 7
[ERROR] around Ant part ...<exec failonerror="true" dir="/home/user/che-build/dashboard" executable="npm">... @ 4:82 in /home/user/che-build/dashboard/target/antrun/build-main.xml

@benoitf
Copy link
Contributor

benoitf commented Aug 29, 2016

could you run again ? it seems first run fails while second run succeed with npm --no-bin-links ...
npm/npm#9953

@motorina0
Copy link
Author

Second run gave me:

    [exec] npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
     [exec] npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
     [exec] npm WARN notsup Not compatible with your operating system or architecture: [email protected]
     [exec] npm ERR! Linux 4.4.16-boot2docker
     [exec] npm ERR! argv "node" "/usr/local/bin/npm" "install" "--no-bin-links"
     [exec] npm ERR! node v0.12.9
     [exec] npm ERR! npm  v3.10.5
     [exec] npm ERR! path /home/user/che-build/dashboard/node_modules/ng-annotate-loader/node_modules/source-map
     [exec] npm ERR! code EPERM
     [exec] npm ERR! errno -1
     [exec]
     [exec] npm ERR! Error: EPERM, rename '/home/user/che-build/dashboard/node_modules/ng-annotate-loader/node_modules/source-map'
     [exec] npm ERR!     at /usr/local/lib/node_modules/npm/lib/install/action/finalize.js:64:7
     [exec] npm ERR!     at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
     [exec] npm ERR!     at Array.forEach (native)
     [exec] [email protected] /home/user/che-build/dashboard
     [exec] ├─┬ [email protected]

See also attached files docker-che-build2.txt and npm-debug2.log.txt

@ghost
Copy link

ghost commented Aug 30, 2016

@motorina0 do you absolutely need to build dashboard? Is building just an assembly a way to go for you?

I cannot reproduce it on Ubuntu and CentOS.

@motorina0
Copy link
Author

I did wanted to build the dashboard since I wanted to do some customization.
I will run the normal build on Windows then. Thank you.

Issue can be closed from my side.

@motorina0
Copy link
Author

It would be useful to specify on the wiki that on Windows with Docker Toolbox there are still some issues.
Just updating the paths does not seam to be enough

# For Windows, replace $HOME with maven repo directory.
# For Windows, replace $PWD with Che source code directory.

@benoitf
Copy link
Contributor

benoitf commented Aug 30, 2016

@motorina0 ok thanks for the report I've updated the wiki with a note for errors on Windows for Dashboard module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

3 participants