NetworkRender and SSL -> wrap_socket() missing 1 required positional argument: 'sock' #50475

Closed
opened 2017-01-19 15:20:32 +01:00 by Niklas · 10 comments

System Information
Linux - CentOS 7

Blender Version
Broken: 2.74 (CentOS 7) and 2.78.a-5 (Archlinux)

Short description of error
We have a "Blender Farm" with a master and a few slaves. Now we try to use SSL. I configured the path of the certificate and the key, but the Blender-Master crashed with the following error:

read blend: /home/renderuser/blender/master-int.blend
Error: wrap_socket() missing 1 required positional argument: 'sock'
Error: Traceback (most recent call last):
File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/client.py", line 367, in render
raise e
File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/client.py", line 362, in render
self.render_master(scene)
File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/client.py", line 383, in render_master
key_path=netsettings.key_path)
File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/master.py", line 1165, in runMaster
ssl_version=ssl.PROTOCOL_SSLv23,
TypeError: wrap_socket() missing 1 required positional argument: 'sock'
location: <unknown location>:-1
Traceback (most recent call last):

On all systems is CentOS7 and Blender 2.74 installed. I have found this thread https://developer.blender.org/rBA8b56ce969db281579bf35000ef7b20a8d9590dbb here and it seems that there are missing arguments in the file netrender/master.py. (Archlinux).

Here is a pic of the python code:
Source_Code_master.py.png

In the thread it seems fixed, but the arguments httpd.socket,certfile=cert_path in ssl.wrap_socket are still missing in current versions. I testet it also with blender 2.78.a-5 (Archlinux). After I inserted them by msyself, SSL works fine.

Exact steps for others to reproduce the error
Try to use SSL with key and certificate

**System Information** Linux - CentOS 7 **Blender Version** Broken: 2.74 (CentOS 7) and 2.78.a-5 (Archlinux) **Short description of error** We have a "Blender Farm" with a master and a few slaves. Now we try to use SSL. I configured the path of the certificate and the key, but the Blender-Master crashed with the following error: ``` read blend: /home/renderuser/blender/master-int.blend Error: wrap_socket() missing 1 required positional argument: 'sock' Error: Traceback (most recent call last): File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/client.py", line 367, in render raise e File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/client.py", line 362, in render self.render_master(scene) File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/client.py", line 383, in render_master key_path=netsettings.key_path) File "/home/renderuser/blender-2.74-linux-glibc211-x86_64/2.74/scripts/addons/netrender/master.py", line 1165, in runMaster ssl_version=ssl.PROTOCOL_SSLv23, TypeError: wrap_socket() missing 1 required positional argument: 'sock' location: <unknown location>:-1 Traceback (most recent call last): ``` On all systems is CentOS7 and Blender 2.74 installed. I have found this thread https://developer.blender.org/rBA8b56ce969db281579bf35000ef7b20a8d9590dbb here and it seems that there are missing arguments in the file **netrender/master.py**. (Archlinux). Here is a pic of the python code: ![Source_Code_master.py.png](https://archive.blender.org/developer/F436820/Source_Code_master.py.png) In the thread it seems fixed, but the arguments **httpd.socket,certfile=cert_path** in **ssl.wrap_socket** are still missing in current versions. I testet it also with blender 2.78.a-5 (Archlinux). After I inserted them by msyself, SSL works fine. **Exact steps for others to reproduce the error** Try to use SSL with key and certificate
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @blenderCMB

Added subscriber: @blenderCMB
Member

Added subscriber: @TheOnlyJoey

Added subscriber: @TheOnlyJoey
Member

This comment was removed by @TheOnlyJoey

*This comment was removed by @TheOnlyJoey*
Joey Ferwerda self-assigned this 2017-01-19 17:49:17 +01:00
Member

Though netrender is currently unmaintained and removed for 2.8, this seems to be a simple fix.

I will implement this and submit for review in a bit.

Though netrender is currently unmaintained and removed for 2.8, this seems to be a simple fix. I will implement this and submit for review in a bit.
Author

Thanks in advance for fixing it.

But another question, there will be no Network Render in Version 2.8? Is that a fix decision? I couldn't find anything on the internet concerning this.

Thanks in advance for fixing it. But another question, there will be no Network Render in Version 2.8? Is that a fix decision? I couldn't find anything on the internet concerning this.

This issue was referenced by 8c7a77ab5c

This issue was referenced by 8c7a77ab5c8f8e55fd12de72c7388676874e6488
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Fix is commited, please check the buildbot soon to check if it solved your case.

In #50475#413009, @blenderCMB wrote:
Thanks in advance for fixing it.

But another question, there will be no Network Render in Version 2.8? Is that a fix decision? I couldn't find anything on the internet concerning this.

The current netrender addon will be removed, but alternatives will be provided.
Information on this will be available when its relevant.

Fix is commited, please check the buildbot soon to check if it solved your case. > In #50475#413009, @blenderCMB wrote: > Thanks in advance for fixing it. > > But another question, there will be no Network Render in Version 2.8? Is that a fix decision? I couldn't find anything on the internet concerning this. The current netrender addon will be removed, but alternatives will be provided. Information on this will be available when its relevant.
Author

Thanks, I checked it with the latest builds and it works.

Thanks, I checked it with the latest builds and it works.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#50475
No description provided.