Sentry 9.1.1 process record of onepremium of docker

sentry installation:
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/", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/", line 225, in dispatch
return self.handle(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/", line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/", line 371, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/", line 193, in handle
return super(AuthLoginView, self).handle(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/", line 238, in handle
return super(BaseView, self).dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sentry/web/frontend/", line 211, in get
org = Organization.get_default()
File "/usr/local/lib/python2.7/site-packages/sentry/models/", line 164, in get_default
File "/usr/local/lib/python2.7/site-packages/django/db/models/", line 132, in __getitem__
return list(qs)[0]
IndexError: list index out of range

Chapter example: How do I script the Sentry installation to bootstrap things like projects and users?

1. Copy the above code to the file;
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
5. Log in using the account in http://localhost:9000
6. Complete initialization of your configuration information

Keywords: PHP Django Docker github Database

Added by mkarabulut on Mon, 04 Nov 2019 23:11:22 +0200