Skip to content
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

Users are not informed if a username is not found by getpwnam #3267

Open
jmsmkn opened this issue Mar 1, 2024 · 0 comments
Open

Users are not informed if a username is not found by getpwnam #3267

jmsmkn opened this issue Mar 1, 2024 · 0 comments

Comments

@jmsmkn
Copy link
Member

jmsmkn commented Mar 1, 2024

If a user uploads an algorithm and specifies a username as the container user, but that user does not exist in the containers password database their job is left in the executing state without an error message. See https://grand-challenge.sentry.io/issues/4882378255/events/2c2ce76e8676424088d6e6cdfd7a144a/

	2024-03-01T11:05:05.200+01:00	{"log": "Calling self.proc_args=['/bin/bash', '/home/user/process.sh']", "level": "INFO", "source": "stdout", "internal": true, "task": null}

2024-03-01T11:05:05.201+01:00	Traceback (most recent call last): File "sagemaker_shim/models.py", line 169, in _get_user_info

2024-03-01T11:05:05.201+01:00	KeyError: "getpwnam(): name not found: 'user'"

2024-03-01T11:05:05.201+01:00	During handling of the above exception, another exception occurred:

2024-03-01T11:05:05.201+01:00	Traceback (most recent call last): File "sagemaker_shim/models.py", line 172, in _get_user_info

2024-03-01T11:05:05.201+01:00	ValueError: invalid literal for int() with base 10: 'user'

2024-03-01T11:05:05.201+01:00	The above exception was the direct cause of the following exception:

2024-03-01T11:05:05.201+01:00	Traceback (most recent call last): File "sagemaker_shim/cli.py", line 112, in <module> File "click/core.py", line 1157, in __call__ File "click/core.py", line 1078, in main File "click/core.py", line 1688, in invoke File "click/core.py", line 1434, in invoke File "click/core.py", line 783, in invoke File "sagemaker_shim/cli.py", line 28, in wrapper File "asyncio/runners.py", line 190, in run File "asyncio/runners.py", line 118, in run File "asyncio/base_events.py", line 653, in run_until_complete File "sagemaker_shim/cli.py", line 103, in invoke File "sagemaker_shim/models.py", line 393, in invoke File "sagemaker_shim/models.py", line 417, in _invoke File "sagemaker_shim/models.py", line 502, in execute File "functools.py", line 1001, in __get__ File "sagemaker_shim/models.py", line 373, in proc_user File "sagemaker_shim/models.py", line 174, in _get_user_info

2024-03-01T11:05:05.201+01:00	RuntimeError: User 'user' not found

2024-03-01T11:05:05.201+01:00	[9] Failed to execute script 'cli' due to unhandled exception!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant