Sentry-cli: ERROR in Sentry CLI Plugin: Command failed sentry-cli releases files...

Created on 20 Dec 2017  路  14Comments  路  Source: getsentry/sentry-cli

Hello,

I'm using webpack plugin, and trying to upload release to sentry.

However, I'm getting following error from cli;
ERROR in Sentry CLI Plugin: Command failed: node_modules/@sentry/cli/sentry-cli releases files 447ab upload-sourcemaps . --rewrite --ignore node_modules --ignore webpack.config.js

And when I run code manually,

> Rewriting sources
> Adding source map references
> Uploading source maps for release BUILD:25
> ~/app/xxxxxx/xxxxxxxx/xxxxxxxxx/xxxxxxxxxxxxxxxx.js
鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒 18/81
Segmentation fault: 11

It's uploading some files, and failing.

Versions:

"@sentry/cli": "^1.26.1",
"@sentry/webpack-plugin": "^1.1.0",

Thank you.

bug

Most helpful comment

Was having the same problem. The issue was an empty js file

All 14 comments

Hi @MmtBkn, could you please add --log-level=debug as first parameter and then send us both the command invocation and the output? Also, it would be great, if you could please archive and send us the folder you are running sentry-cli from, so we can have a look at what's happening. Thank you!

The only dep I can see that can segfault is the chardet one. Since the last item it processes is a javascript source file this would also be something that is being executed. So in theory this no longer happens on master where the dep is gone.

Good point, completely forgot that we replaced that already. So you could try with one of the nightly builds:

Actually, I removed options from configuration and It works.

const SentryCliPlugin = require('@sentry/webpack-plugin');

const config = {
  plugins: [
    new SentryCliPlugin({
      release: function(hash) {
        return hash.slice(0, 5);
      },
      include: '.',
      ignoreFile: '.sentrycliignore',
      ignore: ['node_modules', 'webpack.config.js'],
      configFile: 'sentry.properties'
    })
  ]
};

Thanks for attention.

Closing this as it seems fixed and we also likely removed the cause of this issue. Please feel free to reopen, if it happens again.

We (@cyphernet and I) are getting this error and I are getting this error running 1.30.3 - sounds like it should be fixed by now? It works locally on my Macbook Pro but doesn't work on an AWS server

image

Will email you the log hopefully before too long, want to double-check that there's nothing we don't want to reveal in there emailed the log to [email protected]

I'm also having this issue but if I set log level to debug I get the maxBuffer issue from #206

I also have this issue. @jcrben @andrewchae did you figure it out?

@matthiasp42 mine started working with an update

Note: its better to do this via the sentry-cli in the deploy script.

Was having the same problem. The issue was an empty js file

Same problem here - empty JavaScript file broke uploading.

Same here, same problem - empty file broke uploads.

Fixed in latest release. Turns out this was a bug in the curl binding for rust.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AvailCat picture AvailCat  路  4Comments

tim-lucida picture tim-lucida  路  5Comments

sameoldmadness picture sameoldmadness  路  5Comments

tbergq picture tbergq  路  3Comments

jef picture jef  路  5Comments