This repository was archived by the owner on Oct 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 656
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Raven on Openshift fails with KeyError: 'getpwuid(): uid not found: 1000580000' #1242
Copy link
Copy link
Closed
Description
I'm trying to use raven==6.6.0 on a Django site hosted in Openshift.
There seems to be a known issue of the "unknown user" when running on a Docker container.
http://blog.dscpl.com.au/2015/12/unknown-user-when-running-docker.html
Has anyone else encountered this issue? Or know of a workaround?
sh-4.2$ python3 manage.py raven test
Client configuration:
base_url : https://sentry.io
project :
public_key :
secret_key :
Sending a test message... Traceback (most recent call last):
File "manage.py", line 24, in <module>
execute_from_command_line(sys.argv)
File "/opt/app-root/src/.local/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/opt/app-root/src/.local/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/app-root/src/.local/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/app-root/src/.local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/opt/app-root/src/.local/lib/python3.6/site-packages/raven/contrib/django/management/commands/raven.py", line 69, in handle
'data': options.get('data'),
File "/opt/app-root/src/.local/lib/python3.6/site-packages/raven/scripts/runner.py", line 80, in send_test_message
'user': get_uid(),
File "/opt/app-root/src/.local/lib/python3.6/site-packages/raven/scripts/runner.py", line 43, in get_uid
return pwd.getpwuid(os.geteuid())[0]
KeyError: 'getpwuid(): uid not found: 1000580000'
Metadata
Metadata
Assignees
Labels
No labels