{"id":19889760,"url":"https://github.com/codevate/local-sentry","last_synced_at":"2025-03-01T04:44:40.754Z","repository":{"id":91317064,"uuid":"123004652","full_name":"Codevate/local-sentry","owner":"Codevate","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-26T21:18:06.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T19:27:17.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codevate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T17:33:05.000Z","updated_at":"2018-02-26T20:36:11.000Z","dependencies_parsed_at":"2023-03-10T21:45:14.205Z","dependency_job_id":null,"html_url":"https://github.com/Codevate/local-sentry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Flocal-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Flocal-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Flocal-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Flocal-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codevate","download_url":"https://codeload.github.com/Codevate/local-sentry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241317601,"owners_count":19943202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T18:11:40.689Z","updated_at":"2025-03-01T04:44:40.731Z","avatar_url":"https://github.com/Codevate.png","language":"Python","readme":"# Local Sentry\n\nBootstrap a local Sentry server to test project integrations and make sure your errors are getting logged correctly. This is **not intended for production**, instead you should use the official [on-premise setup](https://github.com/getsentry/onpremise).\n\n## Getting started\n\nStart by copying the example environment variables file:\n\n```bash\ncp .env.example .env\n```\n\nGenerate a key and assign `SENTRY_SECRET_KEY` in `.env` to it:\n\n```bash\ndocker-compose run --rm web config generate-secret-key\n```\n\nBuild the database and use the interactive prompts to create a super-user account:\n\n```bash\ndocker-compose run --rm web upgrade\n```\n\nLift all services in the background:\n\n```bash\ndocker-compose up -d\n```\n\nOnce the containers are running, go to http://localhost:9090 and set this as the root URL **with no trailing slash**. Fill in the other fields and finish the setup.\n\nIf there are any issues you can check the logs via:\n\n```bash\ndocker-compose logs -f\n```\n\n## Networking with Docker\n\nIf your project is using Docker, you'll have to network it with the Sentry web container:\n\n```bash\ndocker network connect --alias sentry your_network sentry_web_1\n```\n\nThen adjust any generated DSNs so that `localhost:9090` is replaced with `sentry:9000`, e.g.\n\n```\nhttp://xxxx:xxxx@sentry:9000/x\n```\n\n## Networking with Vagrant\n\nIf your project is using Vagrant, you'll have to find the network gateway address:\n\n```bash\nnetstat -rn | grep \"^0.0.0.0 \" | cut -d \" \" -f10\n```\n\nThen adjust any generated DSNs so that `localhost` is replaced with the IP, e.g.\n\n```\nhttp://xxxx:xxxx@10.0.2.2:9090/x\n```\n\n## Configuring Sentry\n\nBecause the [sentry:onbuild](https://hub.docker.com/_/sentry/) image is used, you can edit the files in `/docker/sentry` to customise your instance \u0026 install plugins. However, this does require a rebuild:\n\n```bash\ndocker-compose up -d --build web cron worker\n```\n\n**Note:** The `sentry_web_1` container will have to be reconnected to any other Docker networks.\n\n## Troubleshooting\n\nIf you exit the upgrade while the migrations are running, the internal Sentry project won't be created and you won't be prompted to create a user. This process can also stall due to Docker not having enough RAM available. Running `upgrade` on its own won't fix this, you'll have to destroy everything and try again:\n\n```bash\n docker-compose down -v\n docker-compose run --rm web upgrade\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevate%2Flocal-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodevate%2Flocal-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevate%2Flocal-sentry/lists"}