Getting zeroPaddedFilemode error while loading a repository from Bitbucket to Gerrit

119 views
Skip to first unread message

Mythra Varun

unread,
Mar 3, 2020, 12:37:09 AM3/3/20
to Repo and Gerrit Discussion
Hi,

I am facing issues while loading a repository from Bitbucket to Gerrit.

Error:
fatal: Unpack error, check server log
error
: remote unpack failed: error zeroPaddedFilemode: object 087fbb748f50af6eac2248a445d25d666cc92c78: mode starts with '0'
error
: failed to push some refs to 'ssh://mythrav...@mygerrit.server.com:29418/myproject'

Steps I am trying:
git remote rm origin
git remote add origin
"ssh://mythrav...@mygerrit.server.com:29418/myproject"
git checkout master
git pull
--allow-unrelated-histories --no-edit origin master
git push
"ssh://mythrav...@mygerrit.server.com:29418/myproject" --all

git fsck give a lot of warnings as below:
Checking object directories: 100% (256/256), done.
warning
in tree 087fbb748f50af6eac2248a445d25d666cc92c78: zeroPaddedFilemode: contains zero-padded file modes
warning
in tree 122502d6614382bf35a0d4d9d1215761eb92e0c3: zeroPaddedFilemode: contains zero-padded file modes

What is the workaround for this? I am using the latest version of Gerrit btw. I need to load this repository with all its history and branches

Sven Selberg

unread,
Jun 12, 2020, 4:54:23 AM6/12/20
to Repo and Gerrit Discussion
Did you find a solution to this problem?
We are faced with the same issue.

/Sven


On Tuesday, March 3, 2020 at 6:37:09 AM UTC+1, Mythra Varun wrote:
Hi,

I am facing issues while loading a repository from Bitbucket to Gerrit.

Error:
fatal: Unpack error, check server log
error
: remote unpack failed: error zeroPaddedFilemode: object 087fbb748f50af6eac2248a445d25d666cc92c78: mode starts with '0'

error
: failed to push some refs to 'ssh://mythravarun.nr@mygerrit.server.com:29418/myproject'

Steps I am trying:
git remote rm origin
git remote add origin
"ssh://mythravarun.nr@mygerrit.server.com:29418/myproject"

git checkout master
git pull
--allow-unrelated-histories --no-
edit origin master
git push
"ssh://mythravarun.nr@mygerrit.server.com:29418/myproject" --all

git fsck give a lot of warnings as below:

Sven Selberg

unread,
Jun 12, 2020, 6:16:38 AM6/12/20
to Repo and Gerrit Discussion
...aaand I seem to have answered my own question a year ago.

Mythra Varun

unread,
Jul 22, 2020, 2:13:34 AM7/22/20
to Sven Selberg, Repo and Gerrit Discussion
Hi Sven,

Thanks for the reply, we did not continue moving from bitbucket to Gerrit for that project due to some managerial issues. I will definitely follow what you suggested if at all this task comes back

Thanks

Varun

On Fri, Jun 12, 2020 at 10:16 AM Sven Selberg <sven.s...@axis.com> wrote:
...aaand I seem to have answered my own question a year ago.
On Friday, June 12, 2020 at 10:54:23 AM UTC+2, Sven Selberg wrote:
Did you find a solution to this problem?
We are faced with the same issue.

/Sven

On Tuesday, March 3, 2020 at 6:37:09 AM UTC+1, Mythra Varun wrote:
Hi,

I am facing issues while loading a repository from Bitbucket to Gerrit.

Error:
fatal: Unpack error, check server log
error
: remote unpack failed: error zeroPaddedFilemode: object 087fbb748f50af6eac2248a445d25d666cc92c78: mode starts with '0'

error
: failed to push some refs to 'ssh://mythrav...@mygerrit.server.com:29418/myproject'

Steps I am trying:
git remote rm origin
git remote add origin
"ssh://mythrav...@mygerrit.server.com:29418/myproject"

git checkout master
git pull
--allow-unrelated-histories --no-
edit origin master
git push
"ssh://mythrav...@mygerrit.server.com:29418/myproject" --all

git fsck give a lot of warnings as below:
Checking object directories: 100% (256/256), done.
warning
in tree 087fbb748f50af6eac2248a445d25d666cc92c78: zeroPaddedFilemode: contains zero-padded file modes
warning
in tree 122502d6614382bf35a0d4d9d1215761eb92e0c3: zeroPaddedFilemode: contains zero-padded file modes

What is the workaround for this? I am using the latest version of Gerrit btw. I need to load this repository with all its history and branches

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/d88f8675-d19d-4cdc-870b-55e23ee26e37o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages