aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.58k stars 375 forks source link

ERROR: unable to update: download errors - rename /file.deb.down /file.deb : no such file or directory #538

Closed barryib closed 7 years ago

barryib commented 7 years ago

Detailed Description

I have some issue when I try to update mirrors. Here is a exemple on my jessie-security mirror.

Context

Here is my mirror setting

im@groot:~$ aptly mirror show jessie-security
Name: jessie-security
Archive Root URL: http://security.debian.org/
Distribution: jessie/updates
Components: main
Architectures: amd64
Download Sources: no
Download .udebs: no
Last update: never

Information from release file:
Architectures: amd64 arm64 armel armhf i386 mips mipsel powerpc ppc64el s390x
Codename: jessie
Components: updates/main updates/contrib updates/non-free
Date: Sun, 02 Apr 2017 16:21:47 UTC
Description:  Debian 8 Security Updates

Label: Debian-Security
Origin: Debian
Suite: stable
Valid-Until: Wed, 12 Apr 2017 16:21:47 UTC
Version: 8

Possible Implementation

ERROR: unable to update: download errors:
  http://security.debian.org/pool/updates/main/q/qtcreator/qtcreator-dbg_3.2.1+dfsg-7+deb8u1_amd64.deb: rename /data/pool/14/a5/qtcreator-dbg_3.2.1+dfsg-7+deb8u1_amd64.deb.down /data/pool/14/a5/qtcreator-dbg_3.2.1+dfsg-7+deb8u1_amd64.deb: no such file or directory
  http://security.debian.org/pool/updates/main/s/samba/samba-dbg_4.2.14+dfsg-0+deb8u5_amd64.deb: rename /data/pool/10/cf/samba-dbg_4.2.14+dfsg-0+deb8u5_amd64.deb.down /data/pool/10/cf/samba-dbg_4.2.14+dfsg-0+deb8u5_amd64.deb: no such file or directory
  http://security.debian.org/pool/updates/main/libr/libreoffice/libreoffice-dbg_4.3.3-2+deb8u6_amd64.deb: rename /data/pool/0a/99/libreoffice-dbg_4.3.3-2+deb8u6_amd64.deb.down /data/pool/0a/99/libreoffice-dbg_4.3.3-2+deb8u6_amd64.deb: no such file or directory
  http://security.debian.org/pool/updates/main/c/chromium-browser/chromium_57.0.2987.98-1~deb8u1_amd64.deb: rename /data/pool/09/f0/chromium_57.0.2987.98-1~deb8u1_amd64.deb.down /data/pool/09/f0/chromium_57.0.2987.98-1~deb8u1_amd64.deb: no such file or directory

Your Environment

I'm on debian jessie

im@groot:~$ cat /etc/debian_version 
8.5
im@groot:~$ aptly version
aptly version: 1.0.0
smira commented 7 years ago

@barryib what happens if you run aptly mirror update once again?

smira commented 7 years ago

I was able to perform successful mirroring:

$ aptly mirror create -architectures=amd64 j-c http://security.debian.org/ jessie/updates main
$ aptly mirror update j-c

Mirror `j-c` has been successfully updated.

Could it be that you're running out of disk space? I wonder if the error in there masks another issue?

barryib commented 7 years ago

@smira I ran it several times, but still getting errors when downloading some files.

Could it be that you're running out of disk space?

Nope. I'm using only 2% of my data disk.

I wonder if the error in there masks another issue?

Maybe. I'm trying to update mirrors again with -max-tries=10 to check if its network issue. I'll let you know if that solves my problem or not.

smira commented 7 years ago

Are these errors mentioning different files each time?

barryib commented 7 years ago

@smira Still getting problems.

Are these errors mentioning different files each time?

Yes. Here is my latest error.

ERROR: unable to update: download errors:
  http://security.debian.org/pool/updates/main/p/postgresql-9.4/postgresql-9.4-dbg_9.4.9-0+deb8u1_amd64.deb: rename /data/pool/07/1b/postgresql-9.4-dbg_9.4.9-0+deb8u1_amd64.deb.down /data/pool/07/1b/postgresql-9.4-dbg_9.4.9-0+deb8u1_amd64.deb: no such file or directory
  http://security.debian.org/pool/updates/main/e/elasticsearch/elasticsearch_1.0.3+dfsg-5+deb8u1_all.deb: rename /data/pool/1f/47/elasticsearch_1.0.3+dfsg-5+deb8u1_all.deb.down /data/pool/1f/47/elasticsearch_1.0.3+dfsg-5+deb8u1_all.deb: no such file or directory
  http://security.debian.org/pool/updates/main/l/linux/linux-image-3.16.0-4-amd64-dbg_3.16.39-1+deb8u2_amd64.deb: rename /data/pool/09/2c/linux-image-3.16.0-4-amd64-dbg_3.16.39-1+deb8u2_amd64.deb.down /data/pool/09/2c/linux-image-3.16.0-4-amd64-dbg_3.16.39-1+deb8u2_amd64.deb: no such file or directory
  http://security.debian.org/pool/updates/main/libr/libreoffice/libreoffice-dbg_4.3.3-2+deb8u6_amd64.deb: rename /data/pool/0a/99/libreoffice-dbg_4.3.3-2+deb8u6_amd64.deb.down /data/pool/0a/99/libreoffice-dbg_4.3.3-2+deb8u6_amd64.deb: no such file or directory
barryib commented 7 years ago

Closing this issue. I ran into this issue, because there was another aptly process launched by a cron for repo update.