Netrender: errno 32: Broken pipe #56938
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#56938
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Fedora 28
Blender Version
2.79b, Python version 3.6.6
Short description of error
I am setting up the network renderer, but when I send tasks to the master, I get "[Errno 32] Broken pipe".
On the master, I see:
Exact steps for others to reproduce the error
Set up a master and a slave, send a task from client to master.
My investigation
The problem seems to happen when the client tries to send the job files. This is done in line 338 of client.py, using the request() method of HTTPConnection. The argument is a file handle, no headers are specified. The documentation of this method says:
(see https://docs.python.org/3/library/http.client.html)
So, no content-length when using a file object. It is visible from the stack trace (length = int(self.headers['content-length'])) that the master expects the content-length to be set. This leads to the exception.
I have not yet tried whether explicitly setting the content length header solves the problem.
Added subscriber: @campino
Explicitly setting the content-length indeed solves the problem.
I'll check how to get the fix upstream later. However, the buggy code is copied to several locations within the Netrender code, so I need to check for duplicates and fix all of them. Also, I believe that several people use netrender without being affected, so I am afraid that the fix breaks things for them. Is there any advice on how to verify that it does not?
Also, I hit https://developer.blender.org/T54222 as soon as I fixed the first problem. I think I would prefer to fix this as well first.
I've submitted code: https://developer.blender.org/D3741
However, this lacks a reviewer and possibly some tags. I would like it if someone could fill in the missing information.
This issue was referenced by
f975292b1e
Changed status from 'Open' to: 'Resolved'