Closed yarikoptic closed 1 year ago
From all looks it happened again but now in ubuntu environment https://ci.appveyor.com/project/mih/datalad/builds/46630717/job/luwc0638irf4wb3g
[ -n "${INSTALL_GITANNEX}" ] && datalad-installer --sudo ok ${INSTALL_GITANNEX}
2023-03-28T15:09:22+0000 [INFO ] datalad_installer Writing environment modifications to /home/appveyor/DLTMP/dl-env-ireh1b5s.sh
2023-03-28T15:09:22+0000 [INFO ] datalad_installer Installing git-annex via deb-url
2023-03-28T15:09:22+0000 [INFO ] datalad_installer URL: http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb
2023-03-28T15:09:22+0000 [INFO ] datalad_installer Extra args: None
2023-03-28T15:09:22+0000 [INFO ] datalad_installer Downloading http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb
2023-03-28T15:12:12+0000 [INFO ] datalad_installer Running: sudo dpkg -i /home/appveyor/DLTMP/tmp_yul8d7_/git-annex.deb
Selecting previously unselected package git-annex.
(Reading database ... 306255 files and directories currently installed.)
Preparing to unpack .../tmp_yul8d7_/git-annex.deb ...
Unpacking git-annex (8.20210903-1) ...
dpkg-deb (subprocess): cannot copy archive member from '/home/appveyor/DLTMP/tmp_yul8d7_/git-annex.deb' to decompressor pipe: unexpected end of file or stream
dpkg-deb (subprocess): decompressing archive member: lzma error: unexpected end of input
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /home/appveyor/DLTMP/tmp_yul8d7_/git-annex.deb (--install):
cannot copy extracted data for './usr/bin/git-annex' to '/usr/bin/git-annex.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/home/appveyor/DLTMP/tmp_yul8d7_/git-annex.deb
Traceback (most recent call last):
File "/home/appveyor/dlvenv/bin/datalad-installer", line 8, in <module>
sys.exit(main())
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 1788, in main
return manager.main(argv)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 657, in main
self.addcomponent(name=cr.name, **cr.kwargs)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 690, in addcomponent
component(self).provide(**kwargs)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 1032, in provide
bins = self.get_installer(method).install(self.NAME, **kwargs)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 1118, in install
bindir = self.install_package(package, **kwargs)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 1391, in install_package
self.manager.sudo(*cmd)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 576, in sudo
return runcmd("sudo", *args, **kwargs)
File "/home/appveyor/dlvenv/lib/python3.8/site-packages/datalad_installer.py", line 1756, in runcmd
return subprocess.run(arglist, check=True, **kwargs)
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['sudo', 'dpkg', '-i', '/home/appveyor/DLTMP/tmp_yul8d7_/git-annex.deb']' returned non-zero exit status 1.
can we add explicit "get size" via HEAD request, test for size and if downloaded size does not match -- cause it to retry @jwodder ? or do you see some other reason this might happen?
happened in one recent run https://github.com/datalad/datalad-installer/actions/runs/4351210903/jobs/7602645257 where the other matrix runs were all good. I would have expected some error instead of some incomplete download
Making a record to see if we run into it again.