sentry-cli
sentry-cli copied to clipboard
Error while using sentrly-cli within CI
CLI Version
2.37.0
Operating System and Architecture
- [ ] macOS (arm64)
- [x] macOS (x86_64)
- [ ] Linux (i686)
- [ ] Linux (x86_64)
- [ ] Linux (armv7)
- [ ] Linux (aarch64)
- [ ] Windows (i686)
- [ ] Windows (x86_64)
Operating System Version
macOS 14.7 23H124
Link to reproduction repository
No response
CLI Command
node_modules/@sentry/cli-darwin/bin/sentry-cli releases set-commits com.***[email protected]+7 --auto --ignore-missing
Exact Reproduction Steps
add sentry source upload through webpack using:
config.plugins.push(
sentryWebpackPlugin({
telemetry: false,
org: process.env.SENTRY_ORG,
url: process.env.SENTRY_URL,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
bundleSizeOptimizations: {
excludeDebugStatements: true,
excludeReplayShadowDom: true,
excludeReplayIframe: true,
excludeReplayWorker: true,
},
release: {
name: `${appId}@${appVersion}+${buildNumber}`,
dist: `${buildNumber}.${platform}`,
setCommits: {
auto: true,
ignoreEmpty: true,
ignoreMissing: true
},
create: true,
cleanArtifacts: true
},
debug: true,
sourcemaps: {
// assets: './**/*.nonexistent'
rewriteSources: (source, map) => source.replace('webpack:///', 'webpack://'),
ignore: ['tns-java-classes', 'hot-update'],
assets: [dist + '/**/*.js', join(dist, process.env.SOURCEMAP_REL_DIR) + '/*.map']
}
})
);
Run on a CI (github action in this case)
Expected Results
Working and source uploaded
Actual Results
the webpack bundling throw an error while handling sourcemap upload through the sentry cli:
Webpack compilation complete.
> Found 28 files
> Analyzing 28 sources
> Adding source map references
> Bundled 28 files for upload
> Bundle ID: 35778816-926f-5603-b4f7-5de882cf52d0
node:internal/errors:984
const err = new Error(message);
^
Error: Command failed: /Users/runner/work/conty/conty/node_modules/@sentry/cli-darwin/bin/sentry-cli releases set-commits [email protected]+7 --auto --ignore-missing
error: object not found - no match for id (12dd521621f587f0a49206d249c53eafaa1a4491); class=Odb (9); code=NotFound (-3)
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Pipe.<anonymous> (node:net:339:12) {
code: 1,
killed: false,
signal: null,
cmd: '/Users/runner/work/conty/conty/node_modules/@sentry/cli-darwin/bin/sentry-cli releases set-commits com.***[email protected]+7 --auto --ignore-missing'
}
Logs
Webpack compilation complete.
> Found 28 files
> Analyzing 28 sources
> Adding source map references
> Bundled 28 files for upload
> Bundle ID: 35778816-926f-5603-b4f7-5de882cf52d0
node:internal/errors:984
const err = new Error(message);
^
Error: Command failed: /Users/runner/work/conty/conty/node_modules/@sentry/cli-darwin/bin/sentry-cli releases set-commits com.***[email protected]+7 --auto --ignore-missing
error: object not found - no match for id (12dd521621f587f0a49206d249c53eafaa1a4491); class=Odb (9); code=NotFound (-3)
Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Pipe.<anonymous> (node:net:339:12) {
code: 1,
killed: false,
signal: null,
cmd: '/Users/runner/work/conty/conty/node_modules/@sentry/cli-darwin/bin/sentry-cli releases set-commits com.***[email protected]+7 --auto --ignore-missing'
}
Node.js v20.17.0
Executing webpack failed with exit code 1.
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: ***
> Project: conty
> Release: com.***[email protected]+7
> Dist: 7.ios
> Upload type: artifact bundle
Source Map Upload Report
Scripts
~/1edaf87e-b3e2-4f42-8eaa-16dc0f15bb01-9.js (sourcemap at 940.js.map, debug id 1edaf87e-b3e2-4f42-8eaa-16dc0f15bb01)
~/3357e1ad-5624-4fc2-b47d-f36457453215-13.js (sourcemap at vendor.js.map, debug id 3357e1ad-5624-4fc2-b47d-f36457453215)
~/4611ce7c-c45a-4b90-a4c1-b3f7c1bbe805-3.js (sourcemap at 471.js.map, debug id 4611ce7c-c45a-4b90-a4c1-b3f7c1bbe805)
~/4d67a2e6-f8dc-4715-90ae-a5b5e158d4ab-6.js (sourcemap at 664.js.map, debug id 4d67a2e6-f8dc-4715-90ae-a5b5e158d4ab)
~/59bb1c61-ab8b-4ee6-9c72-cb958267f287-12.js (sourcemap at inspector_modules.js.map, debug id 59bb1c61-ab8b-4ee6-9c72-cb958267f287)
~/9c9cb27b-901f-4c7f-9d36-6a9547bb48a1-8.js (sourcemap at 738.js.map, debug id 9c9cb27b-901f-4c7f-9d36-6a9547bb48a1)
~/9e349f60-b9e1-47ca-b4ea-cf369754ca33-4.js (sourcemap at 520.js.map, debug id 9e349f60-b9e1-47ca-b4ea-cf369754ca33)
~/b31c80ca-0a93-452a-afbc-c10a4331d99f-1.js (sourcemap at 120.js.map, debug id b31c80ca-0a93-452a-afbc-c10a4331d99f)
~/bc50b473-3b37-4d85-a873-6884c39dd549-2.js (sourcemap at 419.js.map, debug id bc50b473-3b37-4d85-a873-6884c39dd549)
~/c8684ef6-5941-45f8-9023-3c2120f3f136-5.js (sourcemap at 602.js.map, debug id c8684ef6-5941-45f8-9023-3c2120f3f136)
~/f75dd200-2a7d-449d-a127-ed9be658c2a2-0.js (sourcemap at 116.js.map, debug id f75dd200-2a7d-449d-a127-ed9be658c2a2)
~/f83ac79f-6cfb-43d6-a659-74c643e5e2d2-11.js (sourcemap at runtime.js.map, debug id f83ac79f-6cfb-43d6-a659-74c643e5e2d2)
~/fc0fbdf9-d559-4de7-9238-bc2fc91fe239-10.js (sourcemap at bundle.js.map, debug id fc0fbdf9-d559-4de7-9238-bc2fc91fe239)
~/fecb9efc-615c-4049-ac6d-7b1eedfdef96-7.js (sourcemap at 725.js.map, debug id fecb9efc-615c-4049-ac6d-7b1eedfdef96)
Source Maps
~/1edaf87e-b3e2-4f42-8eaa-16dc0f15bb01-9.js.map (debug id 1edaf87e-b3e2-4f42-8eaa-16dc0f15bb01)
~/3357e1ad-5624-4fc2-b47d-f36457453215-13.js.map (debug id 3357e1ad-5624-4fc2-b47d-f36457453215)
~/4611ce7c-c45a-4b90-a4c1-b3f7c1bbe805-3.js.map (debug id 4611ce7c-c45a-4b90-a4c1-b3f7c1bbe805)
~/4d67a2e6-f8dc-4715-90ae-a5b5e158d4ab-6.js.map (debug id 4d67a2e6-f8dc-4715-90ae-a5b5e158d4ab)
~/59bb1c61-ab8b-4ee6-9c72-cb958267f287-12.js.map (debug id 59bb1c61-ab8b-4ee6-9c72-cb958267f287)
~/9c9cb27b-901f-4c7f-9d36-6a9547bb48a1-8.js.map (debug id 9c9cb27b-901f-4c7f-9d36-6a9547bb48a1)
~/9e349f60-b9e1-47ca-b4ea-cf369754ca33-4.js.map (debug id 9e349f60-b9e1-47ca-b4ea-cf369754ca33)
~/b31c80ca-0a93-452a-afbc-c10a4331d99f-1.js.map (debug id b31c80ca-0a93-452a-afbc-c10a4331d99f)
~/bc50b473-3b37-4d85-a873-6884c39dd549-2.js.map (debug id bc50b473-3b37-4d85-a873-6884c39dd549)
~/c8684ef6-5941-45f8-9023-3c2120f3f136-5.js.map (debug id c8684ef6-5941-45f8-9023-3c2120f3f136)
~/f75dd200-2a7d-449d-a127-ed9be658c2a2-0.js.map (debug id f75dd200-2a7d-449d-a127-ed9be658c2a2)
~/f83ac79f-6cfb-43d6-a659-74c643e5e2d2-11.js.map (debug id f83ac79f-6cfb-43d6-a659-74c643e5e2d2)
~/fc0fbdf9-d559-4de7-9238-bc2fc91fe239-10.js.map (debug id fc0fbdf9-d559-4de7-9238-bc2fc91fe239)
~/fecb9efc-615c-4049-ac6d-7b1eedfdef96-7.js.map (debug id fecb9efc-615c-4049-ac6d-7b1eedfdef96)
Could you please try running this in CI with the SENTRY_LOG_LEVEL environment variable set to debug? Please provide the resulting logs.
@szokeasaurusrex thanks. I did add that flag but for some unknown reasons this time it passed ... Will run a few more runs and close this if it is all good
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀