-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Sourcemap doesn't work and symbolicator_service has error: Failed to create cache directory #1331
Comments
Have you attempted to make sure you're running Sentry as a user with escalated privileges? Looks like symbolicator is having issues creating a directory for caches |
@hubertdeng123 I run Sentry with root privileges. I've checked the logs for sentry-self-hosted-symbolicator-cleanup-1, and there are no more error messages now. However, I still can't trace the error back to the source code. What other places can I investigate to resolve this issue? |
@hubertdeng123 And It seems that in the Saas version, there is a call to the following API endpoint to retrieve the sourcemap: https://us.sentry.io/api/0/projects/username/projectname/events/eventid/source-map-debug-blue-thunder-edition/. However, in the self-hosted version, this API endpoint is not being called. Do you have any idea what could be causing this situation? The following are screenshots of the error log details for the same project, with identical errors occurring in both the Saas and self-hosted versions. saas: self-hosted: |
@hubertdeng123 |
Transferring over to symbolicator to see if they have more context here. |
@hubertdeng123 My bad, it seems sentry-self-hosted-symbolicator-1 still have problem, but I've already run sentry as root role, what else should I do? The following are logs of sentry-self-hosted-symbolicator-1:
|
@kkflie Did you double check to make sure the docker user you're using has the necessary permissions? Otherwise, maybe specify root as a user in your docker-compose file to see if that works? https://stackoverflow.com/questions/76488930/permission-denied-errors-in-docker-even-as-root |
@hubertdeng123 Thanks for replying, I have modified the docker-compose.yml as per your provided answer. Subsequently, I executed the 'docker-compose down' and 'docker-compose up -d' commands. Upon checking, I found that the user for sentry-self-hosted-symbolicator-1 is now set to root. However, when I examine the logs for sentry-self-hosted-symbolicator-1, there are still error messages. |
Unfortunately, I'm not sure what else might be going wrong here 🥲. I hope you're able to find something out |
Self-Hosted Version
23.10.1
CPU Architecture
x86_64
Docker Version
24.0.2
Docker Compose Version
2.21.0
Steps to Reproduce
Expected Result
error can be located in source code
Actual Result
The error cannot be located in source code.
I have already uploaded sourcemap,but error doesn't locate in source code. I try the same project on saas version, it's fine.
After looking up the issues list, I thought it might be related to Symbolicator, so I checked the logs., here it is:
So I wonder which folder should I grant permission?
The specific code configuration of this project is as follows:
Event ID
No response
The text was updated successfully, but these errors were encountered: