sentry installation:
https://github.com/getsentry/onpremise
Use the installation steps of this document correctly to install version 9.1.1-onbuild, which requires self modifying the Dockerfile.
Note: the command to build the database will not be executed all at once, and needs to be run multiple times:
docker-compose run --rm web upgrade
Fault location problem:
Use: docker logs -- tail 30 onpremise? Web? 1 - F to view the logs as follows:
Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 225, in dispatch return self.handle(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 52, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/db/transaction.py", line 371, in inner return func(*args, **kwargs) File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/auth_login.py", line 193, in handle return super(AuthLoginView, self).handle(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/base.py", line 238, in handle return super(BaseView, self).dispatch(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch return handler(request, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/auth_login.py", line 211, in get org = Organization.get_default() File "/usr/local/lib/python2.7/site-packages/sentry/models/organization.py", line 164, in get_default )[0] File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py", line 132, in __getitem__ return list(qs)[0] IndexError: list index out of range
Solution:
Visit: https://docs.sentry.io/server/faq/
Chapter example: How do I script the Sentry installation to bootstrap things like projects and users?
Steps:
1. Copy the above code to the file fixed.py;
2. Copy the code file to the container: docker CP ~ / onpremise / fixed. Py onpremise web 1: / usr / SRC / sentry / fixed. PY
3. Enter the container: docker exec - it onpremise ﹣ web ﹣ 1 / bin / Bash
4. Execute the repair script: python fixed.py
5. Log in using the account in fixed.py: http://localhost:9000
6. Complete initialization of your configuration information