sentry-cli: Run from Xcode always triggers an error when building the same thing twice
Environment
- sentry-cli 2.20.7
- macOS Ventura 13.5 (22G74)
Steps to Reproduce
In a Run Script Phase on Xcode, I run the following:
sentry-cli debug-files upload --include-sources "$DWARF_DSYM_FOLDER_PATH"
Expected/Actual Result
The 1st build & run it works well. But when I build & run again, it fails.
Xcode displays Debug symbol upload failed.
And in the logs I have the following:
> No new debug symbols to associate.
Error: some symbols did not process correctly
I would expect it to work, even though I am building the same thing twice in a row.
Logs
Here are the logs
DEBUG 2023-09-14 17:11:42.483030 +02:00 request GET https://sentry.io/api/0/organizations/kartoon-65f9638a1/chunk-upload/
DEBUG 2023-09-14 17:11:42.483080 +02:00 using token authentication
DEBUG 2023-09-14 17:11:42.483093 +02:00 retry number 0, max retries: 0
DEBUG 2023-09-14 17:11:42.527947 +02:00 > GET /api/0/organizations/kartoon-65f9638a1/chunk-upload/ HTTP/1.1
DEBUG 2023-09-14 17:11:42.527967 +02:00 > Host: sentry.io
DEBUG 2023-09-14 17:11:42.527973 +02:00 > Accept: */*
DEBUG 2023-09-14 17:11:42.527978 +02:00 > Connection: TE
DEBUG 2023-09-14 17:11:42.527984 +02:00 > TE: gzip
DEBUG 2023-09-14 17:11:42.527989 +02:00 > User-Agent: sentry-cli/2.20.7
DEBUG 2023-09-14 17:11:42.528169 +02:00 > Authorization: Bearer sntrys_e***
DEBUG 2023-09-14 17:11:42.677459 +02:00 < HTTP/1.1 200 OK
DEBUG 2023-09-14 17:11:42.677493 +02:00 < server: nginx
DEBUG 2023-09-14 17:11:42.677501 +02:00 < date: Thu, 14 Sep 2023 15:11:42 GMT
DEBUG 2023-09-14 17:11:42.677508 +02:00 < content-type: application/json
DEBUG 2023-09-14 17:11:42.677515 +02:00 < Content-Length: 348
DEBUG 2023-09-14 17:11:42.677521 +02:00 < allow: GET, POST, HEAD, OPTIONS
DEBUG 2023-09-14 17:11:42.677527 +02:00 < access-control-allow-methods: GET, POST, HEAD, OPTIONS
DEBUG 2023-09-14 17:11:42.677538 +02:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
DEBUG 2023-09-14 17:11:42.677544 +02:00 < access-control-expose-headers: X-Sentry-Error, Retry-After
DEBUG 2023-09-14 17:11:42.677553 +02:00 < access-control-allow-origin: *
DEBUG 2023-09-14 17:11:42.677558 +02:00 < x-sentry-rate-limit-remaining: 39
DEBUG 2023-09-14 17:11:42.677564 +02:00 < x-sentry-rate-limit-limit: 40
DEBUG 2023-09-14 17:11:42.677570 +02:00 < x-sentry-rate-limit-reset: 1694704303
DEBUG 2023-09-14 17:11:42.677575 +02:00 < x-sentry-rate-limit-concurrentremaining: 24
DEBUG 2023-09-14 17:11:42.677581 +02:00 < x-sentry-rate-limit-concurrentlimit: 25
DEBUG 2023-09-14 17:11:42.677587 +02:00 < vary: Accept-Language, Cookie
DEBUG 2023-09-14 17:11:42.677593 +02:00 < content-language: en
DEBUG 2023-09-14 17:11:42.677599 +02:00 < x-frame-options: deny
DEBUG 2023-09-14 17:11:42.677604 +02:00 < x-content-type-options: nosniff
DEBUG 2023-09-14 17:11:42.677610 +02:00 < x-xss-protection: 1; mode=block
DEBUG 2023-09-14 17:11:42.677617 +02:00 < content-security-policy: script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; default-src *; font-src * data:; style-src * 'unsafe-inline'; frame-ancestors 'self' *.sentry.io; base-uri 'none'; object-src 'self'; img-src * blob: data:; connect-src *; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=4272ffd31457e8de0d50eeb7b414fa466974285e
DEBUG 2023-09-14 17:11:42.677624 +02:00 < x-envoy-attempt-count: 1
DEBUG 2023-09-14 17:11:42.677629 +02:00 < x-envoy-upstream-service-time: 32
DEBUG 2023-09-14 17:11:42.677635 +02:00 < x-served-by: getsentry-web-default-common-production-576f6957d5-ccr99
DEBUG 2023-09-14 17:11:42.677641 +02:00 < x-served-by: frontend-default-5494b6bc88-vwplk
DEBUG 2023-09-14 17:11:42.677647 +02:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
DEBUG 2023-09-14 17:11:42.677652 +02:00 < via: 1.1 google
DEBUG 2023-09-14 17:11:42.677657 +02:00 < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
DEBUG 2023-09-14 17:11:42.678020 +02:00 response status: 200
DEBUG 2023-09-14 17:11:42.678039 +02:00 body: {"url":"organizations/kartoon-65f9638a1/chunk-upload/","chunkSize":8388608,"chunksPerRequest":64,"maxFileSize":2147483648,"maxRequestSize":33554432,"concurrency":8,"hashAlgorithm":"sha1","compression":["gzip"],"accept":["debug_files","release_files","pdbs","sources","bcsymbolmaps","il2cpp","portablepdbs","artifact_bundles","artifact_bundles_v2"]}
> Found 3 debug information files
> Resolved source code for 1 debug information file
> Prepared debug information files for upload
DEBUG 2023-09-14 17:11:42.809200 +02:00 request POST https://sentry.io/api/0/projects/kartoon-65f9638a1/kartoon-ios-debug/files/difs/assemble/
DEBUG 2023-09-14 17:11:42.809207 +02:00 using token authentication
DEBUG 2023-09-14 17:11:42.809215 +02:00 json body: {"591c9b4e74acbe7addd32867f6d7900b8b9c4d6d":{"name":"Kartoon","debug_id":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","chunks":["591c9b4e74acbe7addd32867f6d7900b8b9c4d6d"]},"94ce85b36a674e47605d413ca41739747ca5ae7a":{"name":"DesignSystemTests","debug_id":"839f1431-7386-39d4-ab1f-034caa936314","chunks":["94ce85b36a674e47605d413ca41739747ca5ae7a"]},"5d2382886f45a93d1b07c5b9b69945c1b5b2af70":{"name":"Kartoon","debug_id":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","chunks":["5d2382886f45a93d1b07c5b9b69945c1b5b2af70"]},"75d2bde2c0fecbc57f4b5affec4db99b799f71a4":{"name":"Kartoon","debug_id":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","chunks":["75d2bde2c0fecbc57f4b5affec4db99b799f71a4"]}}
DEBUG 2023-09-14 17:11:42.809220 +02:00 retry number 0, max retries: 5
DEBUG 2023-09-14 17:11:42.809314 +02:00 > POST /api/0/projects/kartoon-65f9638a1/kartoon-ios-debug/files/difs/assemble/ HTTP/1.1
DEBUG 2023-09-14 17:11:42.809321 +02:00 > Host: sentry.io
DEBUG 2023-09-14 17:11:42.809325 +02:00 > Accept: */*
DEBUG 2023-09-14 17:11:42.809328 +02:00 > Connection: TE
DEBUG 2023-09-14 17:11:42.809331 +02:00 > TE: gzip
DEBUG 2023-09-14 17:11:42.809335 +02:00 > User-Agent: sentry-cli/2.20.7
DEBUG 2023-09-14 17:11:42.809347 +02:00 > Authorization: Bearer sntrys_e***
DEBUG 2023-09-14 17:11:42.809350 +02:00 > Content-Type: application/json
DEBUG 2023-09-14 17:11:42.809354 +02:00 > Content-Length: 675
DEBUG 2023-09-14 17:11:42.971150 +02:00 < HTTP/1.1 200 OK
DEBUG 2023-09-14 17:11:42.971190 +02:00 < server: nginx
DEBUG 2023-09-14 17:11:42.971199 +02:00 < date: Thu, 14 Sep 2023 15:11:42 GMT
DEBUG 2023-09-14 17:11:42.971208 +02:00 < content-type: application/json
DEBUG 2023-09-14 17:11:42.971215 +02:00 < Content-Length: 1732
DEBUG 2023-09-14 17:11:42.971221 +02:00 < vary: Accept-Encoding,Accept-Language, Cookie
DEBUG 2023-09-14 17:11:42.971228 +02:00 < allow: POST, OPTIONS
DEBUG 2023-09-14 17:11:42.971234 +02:00 < access-control-allow-methods: POST, OPTIONS
DEBUG 2023-09-14 17:11:42.971242 +02:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
DEBUG 2023-09-14 17:11:42.971261 +02:00 < access-control-expose-headers: X-Sentry-Error, Retry-After
DEBUG 2023-09-14 17:11:42.971272 +02:00 < access-control-allow-origin: *
DEBUG 2023-09-14 17:11:42.971279 +02:00 < x-sentry-rate-limit-remaining: 39
DEBUG 2023-09-14 17:11:42.971285 +02:00 < x-sentry-rate-limit-limit: 40
DEBUG 2023-09-14 17:11:42.971291 +02:00 < x-sentry-rate-limit-reset: 1694704303
DEBUG 2023-09-14 17:11:42.971297 +02:00 < x-sentry-rate-limit-concurrentremaining: 24
DEBUG 2023-09-14 17:11:42.971303 +02:00 < x-sentry-rate-limit-concurrentlimit: 25
DEBUG 2023-09-14 17:11:42.971309 +02:00 < content-language: en
DEBUG 2023-09-14 17:11:42.971315 +02:00 < x-frame-options: deny
DEBUG 2023-09-14 17:11:42.971321 +02:00 < x-content-type-options: nosniff
DEBUG 2023-09-14 17:11:42.971327 +02:00 < x-xss-protection: 1; mode=block
DEBUG 2023-09-14 17:11:42.971336 +02:00 < content-security-policy: connect-src *; default-src *; style-src * 'unsafe-inline'; font-src * data:; object-src 'self'; base-uri 'none'; frame-ancestors 'self' *.sentry.io; script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; img-src * blob: data:; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=4272ffd31457e8de0d50eeb7b414fa466974285e
DEBUG 2023-09-14 17:11:42.971352 +02:00 < x-envoy-attempt-count: 1
DEBUG 2023-09-14 17:11:42.971358 +02:00 < x-envoy-upstream-service-time: 40
DEBUG 2023-09-14 17:11:42.971364 +02:00 < x-served-by: getsentry-web-default-common-production-576f6957d5-mmv47
DEBUG 2023-09-14 17:11:42.971370 +02:00 < x-served-by: frontend-default-5494b6bc88-965h2
DEBUG 2023-09-14 17:11:42.971376 +02:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
DEBUG 2023-09-14 17:11:42.971382 +02:00 < via: 1.1 google
DEBUG 2023-09-14 17:11:42.971388 +02:00 < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
DEBUG 2023-09-14 17:11:42.973555 +02:00 response status: 200
DEBUG 2023-09-14 17:11:42.973571 +02:00 body: {"591c9b4e74acbe7addd32867f6d7900b8b9c4d6d":{"state":"ok","detail":null,"missingChunks":[],"dif":{"id":"448488109","uuid":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","debugId":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","codeId":"92bb328782e93a44ad7a7d0a022561d0","cpuName":"arm64","objectName":"Kartoon","symbolType":"macho","headers":{"Content-Type":"application/x-mach-binary"},"size":6625208,"sha1":"591c9b4e74acbe7addd32867f6d7900b8b9c4d6d","dateCreated":"2023-09-14T15:05:35.972233Z","data":{"type":"dbg","features":["unwind","debug","symtab"]}}},"94ce85b36a674e47605d413ca41739747ca5ae7a":{"state":"ok","detail":null,"missingChunks":[],"dif":{"id":"448443755","uuid":"839f1431-7386-39d4-ab1f-034caa936314","debugId":"839f1431-7386-39d4-ab1f-034caa936314","codeId":"839f1431738639d4ab1f034caa936314","cpuName":"arm64","objectName":"DesignSystemTests","symbolType":"macho","headers":{"Content-Type":"application/x-mach-binary"},"size":76016,"sha1":"94ce85b36a674e47605d413ca41739747ca5ae7a","dateCreated":"2023-09-14T14:12:24.915079Z","data":{"type":"lib","features":["symtab","unwind"]}}},"5d2382886f45a93d1b07c5b9b69945c1b5b2af70":{"state":"ok","detail":null,"missingChunks":[],"dif":{"id":"448488178","uuid":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","debugId":"92bb3287-82e9-3a44-ad7a-7d0a022561d0","codeId":"92bb328782e93a44ad7a7d0a022561d0","cpuName":"arm64","objectName":"Kartoon","symbolType":"macho","headers":{"Content-Type":"application/x-mach-binary"},"size":4024384,"sha1":"5d2382886f45a93d1b07c5b9b69945c1b5b2af70","dateCreated":"2023-09-14T15:05:40.379089Z","data":{"type":"exe","features":["unwind","symtab"]}}},"75d2bde2c0fecbc57f4b5affec4db99b799f71a4":{"state":"error","detail":"internal server error","missingChunks":[]}}
> File processing complete:
ERROR Kartoon
internal server error
> No new debug symbols to associate.
DEBUG 2023-09-14 17:11:43.182334 +02:00 request POST https://sentry.io/api/0/projects/kartoon-65f9638a1/kartoon-ios-debug/reprocessing/
DEBUG 2023-09-14 17:11:43.182367 +02:00 using token authentication
DEBUG 2023-09-14 17:11:43.182386 +02:00 retry number 0, max retries: 0
DEBUG 2023-09-14 17:11:43.182529 +02:00 > POST /api/0/projects/kartoon-65f9638a1/kartoon-ios-debug/reprocessing/ HTTP/1.1
DEBUG 2023-09-14 17:11:43.182549 +02:00 > Host: sentry.io
DEBUG 2023-09-14 17:11:43.182563 +02:00 > Accept: */*
DEBUG 2023-09-14 17:11:43.182577 +02:00 > Connection: TE
DEBUG 2023-09-14 17:11:43.182590 +02:00 > TE: gzip
DEBUG 2023-09-14 17:11:43.182603 +02:00 > User-Agent: sentry-cli/2.20.7
DEBUG 2023-09-14 17:11:43.182628 +02:00 > Authorization: Bearer sntrys_e***
DEBUG 2023-09-14 17:11:43.182641 +02:00 > Content-Length: 0
DEBUG 2023-09-14 17:11:43.334101 +02:00 < HTTP/1.1 200 OK
DEBUG 2023-09-14 17:11:43.334237 +02:00 < server: nginx
DEBUG 2023-09-14 17:11:43.334327 +02:00 < date: Thu, 14 Sep 2023 15:11:43 GMT
DEBUG 2023-09-14 17:11:43.334359 +02:00 < Content-Length: 0
DEBUG 2023-09-14 17:11:43.334386 +02:00 < allow: POST, OPTIONS
DEBUG 2023-09-14 17:11:43.334414 +02:00 < access-control-allow-methods: POST, OPTIONS
DEBUG 2023-09-14 17:11:43.334449 +02:00 < access-control-allow-headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding, sentry-trace, baggage, X-CSRFToken
DEBUG 2023-09-14 17:11:43.334476 +02:00 < access-control-expose-headers: X-Sentry-Error, Retry-After
DEBUG 2023-09-14 17:11:43.334502 +02:00 < access-control-allow-origin: *
DEBUG 2023-09-14 17:11:43.334529 +02:00 < x-sentry-rate-limit-remaining: 38
DEBUG 2023-09-14 17:11:43.334568 +02:00 < x-sentry-rate-limit-limit: 40
DEBUG 2023-09-14 17:11:43.334595 +02:00 < x-sentry-rate-limit-reset: 1694704304
DEBUG 2023-09-14 17:11:43.334621 +02:00 < x-sentry-rate-limit-concurrentremaining: 24
DEBUG 2023-09-14 17:11:43.334659 +02:00 < x-sentry-rate-limit-concurrentlimit: 25
DEBUG 2023-09-14 17:11:43.334686 +02:00 < vary: Accept-Language, Cookie
DEBUG 2023-09-14 17:11:43.334712 +02:00 < content-language: en
DEBUG 2023-09-14 17:11:43.334736 +02:00 < x-frame-options: deny
DEBUG 2023-09-14 17:11:43.334762 +02:00 < x-content-type-options: nosniff
DEBUG 2023-09-14 17:11:43.334787 +02:00 < x-xss-protection: 1; mode=block
DEBUG 2023-09-14 17:11:43.334819 +02:00 < content-security-policy: frame-ancestors 'self' *.sentry.io; connect-src *; object-src 'self'; script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; style-src * 'unsafe-inline'; font-src * data:; img-src * blob: data:; base-uri 'none'; default-src *; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=4272ffd31457e8de0d50eeb7b414fa466974285e
DEBUG 2023-09-14 17:11:43.334848 +02:00 < x-envoy-attempt-count: 1
DEBUG 2023-09-14 17:11:43.334873 +02:00 < x-envoy-upstream-service-time: 37
DEBUG 2023-09-14 17:11:43.334898 +02:00 < x-served-by: getsentry-web-default-common-production-576f6957d5-9hxtj
DEBUG 2023-09-14 17:11:43.334923 +02:00 < x-served-by: frontend-default-5494b6bc88-hpq49
DEBUG 2023-09-14 17:11:43.334949 +02:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
DEBUG 2023-09-14 17:11:43.334973 +02:00 < via: 1.1 google
DEBUG 2023-09-14 17:11:43.334998 +02:00 < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
DEBUG 2023-09-14 17:11:43.335049 +02:00 response status: 200
DEBUG 2023-09-14 17:11:43.335083 +02:00 body:
Error: some symbols did not process correctly
error: sentry-cli exit with 1
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 20 (11 by maintainers)
Fixed as of https://github.com/getsentry/sentry-cli/pull/1749.
Thanks, it’s sent!
Thank you for the report, will take a look.