-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
publish snapshot not accepting -component (publishing to s3) #1373
Comments
I think the error comes from not having enough arguments. the number of [[:]] needs to match the number of components provided.
so adding multiple s3:endpoint:prefix with different prefix should work. I wonder what is the intention behind that... Would this work for you ? |
adding multiple s3:endpoint:prefexies, lead me to... actually i needed to list the snapshot for each component. eg: noble-main-final-20241003 noble-main-final-20241003 noble-main-final-20241003 noble-main-final-20241003, which leads me to believe I should have snapshot for each component? Though mirror create let me create it listing multiple components... |
as expected instead of 188 GB the new one was 751G. so sounds like a have to create separate snapshots of each component, yuck. |
this is weird indeed. I think via the API if is possible to publish multiple components to one prefix... @cfiehe what do you think ? |
Yes, you can publish multiple repositories/snapshots under the same prefix, but they must cover different distributions. @troy2914
Use the same pattern with different mirror names for the distributions
Components come back into play, when you create a published repository. Each component must have a single source which must be a local repository or (recommended) a snapshot. The number of given components must be equal to the number of given sources. In your case, you must define 3 published repositories:
I do not recommend to use the syntax like I hope, that it helps to solve your issue. |
Thanks, might be nice to have a new tutorial on the website showing preserving components. |
Detailed Description
started with
aptly mirror create -architectures=amd64 noble-main http://atl.mirrors.clouvider.net/ubuntu/ noble main restricted universe multiverse
aptly mirror create -architectures=amd64 noble-security http://atl.mirrors.clouvider.net/ubuntu/ noble-security main restricted universe multiverse
aptly mirror create -architectures=amd64 noble-updates-main http://atl.mirrors.clouvider.net/ubuntu/ noble-updates main restricted universe multiverse
then the mirror update for those 3
after that i created a snapshot
aptly snapshot create noble-main-24.04.1 from mirror noble-main
aptly snapshot create noble-updates-
date +%Y%m%d
from mirror noble-updatesaptly snapshot create noble-security-
date +%Y%m%d
from mirror noble-securitythen a snapshot merge
aptly snapshot merge -latest noble-main-final-
date +%Y%m%d
noble-main-24.04.1 noble-updates-date +%Y%m%d
noble-security-date +%Y%m%d
but when trying
aptly publish snapshot -component="main,universe,restricted,multiverse" -label "Ubuntu" -origin "Ubuntu" -distribution=noble noble-main-final-
date +%Y%m%d
s3:endpoint:prefixor
aptly publish snapshot -component=",,," -label "Ubuntu" -origin "Ubuntu" -distribution=noble noble-main-final-
date +%Y%m%d
s3:endpoint:prefixit's coming out with a
ERROR: unable to parse command
removing the -component arg and it works.
Your Environment
This was on Ubuntu 22.04 host running aptly 1.5.0 (tested both installed locally, and from apt)
The text was updated successfully, but these errors were encountered: