•  
      request #11908 Make post-checkout throw error
    Infos
    #11908
    Benjamin Bouillot (ben.bouillot)
    2018-07-31 09:09
    2018-07-24 15:06
    12519
    Details
    Make post-checkout throw error
    When i use "make post checkout", it throws error.

    Stack trace :

    events.js:183 .] | extractTree: sill extractTree lodash.isarray@3.0.4 -> /home/bbouillot/tuleap/node_modules/lodash.isarray
    throw er; // Unhandled 'error' event
    ^

    Error: write after end
    at writeAfterEnd (_stream_writable.js:236:12)
    at PassThrough.Writable.write (_stream_writable.js:287:5)
    at PassThrough.Writable.end (_stream_writable.js:563:10)
    at ReadEntry.entry.on (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/libcipm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:121:20)
    at ReadEntry.emit (events.js:211:7)
    at ReadEntry.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    at ReadEntry.[maybeEmitEnd] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:252:12)
    at ReadEntry.end (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:165:27)
    at Unpack.[consumeBody] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    events.js:183 .] | extractTree: sill extractTree lodash.isarray@3.0.4 -> /home/bbouillot/tuleap/node_modules/lodash.isarray
    throw er; // Unhandled 'error' event
    ^

    Error: write after end
    at writeAfterEnd (_stream_writable.js:236:12)
    at PassThrough.Writable.write (_stream_writable.js:287:5)
    at PassThrough.Writable.end (_stream_writable.js:563:10)
    at ReadEntry.entry.on (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/libcipm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:121:20)
    at ReadEntry.emit (events.js:211:7)
    at ReadEntry.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    at ReadEntry.[maybeEmitEnd] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:252:12)
    at ReadEntry.end (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:165:27)
    at Unpack.[consumeBody] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    npm ERR! cancel after 1 retries!
    events.js:183
    throw er; // Unhandled 'error' event
    ^

    Error: write after end
    at writeAfterEnd (_stream_writable.js:236:12)
    at PassThrough.Writable.write (_stream_writable.js:287:5)
    at PassThrough.Writable.end (_stream_writable.js:563:10)
    at ReadEntry.entry.on (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/libcipm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:121:20)
    at ReadEntry.emit (events.js:211:7)
    at ReadEntry.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    at ReadEntry.[maybeEmitEnd] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:252:12)
    at ReadEntry.end (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:165:27)
    at Unpack.[consumeBody] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    events.js:183
    throw er; // Unhandled 'error' event
    ^

    Error: write after end
    at writeAfterEnd (_stream_writable.js:236:12)
    at PassThrough.Writable.write (_stream_writable.js:287:5)
    at PassThrough.Writable.end (_stream_writable.js:563:10)
    at ReadEntry.entry.on (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/libcipm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:121:20)
    at ReadEntry.emit (events.js:211:7)
    at ReadEntry.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    at ReadEntry.[maybeEmitEnd] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:252:12)
    at ReadEntry.end (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:165:27)
    at Unpack.[consumeBody] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    events.js:183
    throw er; // Unhandled 'error' event
    ^

    Error: write after end
    at writeAfterEnd (_stream_writable.js:236:12)
    at PassThrough.Writable.write (_stream_writable.js:287:5)
    at PassThrough.Writable.end (_stream_writable.js:563:10)
    at ReadEntry.entry.on (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/libcipm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:121:20)
    at ReadEntry.emit (events.js:211:7)
    at ReadEntry.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    at ReadEntry.[maybeEmitEnd] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:252:12)
    at ReadEntry.end (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:165:27)
    at Unpack.[consumeBody] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    events.js:183
    throw er; // Unhandled 'error' event
    ^

    Error: write after end
    at writeAfterEnd (_stream_writable.js:236:12)
    at PassThrough.Writable.write (_stream_writable.js:287:5)
    at PassThrough.Writable.end (_stream_writable.js:563:10)
    at ReadEntry.entry.on (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/libcipm/node_modules/pacote/lib/extract-stream.js:19:41)
    at emitOne (events.js:121:20)
    at ReadEntry.emit (events.js:211:7)
    at ReadEntry.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)
    at ReadEntry.[maybeEmitEnd] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:252:12)
    at ReadEntry.end (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:165:27)
    at Unpack.[consumeBody] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/home/bbouillot/.node-packages/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:301:25)

    npm ERR! A complete log of this run can be found in:
    npm ERR! /home/bbouillot/.npm/_logs/2018-07-24T12_58_54_246Z-debug.log

    Empty
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2018-07-31
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2018-07-24 16:35
    I'm a bit surprised by the work around, the first action done by npm ci is to remove the node_modules folder.
    User avatar
    To solve issue, like any times npm fade out,
    rm -rf on /node_modules + make post-checkout (or npm i && npm run build)
    do the job
    User avatar
    Thomas Gerbet (tgerbet)2018-07-24 16:24
    Hi,

    I'm not sure there is a lot we can do for that. That seems to be a npm bug (see [0]).

    If the usage of npm ci cause too much trouble I'm fine with reverting the work done in request #11870. I personally do not use the target 'post-checkout', it just that I heard complains about the permanent changes of the lockfiles so I though it was time to do something about it.



    [0] https://github.com/npm/npm/issues/19989