Title: Non-zero error code 9 of `groupadd` command inside `GitBugJavaCli.__setup_base_image()` during build · Issue #18 · gitbugactions/gitbug-java · GitHub
Open Graph Title: Non-zero error code 9 of `groupadd` command inside `GitBugJavaCli.__setup_base_image()` during build · Issue #18 · gitbugactions/gitbug-java
X Title: Non-zero error code 9 of `groupadd` command inside `GitBugJavaCli.__setup_base_image()` during build · Issue #18 · gitbugactions/gitbug-java
Description: Description of the problem I am trying to run the setup command of the package, i.e. run the following (executing on a virtual machine): # not 'gitbug-java setup' because in the VM the elevated privileges of sudo required sudo ./venv/bin...
Open Graph Description: Description of the problem I am trying to run the setup command of the package, i.e. run the following (executing on a virtual machine): # not 'gitbug-java setup' because in the VM the elevated pri...
X Description: Description of the problem I am trying to run the setup command of the package, i.e. run the following (executing on a virtual machine): # not 'gitbug-java setup' because in the VM the elev...
Opengraph URL: https://github.com/gitbugactions/gitbug-java/issues/18
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Non-zero error code 9 of `groupadd` command inside `GitBugJavaCli.__setup_base_image()` during build","articleBody":"## Description of the problem\r\nI am trying to run the `setup` command of the package, i.e. run the following (executing on a virtual machine):\r\n```bash\r\n# not 'gitbug-java setup' because in the VM the elevated privileges of sudo required\r\nsudo ./venv/bin/python gitbug-java setup\r\n``` \r\nBut after downloading of the docker image the execution fails with following stack trace:\r\n```\r\n(venv) ubuntu@ip-172-31-14-68:~/projects/gitbug-java$ sudo ./venv/bin/python gitbug-java setup\r\nTraceback (most recent call last):\r\n File \"/home/ubuntu/projects/gitbug-java/gitbug-java\", line 206, in \u003cmodule\u003e\r\n sys.exit(main())\r\n ^^^^^^\r\n File \"/home/ubuntu/projects/gitbug-java/gitbug-java\", line 202, in main\r\n fire.Fire(GitBugJavaCli)\r\n File \"/home/ubuntu/projects/gitbug-java/venv/lib/python3.11/site-packages/fire/core.py\", line 141, in Fire\r\n component_trace = _Fire(component, args, parsed_flag_args, context, name)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/ubuntu/projects/gitbug-java/venv/lib/python3.11/site-packages/fire/core.py\", line 475, in _Fire\r\n component, remaining_args = _CallAndUpdateTrace(\r\n ^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/ubuntu/projects/gitbug-java/venv/lib/python3.11/site-packages/fire/core.py\", line 691, in _CallAndUpdateTrace\r\n component = fn(*varargs, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/ubuntu/projects/gitbug-java/gitbug-java\", line 185, in setup\r\n self.__setup_base_image()\r\n File \"/home/ubuntu/projects/gitbug-java/gitbug-java\", line 68, in __setup_base_image\r\n client.images.build(path=tmp_dir, tag=runner_image, forcerm=True)\r\n File \"/home/ubuntu/projects/gitbug-java/venv/lib/python3.11/site-packages/docker/models/images.py\", line 285, in build\r\n raise BuildError(chunk['error'], result_stream)\r\ndocker.errors.BuildError: The command '/bin/sh -c sudo groupadd -o -g 0 root' returned a non-zero code: 9\r\n```\r\n\r\n## Expected behavior\r\nThe setup command should run smoothly with no errors.\r\n\r\n## The environment\r\n\r\nThe exact commands I have executed prior the `gitbug-java setup`:\r\n```bash\r\n# should be an analogy to `poetry shell`\r\npython3.11 -m venv ./venv\r\n# enter virtual env\r\n. ./venv/bin/activate\r\npoetry install --no-root\r\nexport PATH=\"$(pwd):$(pwd)/bin:$PATH\"\r\nsudo ./venv/bin/python gitbug-java setup # this fails\r\n```\r\n\r\n1. Python version: `Python 3.11.0rc1`\r\n2. Docker version: `Docker version 25.0.3, build 4debf41`\r\n3. Poetry version: `Poetry (version 1.8.2)`\r\n4. System:\r\n```\r\nDistributor ID: Ubuntu\r\nDescription: Ubuntu 22.04.3 LTS\r\nRelease: 22.04\r\nCodename: jammy\r\n\r\nArchitecture: x86_64\r\n CPU op-mode(s): 32-bit, 64-bit\r\n```\r\n\r\n**The exact same error occurs for mac with the following parameters:**\r\n(For the mac I made the setup via `poetry shell`)\r\n1. Docker: `Docker version 25.0.3, build 4debf41`\r\n2. Python: `Python 3.11.8`\r\n3. Poetry: `Poetry (version 1.8.1)`\r\n4. System:\r\n```\r\nMacbook Pro 2019, Intel\r\nmacOS Sonoma, Version 14.2.1\r\n```\r\n","author":{"url":"https://github.com/Vladislav0Art","@type":"Person","name":"Vladislav0Art"},"datePublished":"2024-03-04T19:38:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/18/gitbug-java/issues/18"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:00859e76-56fe-3b7a-000d-0260c203a3fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC1C:47EDE:E7FA97:147AAC7:6A4F544E |
| html-safe-nonce | e69f98ccf0f0c2740458b700c696ed88c21d61b35155d8452aa8b661dd1102ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzFDOjQ3RURFOkU3RkE5NzoxNDdBQUM3OjZBNEY1NDRFIiwidmlzaXRvcl9pZCI6Ijc4NTk4MzY5MzQyNDczNzE4NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 367acb7ba22930476fdf232858e8366effccde16e3dad85bb2e20e64ce14a4a5 |
| hovercard-subject-tag | issue:2167604458 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitbugactions/gitbug-java/18/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c692860bd960de9e07e3ae5e9f86af0bf6c2aabfaa00da6b77c716f8371f122e/gitbugactions/gitbug-java/issues/18 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c692860bd960de9e07e3ae5e9f86af0bf6c2aabfaa00da6b77c716f8371f122e/gitbugactions/gitbug-java/issues/18 |
| og:image:alt | Description of the problem I am trying to run the setup command of the package, i.e. run the following (executing on a virtual machine): # not 'gitbug-java setup' because in the VM the elevated pri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Vladislav0Art |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitbugactions/gitbug-java git https://github.com/gitbugactions/gitbug-java.git |
| octolytics-dimension-user_id | 148581466 |
| octolytics-dimension-user_login | gitbugactions |
| octolytics-dimension-repository_id | 728296218 |
| octolytics-dimension-repository_nwo | gitbugactions/gitbug-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 728296218 |
| octolytics-dimension-repository_network_root_nwo | gitbugactions/gitbug-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width