-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Unable to import file: file already exists #329
Comments
@Deutsche that is really interesting... this is actually first time I hear that, that's design problem of aptly. It can't handle duplicate packages with same first two bytes of MD5. The file you have in the pool and the file you're trying to import have the same first two bytes of MD5 but different size. |
It's a pity! It is can be fixed? |
I also get that when trying to make a snapshot from a debian mirror:
The original mirror was setup with this:
Do you think it is also an MD5 clash? |
@richard-scott no, http://www.aptly.info/doc/feature/duplicate/
|
ok, I've deleted my .aptly folder and the .aptly.conf file.
Updated the mirror:
(I think I am being quite restricive on what I want to mirror.) I have then created the snapshot:
and attempted to publish it:
I am unable to find a duplicate file:
I don't want to use -force-overwrite as there are no duplicate package files that I can find on disk so don't feel that is the right way forward. Can you see what am I doing wrong or is this a bug? |
Hmmm, deleted it all again and it is complaining about a totally different file:
same thing tho, only one copy of that file anywhere:
I can't understand why an official debian repo would have duplicate files in there as this would conflict with their packaging guidelines. It's almost as if there are two threads in aptly publishing the snapshot and the 2nd thread is incorrectly processing the same links as the 1st thread and this then causes the thing to abort. |
@richard-scott your find result looks strange, you should have at least two files named There are no 2 threads doing publishing. aptly does the check using the fact that files are hard-linked from aptly pool to public directory. So if aptly discovers something which is not a hard link to the file it expects, it refuses to overwrite it. If you did something (like copying files) without preserving hardlinks, you might see this problem. |
I think that this may have been caused by my use of SSHFS for the /root/.aptly folder? I wanted to keep that folder off my VM so when I rebuilt it I didn't have to start all over again. i'm not sure if that really is the root cause as I am able to mirror, make snapshots and publish other repos... odd. Anyway, I'm now running it with NFS as that mountpoint and things seem better so far. |
aptly is using hard links, if your FS fails to provide them in correct way, you might have any kind of problems going forward. |
See #506 |
I try to replace package with same package (but different by content). Also, i have over 4000+ packages that aptly added well in one transaction (not listed here).
This is error.
It looks like aptly cleanup does not do "Deleting unreferenced files " - File /var/repo/aptly/pool/55/bb/libgnutls-dbg_3.3.17.1-r0_armel.deb is not listed in aptly database
The text was updated successfully, but these errors were encountered: