Upload the sourcemap, the sentry console has a release record, but the number of artifacts is 0

When I use @sentry/webpack-plugin to upload the sourcemap file of the project, the Sentry console has a corresponding release record, but the number of artifacts is 0, the directory corresponding to include is not empty, and I found the following in the log record error


This is the relevant code used by @sentry/webpack-plugin, the directory in include is not empty

What is the cause of this and how to solve it

The errors from Relay are completely unrelated to your issue. Can you share verbose logs of the source map upload operation?


Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/celery/app/trace.py”, line 412, in trace_task
R = retval = fun(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/celery/app/trace.py”, line 704, in protected_call
return self.run(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/celery.py”, line 197, in _inner
reraise(*exc_info)
File “/usr/local/lib/python3.6/site-packages/sentry_sdk/_compat.py”, line 54, in reraise
raise value
File “/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/celery.py”, line 192, in _inner
return f(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/sentry/tasks/base.py”, line 48, in _wrapped
result = func(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/sentry/tasks/assemble.py”, line 188, in assemble_artifacts
file_type=“release.bundle”,
File “/usr/local/lib/python3.6/site-packages/sentry/tasks/assemble.py”, line 348, in assemble_file
temp_file = file.assemble_from_file_blob_ids(file_blob_ids, checksum)
File “/usr/local/lib/python3.6/site-packages/sentry/models/file.py”, line 426, in assemble_from_file_blob_ids
for chunk in blob.getfile().chunks():
File “/usr/local/lib/python3.6/site-packages/sentry/models/file.py”, line 299, in getfile
return storage.open(self.path)
File “/usr/local/lib/python3.6/site-packages/django/core/files/storage.py”, line 38, in open
return self._open(name, mode)
File “/usr/local/lib/python3.6/site-packages/django/core/files/storage.py”, line 300, in _open
return File(open(self.path(name), mode))
FileNotFoundError: [Errno 2] No such file or directory: ‘/var/lib/sentry/files/01/a305/890d4b453a925975d4fb34f9ee’
06:12:35 [ERROR] celery.app.trace: Task sentry.tasks.assemble.assemble_artifacts[33049c4e-b5f9-4051-8915-709de9ceae99] raised unexpected: FileNotFoundError(2, ‘No such file or directory’) (data={‘hostname’: ‘sentry-worker-78dc75c5dc-x2zhm’, ‘id’: ‘33049c4e-b5f9-4051-8915-709de9ceae99’, ‘name’: ‘sentry.tasks.assemble.assemble_artifacts’, ‘exc’: “FileNotFoundError(2, ‘No such file or directory’)”, ‘traceback’: ‘Traceback (most recent call last):\n File “/usr/local/lib/python3.6/site-packages/celery/app/trace.py”, line 412, in trace_task\n R = retval = fun(*args, **kwargs)\n File “/usr/local/lib/python3.6/site-packages/celery/app/trace.py”, line 704, in protected_call\n return self.run(*args, **kwargs)\n File “/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/celery.py”, line 197, in _inner\n reraise(*exc_info)\n File “/usr/local/lib/python3.6/site-packages/sentry_sdk/_compat.py”, line 54, in reraise\n raise value\n File “/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/celery.py”, line 192, in _inner\n return f(*args, **kwargs)\n File “/usr/local/lib/python3.6/site-packages/sentry/tasks/base.py”, line 48, in _wrapped\n result = func(*args, **kwargs)\n File “/usr/local/lib/python3.6/site-packages/sentry/tasks/assemble.py”, line 188, in assemble_artifacts\n file_type=“release.bundle”,\n File “/usr/local/lib/python3.6/site-packages/sentry/tasks/assemble.py”, line 348, in assemble_file\n temp_file = file.assemble_from_file_blob_ids(file_blob_ids, checksum)\n File “/usr/local/lib/python3.6/site-packages/sentry/models/file.py”, line 426, in assemble_from_file_blob_ids\n for chunk in blob.getfile().chunks():\n File “/usr/local/lib/python3.6/site-packages/sentry/models/file.py”, line 299, in getfile\n return storage.open(self.path)\n File “/usr/local/lib/python3.6/site-packages/django/core/files/storage.py”, line 38, in open\n return self._open(name, mode)\n File “/usr/local/lib/python3.6/site-packages/django/core/fil
es/storage.py”, line 300, in _open\n return File(open(self.path(name), mode))\nFileNotFoundError: [Errno 2] No such file or directory: ‘/var/lib/sentry/files/01/a305/890d4b453a925975d4fb34f9ee’\n’, ‘args’: ‘()’, ‘kwargs’: “{‘org_id’: 1, ‘version’: ‘2021-01-08 14:11:34’, ‘checksum’: ‘5cb6414581da70e4bc9259383e46256dcc1fa23e’, ‘chunks’: [‘e0fecb65e5a5ca47d47e6187b9ef5442f8d3a3f9’, ‘7759254095aa8c7902c4fc8267ecf1320fbdf476’]}”, ‘description’: ‘raised unexpected’, ‘internal’: False})

This is the log record I tried to see again. Did you mean this? And this project was installed using helm and deployed on Kubernetes

Ah, just noticed your instance is looking at /var/lib/sentry/ which is not a valid or persistent path. We set this to /data/files by default:

Could your config need some updating?

Thanks @untitaker for the heads up!

After I update the configuration, it can be used normally, thank you very much

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.