Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 error when uploading source maps, but it says success at the end #3590

Closed
saint777 opened this issue Feb 27, 2025 · 2 comments
Closed

502 error when uploading source maps, but it says success at the end #3590

saint777 opened this issue Feb 27, 2025 · 2 comments
Labels

Comments

@saint777
Copy link

Self-Hosted version:
25.1.0

Steps to reproduce

  1. We have Vue.js project, using vite + sentry/cli 1.77.3 and using self-hosted sentry
  2. Inside vite config, we turned on build->sourcemaps: true
  3. *.js.map files have sentry debug ids
  4. We tried both using @sentry/vite-plugin v3.2.1 and legacy method "sentry-cli sourcemaps upload --release=my-release ./dist/assets"

CLI Log:

> Found 88 files                                                                                                                                                                                                                    
> Analyzing 88 sources                                                                                                                                                                                                              
> Analyzing completed in 0.025s
> Adding source map references
  DEBUG   2025-02-14 11:34:10.662502800 +05:00 request GET https://we-replaced-domain-name.com/api/0/projects/sentry/xxx-project/releases/c884ff0c5ffd6a0ece7c9acb7d0efb704b1abf5a/files/?cursor=&checksum=01b5089cacee62eddb1665
f5f4caf2907dedb08b&checksum=025c6f047702dd3249a8a68e7ab8d4647b5bc4c1&checksum=047f45223c009fbe6789debc6dfa81bf4cfc9a90&checksum=082eab577f9ad3e916129e0d1b958a989aa7d066&checksum=0840b9dfc9a177756e177ebbeca8667ff1fa0b44&checksum=
10f29dfcbd4dfc055c3664a29472444063e604b9&checksum=1449e232b307b5189acf0a8ae5af886ce40fc584&checksum=153acb5436fec5689141efcfe687ac582048a049&checksum=1d576f4db23c9479bf72d904dbaa3cfd84e64211&checksum=1dfe20d5ef091445ed5e384ac8dd
c1491faaa973&checksum=23797d1c15f754cf080f656028c9a287f3489a47&checksum=25ff3ee453dffd55a5155fe3f7566ff235304504&checksum=26136ba728b8bf5930ebc40f80edee66fcb06774&checksum=272d4b60f4d339522408042fb623c68174e69bbe&checksum=298a86
ab7b07fd967c6df3e091728c7fc7498426&checksum=2a974f39d0e59fb437523c85a6a080f27931e95f&checksum=2c8adc796e33d533dd5d922b1bc5b54c7f0030ba&checksum=2f1baef8d007d51ea7997f26e08f08877a614388&checksum=346ff0a8ad339ac946ea0a21600a818a8a
e370cf&checksum=37e275495c04d31b3f3b71bdb93de0c287111dbb&checksum=389717040374ddfe79c7ba0a0b0e9449ade0e53c&checksum=3e201e6b12a51fc3c65985724b990f93786b5560&checksum=40a2fe7068685fab48eb552cf3f7bfcca92a9395&checksum=41670b70f5bc
93776d477c7ed5aa1d5748faeb07&checksum=4440f7753ffd64b8f0fb6442d988953e50fd33bb&checksum=45c868e3f02ed459b81ad87e464488a1f3124dc3&checksum=46a81733c55bcd2d83d30804e123bdb27ad83027&checksum=5290861a55853d64bea05e8d6f53feae03bd0a51
&checksum=5550fe40b6de43a0dd2db49a4bcf8c4b82ed4e6c&checksum=5870d64ae349ea128c81d980a77925910cff279f&checksum=5ab3880bcc2f7fdec8713f70c8dff752f3f916e8&checksum=5f0cd0a9162d304392867f7f311f2b8c46ff0332&checksum=612b989e524527e6d6
14194f3ebd0c02be5039c5&checksum=64155ef10aa32607b8f01f93369ce7fec9d46984&checksum=69a27dd733306f4ee7bc1c11d560741d97bf9709&checksum=6ab663556726f2a432d1a1a4a0deea158cb81bff&checksum=6cd773eddf2c0304c0881d1d02a7a19af92fa749&check
sum=6d49b5af01cfefa7b07e13954ea33d3e067f40c6&checksum=6db10ed888d5ffbad9d479a3bbc06be49c92b52b&checksum=70717efbfa140dba1b44aae4f381fc0497970077&checksum=72445d1d1b03cfed0b5ae160b5299c017ecb8ddf&checksum=7acf8dcc669150c61829e53f
24d05baf19aca1d2&checksum=7b9357f732a13f0e3df48c57cfd6b246630f6eb4&checksum=7c4fff8aa579a553746ecbaaae049b10175e8780&checksum=7e2f42fdf9e888aa13faf4ee694a602155390040&checksum=823b111bc6ca9e1a4faa6c2982e74f2e320be315&checksum=84
0365f534589d3360fd79424039eff53ae454ac&checksum=8734392cda0bfc3e8df39a63f7963f9283f98d5f&checksum=87f93344f99ab4c587624502e2c4b243e649584e&checksum=8c674fad644270217d46b115132aa0e27f7aece9&checksum=8d2631c420e29b9546aab2ce41d305
75b83ebd17&checksum=8d85d138c264adbf2a886144d77745877d423821&checksum=94de992f439f8e7a708e684e9ba5efc8549d37c4&checksum=9b24e1707a650b702e125f53acd4022bd836cf04&checksum=9e66c75add0eb778b05056368b1bd8ebfdf8bb3f&checksum=9ec60049
0bce9646493b866dfe5bb5876c91ea0c&checksum=9fd7f304b346898ba063c945f329e6f52a533194&checksum=a114867903cdedda2959c2ef23e967a9e693da5d&checksum=a732d53ea5e3c80d8f6732d8e1f80afd1c0d1662&checksum=a778501ca522bd77baa49efa687ac87c21a4
0612&checksum=ae55918ea44249ae37a92670d0d53d3b635ef7eb&checksum=b0d90dbd2e21345ed6c936c7fc92a530a833ea5a&checksum=b0ea4bdbb42708babeb129175f5d9ee2c124fac7&checksum=b547480a5bcb01ea6d18afe852a9443ccc827658&checksum=b897f4fa2ca73d
f210c1b1681a125f462eed0135&checksum=bb4ac8547e35671380f112f64e0ea0b3ae1cfced&checksum=c17095a2488b896a65d1e9c2930dc7642e3c2190&checksum=c294fb83ec6f5ec1421335c1796ac99cb00e4de2&checksum=c321710ee35a11cbdd62db63e9b67573abfb1edc&c
hecksum=c4ce914c83bded04da4a106c82d688f2138ca2f1&checksum=c6a230670b422a1404c9f5bb2d240f0e7dcc0af3&checksum=c6f68596d1b98e2e9be2f858943a99e8673d4c19&checksum=c7d521c7b826c600a929e71359afb50d3a5417b9&checksum=cb90b149c37ffdca057f
51d29f004f0f1b34d805&checksum=d04f114409ca7835f77e627625bb54c785f531d2&checksum=d2613c558fc6719b6a0f57d75dd36abc0b081d04&checksum=d361647c85d505c19b4762cc5ca694adca7fa051&checksum=d66cde31cafd0aada4453db6da92ebcac9c0fa75&checksu
m=d7294e18f71d99c060076263d6c42a93963afc01&checksum=d89bd1ab6065b37a6d28d588089ea1d9c88556c0&checksum=dbe22c5a1c2648a93ba211c7f7c26ed596994a12&checksum=de47daa575c64d838bf7b76d2e247b1aad964d9d&checksum=dfa9dbaa39a0aa925f05a6b2fd
fff4d9c9788c1d&checksum=e1328c5b65f84281923c631eae4625b29ec8fb4b&checksum=e855850adc0b4fd8254f52a98683fc1d7852adf3&checksum=e8fd0e8e439492bf75e946534122bc03cf3bc766&checksum=ea55e7387b0ec65e694a8b788a7d201480c10c1d&checksum=fec69af8191a821b6857ef58cbd9794066faea51
  DEBUG   2025-02-14 11:34:10.663306500 +05:00 pipeline: vite-plugin/3.1.2
  DEBUG   2025-02-14 11:34:10.663560900 +05:00 using token authentication
  DEBUG   2025-02-14 11:34:10.663686500 +05:00 retry number 0, max retries: 0
  DEBUG   2025-02-14 11:34:10.664148200 +05:00 > GET /api/0/projects/sentry/xxx-project/releases/c884ff0c5ffd6a0ece7c9acb7d0efb704b1abf5a/files/?cursor=&checksum=01b5089cacee62eddb1665f5f4caf2907dedb08b&checksum=025c6f047702
dd3249a8a68e7ab8d4647b5bc4c1&checksum=047f45223c009fbe6789debc6dfa81bf4cfc9a90&checksum=082eab577f9ad3e916129e0d1b958a989aa7d066&checksum=0840b9dfc9a177756e177ebbeca8667ff1fa0b44&checksum=10f29dfcbd4dfc055c3664a29472444063e604b9
&checksum=1449e232b307b5189acf0a8ae5af886ce40fc584&checksum=153acb5436fec5689141efcfe687ac582048a049&checksum=1d576f4db23c9479bf72d904dbaa3cfd84e64211&checksum=1dfe20d5ef091445ed5e384ac8ddc1491faaa973&checksum=23797d1c15f754cf08
0f656028c9a287f3489a47&checksum=25ff3ee453dffd55a5155fe3f7566ff235304504&checksum=26136ba728b8bf5930ebc40f80edee66fcb06774&checksum=272d4b60f4d339522408042fb623c68174e69bbe&checksum=298a86ab7b07fd967c6df3e091728c7fc7498426&check
sum=2a974f39d0e59fb437523c85a6a080f27931e95f&checksum=2c8adc796e33d533dd5d922b1bc5b54c7f0030ba&checksum=2f1baef8d007d51ea7997f26e08f08877a614388&checksum=346ff0a8ad339ac946ea0a21600a818a8ae370cf&checksum=37e275495c04d31b3f3b71bd
b93de0c287111dbb&checksum=389717040374ddfe79c7ba0a0b0e9449ade0e53c&checksum=3e201e6b12a51fc3c65985724b990f93786b5560&checksum=40a2fe7068685fab48eb552cf3f7bfcca92a9395&checksum=41670b70f5bc93776d477c7ed5aa1d5748faeb07&checksum=44
40f7753ffd64b8f0fb6442d988953e50fd33bb&checksum=45c868e3f02ed459b81ad87e464488a1f3124dc3&checksum=46a81733c55bcd2d83d30804e123bdb27ad83027&checksum=5290861a55853d64bea05e8d6f53feae03bd0a51&checksum=5550fe40b6de43a0dd2db49a4bcf8c
4b82ed4e6c&checksum=5870d64ae349ea128c81d980a77925910cff279f&checksum=5ab3880bcc2f7fdec8713f70c8dff752f3f916e8&checksum=5f0cd0a9162d304392867f7f311f2b8c46ff0332&checksum=612b989e524527e6d614194f3ebd0c02be5039c5&checksum=64155ef1
0aa32607b8f01f93369ce7fec9d46984&checksum=69a27dd733306f4ee7bc1c11d560741d97bf9709&checksum=6ab663556726f2a432d1a1a4a0deea158cb81bff&checksum=6cd773eddf2c0304c0881d1d02a7a19af92fa749&checksum=6d49b5af01cfefa7b07e13954ea33d3e067f
40c6&checksum=6db10ed888d5ffbad9d479a3bbc06be49c92b52b&checksum=70717efbfa140dba1b44aae4f381fc0497970077&checksum=72445d1d1b03cfed0b5ae160b5299c017ecb8ddf&checksum=7acf8dcc669150c61829e53f24d05baf19aca1d2&checksum=7b9357f732a13f
0e3df48c57cfd6b246630f6eb4&checksum=7c4fff8aa579a553746ecbaaae049b10175e8780&checksum=7e2f42fdf9e888aa13faf4ee694a602155390040&checksum=823b111bc6ca9e1a4faa6c2982e74f2e320be315&checksum=840365f534589d3360fd79424039eff53ae454ac&c
hecksum=8734392cda0bfc3e8df39a63f7963f9283f98d5f&checksum=87f93344f99ab4c587624502e2c4b243e649584e&checksum=8c674fad644270217d46b115132aa0e27f7aece9&checksum=8d2631c420e29b9546aab2ce41d30575b83ebd17&checksum=8d85d138c264adbf2a88
6144d77745877d423821&checksum=94de992f439f8e7a708e684e9ba5efc8549d37c4&checksum=9b24e1707a650b702e125f53acd4022bd836cf04&checksum=9e66c75add0eb778b05056368b1bd8ebfdf8bb3f&checksum=9ec600490bce9646493b866dfe5bb5876c91ea0c&checksu
m=9fd7f304b346898ba063c945f329e6f52a533194&checksum=a114867903cdedda2959c2ef23e967a9e693da5d&checksum=a732d53ea5e3c80d8f6732d8e1f80afd1c0d1662&checksum=a778501ca522bd77baa49efa687ac87c21a40612&checksum=ae55918ea44249ae37a92670d0
d53d3b635ef7eb&checksum=b0d90dbd2e21345ed6c936c7fc92a530a833ea5a&checksum=b0ea4bdbb42708babeb129175f5d9ee2c124fac7&checksum=b547480a5bcb01ea6d18afe852a9443ccc827658&checksum=b897f4fa2ca73df210c1b1681a125f462eed0135&checksum=bb4a
c8547e35671380f112f64e0ea0b3ae1cfced&checksum=c17095a2488b896a65d1e9c2930dc7642e3c2190&checksum=c294fb83ec6f5ec1421335c1796ac99cb00e4de2&checksum=c321710ee35a11cbdd62db63e9b67573abfb1edc&checksum=c4ce914c83bded04da4a106c82d688f2
138ca2f1&checksum=c6a230670b422a1404c9f5bb2d240f0e7dcc0af3&checksum=c6f68596d1b98e2e9be2f858943a99e8673d4c19&checksum=c7d521c7b826c600a929e71359afb50d3a5417b9&checksum=cb90b149c37ffdca057f51d29f004f0f1b34d805&checksum=d04f114409
ca7835f77e627625bb54c785f531d2&checksum=d2613c558fc6719b6a0f57d75dd36abc0b081d04&checksum=d361647c85d505c19b4762cc5ca694adca7fa051&checksum=d66cde31cafd0aada4453db6da92ebcac9c0fa75&checksum=d7294e18f71d99c060076263d6c42a93963afc
01&checksum=d89bd1ab6065b37a6d28d588089ea1d9c88556c0&checksum=dbe22c5a1c2648a93ba211c7f7c26ed596994a12&checksum=de47daa575c64d838bf7b76d2e247b1aad964d9d&checksum=dfa9dbaa39a0aa925f05a6b2fdfff4d9c9788c1d&checksum=e1328c5b65f84281
923c631eae4625b29ec8fb4b&checksum=e855850adc0b4fd8254f52a98683fc1d7852adf3&checksum=e8fd0e8e439492bf75e946534122bc03cf3bc766&checksum=ea55e7387b0ec65e694a8b788a7d201480c10c1d&checksum=fec69af8191a821b6857ef58cbd9794066faea51 HTTP/1.1
  DEBUG   2025-02-14 11:34:10.664709900 +05:00 > Host: we-replaced-domain-name.com
  DEBUG   2025-02-14 11:34:10.664988600 +05:00 > Accept: */*
  DEBUG   2025-02-14 11:34:10.665254800 +05:00 > Connection: TE
  DEBUG   2025-02-14 11:34:10.665376700 +05:00 > TE: gzip
  DEBUG   2025-02-14 11:34:10.665484200 +05:00 > sentry-trace:ed82b3f2bb1945b7963388b6bdc32e5b-9dc226e3e8e9a0ff-1
  DEBUG   2025-02-14 11:34:10.665581100 +05:00 > baggage:sentry-environment=production,sentry-release=3.1.2,sentry-public_key=4c2bae7d9fbc413e8f7385f55c515d51,sentry-trace_id=ed82b3f2bb1945b7963388b6bdc32e5b,sentry-sample_rate=1,sentry-transaction=Sentry%20Bundler%20Plugin%20execution,sentry-sampled=true
  DEBUG   2025-02-14 11:34:10.665719200 +05:00 > User-Agent: sentry-cli/2.41.1 vite-plugin/3.1.2
  DEBUG   2025-02-14 11:34:10.665817700 +05:00 > Authorization: Bearer sntrys_e***
  DEBUG   2025-02-14 11:34:10.744587600 +05:00 < HTTP/1.1 502 Bad Gateway
  DEBUG   2025-02-14 11:34:10.745266100 +05:00 < Date: Fri, 14 Feb 2025 06:34:10 GMT
  DEBUG   2025-02-14 11:34:10.745900900 +05:00 < Content-Type: text/html
  DEBUG   2025-02-14 11:34:10.746354200 +05:00 < Content-Length: 150
  DEBUG   2025-02-14 11:34:10.746491700 +05:00 < Connection: keep-alive
  DEBUG   2025-02-14 11:34:10.746615600 +05:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains
  DEBUG   2025-02-14 11:34:10.746764300 +05:00 response status: 502
  DEBUG   2025-02-14 11:34:10.746890900 +05:00 body: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>


> Bundling completed in 0.468s
> Bundled 88 files for upload
> Bundle ID: 29ccaac4-f141-5c0a-8d36-76742cb796d7
> Optimizing completed in 0.014s   

...

> Uploading completed in 0.725s                                                                                                                                                                                                     
> Uploaded files to Sentry         

...

> Processing completed in 0.079s                                                                                                                                                                                                    
> File upload complete (processing pending on server)
> Organization: sentry
> Project: xxx-project
> Release: c884ff0c5ffd6a0ece7c9acb7d0efb704b1abf5a
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Scripts
    ~/0261bcf2-721a-479a-960a-d6f5eafc2d89-30.js (sourcemap at events.c3987664.js.map, debug id 0261bcf2-721a-479a-960a-d6f5eafc2d89)
    ~/0ba3c108-40f1-48e6-a40f-be3c5c6ab18d-25.js (sourcemap at VerificationFailedPage.2dab2b19.js.map, debug id 0ba3c108-40f1-48e6-a40f-be3c5c6ab18d)
    ~/0ff43150-e6b3-46a8-94f7-958177d606b0-32.js (sourcemap at index.0f614140.js.map, debug id 0ff43150-e6b3-46a8-94f7-958177d606b0)
  Source Maps
    ~/0261bcf2-721a-479a-960a-d6f5eafc2d89-30.js.map (debug id 0261bcf2-721a-479a-960a-d6f5eafc2d89)
    ~/0ba3c108-40f1-48e6-a40f-be3c5c6ab18d-25.js.map (debug id 0ba3c108-40f1-48e6-a40f-be3c5c6ab18d)
    ~/0ff43150-e6b3-46a8-94f7-958177d606b0-32.js.map (debug id 0ff43150-e6b3-46a8-94f7-958177d606b0)
    ~/fe77ee37-afdf-486f-85a7-418e3f90453d-34.js.map (debug id fe77ee37-afdf-486f-85a7-418e3f90453d)
  INFO    2025-02-14 11:34:12.125464900 +05:00 Skipping update nagger update check
[sentry-vite-plugin] Info: Successfully uploaded source maps to Sentry

When opening Sourcemaps section in /settings/sentry/projects/xxx-project/source-maps/, theres no files at all

@aldy505
Copy link
Collaborator

aldy505 commented Mar 5, 2025

Is it possible that your source map exceeds the upload size? Do you have any other reverse proxy in front of your self-hosted installation? Meaning there is something proxying your instance to port 9000?

If you can reproduce this again, please also give the docker logs: sudo docker compose logs --since 5m -t web

@getsantry
Copy link

getsantry bot commented Mar 26, 2025

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 🥀

@getsantry getsantry bot added the Stale label Mar 26, 2025
@getsantry getsantry bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants