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

Can't run :webResourceInstallBowerDependencies #6

Open
sratatata opened this issue Jan 22, 2016 · 5 comments
Open

Can't run :webResourceInstallBowerDependencies #6

sratatata opened this issue Jan 22, 2016 · 5 comments

Comments

@sratatata
Copy link
Contributor

Another issue on my colegues ubuntu:

This time I've some log with --debug

Fragments here. If

Start:

15:38:10.438 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :publisher:webResourceSetupNodeDependencies (Thread[main,5,main]) started.
15:38:10.438 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :publisher:webResourceSetupNodeDependencies
15:38:10.438 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':publisher:webResourceSetupNodeDependencies'
15:38:10.438 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':publisher:webResourceSetupNodeDependencies' is up-to-date
15:38:10.440 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on task history cache (/home/jksiezni/AndroidStudioProjects/smart-novel/.gradle/2.9/taskArtifacts).
15:38:10.440 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
15:38:10.440 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache taskArtifacts.bin (/home/jksiezni/AndroidStudioProjects/smart-novel/.gradle/2.9/taskArtifacts/taskArtifacts.bin)
15:38:10.445 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache outputFileStates.bin (/home/jksiezni/AndroidStudioProjects/smart-novel/.gradle/2.9/taskArtifacts/outputFileStates.bin)
15:38:10.449 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache fileSnapshots.bin (/home/jksiezni/AndroidStudioProjects/smart-novel/.gradle/2.9/taskArtifacts/fileSnapshots.bin)
15:38:10.462 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':publisher:webResourceSetupNodeDependencies' (up-to-date check took 0.024 secs) due to:
  Output file /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules has changed.
  Output file /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/node_modules/mout/src/string/camelCase.js has been removed.
  Output file /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/node_modules/handlebars/dist/amd/precompiler.js has been removed.
15:38:10.462 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':publisher:webResourceSetupNodeDependencies'.
15:38:11.040 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Opening cache fileHashes.bin (/home/jksiezni/AndroidStudioProjects/smart-novel/.gradle/2.9/taskArtifacts/fileHashes.bin)
15:38:11.304 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':publisher:webResourceSetupNodeDependencies'
15:38:11.305 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :publisher:webResourceSetupNodeDependencies (Thread[main,5,main]) completed. Took 0.867 secs.
15:38:11.305 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :publisher:webResourceInstallBowerDependencies (Thread[main,5,main]) started.
15:38:11.305 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :publisher:webResourceInstallBowerDependencies
15:38:11.305 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':publisher:webResourceInstallBowerDependencies'
15:38:11.305 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':publisher:webResourceInstallBowerDependencies' is up-to-date
15:38:11.306 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':publisher:webResourceInstallBowerDependencies' (up-to-date check took 0.001 secs) due to:
  No history is available.
15:38:11.307 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':publisher:webResourceInstallBowerDependencies'.
15:38:11.354 [DEBUG] [io.apigee.trireme.core.internal.RootModuleRegistry] Discovered Node version 0.10.32
15:38:11.357 [DEBUG] [io.apigee.trireme.core.internal.RootModuleRegistry] Discovered Node version 0.12.7
15:38:11.604 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[0] = ./node
15:38:11.604 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[1] = /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/bower.js
15:38:11.604 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[2] = 3
15:38:11.604 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[3] = [
    {
        "name": "jquery",
        "version": "1.10.2",
        "cacheName": "jquery"
    },
    {
        "name": "bootstrap",
        "version": "3.3.6",
        "cacheName": "bootstrap"
    },
    {
        "name": "angular",
        "version": "latest",
        "cacheName": "angular"
    },
    {
        "name": "angular-route",
        "version": "latest",
        "cacheName": "angular-route"
    },
    {
        "name": "font-awesome",
        "version": "latest",
        "cacheName": "font-awesome"
    },
    {
        "name": "angular-ui-tinymce",
        "version": "latest",
        "cacheName": "angular-ui-tinymce"
    },
    {
        "name": "angular-i18n",
        "version": "latest",
        "cacheName": "angular-i18n"
    },
    {
        "name": "angular-translate",
        "version": "latest",
        "cacheName": "angular-translate"
    },
    {
        "name": "angular-translate-loader-static-files",
        "version": "latest",
        "cacheName": "angular-translate-loader-static-files"
    },
    {
        "name": "angular-google-client",
        "version": "latest",
        "cacheName": "angular-google-client"
    }
]
15:38:11.677 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] open(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/bower.js, 0, 438)
15:38:11.678 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] Opening /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/bower.js with [READ]
15:38:11.679 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem]   open(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/bower.js) = 4
15:38:11.795 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower.js = code -2
15:38:11.796 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower.js
15:38:11.804 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower.json = code -2
15:38:11.804 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower.json
15:38:11.804 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower.node = code -2
15:38:11.804 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower.node
15:38:11.805 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] open(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/package.json, 0, 438)
15:38:11.805 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] Opening /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/package.json with [READ]
15:38:11.805 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem]   open(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/package.json) = 5
15:38:11.808 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib.js = code -2
15:38:11.809 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib.js
15:38:11.809 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib.json = code -2
15:38:11.809 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib.json
15:38:11.809 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib.node = code -2
15:38:11.810 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib.node
15:38:11.820 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] open(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/index.js, 0, 438)
15:38:11.820 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] Opening /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/index.js with [READ]
15:38:11.820 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem]   open(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/index.js) = 6
15:38:11.833 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev = code -2
15:38:11.833 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev
15:38:11.834 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev.js = code -2
15:38:11.834 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev.js
15:38:11.834 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev.json = code -2
15:38:11.834 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev.json
15:38:11.834 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev.node = code -2
15:38:11.834 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/node_modules/abbrev.node

Here comes loooooooot of similiar errors and
On the end a lot of

5:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] mainLoop: sleeping for 5049 pinCount = 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 0
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] mainLoop: sleeping for 5049 pinCount = 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 0
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] mainLoop: sleeping for 5049 pinCount = 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 0
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 1
15:38:22.573 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] mainLoop: sleeping for 5049 pinCount = 1
15:38:22.574 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] mainLoop: sleeping for 5048 pinCount = 1

...and in the end:

15:38:22.574 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: /tmp/jksiezni/bower/jquery-11430-0EmNhP = code -2
15:38:22.574 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] Async action io.apigee.trireme.node12.modules.Filesystem$FSImpl$14@354253ba failed: -2: io.apigee.trireme.kernel.OSException: ENOENT:/tmp/jksiezni/bower/jquery-11430-0EmNhP
15:38:22.574 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 0
15:38:22.575 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 1
15:38:22.576 [DEBUG] [io.apigee.trireme.node12.modules.TimerWrap] Starting timer 761189875 in 20000 interval = 0
15:38:22.576 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Going to fire timeout 1 at 1453387122576
15:38:22.576 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 0
15:38:22.576 [DEBUG] [io.apigee.trireme.node12.modules.TimerWrap] Cancelling timer 761189875
15:38:22.580 [QUIET] [system.out] { [Error: ENOTEMPTY:/home/jksiezni/.cache/bower/packages/8ccd8ff8cca80bc6237ebfb752ea634b/1.10.2]
15:38:22.580 [QUIET] [system.out]   message: 'ENOTEMPTY:/home/jksiezni/.cache/bower/packages/8ccd8ff8cca80bc6237ebfb752ea634b/1.10.2',
15:38:22.580 [QUIET] [system.out]   code: 'ENOTEMPTY',
15:38:22.580 [QUIET] [system.out]   errno: -66,
15:38:22.581 [QUIET] [system.out]   path: '/home/jksiezni/.cache/bower/packages/8ccd8ff8cca80bc6237ebfb752ea634b/1.10.2',
15:38:22.581 [QUIET] [system.out]   fileName: '/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/bower/lib/core/ResolveCache.js',
15:38:22.581 [QUIET] [system.out]   lineNumber: 137,
15:38:22.581 [QUIET] [system.out]   data: 
15:38:22.581 [QUIET] [system.out]    { endpoint: { name: '', source: 'jquery', target: '1.10.2' },
15:38:22.581 [QUIET] [system.out]      resolver: 
15:38:22.581 [QUIET] [system.out]       { name: 'jquery',
15:38:22.581 [QUIET] [system.out]         source: 'git://github.com/jquery/jquery-dist.git',
15:38:22.581 [QUIET] [system.out]         target: '1.10.2' } },
15:38:22.581 [QUIET] [system.out]   stack: 'Error: ENOTEMPTY:/home/jksiezni/.cache/bower/packages/8ccd8ff8cca80bc6237ebfb752ea634b/1.10.2\n    at /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:1763\n    at _fulfilled (/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:834)\n    at /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:863\n    at /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:796\n    at /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:556\n    at runSingle (/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:137)\n    at flush (/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:125)\n    at processImmediate (timers.js:370)\n' }
15:38:22.582 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -20: io.apigee.trireme.kernel.OSException: ENOTDIR:/tmp/jksiezni/bower/jquery-11430-0EmNhP
15:38:22.583 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Pin count is now 1
15:38:22.583 [DEBUG] [io.apigee.trireme.node12.modules.TimerWrap] Starting timer 241759673 in 1 interval = 0
15:38:22.583 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Going to fire timeout 2 at 1453387102584
15:38:22.584 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Executing timer 2
15:38:22.584 [DEBUG] [io.apigee.trireme.node12.modules.TimerWrap] Executing timer 241759673 ontimeout = io.apigee.trireme.node12.node.timers@1e98d6d5
15:38:22.584 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Handling fatal exception org.mozilla.javascript.JavaScriptException: InternalError: Script exit: Normal (/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js#161) domain = 0
InternalError: Script exit: Normal
    at /home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:161
    at listOnTimeout (timers.js:119)

15:38:22.584 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Fatal Java exception: {}
org.mozilla.javascript.JavaScriptException: InternalError: Script exit: Normal (/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js#161)
    at org.mozilla.javascript.gen._home_jksiezni_AndroidStudioProjects_smart_novel_publisher_build_webResource_node_modules_q_q_js_262._c_anonymous_9(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js:161)
    at org.mozilla.javascript.gen._home_jksiezni_AndroidStudioProjects_smart_novel_publisher_build_webResource_node_modules_q_q_js_262.call(/home/jksiezni/AndroidStudioProjects/smart-novel/publisher/build/webResource/node_modules/q/q.js)
    at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
    at io.apigee.trireme.node12.node.timers._c_listOnTimeout_3(timers.js:119)
    at io.apigee.trireme.node12.node.timers.call(timers.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
    at io.apigee.trireme.node12.node.timers.call(timers.js)
    at io.apigee.trireme.node12.modules.TimerWrap$TimerImpl.execute(TimerWrap.java:280)
    at io.apigee.trireme.core.internal.ScriptRunner$Task.executeTask(ScriptRunner.java:1485)
    at io.apigee.trireme.core.internal.ScriptRunner$AbstractTask.execute(ScriptRunner.java:1456)
    at io.apigee.trireme.core.internal.ScriptRunner.executeTimerTasks(ScriptRunner.java:1124)
    at io.apigee.trireme.core.internal.ScriptRunner.mainLoop(ScriptRunner.java:946)
    at io.apigee.trireme.core.internal.ScriptRunner.runScript(ScriptRunner.java:774)
    at io.apigee.trireme.core.internal.ScriptRunner$4.run(ScriptRunner.java:702)
    at org.mozilla.javascript.Context.call(Context.java:501)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:503)
    at io.apigee.trireme.core.internal.ScriptRunner.call(ScriptRunner.java:697)
    at io.apigee.trireme.core.ScriptFuture.run(ScriptFuture.java:183)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
15:38:22.584 [DEBUG] [io.apigee.trireme.core.inte

Do you have any idea?

@sratatata
Copy link
Contributor Author

Another PC.
Windows this time:

11:21:01.280 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :publisher:webResourceSetupNodeDependencies
11:21:01.280 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':publisher:webResourceSetupNodeDependencies'
11:21:01.280 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':publisher:webResourceSetupNodeDependencies' is up-to-date
11:21:01.285 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on task history cache (C:\repo\smart-aaaaa\.gradle\2.10\taskArtifacts).
11:21:01.285 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
11:21:01.835 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Skipping task ':publisher:webResourceSetupNodeDependencies' as it is up-to-date (took 0.555 secs).
11:21:01.835 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':publisher:webResourceSetupNodeDependencies'
11:21:01.835 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :publisher:webResourceSetupNodeDependencies UP-TO-DATE
11:21:01.835 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :publisher:webResourceSetupNodeDependencies (Thread[Daemon worker Thread 3,5,main]) completed. Took 0.555 secs.
11:21:01.835 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :publisher:webResourceInstallBowerDependencies (Thread[Daemon worker Thread 3,5,main]) started.
11:21:01.835 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :publisher:webResourceInstallBowerDependencies
11:21:01.835 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':publisher:webResourceInstallBowerDependencies'
11:21:01.835 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':publisher:webResourceInstallBowerDependencies' is up-to-date
11:21:01.960 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':publisher:webResourceInstallBowerDependencies' (up-to-date check took 0.125 secs) due to:
  Value of input property 'bower' has changed for task ':publisher:webResourceInstallBowerDependencies'
11:21:01.960 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':publisher:webResourceInstallBowerDependencies'.
11:21:01.980 [DEBUG] [io.apigee.trireme.core.internal.RootModuleRegistry] Discovered Node version 0.10.32
11:21:01.985 [DEBUG] [io.apigee.trireme.core.internal.RootModuleRegistry] Discovered Node version 0.12.7
11:21:01.995 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[0] = ./node
11:21:02.000 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[1] = C:\repo\smart-aaaaa\publisher\build\webResource\bower.js
11:21:02.000 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[2] = 3
11:21:02.000 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] argv[3] = [
    {
        "name": "jquery",
        "version": "1.10.2",
        "cacheName": "jquery"
    },
    {
        "name": "bootstrap",
        "version": "3.3.6",
        "cacheName": "bootstrap"
    },
    {
        "name": "angular",
        "version": "latest",
        "cacheName": "angular"
    },
    {
        "name": "angular-route",
        "version": "latest",
        "cacheName": "angular-route"
    },
    {
        "name": "font-awesome",
        "version": "latest",
        "cacheName": "font-awesome"
    },
    {
        "name": "angular-ui-tinymce",
        "version": "latest",
        "cacheName": "angular-ui-tinymce"
    },
    {
        "name": "angular-i18n",
        "version": "latest",
        "cacheName": "angular-i18n"
    },
    {
        "name": "angular-translate",
        "version": "latest",
        "cacheName": "angular-translate"
    },
    {
        "name": "angular-translate-loader-static-files",
        "version": "latest",
        "cacheName": "angular-translate-loader-static-files"
    },
    {
        "name": "angular-google-client",
        "version": "latest",
        "cacheName": "angular-google-client"
    }
]
11:21:02.005 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] open(\\?\C:\repo\smart-aaaaa\publisher\build\webResource\bower.js, 0, 438)
11:21:02.005 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] Opening C:\repo\smart-aaaaa\publisher\build\webResource\bower.js with [READ]
11:21:02.005 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem]   open(\\?\C:\repo\smart-aaaaa\publisher\build\webResource\bower.js) = 4
11:21:02.010 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\bower.js = code -2
11:21:02.010 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:\\?\C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\bower.js
11:21:02.015 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\bower.json = code -2
11:21:02.015 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:\\?\C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\bower.json
11:21:02.015 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\bower.node = code -2
11:21:02.015 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:\\?\C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\bower.node

Interesting:

11:21:09.434 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:\\?\C:\Windows\System32\WindowsPowerShell\v1.0\git.WSF
11:21:09.434 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: C:\Windows\System32\WindowsPowerShell\v1.0\git.WSH = code -2
11:21:09.434 [DEBUG] [io.apigee.trireme.node12.modules.Filesystem] I/O exception: -2: io.apigee.trireme.kernel.OSException: ENOENT:\\?\C:\Windows\System32\WindowsPowerShell\v1.0\git.WSH
11:21:09.434 [DEBUG] [io.apigee.trireme.kernel.fs.AdvancedFilesystem] File system error java.nio.file.NoSuchFileException: C:\Windows\System32\WindowsPowerShell\v1.0\git.MSC = code -2

On the end:

11:21:10.039 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] mainLoop: sleeping for 1 pinCount = 1
11:21:10.044 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Executing timer 1
11:21:10.044 [DEBUG] [io.apigee.trireme.node12.modules.TimerWrap] Executing timer 638570144 ontimeout = io.apigee.trireme.node12.node.timers@4a4749aa
11:21:10.044 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Handling fatal exception org.mozilla.javascript.JavaScriptException: InternalError: Script exit: Normal (C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\q\q.js#161) domain = 0
InternalError: Script exit: Normal
    at C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\q\q.js:161
    at listOnTimeout (timers.js:119)

11:21:10.044 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Fatal Java exception: {}
org.mozilla.javascript.JavaScriptException: InternalError: Script exit: Normal (C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\q\q.js#161)
    at org.mozilla.javascript.gen.C__repo_smart_aaaaa_publisher_build_webResource_node_modules_q_q_js_1368._c_anonymous_9(C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\q\q.js:161)
    at org.mozilla.javascript.gen.C__repo_smart_aaaaa_publisher_build_webResource_node_modules_q_q_js_1368.call(C:\repo\smart-aaaaa\publisher\build\webResource\node_modules\q\q.js)
    at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
    at io.apigee.trireme.node12.node.timers._c_listOnTimeout_3(timers.js:119)
    at io.apigee.trireme.node12.node.timers.call(timers.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282)
    at io.apigee.trireme.node12.node.timers.call(timers.js)
    at io.apigee.trireme.node12.modules.TimerWrap$TimerImpl.execute(TimerWrap.java:280)
    at io.apigee.trireme.core.internal.ScriptRunner$Task.executeTask(ScriptRunner.java:1485)
    at io.apigee.trireme.core.internal.ScriptRunner$AbstractTask.execute(ScriptRunner.java:1456)
    at io.apigee.trireme.core.internal.ScriptRunner.executeTimerTasks(ScriptRunner.java:1124)
    at io.apigee.trireme.core.internal.ScriptRunner.mainLoop(ScriptRunner.java:946)
    at io.apigee.trireme.core.internal.ScriptRunner.runScript(ScriptRunner.java:774)
    at io.apigee.trireme.core.internal.ScriptRunner$4.run(ScriptRunner.java:702)
    at org.mozilla.javascript.Context.call(Context.java:501)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:503)
    at io.apigee.trireme.core.internal.ScriptRunner.call(ScriptRunner.java:697)
    at io.apigee.trireme.core.ScriptFuture.run(ScriptFuture.java:183)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
11:21:10.064 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Handled = false
11:21:10.064 [DEBUG] [io.apigee.trireme.core.internal.ScriptRunner] Script exiting with exit code -1
11:21:10.064 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':publisher:webResourceInstallBowerDependencies'
11:21:10.064 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :publisher:webResourceInstallBowerDependencies FAILED
11:21:10.064 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :publisher:webResourceInstallBowerDependencies (Thread[Daemon worker Thread 3,5,main]) completed. Took 8.229 secs.
11:21:10.064 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 3,5,main]] finished, busy: 8.784 secs, idle: 0.0 secs
11:21:10.074 [LIFECYCLE] [org.gradle.BuildResultLogger] 

But few sec. before this log saved. There was successfull operation, but only few of dependencies was downloaded.

@sratatata sratatata changed the title Can't run any task Can't run :webResourceInstallBowerDependencies Jan 22, 2016
@ksoichiro
Copy link
Owner

Thank you for your report.
Hmm... I've never experienced this but
the first one on Ubuntu and the second one on Windows seems different.

The first one fails for ENOTEMPTY from bower/lib/core/ResolveCache.js L137.
Does it always happen on that machine?
It seems that bower is storing jquery files to cache, but the target cache directory is not empty, which causes an error.
Does the cache directory really exist and is not empty ? (/home/jksiezni/.cache/bower/packages/8ccd8ff8cca80bc6237ebfb752ea634b/1.10.2)
Perhaps the cache might be broken.
If you're using bower globally, executing bower cache clean jquery will solve the issue (or removing the directory manually might be enough).

The second one fails because the git command is not found, I guess.
(As mentioned in README, bower depends on git.)
In my team, the Windows user install Git for Windows.
Did your colleague install it?

@sratatata
Copy link
Contributor Author

Pure bower works on both of this computers.

1st:
I've been trying to cleanup this cache. And directories was in fact existing.

2nd:
yep, he is using git on daily basis.
But this could be good lead, we had on his computer some problems before with bower and git. I thought it was solved.

@sratatata
Copy link
Contributor Author

This could have something with failing update test.

@mvysny
Copy link

mvysny commented Oct 17, 2017

Hi, I'm also getting (random) failures, probably caused by this bug, on my Travis builds. Quoting Travis log:

:webResourceInstallBowerDependencies
10:51:07.451 ERROR [Bower] Install failed: ECMDERR: Error: Failed to execute "git clone https://github.com/PolymerElements/iron-a11y-keys-behavior.git -b v2.0.1 --progress . --depth 1", exit code of #128
fatal: destination path '.' already exists and is not an empty directory.
    at /home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1347
    at _fulfilled (/home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1346)
    at /home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1346
    at /home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1346
    at /home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1346
    at runSingle (/home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1346)
    at flush (/home/travis/build/mvysny/karibu10-helloworld-application/build/webResource/build.js:1346)
    at processImmediate (timers.js:345)
:webResourceInstallBowerDependencies FAILED

The full log can be seen here: https://travis-ci.org/mvysny/karibu10-helloworld-application/builds/288504285 . Travis shouldn't archive the .cache directory so it should be empty...

Also on my computer the build of this project fails randomly with the abovementioned error: https://github.com/mvysny/karibu10-helloworld-application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants