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

Worker manager fixes for cs324 #3949

Closed
wants to merge 21 commits into from
Closed

Worker manager fixes for cs324 #3949

wants to merge 21 commits into from

Conversation

epicfaace
Copy link
Member

@epicfaace epicfaace commented Jan 16, 2022

Reasons for making this change

Fixes this issue when starting up codalab:

Traceback (most recent call last):
  File "/usr/local/bin/cl-worker-manager", line 33, in <module>
    sys.exit(load_entry_point('codalab', 'console_scripts', 'cl-worker-manager')())
  File "/opt/codalab-worksheets/codalab/worker_manager/main.py", line 141, in main
    worker_manager_type.add_arguments_to_subparser(worker_manager_subparser)
  File "/opt/codalab-worksheets/codalab/worker_manager/slurm_batch_worker_manager.py", line 77, in add_arguments_to
_subparser
    '--user', type=str, default=getpass.getuser(), help='User to run the Batch jobs as'
  File "/usr/lib/python3.6/getpass.py", line 169, in getuser
    return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 1003'
Traceback (most recent call last):
  File "/usr/local/bin/cl-worker-manager", line 33, in <module>
    sys.exit(load_entry_point('codalab', 'console_scripts', 'cl-worker-manager')())
  File "/opt/codalab-worksheets/codalab/worker_manager/main.py", line 141, in main
    worker_manager_type.add_arguments_to_subparser(worker_manager_subparser)
  File "/opt/codalab-worksheets/codalab/worker_manager/slurm_batch_worker_manager.py", line 77, in add_arguments_to
_subparser
    '--user', type=str, default=getpass.getuser(), help='User to run the Batch jobs as'
  File "/usr/lib/python3.6/getpass.py", line 169, in getuser
    return pwd.getpwuid(os.getuid())[0]
KeyError: 'getpwuid(): uid not found: 1003'

Related issues

Screenshots

Checklist

  • I've added a screenshot of the changes, if this is a frontend change
  • I've added and/or updated tests, if this is a backend change
  • I've run the pre-commit.sh script
  • I've updated docs, if needed

@epicfaace
Copy link
Member Author

All changes added in this PR are now covered by other PRs, so closing.

@epicfaace epicfaace closed this Jul 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants