[SERVER-69746] debmirror not working Created: 15/Sep/22  Updated: 27/Oct/23  Resolved: 23/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Anurag Harsh Assignee: Dylan Richardson
Resolution: Community Answered Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-18516 ubuntu/debian packaging : Release fil... Closed
Operating System: ALL
Participants:
Story Points: 3

 Description   

We are trying to set up a debmirror.
OS: Debian 11 (bullseye)
cmd

sudo debmirror  -v --arch amd64  --section=main --method=http --rsync-extra=none -h repo.mongodb.org -r /apt/debian -d bullseye/mongodb-org/6.0  --debug  /data/

Error
The directory for a dist should be its codename, not a suite.
Use --allow-dist-rename to have debmirror do the conversion automatically.
Using --allow-dist-rename leads to other issue and it changes the download urls.



 Comments   
Comment by Dylan Richardson [ 21/Sep/22 ]

Hi Anurag,

After looking into this, it turns out that the Codenames in our Release file do appear to be incorrect as expected by that tool. We will likely fix this eventually, but I am not sure on timeline. Just to be clear, we do not officially support debmirror, so I can't guarantee using debmirror will work (or if its output will stay consistent) once that is changed. There is a workaround that I think will function for now that I came upon - here's a sample call to debmirror that I think will work:

sudo debmirror  -v --keyring=/usr/share/keyrings/mongodb-org-6.0.gpg --method=https --rsync-extra=none --host=repo.mongodb.org --root=/apt/debian --dist=bullseye/mongodb-org --section=6.0/main --arch=amd64 --debug --ignore-missing-release --diff=none --nosource  ./test 

Note the changed section and dist parameters. This tricks debmirror into working more correctly with our Release files, even if it's a bit wrong. That being said, I cannot test this for compatibility myself because it seems that debmirror has made a change which is incompatible with our repositories for other reasons. You may have to tweak other things and/or patch the debmirror script yourself to get the outcome you're looking for.

Comment by Dylan Richardson [ 20/Sep/22 ]

Hi Anurag,

I have just started looking at this - I'll let you know when I have an update.

Comment by Anurag Harsh [ 20/Sep/22 ]

Hi,
Is there any update on this?

Comment by Chris Kelly [ 16/Sep/22 ]

Hi Anurag,

I found a similar ticket SERVER-18516 which indicates a similar problem that happened before. I'm not immediately sure of any issues with your command, so I'll pass this to the relevant team for additional input. Feel free to check out that ticket in the meantime and see if any of its suggestions are relevant to you.

Christopher

Generated at Thu Feb 08 06:14:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.