repo: unable to run repo init command within a container

775 views
Skip to first unread message

Bharath Achar

unread,
Dec 11, 2023, 2:26:24 AM12/11/23
to Repo and Gerrit Discussion
Output of `repo --version`:
repo --version
<repo not installed>
repo launcher version 2.39
       (from /usr/local/bin/repo)
git 2.34.1
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
OS Linux 5.15.0-91-generic (#101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023)
CPU x86_64 (x86_64)
Bug reports: https://issues.gerritcodereview.com/issues/new?component=1370071

Operating system & version: running command with in container (Ubuntu base image)
Manifest URL (if publicly available): its private

What steps will reproduce the problem?
1. repo init

+ repo init -u https://github.com/myurl/default.xml -b my-branch
repo: error: "git" failed with exit status 1
  cwd: /local/home/jenkinsagent/katrina/workspace/protex_pre_task/.repo/repo.tmp
  cmd: ['git', 'fetch', '--quiet', '/local/home/jenkinsagent/katrina/workspace/protex_pre_task/.repo/repo.tmp/.git/clone.bundle', '+refs/heads/*:refs/remotes/origin/*', '+refs/tags/*:refs/tags/*']
  stderr:
  >> fatal: unable to create thread: Operation not permitted
  >> error: index-pack died
fatal: double check your --repo-rev setting.
fatal: cloning the git-repo repository failed, will remove '.repo/repo'
Downloading Repo source from https://gerrit.googlesource.com/git-repo

What is the expected output?
repo init should've done its job

What do you see instead?
  stderr:
  >> fatal: unable to create thread: Operation not permitted
  >> error: index-pack died

Please provide any additional information below. Did this use to work?
trying this for the first time.
Reply all
Reply to author
Forward
0 new messages