Uploaded Artifacts ignored

Hey there,

I got a self-hosted sentry running with docker (8.19.0) to which I’m trying to upload sources and sourcemaps. Somehow I just can’t get this running.

Example:

Via sentry-cli I uploaded my .js-files and the sourcemaps with
sentry-cli --log-level=debug --url https://mysentry.api --auth-token=MY_TOKEN releases -o MY_ORGANIZATION -p MY_PROJECT files MY_RELEASE_NAME upload-sourcemaps dist/ --url-prefix https://domain.azurewebsites.net --validate

Validation puts out the following:

2017-09-04T09:26:41.5526822Z Source Map Upload Report
2017-09-04T09:26:41.5526822Z   Minified Scripts
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js (sourcemap at https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js.map)
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js (sourcemap at https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map)
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js (sourcemap at https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js.map)
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js (sourcemap at https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js.map)
2017-09-04T09:26:41.5526822Z   Source Maps
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js.map
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js.map
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/styles.b64f5e16586c7e4f8eb3.bundle.css.map
2017-09-04T09:26:41.5526822Z     https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js.map

In Project > Releases > XY > Artifacts I got

https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js
https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js.map
https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js
https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map
https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js
https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js.map
https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js
https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js.map

In my main.29efd6db971d978b4658.bundle.js I got

//# sourceMappingURL=https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map

Now when I trigger an error to my release I get the following errors:

There were 3 errors encountered while processing this event

Source code was not found for https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js 
{
  "url": "https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js"
}
Source code was not found for https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js 
{
  "url": "https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js"
}
Source code was not found for https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js 
{
  "url": "https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js"
}

Even though the url can be opened directly in the browser AND the artifact names match exalcty :confused:

I have disabled Enable JavaScript source fetching because I don’t want my sourcemaps be public available.

Any ideas on this one? Is there a way to get more information about the errors that occur?

1 Like

Same issue here. Self hosted Sentry:

There were 3 errors encountered while processing this event
Unable to fetch resource: https://domain.com/bundles/0.03d7877bf0.js Expand
Unable to fetch resource: https://domain.com/bundles/vendor-dll.3cde2b9420.js Expand
Unable to fetch resource: https://domain.com/bundles/chat.8fab262f8a.js Expand
  • Our files and sourcemaps are correctly uploaded and can be downloaded from the release artifacts dashboard
  • Our files are uploaded using the documented naming convention: ~/bundles/0.03d7877bf0.js. This is the name showed in the release artifacts dashboard
  • Also tried to upload artifacts using the complete URL (https://domain.com/bundles/0.03d7877bf0.js) as name. Same result
  • Same result with: /bundles/0.03d7877bf0.js

Hm, no ideas here? :confused:

Same problem here… any idea how to fix this?

Same problem with self hosted Sentry.

Source Map Upload Report
  Minified Scripts
    ~/0.d0a7608fc23ef53c18f3.js (sourcemap at 0.d0a7608fc23ef53c18f3.js.map)
    ~/1.08e6102e45c6e67a6214.js (sourcemap at 1.08e6102e45c6e67a6214.js.map)
    ~/bootstrap.ef8fe264ba5675969bc2.js (sourcemap at bootstrap.ef8fe264ba5675969bc2.js.map)

  Source Maps
    ~/0.d0a7608fc23ef53c18f3.js.map
    ~/1.08e6102e45c6e67a6214.js.map
    ~/bootstrap.ef8fe264ba5675969bc2.css.map
    ~/bootstrap.ef8fe264ba5675969bc2.js.map

+------------------------------------------+--------------+---------------------------------------+----------+
| Name                                     | Distribution | Source Map                            | Size     |
+------------------------------------------+--------------+---------------------------------------+----------+
| ~/0.d0a7608fc23ef53c18f3.js              |              | 0.d0a7608fc23ef53c18f3.js.map         | 1.03MB   |
| ~/0.d0a7608fc23ef53c18f3.js.map          |              |                                       | 7.53MB   |
| ~/1.08e6102e45c6e67a6214.js              |              | 1.08e6102e45c6e67a6214.js.map         | 537.28KB |
| ~/1.08e6102e45c6e67a6214.js.map          |              |                                       | 2.04MB   |
| ~/bootstrap.ef8fe264ba5675969bc2.css.map |              |                                       | 95B      |
| ~/bootstrap.ef8fe264ba5675969bc2.js      |              | bootstrap.ef8fe264ba5675969bc2.js.map | 56.93KB  |
| ~/bootstrap.ef8fe264ba5675969bc2.js.map  |              |                                       | 431.41KB |
+------------------------------------------+--------------+---------------------------------------+----------+

Example from the end of bootstrap.ef8fe264ba5675969bc2.js:

//# sourceMappingURL=bootstrap.ef8fe264ba5675969bc2.js.map

And Sentry gives out this when viewing issue:
Unable to fetch resource: http://localhost:9013/bootstrap.ef8fe264ba5675969bc2.js

Sourcemaps work correctly on browser though. Release information is sent properly via Raven and uploaded artifacts are visible under release.

Alright, we got this fixed with Offline sourcemaps not used

Thanks, fixing the docker volume solved our issue!