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

Duplicate repo got created in aptly #1192

Open
tusharumbarkar opened this issue Jun 20, 2023 · 1 comment
Open

Duplicate repo got created in aptly #1192

tusharumbarkar opened this issue Jun 20, 2023 · 1 comment

Comments

@tusharumbarkar
Copy link

tusharumbarkar commented Jun 20, 2023

Multiple repo with same name got created in aptly

Detailed Description

We have a automated way to push the packages to aptly mirror. The recent package was not appearing in the dashboard, after debugging found that there are multiple repo with same in aptly mirror. Not sur how more than 1 repo with same name got created. Now the problem is not all repos present in dashboard. We are thinking to rename OR drop repo, but we dont know how these will behave, as we multiple repo with same name

Any idea how to deal with this without loosing data (packages )?

@r4co0n
Copy link

r4co0n commented Jun 21, 2023

That's a rather peculiar situation you have managed to get yourselfs into.

Just to start debugging, so, aptly mirror list -raw shows multiple lines with the same mirror key?
Please run:

aptly mirror list -raw | sort | uniq -c

which should give you a count for each unique mirror item. This should be 1 for all mirrors, but you seem to have encountered different behaviour. Please share the (sanitized and abbreviated) output of above commands here.

For all mirrors that are existing multiple times, I'd like to know what aptly mirror show -with-packages <mirror_name> produces, replacing <mirror_name> with the name of each affected mirror.

Sorry that I can't "fix your problem" right now, but please bear with us so we can debug this properly.

P.S.: Reading your description again, you might be having a problem with aptly repo, not aptly mirror. If that's the case, just swap mirror for repo in the commands I provided.

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

No branches or pull requests

2 participants