Bug 1227621

Summary: IncompleteRead Error with Packaging Distrobox
Product: [openSUSE] openSUSE Aeon Reporter: Gordon Leung <pirateclip>
Component: DistroboxAssignee: Richard Brown <rbrown>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Gordon Leung 2024-07-10 11:32:26 UTC
This on the surface looks similar to boo#834990 except that this requires one to use osc inside of a distrobox such as the image made for packagers: https://en.opensuse.org/Distrobox#Distrobox_For_Packagers and it affects doing a local build of any package on build.opensuse.org too.

I have not gotten and IncompleteRead errors when using osc outside of distrobox (such as installing it on the MicroOS base system or on TW)

Steps to reproduce:
1 Create a distrobox as detailed on the wiki:
 $ distrobox create --root --name tumbleweed-pkg --image registry.opensuse.org/opensuse/distrobox-packaging:latest

2 Do zypper dup
(the image is not always up to date and recommends need to be installed or else osc misses a lot of features such as the loading bar when you run osc co and it is taking some time to download something)

3 Enter into it and osc co any package

4 Do a local build with osc build

If osc then tries to download dependencies then *sometimes* it will fail midway through with a message like this:
[40/171] (openSUSE:Tumbleweed) libuuid1-2.40.1-4.1.x86_64.rpm: 100%|############################################################################| Time: 0:00:00
[41/171] (openSUSE:Tumbleweed) libsmartcols1-2.40.1-4.1.x86_64.rpm: 100%|#######################################################################| Time: 0:00:00
[42/171] (openSUSE:Tumbleweed) libcrypt1-4.4.36-1.6.x86_64.rpm: 100%|###########################################################################| Time: 0:00:00
Connection broken: IncompleteRead(196304 bytes read, 31608179 more expected)                                                                   | ETA:  --:--:--

I can work around this by then just rerunning osc build and then it will download some more deps before maybe throwing another IncompleteRead error while trying to download a different dependency. Eventually it succeeds and I can get on with my local build