Skip to content

Build problem on travis due to permission problems of npm folder #632

Closed

Description

@karussell

Reported today here:

npm ERR! Error: Attempt to unlock leaflet@^0.7.7, which hasn't been locked
npm ERR!     at unlock (/home/travis/.nvm/v0.10.36/lib/node_modules/npm/lib/utils/locker.js:44:11)
npm ERR!     at cb (/home/travis/.nvm/v0.10.36/lib/node_modules/npm/lib/cache/add-named.js:32:5)
npm ERR!     at /home/travis/.nvm/v0.10.36/lib/node_modules/npm/lib/cache/add-named.js:41:20
npm ERR!     at /home/travis/.nvm/v0.10.36/lib/node_modules/npm/lib/utils/locker.js:30:7
npm ERR!     at cb (/home/travis/.nvm/v0.10.36/lib/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)
npm ERR!     at /home/travis/.nvm/v0.10.36/lib/node_modules/npm/node_modules/lockfile/lockfile.js:177:38
npm ERR!     at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

Restarting the tests did not solve the problem, but strange enough trying a new branch with a possible fix and without the fix => then the build passed in both cases: https://travis-ci.org/graphhopper/graphhopper/branches

But it gets stranger: restarted the PRs once more ... now one of the two builds passed! https://travis-ci.org/graphhopper/graphhopper/pull_requests

See also: npm/npm#4815 and travis-ci/travis-ci#2244

Activity

  1. karussell commented on Jan 2, 2016

    @karussell
    MemberAuthor

    For now assume this change 09a5dd4 fixes this issue and we open this again if not

  2. added this to the 0.6 milestone on Jan 2, 2016
  3. karussell commented on Jan 14, 2016

    @karussell
    MemberAuthor

    Still happening: #638

  4. removed this from the 0.6 milestone on Jan 19, 2016
  5. karussell commented on Mar 15, 2016

    @karussell
    MemberAuthor

    Getting this problem occasionally.

    Furthermore the travis bash script is faulty returning 'tests pass' even if unit test failed when npm tests pass. For now this makes too much trouble and we remove the npm tests from the travis script.

  6. added a commit that references this issue on Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions