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

random ENOTEMPTY in Travis run #933

Closed
nexik opened this issue Oct 21, 2013 · 176 comments · Fixed by #1077
Closed

random ENOTEMPTY in Travis run #933

nexik opened this issue Oct 21, 2013 · 176 comments · Fixed by #1077

Comments

@nexik
Copy link

nexik commented Oct 21, 2013

I use this command to install bower in travis

(npm install -g bower grunt-cli; npm install; bower install)

randomly I get this error:

bower ENOTEMPTY     ENOTEMPTY, rename '/tmp/travis/bower/angular-8465-xIRvRU'
Stack trace:
Error: ENOTEMPTY, rename '/tmp/travis/bower/angular-8465-xIRvRU'
Console trace:
Trace
    at StandardRenderer.error (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.updateNotifier.packageName (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/bin/bower:109:18)
    at Logger.EventEmitter.emit (events.js:95:17)
    at Logger.emit (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /home/travis/.nvm/v0.10.12/lib/node_modules/bower/lib/commands/install.js:27:16
    at _rejected (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:808:24)
    at /home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:834:30
    at Promise.when (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:752:41)
    at /home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:574:44
@mattvv
Copy link

mattvv commented Oct 28, 2013

@nexik - Did you ever figure out what this was? I'm having the same issue.

@jacortinas
Copy link

@nexik @mattvv I'm having the same issue as well. Is there still no talk of a solution for this?

bower ENOTEMPTY     ENOTEMPTY, rename '/tmp/travis/bower/jquery-5380-3I41rA'
Stack trace:
Error: ENOTEMPTY, rename '/tmp/travis/bower/jquery-5380-3I41rA'
Console trace:
Trace
    at StandardRenderer.error (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.updateNotifier.packageName (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/bin/bower:109:18)
    at Logger.EventEmitter.emit (events.js:95:17)
    at Logger.emit (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /home/travis/.nvm/v0.10.12/lib/node_modules/bower/lib/commands/install.js:27:16
    at _rejected (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:808:24)
    at /home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:834:30
    at Promise.when (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:752:41)
    at /home/travis/.nvm/v0.10.12/lib/node_modules/bower/node_modules/q/q.js:574:44
System info:
Bower version: 1.2.7
Node version: 0.10.12
OS: Linux 2.6.32-042stab061.2 x64

@nexik
Copy link
Author

nexik commented Nov 18, 2013

unfortunatelly no, my team is no longer using travis as CI server. There were more weird problems in Travis Pro so we are migrating. I'll leave issue as open because I see other devs have the same problem.

@kleinsch
Copy link

Looks like a collision in the bower temp directory. I added this to my .bowerrc to change the bower directories to be local to my project directory.

    {
      "storage" : {
        "packages" : ".bower-cache",
        "registry" : ".bower-registry"
      },
      "tmp" : ".bower-tmp"
    }

The tmp is probably the most important one, but figured it couldn't hurt to make the others local also.

@stryderjzw
Copy link

I'm getting this error in my CircleCI test runs.

Stack trace:
Error: ENOTEMPTY, rename '.bower-tmp/angular-10369-crtlFE'

Console trace:
Trace
    at StandardRenderer.error (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.<anonymous> (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/bin/bower:109:18)
    at Logger.EventEmitter.emit (events.js:93:17)
    at Logger.emit (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/lib/commands/install.js:27:16
    at _rejected (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/node_modules/q/q.js:808:24)
    at Promise.then.self.promiseDispatch.threw (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/node_modules/q/q.js:834:30)
    at Promise.when (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/node_modules/q/q.js:752:41)
    at messages (/home/ubuntu/nvm/v0.8.12/lib/node_modules/bower/node_modules/q/q.js:574:44)

System info:
Bower version: 1.2.7
Node version: 0.8.12
 OS: Linux 3.8.0-32-generic x64

@chopachom
Copy link

Having the same problem in our Jenkins setup

Stack trace:
Error: ENOTEMPTY, rename '.bower-tmp/angular-21172-eo61o4'

Console trace:
Trace
    at StandardRenderer.error (/home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.updateNotifier.packageName (/home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/bin/bower:109:18)
    at Logger.EventEmitter.emit (events.js:95:17)
    at Logger.emit (/home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/lib/commands/install.js:27:16
    at _rejected (/home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/node_modules/q/q.js:808:24)
    at /home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/node_modules/q/q.js:834:30
    at Promise.when (/home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/node_modules/q/q.js:752:41)
    at /home/nodejs/.nvm/v0.10.17/lib/node_modules/bower/node_modules/q/q.js:574:44

System info:
Bower version: 1.2.8
Node version: 0.10.17
OS: Linux 3.9.3-x86_64-linode33 x64

adding "tmp" : ".bower-tmp" to .bowerrc didn't help

@lukemadera
Copy link

+1 - same for me. bower cache clean seemed to have worked the first time but not anymore... Angular's update to 1.2.5 seems like it may be related to the issue? Bower is now having issues resolving the correct version (even when I tried specifying just '1.2.5'). Either way, it's breaking the build, which is a problem!

@joscha
Copy link

joscha commented Dec 17, 2013

can anyone confirm "tmp" : ".bower-tmp" is the fix for this?

@jacortinas
Copy link

@joscha This is what my .bowerrc looks like.

{
  "directory": "vendor/assets/components",
  "json": "config/bower.json",
  "storage": {
    "packages": ".bower-cache",
    "registry": ".bower-registry"
  },
  "tmp": ".bower-tmp"
}

The relevant lines being the storage object and the tmp property. This worked for me, and I haven't seen any bower installation issues since. I've just had to add those 3 new directories to my .gitignore.

@joscha
Copy link

joscha commented Dec 17, 2013

@jacortinas Thanks, I just reused a shared dir:

{
  "storage": {
    "packages": ".bower/cache",
    "registry": ".bower/registry"
  },
  "tmp": ".bower/tmp"
}

@chopachom
Copy link

Unfortunately, I still get this error even with custom cache, registry and tmp folders

@stryderjzw
Copy link

ENOTEMPTY error still occurs even with custom local cache, registry and tmp folders.

This error also isn't only with Angular. We also get it with jQuery.

Error: ENOTEMPTY, rename '.bower/tmp/jquery-10174-c4tdUr'

This is breaking some of our Continuous Integration builds, is making CI unreliable, which means teams can't trust it. It would be much appreciated to have an eye on this from the bower team.

@AidasK
Copy link

AidasK commented Dec 18, 2013

Same issue on jenkins build server:

+ npm install
npm WARN package.json uploady-yii@0.0.0 No description
+ bower install --allow-root
+ bower update --allow-root
bower angular-route#~1.2    not-cached git://github.com/angular/bower-angular-route.git#~1.2
bower angular-route#~1.2       resolve git://github.com/angular/bower-angular-route.git#~1.2
bower angular-mocks#~1.2.2  not-cached git://github.com/angular/bower-angular-mocks.git#~1.2.2
bower angular-mocks#~1.2.2     resolve git://github.com/angular/bower-angular-mocks.git#~1.2.2
bower angular-scenario#~1.2.2       not-cached git://github.com/angular/bower-angular-scenario.git#~1.2.2
bower angular-scenario#~1.2.2          resolve git://github.com/angular/bower-angular-scenario.git#~1.2.2
bower angular#~1.2                      cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#~1.2                    validate 1.2.4 against git://github.com/angular/bower-angular.git#~1.2
bower angular-bootstrap#~0.6            cached git://github.com/angular-ui/bootstrap-bower.git#0.6.0
bower angular-bootstrap#~0.6          validate 0.6.0 against git://github.com/angular-ui/bootstrap-bower.git#~0.6
bower angular-ui-utils#~0.0.4           cached git://github.com/angular-ui/ui-utils.git#0.0.4
bower angular-ui-utils#~0.0.4         validate 0.0.4 against git://github.com/angular-ui/ui-utils.git#~0.0.4
bower ng-flow#~1                        cached git://github.com/flowjs/ng-flow.git#1.0.0
bower ng-flow#~1                      validate 1.0.0 against git://github.com/flowjs/ng-flow.git#~1
bower fusty-flow.js#~1                  cached git://github.com/flowjs/fusty-flow.js.git#1.0.0-beta3
bower fusty-flow.js#~1                validate 1.0.0-beta3 against git://github.com/flowjs/fusty-flow.js.git#~1
bower ngprogress-lite#master            cached git://github.com/voronianski/ngprogress-lite.git#ad5d1bd5ae
bower ngprogress-lite#master          validate ad5d1bd5ae against git://github.com/voronianski/ngprogress-lite.git#master
bower jquery#~1                         cached git://github.com/components/jquery.git#1.10.2
bower jquery#~1                       validate 1.10.2 against git://github.com/components/jquery.git#~1
bower jquery-simulate#*                 cached git://github.com/jquery/jquery-simulate.git#716a0ef84c
bower jquery-simulate#*               validate 716a0ef84c against git://github.com/jquery/jquery-simulate.git#*
bower angular-route#~1.2              download https://github.com/angular/bower-angular-route/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower angular-mocks#~1.2.2            download https://github.com/angular/bower-angular-mocks/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower angular-scenario#~1.2.2         download https://github.com/angular/bower-angular-scenario/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower angular#~1.2                         new version for git://github.com/angular/bower-angular.git#~1.2
bower angular#~1.2                     resolve git://github.com/angular/bower-angular.git#~1.2
bower angular#>=1                       cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#>=1                     validate 1.2.4 against git://github.com/angular/bower-angular.git#>=1
bower angular#>=1                          new version for git://github.com/angular/bower-angular.git#>=1
bower angular#>=1                      resolve git://github.com/angular/bower-angular.git#>=1
bower angular#~1.2                    download https://github.com/angular/bower-angular/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower angular#~1                        cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#~1                      validate 1.2.4 against git://github.com/angular/bower-angular.git#~1
bower angular#~1                           new version for git://github.com/angular/bower-angular.git#~1
bower angular#~1                       resolve git://github.com/angular/bower-angular.git#~1
bower angular#>= 1.0.2                  cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#>= 1.0.2                validate 1.2.4 against git://github.com/angular/bower-angular.git#>= 1.0.2
bower angular#>= 1.0.2                     new version for git://github.com/angular/bower-angular.git#>= 1.0.2
bower angular#>= 1.0.2                 resolve git://github.com/angular/bower-angular.git#>= 1.0.2
bower angular#>=1                     download https://github.com/angular/bower-angular/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower angular#~1                      download https://github.com/angular/bower-angular/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower angular#>= 1.0.2                download https://github.com/angular/bower-angular/archive/v1.2.6-build.2000+sha.73c6671.tar.gz
bower flow.js#~2                        cached git://github.com/flowjs/flow.js.git#2.1.0
bower flow.js#~2                      validate 2.1.0 against git://github.com/flowjs/flow.js.git#~2
bower angular-mocks#~1.2.2             extract archive.tar.gz
bower angular-route#~1.2               extract archive.tar.gz
bower angular#>= 1.0.2                 extract archive.tar.gz
bower angular-scenario#~1.2.2          extract archive.tar.gz
bower angular#~1                       extract archive.tar.gz
bower angular#~1.2                     extract archive.tar.gz
bower angular#>=1                      extract archive.tar.gz
bower angular-route#~1.2              resolved git://github.com/angular/bower-angular-route.git#1.2.6-build.2000+sha.73c6671
bower angular-mocks#~1.2.2            resolved git://github.com/angular/bower-angular-mocks.git#1.2.6-build.2000+sha.73c6671
bower angular-scenario#~1.2.2         resolved git://github.com/angular/bower-angular-scenario.git#1.2.6-build.2000+sha.73c6671
bower angular#>= 1.0.2                resolved git://github.com/angular/bower-angular.git#1.2.6-build.2000+sha.73c6671
bower angular#~1                      resolved git://github.com/angular/bower-angular.git#1.2.6-build.2000+sha.73c6671
bower angular#~1.2                    resolved git://github.com/angular/bower-angular.git#1.2.6-build.2000+sha.73c6671
bower angular#>=1                    ENOTEMPTY ENOTEMPTY, rename '/tmp/jenkins/bower/angular-2268-dVH9oI'

Stack trace:
Error: ENOTEMPTY, rename '/tmp/jenkins/bower/angular-2268-dVH9oI'

Console trace:
Trace
    at StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.updateNotifier.packageName (/usr/lib/node_modules/bower/bin/bower:109:18)
    at Logger.EventEmitter.emit (events.js:95:17)
    at Logger.emit (/usr/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /usr/lib/node_modules/bower/lib/commands/update.js:24:16
    at _rejected (/usr/lib/node_modules/bower/node_modules/q/q.js:808:24)
    at /usr/lib/node_modules/bower/node_modules/q/q.js:834:30
    at Promise.when (/usr/lib/node_modules/bower/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:752:41)
    at /usr/lib/node_modules/bower/node_modules/q/q.js:574:44

System info:
Bower version: 1.2.8
Node version: 0.10.22
OS: Linux 2.6.32-042stab078.28 x64
Build step 'Execute shell' marked build as failure
Finished: FAILURE

@diwu1989
Copy link

I'm hitting this, please fix

@nelsonomuto
Copy link

I'm getting a similar error
Stack trace:
Error: ENOTEMPTY, rename '/tmp/travis/bower/angular-1413-TMxrrO' Console trace: Trace at StandardRenderer.error (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/lib/renderers/StandardRenderer.js:74:17) at Logger.<anonymous> (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/bin/bower:109:18) at Logger.EventEmitter.emit (events.js:96:17) at Logger.emit (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39) at /home/travis/.nvm/v0.8.26/lib/node_modules/bower/lib/commands/install.js:27:16 at _rejected (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/node_modules/q/q.js:808:24) at Promise.then.self.promiseDispatch.threw (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/node_modules/q/q.js:834:30) at Promise.when (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/node_modules/q/q.js:1079:31) at Promise.promise.promiseDispatch (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/node_modules/q/q.js:752:41) at messages (/home/travis/.nvm/v0.8.26/lib/node_modules/bower/node_modules/q/q.js:574:44)

knalli added a commit to knalli/angular-vertxbus that referenced this issue Dec 24, 2013
knalli added a commit to knalli/angular-vertxbus that referenced this issue Dec 24, 2013
knalli added a commit to knalli/angular-vertxbus that referenced this issue Dec 24, 2013
@yanatan16
Copy link

I ran bower install angular with a resolution for 1.2.6 and I'm getting an ENOTEMPTY for bower 1.2.7. Log here: https://gist.github.com/yanatan16/8118844

-- Seems that angular 1.2.6 is resolving to install all versions of angular?

@dylan-baskind
Copy link

+1 same issue.

If it helps anyone with their struggles, I did:

bower cache clean
bower update (i.e. not bower install).

Worked for me, where bower install was consistently failing.

Hopefully fixed soon!

@finack
Copy link

finack commented Dec 25, 2013

Also seeing this on Heroku deploys.

I have tried

  • Running cache clean && update
  • Downgrading to 1.2.7
  • .bowerrc recommendations

Seems to get stuck on handlebars for me.

@bdevos
Copy link

bdevos commented Dec 30, 2013

For me the fix with the different temp folder seems to have done the trick on our Jenkins build environment:

{
"storage" : {
"packages" : ".bower-cache",
"registry" : ".bower-registry"
},
"tmp" : ".bower-tmp"
}

@smesdaghi
Copy link

+1 bower cache clean fixed it for me. my error was with a angular related package

@lukemadera
Copy link

Yeah bower cache clean does seem to work most of the time (not 100% of the time for me though) but the problem is that you have to run it each time (which I guess you could add into the build script but it makes it slower and isn't how bower is supposed to function). So there should be a non-hack fix that doesn't require this.

edeustace added a commit to corespring/corespring-container that referenced this issue Jan 9, 2014
@adrianboimvaser
Copy link

I've tried everything and my build gets stuck every time.

bower angular#~1.2.3                              ENOTEMPTY ENOTEMPTY, rename '.bower-tmp/angular-7450-adTI6m'

Stack trace:
Error: ENOTEMPTY, rename '.bower-tmp/angular-7450-adTI6m'

Console trace:
Trace
    at StandardRenderer.error (/opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
    at Logger.updateNotifier.packageName (/opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/bin/bower:109:18)
    at Logger.EventEmitter.emit (events.js:95:17)
    at Logger.emit (/opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
    at /opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/lib/commands/update.js:24:16
    at _rejected (/opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/node_modules/q/q.js:808:24)
    at /opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/node_modules/q/q.js:834:30
    at Promise.when (/opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/node_modules/q/q.js:1079:31)
    at Promise.promise.promiseDispatch (/opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/node_modules/q/q.js:752:41)
    at /opt/jenkins/jenkins_data/workspace/webcadence-develop/node_modules/bower/node_modules/q/q.js:574:44

Please, help!

lukas-shawford pushed a commit to lukas-shawford/swot that referenced this issue Jan 14, 2014
… root in an attempt to fix ENOENT/ENOTEMPTY errors with heroku deployment.

Reference:
bower/bower#933
@vvo
Copy link

vvo commented Jan 14, 2014

Hello,

I can say that the bowerrc tmp trick does not work at all.

The problem does seems to happens when multiple bower install are run.
Even setting the tmp dir still trigger the enotempty error. Which is very odd.

One thing to note is that it seems to only happen with the angular project.
We did not see any other project failling like angular on bower.

@shaharke
Copy link

We've seen jquery fail.
On Jan 14, 2014 6:45 PM, "Vincent Voyer" notifications@github.com wrote:

Hello,

I can say that the bowerrc tmp trick does not work at all.

The problem does seems to happens when multiple bower install are run.
Even setting the tmp dir still trigger the enotempty error. Which is very
odd.

One thing to note is that it seems to only happen with the angular project.
We did not see any other project failling like angular on bower.


Reply to this email directly or view it on GitHubhttps://github.com//issues/933#issuecomment-32282073
.

@stuartpb
Copy link

stuartpb commented Apr 7, 2014

👏 Now we can start getting our builds out the door!

applause

myabc added a commit to opf/openproject that referenced this issue Apr 7, 2014
We need at least version 1.3.2 to avoid a race condition:
bower/bower#1211

bower/bower#933
https://www.openproject.org/work_packages/5645

Signed-off-by: Alex Coles <alex@alexbcoles.com>
@nexik nexik added the bounty label Apr 16, 2014
@nexik nexik changed the title random ENOTEMPTY in Travis run [$140] random ENOTEMPTY in Travis run Apr 19, 2014
@cebor
Copy link

cebor commented May 14, 2014

I got following error while running grunt-google-cdn:

Running "cdnify:dist" (cdnify) task
Going through dist/404.html, dist/index.html to update script refs
Warning: ENOTEMPTY, rename '~/.cache/bower/packages/a79b04bbe7ddc8d7be946d2012fca5b7/1.2.17-build.162%2Bsha.5319621' Use --force to continue.

Aborted due to warnings.

@quentindemetz
Copy link

Same here, I'm not doing anything fancy

Fatal error: ENOTEMPTY, rmdir '/srv/http/.cache/bower/packages/fe2fe255e91d251051d543998aa8327a/2.1.1/src'

Also encountering

Fatal error: ENOENT, lstat '/srv/http/.cache/bower/packages/fe2fe255e91d251051d543998aa8327a/2.1.1/src/callbacks.js'

@sheerun
Copy link
Contributor

sheerun commented May 20, 2014

@quentindemetz Please make sure you're using bower 1.3.3 which fixes those issues.

Also it's possible that other users on Travis instance are using 1.3.2 which would make your build fail.

@lokielse
Copy link

can not install bower... sad
npm install -g bower
ENOTEMPTY

@sheerun
Copy link
Contributor

sheerun commented May 20, 2014

@lokielse This is completely unrelated issue. Please notify npm team about this.

@cebor
Copy link

cebor commented May 21, 2014

I have this errors also with 1.3.3.

@DavidSouther
Copy link

@cebor have you fully cleaned the cache? I've got a sneaking suspicion that the people who are still having issues, even after upgrading to 1.3.3, either have old badly permissioned cache directories (did you accidentally run as root one time?) or as @sheerun guessed, someone else on the same box running <= 1.3.2

@cebor
Copy link

cebor commented May 22, 2014

yes i cleared bower and npm cache several times, the problem occurs randomly.

@sheerun
Copy link
Contributor

sheerun commented May 22, 2014

If you clear bower cache, you're breaking other people builds. They clear cache and they break yours.

I guess for now solution would be to pass --config.storage=.bower/cache option to bower to not use global cache on Travis.

@cebor
Copy link

cebor commented May 23, 2014

@sheerun I dont have this problem on Travis, only locally when i'm building a page with generator-angular (master version) @ the google-cdnify Task

@cebor
Copy link

cebor commented May 23, 2014

Ok i think i fixed it:

changing all angular versions in bower.json: ~1.2.16 -> 1.2.16

@sheerun
Copy link
Contributor

sheerun commented May 23, 2014

@cebor Could you post bower.json that failed, .travis.yml and failed output of Travis?

@cebor
Copy link

cebor commented May 23, 2014

bower.json: https://gist.github.com/cebor/5890f5bd58a8e4e6ae6e
package.json: https://gist.github.com/cebor/76a1203b30ba3c1c021b
.travis.yml: https://gist.github.com/cebor/4506be71795310bcb92a

Error @ grunt build:

Running "cdnify:dist" (cdnify) task
Going through dist/404.html, dist/index.html to update script refs
Warning: ENOTEMPTY, rename '~/.cache/bower/packages/a79b04bbe7ddc8d7be946d2012fca5b7/1.2.17-build.162%2Bsha.5319621' Use --force to continue.

Aborted due to warnings.

Update: The conflicting bower package was always angular-route.js

Bower version: 1.3.3

@MelonBreadVR
Copy link

👍

lifeinchords pushed a commit to lifeinchords/brunch-static-magic that referenced this issue Sep 3, 2015
@waynejuckts
Copy link

I could install all packages in my Node project without -g parameter. And that causes the issue for me. Same issue you are all describing. So i reinstallt bower with -g and all is working fine for me

@sheerun
Copy link
Contributor

sheerun commented Nov 27, 2015

This thread got really messy. If someone still experiences any issues, please open another issues with steps to reproduce. Thank you!

@bower bower locked and limited conversation to collaborators Nov 27, 2015
@bower bower locked and limited conversation to collaborators Nov 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.