command failed !! when webpack/sentry upload sourcemap ...
CLI Version
2.33.1
Operating System and Architecture
- [ ] macOS (arm64)
- [ ] macOS (x86_64)
- [ ] Linux (i686)
- [ ] Linux (x86_64)
- [ ] Linux (armv7)
- [ ] Linux (aarch64)
- [ ] Windows (i686)
- [x] Windows (x86_64)
Operating System Version
win10
Link to reproduction repository
No response
CLI Command
No response
Exact Reproduction Steps
Expected Results
upload sourcemap success
Actual Results
Logs
none...
When manually uploading sourcemap through webpack/sentry, an error is reported on win10 and detailed information cannot be obtained....
i have env config : SENTRY_LOG_LEVEL=debug
Hi @steady-join, from the information you shared, it is quite difficult for me to tell what is going wrong. One possible problem is that the file paths in your config should start with ./, but otherwise I don't see any problems.
Did you make sure to configure an auth token and a project? Both of these are needed for the upload to succeed.
If you are still having trouble after checking all of these, please share the exact steps you took to reproduce your issue. Please include a list of every step you took, including the exact commands that you ran (of course, redacting any private information like auth tokens). If possible, also include pasted code snippets (or a link to a repo) that I can use to reproduce the problem. Please also paste code rather than including screenshots. I can only help you effectively if you provide this information.
Hi,I run well on other win10 or mac, this error only occurs on certain machines, is there any way I can capture logs....
I package it with webpack and use sentry/webpack to upload sourcemap files
.env config file
SENTRY_URL=https://xxx.com/
SENTRY_ORG=demo
SENTRY_PROJECT=demo
SENTRY_AUTH_TOKEN=demo
webpack less
config.plugins.unshift(
sentryWebpackPlugin({
release: {
name: process.env.REACT_APP_SENTRY_RELEASE_VERSION,
},
sourcemaps: {
filesToDeleteAfterUpload: '**/static/**/*.js.map',
},
errorHandler(err) {
console.error('upload sourcemap error: ', err);
},
})
);
@steady-join You should be able to see the logs by default.
Can you please provide the exact steps you are taking to observe this problem, as I requested in my previous comment? I can only help you if you provide this information.
Hi,I can't see errors when using webpack. I only see errors here when executing exe. Wait until I process them and try again.
Hi @steady-join, thank you for sharing this output. I was able to reproduce the problem. Looks like this is because Sentry CLI currently depends on the VCRUNTIME140.dll dynamic library in Windows. I will investigate whether we can remove this dependency.
You can solve the problem right now by downloading the Microsoft Visual C++ Redistributable, which contains the needed library.
@steady-join, we are releasing a fix in version 2.38.1. It should be available within a few hours.