Opened 12 months ago

Last modified 12 months ago

#68726 new defect

bitwarden-cli @2023.9.1: npm ERR! zlib: incorrect data check

Reported by: cooljeanius (Eric Gallager) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: MarcelBochtler (Marcel Bochtler)
Port: bitwarden-cli

Description

Upgrading bitwarden-cli fails for me with the following error:

DEBUG: Executing org.macports.destroot (bitwarden-cli)
DEBUG: system: npm install -ddd --global --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/destroot/opt/local /opt/local/var/macports/distfiles/bitwarden-cli/cli-2023.9.1.tgz
npm verb cli /opt/local/bin/node /opt/local/bin/npm
npm info using npm@9.9.2
npm info using node@v15.14.0
npm WARN cli npm v9.9.2 does not support Node.js v15.14.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
npm verb title npm install /opt/local/var/macports/distfiles/bitwarden-cli/cli-2023.9.1.tgz
npm verb argv "install" "--loglevel" "silly" "--global" "--prefix" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/destroot/opt/local" "/opt/local/var/macports/distfiles/bitwarden-cli/cli-2023.9.1.tgz"
npm verb logfile logs-max:10 dir:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/.home/.npm/_logs/2023-11-18T02_10_03_711Z-
npm verb logfile /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/.home/.npm/_logs/2023-11-18T02_10_03_711Z-debug-0.log
npm WARN tar zlib: incorrect data check
npm sill tar ZlibError: zlib: incorrect data check
npm sill tar     at Unzip.write (/opt/local/lib/node_modules/npm/node_modules/minizlib/index.js:154:22)
npm sill tar     at Unpack.write (/opt/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:375:57)
npm sill tar     at Minipass.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at Minipass.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at Minipass.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:173:22)
npm sill tar     at ReadStream.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[_handleChunk] (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:141:19)
npm sill tar  ZlibError: zlib: incorrect data check
npm sill tar     at Unzip.write (/opt/local/lib/node_modules/npm/node_modules/minizlib/index.js:154:22)
npm sill tar     at Unpack.write (/opt/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:375:57)
npm sill tar     at Minipass.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at Minipass.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at Minipass.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:173:22)
npm sill tar     at ReadStream.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[_handleChunk] (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:141:19) {
npm sill tar   code: 'Z_DATA_ERROR',
npm sill tar   errno: -3,
npm sill tar   recoverable: false,
npm sill tar   cwd: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/.home/.npm/_cacache/tmp/hGvri3',
npm sill tar   tarCode: 'TAR_ABORT'
npm sill tar }
npm WARN tarball tarball data for file:/opt/local/var/macports/distfiles/bitwarden-cli/cli-2023.9.1.tgz (null) seems to be corrupted. Trying again.
npm sill logfile done cleaning log files
npm WARN tar zlib: incorrect data check
npm sill tar ZlibError: zlib: incorrect data check
npm sill tar     at Unzip.write (/opt/local/lib/node_modules/npm/node_modules/minizlib/index.js:154:22)
npm sill tar     at Unpack.write (/opt/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:375:57)
npm sill tar     at Minipass.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at Minipass.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at Minipass.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:173:22)
npm sill tar     at ReadStream.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[_handleChunk] (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:141:19)
npm sill tar  ZlibError: zlib: incorrect data check
npm sill tar     at Unzip.write (/opt/local/lib/node_modules/npm/node_modules/minizlib/index.js:154:22)
npm sill tar     at Unpack.write (/opt/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:375:57)
npm sill tar     at Minipass.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at Minipass.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at Minipass.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm sill tar     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:173:22)
npm sill tar     at ReadStream.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm sill tar     at ReadStream.[_handleChunk] (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:141:19) {
npm sill tar   code: 'Z_DATA_ERROR',
npm sill tar   errno: -3,
npm sill tar   recoverable: false,
npm sill tar   cwd: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/.home/.npm/_cacache/tmp/hGvri3',
npm sill tar   tarCode: 'TAR_ABORT'
npm sill tar }
npm WARN tarball tarball data for file:/opt/local/var/macports/distfiles/bitwarden-cli/cli-2023.9.1.tgz (null) seems to be corrupted. Trying again.
npm verb stack ZlibError: zlib: incorrect data check
npm verb stack     at Unzip.write (/opt/local/lib/node_modules/npm/node_modules/minizlib/index.js:154:22)
npm verb stack     at Unpack.write (/opt/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:375:57)
npm verb stack     at Minipass.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm verb stack     at Minipass.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm verb stack     at Minipass.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm verb stack     at ReadStream.[emitData] (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:505:18)
npm verb stack     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:468:25)
npm verb stack     at ReadStream.emit (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:173:22)
npm verb stack     at ReadStream.write (/opt/local/lib/node_modules/npm/node_modules/minipass/index.js:269:28)
npm verb stack     at ReadStream.[_handleChunk] (/opt/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:141:19)
npm verb cwd /opt/local/var/macports
npm verb Darwin 20.6.0
npm verb node v15.14.0
npm verb npm  v9.9.2
npm ERR! code Z_DATA_ERROR
npm ERR! errno -3
npm ERR! zlib: incorrect data check
npm verb exit -3
npm verb unfinished npm timer reify 1700273404154
npm verb unfinished npm timer reify:loadTrees 1700273404201
npm verb unfinished npm timer idealTree:userRequests 1700273404209
npm verb code -3

npm ERR! A complete log of this run can be found in: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/.home/.npm/_logs/2023-11-18T02_10_03_711Z-debug-0.log
Command failed: npm install -ddd --global --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/work/destroot/opt/local /opt/local/var/macports/distfiles/bitwarden-cli/cli-2023.9.1.tgz
Exit code: 253
Error: Failed to destroot bitwarden-cli: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: command execution failed
    while executing
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_bitwarden-cli/bitwarden-cli/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

(I'm on x86_64 Big Sur with Xcode 13)

Attachments (2)

bitwarden-cli_main.log (23.4 KB) - added by cooljeanius (Eric Gallager) 12 months ago.
main.log for bitwarden-cli
2023-11-18T02_10_03_711Z-debug-0.log (8.0 KB) - added by cooljeanius (Eric Gallager) 12 months ago.
debug log mentioned in npm output

Download all attachments as: .zip

Change History (4)

Changed 12 months ago by cooljeanius (Eric Gallager)

Attachment: bitwarden-cli_main.log added

main.log for bitwarden-cli

Changed 12 months ago by cooljeanius (Eric Gallager)

debug log mentioned in npm output

comment:1 Changed 12 months ago by cooljeanius (Eric Gallager)

Actually I think that this might be a result of #63035 remaining unfixed...

comment:2 Changed 12 months ago by cooljeanius (Eric Gallager)

...yeah, changing the version of npm and nodejs that I had installed with MacPorts fixed this for me.

Note: See TracTickets for help on using tickets.