[pacman-dev] [bug?] pacman 3 doesn't check for free space in /var/cache/pacman/pkg/
Hi. I looked at the Flyspray and it seems this hasn't been seen before: pacman doesn't care if it has enough space to copy the downloaded file from the temporary source, and sometimes it fails. POC follows (I filled up my /var on purpose, then tried to install a package that wasn't in my cache). <code> [root@damocles ~]# df /var/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb6 3092380 3092380 0 100% /var [root@damocles ~]# pacman3 -S openvpn resolving dependencies... done. looking for inter-conflicts... done. Targets: openvpn-2.0.9-1 Total Package Size: 0.22 MB Proceed with installation? [Y/n] y :: Retrieving packages from current... openvpn 220.3K 183.0K/s 00:00:01 [---------------------] 100% checking package integrity... :: Archive openvpn-2.0.9-1.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n] y error: failed to commit transaction (corrupted package) archive openvpn-2.0.9-1.pkg.tar.gz was corrupted (bad MD5 or SHA1 checksum) errors occurred, no packages were upgraded. [root@damocles ~]# </code> As you may notice, the package is actually downloaded, then marked as corrupted. bardo
On 3/20/07, bardo <ilbardo@gmail.com> wrote:
Hi.
I looked at the Flyspray and it seems this hasn't been seen before: pacman doesn't care if it has enough space to copy the downloaded file from the temporary source, and sometimes it fails. POC follows (I filled up my /var on purpose, then tried to install a package that wasn't in my cache).
<code> [root@damocles ~]# df /var/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb6 3092380 3092380 0 100% /var [root@damocles ~]# pacman3 -S openvpn resolving dependencies... done. looking for inter-conflicts... done.
Targets: openvpn-2.0.9-1
Total Package Size: 0.22 MB
Proceed with installation? [Y/n] y :: Retrieving packages from current... openvpn 220.3K 183.0K/s 00:00:01 [---------------------] 100% checking package integrity... :: Archive openvpn-2.0.9-1.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n] y error: failed to commit transaction (corrupted package) archive openvpn-2.0.9-1.pkg.tar.gz was corrupted (bad MD5 or SHA1 checksum)
errors occurred, no packages were upgraded.
[root@damocles ~]# </code>
As you may notice, the package is actually downloaded, then marked as corrupted.
Should be straightforward to fix. I'll look into it later on tonight. Thanks.
On 3/20/07, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
On 3/20/07, bardo <ilbardo@gmail.com> wrote:
Hi.
I looked at the Flyspray and it seems this hasn't been seen before: pacman doesn't care if it has enough space to copy the downloaded file from the temporary source, and sometimes it fails. POC follows (I filled up my /var on purpose, then tried to install a package that wasn't in my cache).
<code> [root@damocles ~]# df /var/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdb6 3092380 3092380 0 100% /var [root@damocles ~]# pacman3 -S openvpn resolving dependencies... done. looking for inter-conflicts... done.
Targets: openvpn-2.0.9-1
Total Package Size: 0.22 MB
Proceed with installation? [Y/n] y :: Retrieving packages from current... openvpn 220.3K 183.0K/s 00:00:01 [---------------------] 100% checking package integrity... :: Archive openvpn-2.0.9-1.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n] y error: failed to commit transaction (corrupted package) archive openvpn-2.0.9-1.pkg.tar.gz was corrupted (bad MD5 or SHA1 checksum)
errors occurred, no packages were upgraded.
[root@damocles ~]# </code>
As you may notice, the package is actually downloaded, then marked as corrupted.
Should be straightforward to fix. I'll look into it later on tonight. Thanks.
I checked something into CVS yesterday, but I do not have a separate /var partition. Could you either build from CVS, or possibly be available for testing in IRC some time tomorrow (between now+12:00 and now+15:00) ?
2007/3/22, Aaron Griffin <aaronmgriffin@gmail.com>:
I checked something into CVS yesterday, but I do not have a separate /var partition. Could you either build from CVS, or possibly be available for testing in IRC some time tomorrow (between now+12:00 and now+15:00) ?
I'll take a look in a few hours, building from CVS. I'll report here, or on IRC if I have problems. bardo
participants (2)
-
Aaron Griffin
-
bardo