Closed yayapao closed 10 months ago
i found whether sentry-vite-plugin or sentry-webpack-plugin or their version will always pull latest sentry-cli and do some requests, so is sentry-cli ? which will always pull something to fetch requests?
Hi @yayapao, I tried to reproduce your issue (using CLI version 2.23.0 and Sentry SaaS), but when I follow the commands you provided, the sourcemaps are being uploaded successfully.
Could you please verify that you are uploading the sourcemaps to the correct organization and project? You can specifiy these with the --org
and --project
options, respectively. If you still are experiencing this same problem after verifying that you are uploading to the correct organization/project, please follow the steps listed on our Troubleshooting Source Maps page rule out any other possible causes of this issue.
Please let me know whether the steps I provided above solve your problem! Feel free to reach out if you have any questions.
i found whether sentry-vite-plugin or sentry-webpack-plugin or their version will always pull latest sentry-cli and do some requests, so is sentry-cli ? which will always pull something to fetch requests?
I am unsure what you are asking here @yayapao because your questions are worded somewhat vaguely. Can you please explain specifically what you are asking about?
yes, i upload sourceMap files with correct org and project, besides that i use --url=[self_hosted v21.6.3 url]
to make sure files are uploaded to target url. Sentry-cli worked fine for the past few months and now it won't upload.
Maybe because of this change?
Looks like this slipped through in https://github.com/getsentry/sentry-android-gradle-plugin/pull/587/files where we construct the arguments for the underlying sentry-cli in the wrong order when a custom URL is used
I finally made it clear, we divide sentry server into many mircoservices, like sentry run web
, sentry run worker -X default
and so on. We changed the task queue from Redis to RabbitMQ, and we updated all the services but web server. So the files were uploaded failed.
Environment
CLI: v1.17.4 or v2.22.3 Self_hosted_sentry: v21.6.3
Steps to Reproduce
(v1.17.4)
sentry-cli releases new v1215
successfully!sentry-cli releases files v1215 upload-sourcemaps --url-prefix '~/assets/' ./dist/assets/
sentry-cli releases finalize v1215
Expected Result
Files should be uploaded to the platform.
Actual Result
Debug logs say everything is ok and all request returns 200, but cannot find artifacts in the Sentry.
Logs
INFO 2023-12-15 11:11:03.061593 +08:00 Loaded config from /Users/yaya/.sentryclirc DEBUG 2023-12-15 11:11:03.062282 +08:00 sentry-cli version: 1.74.5, platform: "darwin", architecture: "x86_64" INFO 2023-12-15 11:11:03.062288 +08:00 sentry-cli was invoked with the following command line: "/Users/yaya/.volta/tools/image/packages/@sentry/cli/lib/node_modules/@sentry/cli/sentry-cli" "releases" "new" "v1215" DEBUG 2023-12-15 11:11:03.062559 +08:00 request POST http://[domain].com/api/0/projects/yaya/sentry-vite-eg/releases/ DEBUG 2023-12-15 11:11:03.062583 +08:00 using token authentication DEBUG 2023-12-15 11:11:03.062612 +08:00 json body: {"version":"v1215","projects":["sentry-vite-eg"],"dateStarted":"2023-12-15T03:11:03.062531Z"} DEBUG 2023-12-15 11:11:03.062655 +08:00 retry number 0, max retries: 0 DEBUG 2023-12-15 11:11:03.137572 +08:00 > POST /api/0/projects/yaya/sentry-vite-eg/releases/ HTTP/1.1 DEBUG 2023-12-15 11:11:03.137637 +08:00 > Host: [domain].com DEBUG 2023-12-15 11:11:03.137659 +08:00 > Accept: / DEBUG 2023-12-15 11:11:03.137717 +08:00 > Connection: TE DEBUG 2023-12-15 11:11:03.137739 +08:00 > TE: gzip DEBUG 2023-12-15 11:11:03.137758 +08:00 > User-Agent: sentry-cli/1.74.5 DEBUG 2023-12-15 11:11:03.138620 +08:00 > Authorization: Bearer 5e71fd1e DEBUG 2023-12-15 11:11:03.138669 +08:00 > Content-Type: application/json DEBUG 2023-12-15 11:11:03.138687 +08:00 > Content-Length: 91 DEBUG 2023-12-15 11:11:03.545320 +08:00 < HTTP/1.1 201 Created DEBUG 2023-12-15 11:11:03.545441 +08:00 < Content-Type: application/json DEBUG 2023-12-15 11:11:03.545495 +08:00 < Content-Length: 579 DEBUG 2023-12-15 11:11:03.545522 +08:00 < Connection: keep-alive DEBUG 2023-12-15 11:11:03.545547 +08:00 < Allow: GET, POST, HEAD, OPTIONS DEBUG 2023-12-15 11:11:03.545576 +08:00 < Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS DEBUG 2023-12-15 11:11:03.545623 +08:00 < Access-Control-Allow-Headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding DEBUG 2023-12-15 11:11:03.545656 +08:00 < Access-Control-Expose-Headers: X-Sentry-Error, Retry-After DEBUG 2023-12-15 11:11:03.545686 +08:00 < Access-Control-Allow-Origin: DEBUG 2023-12-15 11:11:03.545715 +08:00 < Vary: Accept-Language, Cookie DEBUG 2023-12-15 11:11:03.545744 +08:00 < Content-Language: en DEBUG 2023-12-15 11:11:03.545771 +08:00 < X-Frame-Options: deny DEBUG 2023-12-15 11:11:03.545798 +08:00 < X-Content-Type-Options: nosniff DEBUG 2023-12-15 11:11:03.545824 +08:00 < X-XSS-Protection: 1; mode=block DEBUG 2023-12-15 11:11:03.545851 +08:00 < Server: APISIX/2.15.3 DEBUG 2023-12-15 11:11:03.546137 +08:00 response status: 201 DEBUG 2023-12-15 11:11:03.546225 +08:00 body: {"version":"v1215","status":"open","shortVersion":"v1215","versionInfo":{"package":null,"version":{"raw":"v1215"},"description":"v1215","buildHash":null},"ref":null,"url":null,"dateReleased":null,"dateCreated":"2023-12-15T03:11:05.398920Z","data":{},"newGroups":0,"owner":null,"commitCount":0,"lastCommit":null,"deployCount":0,"lastDeploy":null,"authors":[],"projects":[{"id":1068,"slug":"sentry-vite-eg","name":"sentry-vite-eg","newGroups":0,"platform":"javascript-react","platforms":["javascript"],"hasHealthData":false}],"firstEvent":null,"lastEvent":null,"currentProjectMeta":{}} Created release v1215. ➜ sentry-vite-eg git:(master) ✗ sentry-cli releases files v1215 upload-sourcemaps --url-prefix '~/assets/' ./dist/assets/ INFO 2023-12-15 11:13:23.898495 +08:00 Loaded config from /Users/yaya/.sentryclirc DEBUG 2023-12-15 11:13:23.899480 +08:00 sentry-cli version: 1.74.5, platform: "darwin", architecture: "x86_64" INFO 2023-12-15 11:13:23.899487 +08:00 sentry-cli was invoked with the following command line: "/Users/yaya/.volta/tools/image/packages/@sentry/cli/lib/node_modules/@sentry/cli/sentry-cli" "releases" "files" "v1215" "upload-sourcemaps" "--url-prefix" "~/assets/" "./dist/assets/" DEBUG 2023-12-15 11:13:23.906196 +08:00 built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 4 required extensions, 0 regexes (from globset) DEBUG 2023-12-15 11:13:23.907080 +08:00 glob converted to regex: Glob { glob: "/~", re: "(?-u)^(?:/?|./)[^/]\~$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true }, tokens: Tokens([RecursivePrefix, ZeroOrMore, Literal('~')]) } (from globset) DEBUG 2023-12-15 11:13:23.907135 +08:00 built glob set; 0 literals, 1 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 1 regexes (from globset) DEBUG 2023-12-15 11:13:23.907831 +08:00 ignoring dist/assets/react-35ef61ed.svg: Ignore(IgnoreMatch(Types(Glob(UnmatchedIgnore)))) (from ignore) DEBUG 2023-12-15 11:13:23.907895 +08:00 whitelisting dist/assets/index-4b4f7fc1.js.map: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "map", globs: [".map"] }, which: 0, negated: false })))) (from ignore) INFO 2023-12-15 11:13:23.907940 +08:00 found: dist/assets/index-4b4f7fc1.js.map (351399 bytes) DEBUG 2023-12-15 11:13:23.908840 +08:00 whitelisting dist/assets/index-4b4f7fc1.js: Whitelist(IgnoreMatch(Types(Glob(Matched { def: FileTypeDef { name: "js", globs: ["*.js"] }, which: 0, negated: false })))) (from ignore) INFO 2023-12-15 11:13:23.908937 +08:00 found: dist/assets/index-4b4f7fc1.js (144140 bytes) DEBUG 2023-12-15 11:13:23.909604 +08:00 ignoring dist/assets/index-d526a0c5.css: Ignore(IgnoreMatch(Types(Glob(UnmatchedIgnore)))) (from ignore)
Source Map Upload Report Minified Scripts ~/assets/index-4b4f7fc1.js (sourcemap at index-4b4f7fc1.js.map) Source Maps ~/assets/index-4b4f7fc1.js.map ➜ sentry-vite-eg git:(master) ✗ sentry-cli releases finalize v1215
INFO 2023-12-15 11:20:14.100272 +08:00 Loaded config from /Users/yaya/.sentryclirc DEBUG 2023-12-15 11:20:14.101093 +08:00 sentry-cli version: 1.74.5, platform: "darwin", architecture: "x86_64" INFO 2023-12-15 11:20:14.101099 +08:00 sentry-cli was invoked with the following command line: "/Users/yaya/.volta/tools/image/packages/@sentry/cli/lib/node_modules/@sentry/cli/sentry-cli" "releases" "finalize" "v1215" DEBUG 2023-12-15 11:20:14.101409 +08:00 request PUT http://[domain].com/api/0/projects/yaya/sentry-vite-eg/releases/v1215/ DEBUG 2023-12-15 11:20:14.101450 +08:00 using token authentication DEBUG 2023-12-15 11:20:14.101473 +08:00 json body: {"projects":["sentry-vite-eg"],"dateReleased":"2023-12-15T03:20:14.101377Z"} DEBUG 2023-12-15 11:20:14.101488 +08:00 retry number 0, max retries: 0 DEBUG 2023-12-15 11:20:14.133969 +08:00 > PUT /api/0/projects/yaya/sentry-vite-eg/releases/v1215/ HTTP/1.1 DEBUG 2023-12-15 11:20:14.134005 +08:00 > Host: [domain].com DEBUG 2023-12-15 11:20:14.134012 +08:00 > Accept: / DEBUG 2023-12-15 11:20:14.134019 +08:00 > Connection: TE DEBUG 2023-12-15 11:20:14.134025 +08:00 > TE: gzip DEBUG 2023-12-15 11:20:14.134031 +08:00 > User-Agent: sentry-cli/1.74.5 DEBUG 2023-12-15 11:20:14.134323 +08:00 > Authorization: Bearer 5e71fd1e** DEBUG 2023-12-15 11:20:14.134332 +08:00 > Content-Type: application/json DEBUG 2023-12-15 11:20:14.134339 +08:00 > Content-Length: 74 DEBUG 2023-12-15 11:20:14.570032 +08:00 < HTTP/1.1 200 OK DEBUG 2023-12-15 11:20:14.570139 +08:00 < Content-Type: application/json DEBUG 2023-12-15 11:20:14.570174 +08:00 < Content-Length: 604 DEBUG 2023-12-15 11:20:14.570203 +08:00 < Connection: keep-alive DEBUG 2023-12-15 11:20:14.570234 +08:00 < Allow: GET, PUT, DELETE, HEAD, OPTIONS DEBUG 2023-12-15 11:20:14.570277 +08:00 < Access-Control-Allow-Methods: GET, PUT, DELETE, HEAD, OPTIONS DEBUG 2023-12-15 11:20:14.570365 +08:00 < Access-Control-Allow-Headers: X-Sentry-Auth, X-Requested-With, Origin, Accept, Content-Type, Authentication, Authorization, Content-Encoding DEBUG 2023-12-15 11:20:14.570408 +08:00 < Access-Control-Expose-Headers: X-Sentry-Error, Retry-After DEBUG 2023-12-15 11:20:14.570446 +08:00 < Access-Control-Allow-Origin: DEBUG 2023-12-15 11:20:14.570720 +08:00 < Vary: Accept-Language, Cookie DEBUG 2023-12-15 11:20:14.570789 +08:00 < Content-Language: en DEBUG 2023-12-15 11:20:14.570817 +08:00 < X-Frame-Options: deny DEBUG 2023-12-15 11:20:14.570842 +08:00 < X-Content-Type-Options: nosniff DEBUG 2023-12-15 11:20:14.570868 +08:00 < X-XSS-Protection: 1; mode=block DEBUG 2023-12-15 11:20:14.570892 +08:00 < Server: APISIX/2.15.3 DEBUG 2023-12-15 11:20:14.571206 +08:00 response status: 200 DEBUG 2023-12-15 11:20:14.571271 +08:00 body: {"version":"v1215","status":"open","shortVersion":"v1215","versionInfo":{"package":null,"version":{"raw":"v1215"},"description":"v1215","buildHash":null},"ref":null,"url":null,"dateReleased":"2023-12-15T03:20:14.101377Z","dateCreated":"2023-12-15T03:11:05.398920Z","data":{},"newGroups":0,"owner":null,"commitCount":0,"lastCommit":null,"deployCount":0,"lastDeploy":null,"authors":[],"projects":[{"id":1068,"slug":"sentry-vite-eg","name":"sentry-vite-eg","newGroups":0,"platform":"javascript-react","platforms":["javascript"],"hasHealthData":false}],"firstEvent":null,"lastEvent":null,"currentProjectMeta":{}} Finalized release v1215.