Hello, I would love to know how can i set terminal command in linux terminal that can load blender without UI but with CroudRender to listen, and waiting for jobs. Thank you for answer.
Hi,I'm trying to use your information to run cr on 2 windows 10 PC.At this stage when I'm try to launch blender on the slave node I get an error : "SystemError: GPU functions for drawing are not available in background mode" and then Blender quit...
Any suggestions?Thx
my conf:- Blender 2.91.2 on windows10 Pro- Crowdrender blender plugin 030- CUDA 11.2- GPU: GTX 970
Blender 2.91.2 (hash 5be9ef417703 built 2021-01-19 16:25:50)Read prefs: C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\config\userpref.blendfound bundled python: D:\Program Files\Blender Foundation\Blender 2.91.2\2.91\pythonTraceback (most recent call last):File "D:\Program Files\Blender Foundation\Blender 2.91.2\2.91\scripts\modules\addon_utils.py", line 351, in enablemod = import(module_name)File "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\gridmodeler_init_.py", line 33, infrom . import grid_modelerFile "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\gridmodeler\grid_modeler.py", line 45, in from . import guiFile "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\gridmodeler\gui.py", line 41, inshader = gpu.shader.from_builtin('3D_UNIFORM_COLOR')SystemError: GPU functions for drawing are not available in background modeCrowd Render Server Interface Process readyTraceback (most recent call last):File "", line 1, inFile "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\crowdrender\src\py_3_8\serv_int_start.py", line 59, inserver_interface = crowdrender.src.py_3_8.server_interfaceAttributeError: module 'crowdrender.src' has no attribute 'py_3_8'dodgy, but trying to unregister anywayCrowd Render add-on Disabled
I am really sorry for this late reply @drager88.st , but sadly the CR forum was broken for me and I couldn't load any page nor answer whatsoever.
You replace "<login_token>" with the token you get from the CR profile page and you invoke it without the < or >.
as described in my README file on GitHub --name does only give the docker image a name, you can call it whatever you want.
--net=host does set the docker container into the same network as your host, this way the CR addon is allowed to open the ports it needs automatically. As an alternative, you could port forward the ports 9000 - 9025 manually from the host to the container
Again as I said, in the README on the GitHub page, I have described how to set the proper settings in order to get the Blender and CR version you want. The Blender version does matter and right now 2.79b, 2.82a and 2.83 LTS are supported.
You upgrade the docker container by deleting it and creating a new one with the Blender and CR version you want.
Hi, are you able to post a screenshot of what you saw? "Permission Denied" without any context could mean multiple things, so knowing a bit more detail would help :)
hi I am new here and new to using docker i how only ever setup file server to use on my local network. I thought to use then to render with and I'm completely lost. I have install docker on a ubuntu server 20.04 and tried to install blender and crowd render but I could not get it working any help would be appreciated.
p.s.
is there a way to use blender 2.9 with crowd render.
for everybody interested, I just want to give a quick update:all my docker images moved into an official docker repo, which is public and can be found here:https://github.com/crowdrender/cr-docker the commands are the same, as I still maintain those images ;)on Docker Hub I merged the CPU and GPU repos into one single one:https://hub.docker.com/r/zocker160/blender-crowdrender feel free to create an issue on GitHub or ask questions if you have any!
Thanks very much! just CR headless. As soon as i can get my toonkit addon to render across my slaves i think i will install a streamlined linux OS on my slaves and run renders headless to maximise cpu output .
Hi everyone,I have completely forgotten about this forum, but my headless server with CR 0.1.6 works with no problems on GPU and CPU.I have created a small HowTo guide here: https://gist.github.com/zocker-160/0688a4902421158b66f52dff3966058a
I would like to create a Docker image for that as well, so it can be easily set up, but I don't know if I am allowed to bundle the addon, since you have to sign up in order to download it.Maybe we can find a solution for that ;)
Hi Zocker, looks like you've installed crowdrender into your blender package. Thats not how addons which are external should be installed :). Usually external addons that are not part of Blender's distribution are installed into /home/*user_name*/.config/blender/2.79/scripts/addons/
This is the reason you are getting this error. You can fix this pretty easily by going into blender, then installing the addon using the "install from file" option.
Maybe give this a try and let me know how it goes?
File "/Programme/Blender/2.79/scripts/addons/crowdrender/src/bl_2_79/serv_int_start.py", line 17, in <module>
crowdrender = sys.modules[cr_pkg]
KeyError: 'crowdrender'
Blender quit
it's the latest version of the addon
Thanks in advance!
Like
Unknown member
Jun 27, 2018
Yes James, you all understood correctly, there is no gui only command line, this I will wait with impatience :)
I'm sure that many would like to see it, such questions often arise in our Russian community on a blender. Everyone wants to speed up the render by attracting any free machines, but to be able to work in parallel with the renderer.
Hi Lab137, so if I understand you correctly, you want to be able to run the entire render headless? With no gui being active on any of the machines?
In that case, we'd have to experiment here, we've never tried that! the renders are controlled from the crowdrender panel which is inside the blender gui. You've raised a good point though. Being able to distribute the renders using just one command would be pretty handy. If we can get a lot of people behind this idea we'd build it for sure :)
James
Like
Unknown member
Jun 27, 2018
Hi James! Yes, I do, but I would like to be able to run the wizard as well without gui, pointing the console command to run the renderer via CrowdRender.
ok, supposing you have three nodes, use one as the mster, load blender gui, on the other two run the command to start a headless server. From the master, connect to the two nodes running the headless server, then just render from the master using the render buttons on the crowdrender panel. When you render from a master node, it will use the master's CPU/GPU to render as well as the two other nodes you setup with a headless server.
Hope this helps?
James
Like
Unknown member
Jun 26, 2018
that is, there should always be a master of the node with the gui?
Just have a couple of servers in the closet :), but I'm working behind another machine in a quiet place :) Before that, I just automated the process by casting the file on the server and the one was already starting the render without my participation, since all the parameters were already in the file with the scene.
I will specify:
Suppose I have 3 nodes, I run 2 nodes with the command ./blender -b -P /home/denis/.config/blender/2.79/scripts/addons/crowdrender/src/bl_2_79/serv_int_start.py - -t " server_int_proc "
how to tell 3 nodes that it would render a file test.blend using all nodes together?
For example, the standard launch of the render in the background:
Hi lab137, the server doesn't need a gui if the command you were typing into terminal works, you can just connect to that computer from your master.
What you are seeing when running 015 is normal. The addon has bound to 0.0.0.0 which means it will listen on every network interface it has. 014 specifically enumerated each interface. We may revert back to that, but this still works fine in my tests.
Just remember that if you start a server using 015, you must use a master running 015 and vice versa. The two versions are not compatible and will not work with each other.
Glad you got it to work :D
James
Like
Unknown member
Jun 26, 2018
OMG James :) Everything worked and with 0.1.4, I ran from under different users! :)
Ok, but can I now run projects on the render without using the gui at all? Or the server can be with the gui?
P.s. when starting at 0.1.5, I get the following output:
Hi Lab137, ok its telling us that the addon can't be found. This is odd since what you've shown me so far is that the addon path is set correctly. If you look at your addons tab in user preferences is crowdrender there? If you can open blender from the terminal using ./blender from the same directory as you entered the command you did in the image you just posted that will help. We need to ensure that the addon is being recognised by blender.
Hi lab137, ok, I'm going to send you a copy of v015, its in pre-release but, it may solve this issue because the version no longer imports its self in the way that is failing in your case. It may remedy the situation, I have your e-mail address so standby to receive a download link with some more instructions :)
Hi Lab137, no, if you have the scripts/addons path returned from the command you ran (and I can see you do) then you've got the correct setup. Can I ask what version of crowdrender are you using?
Like
Unknown member
Jun 26, 2018
Do you need to insert several paths in the script field? I tried to insert '/home/denis/Downloads/blender-2.79b-linux-glibc219-x86_64/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons',' /home/denis/.config/blender /2.79/scripts/addon'
This might actually be the right path to check, apologies but I think I gave you the incorrect command before. Try this one, I think you'll need to add /home/Denis/.config/Blender/2.79/scripts/addons instead of just the path to "scripts"
Like
Unknown member
Jun 26, 2018
Hi James!
Added a path in the settings, saved, but everything is still, maybe something is not correctly understood
Hi lab137, from what I can see, you may be missing a command switch if you are using a version later than 013. From version 014 onwards the headless rendering setup requires using the following command:
./blender -b -P /home/*your user name*/.config/blender/2.79/addons/crowdrender/src/bl_2_79/serv_int_start.py -- -t "server_int_proc"
It may also be that blender is not aware of the path of the addons folder. One way to be sure is to run the following command in the python console (available using the scripting view):
I've included the output on my machine, you can see that the path exists for /Blender/2.79/scripts which is where the addons/crowdrender folder needs to be. Its possible that it could be missing from the blender you are running. One way to get around that is to save your user prefs after you add this path for your system. You can add it in the user preferences > file tab where it says "Scripts:"
Reply back to let us know if this works for you :D
Like
Unknown member
Jun 25, 2018
Hi, I launch as follows:
The blender itself is not installed, unpacked and launched.
Hi lab137 :), sorry for the late reply, for some reason I am not getting notifications of some comments, usually when we get a comment in the forum or a new post we're onto it pretty quickly.
Ok, What was the exact command you ran that didn't work? You mention "the command above" but there are several, if you can reply with the exact command copied from your terminal and the accompanying failure message, I can be of more help :)
James
Like
Unknown member
Jun 08, 2018
Hi!
Is it possible to run the job on the renderer via the Linux command line, with predefined parameters?
And it's not entirely clear what gives the launch in the background, as described above? Debian 9 crashes blender: error: unrecognized arguments: server_int_proc (blender 2.79b)
On other pure systems with Debian 9 other errors ...
Hi again :), I tried the same syntax you have above, got the same error, but it works if you use all backslashes. The problem appears to be the forward slash in:
Replacing this with a backslash works for me on win7.
I think the issue here is that this string is first parsed by python, which likely is expecting to see backslahses and coughs on the forward slash yielding a path that ends up causing the issue. Let me know if replacing with a backslash fixes this for you :D
J.
Like
Unknown member
May 31, 2018
Referring to me as QN is fine.
I am using v0.1.4. I also added Blender to my PATH so "*path_to_blender_exe*" is just "blender" for me.
But I still get the same error message. Here is the full output:
found bundled python: C:\Program Files\Blender Foundation\Blender\2.79\python
path not found
path not found
module changed on disk: C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\__init__.py reloading...
Crowd Render Server Interface Process ready
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py", line 64, in <module>
Hi, ummmmmm Mr Nameless? I am guessing you do actually have a name ,but we respect your anonymity here so I'll just refer to you as QN if thats ok?
So, the post above is out of date now, sorry I haven't updated it yet, basically the old software used position of the arguments on the command line to do stuff. Now we use things like "-t" "server_interface" which can be in any order.
The correct way to do this now is to write it like this:
The option -t now preceeds the "server_int_proc" string and is shorthand for "what type of background process should this be?"
Please bear in mind that what I just wrote works for v0.1.4 and above (0.1.5 currently in dev, due out soon will be the same and so on). If you happen to be using v0.1.3, then please reply back, there's likely another issue we'll need to work out with you.
J
Like
Unknown member
May 31, 2018
It does not seem to work with Windows. I have tried running the command:
File "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py", line 64, in <module>
Thanks so much for your post :) This can be done, I've put some instructions below to try.
You need to issue a command for blender to run in background mode, to do this in Linux, you need to find the path to the blender executable and then you need to add some further options to the command line like this.
This is assuming you are using 2.79, if you want to use one of the 2.78 releases then you will need to replace each "79" with "78" in the command above.
Please post back and let me know that this worked :)
Hi James,
Sorry for my big mistake. You are right the python version is 3.7
Like that it works!!!
Thanks a lot
Chears
Hi, I'm trying to use your information to run cr on 2 windows 10 PC. At this stage when I'm try to launch blender on the slave node I get an error : "SystemError: GPU functions for drawing are not available in background mode" and then Blender quit...
Any suggestions? Thx
my conf: - Blender 2.91.2 on windows10 Pro - Crowdrender blender plugin 030 - CUDA 11.2 - GPU: GTX 970
my command to launch blender:
"D:\Program Files\Blender Foundation\Blender 2.91.2\blender.exe" -noaudio -b -P "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\crowdrender\src\py_3_8\serv_int_start.py" -- -t "server_int_proc"
the trace :
Blender 2.91.2 (hash 5be9ef417703 built 2021-01-19 16:25:50) Read prefs: C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\config\userpref.blend found bundled python: D:\Program Files\Blender Foundation\Blender 2.91.2\2.91\python Traceback (most recent call last): File "D:\Program Files\Blender Foundation\Blender 2.91.2\2.91\scripts\modules\addon_utils.py", line 351, in enable mod = import(module_name) File "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\gridmodeler_init_.py", line 33, in from . import grid_modeler File "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\gridmodeler\grid_modeler.py", line 45, in from . import gui File "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\gridmodeler\gui.py", line 41, in shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR') SystemError: GPU functions for drawing are not available in background mode Crowd Render Server Interface Process ready Traceback (most recent call last): File "", line 1, in File "C:\Users\Laurent\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\crowdrender\src\py_3_8\serv_int_start.py", line 59, in server_interface = crowdrender.src.py_3_8.server_interface AttributeError: module 'crowdrender.src' has no attribute 'py_3_8' dodgy, but trying to unregister anyway Crowd Render add-on Disabled
sorry but I still can not get it to work. I get permission denied.
I put my login token in, don't know if I replace all <login_token> or just login_token .
and still do not understand
--name docker image?
--net=host
and how to get access to Nvidia gtx 650 and gtx 970 that are sitting in the servers.
what version blender will be install because i am running Blender 2.9 the new blender on my pc and my laptop crowd render 2.3 working.
or does the version of blender doesn't matter.
In the future how would I upgrade to new version of crowd render and blender.
hi I am new here and new to using docker i how only ever setup file server to use on my local network. I thought to use then to render with and I'm completely lost. I have install docker on a ubuntu server 20.04 and tried to install blender and crowd render but I could not get it working any help would be appreciated.
p.s.
is there a way to use blender 2.9 with crowd render.
for everybody interested, I just want to give a quick update: all my docker images moved into an official docker repo, which is public and can be found here: https://github.com/crowdrender/cr-docker the commands are the same, as I still maintain those images ;) on Docker Hub I merged the CPU and GPU repos into one single one: https://hub.docker.com/r/zocker160/blender-crowdrender feel free to create an issue on GitHub or ask questions if you have any!
Thanks very much! just CR headless. As soon as i can get my toonkit addon to render across my slaves i think i will install a streamlined linux OS on my slaves and run renders headless to maximise cpu output .
Hi ! I am interested to know if the above solutions work for the updates 0.1.7 release?
Hi everyone, I have completely forgotten about this forum, but my headless server with CR 0.1.6 works with no problems on GPU and CPU. I have created a small HowTo guide here: https://gist.github.com/zocker-160/0688a4902421158b66f52dff3966058a
I would like to create a Docker image for that as well, so it can be easily set up, but I don't know if I am allowed to bundle the addon, since you have to sign up in order to download it. Maybe we can find a solution for that ;)
Hi Zocker, looks like you've installed crowdrender into your blender package. Thats not how addons which are external should be installed :). Usually external addons that are not part of Blender's distribution are installed into /home/*user_name*/.config/blender/2.79/scripts/addons/
This is the reason you are getting this error. You can fix this pretty easily by going into blender, then installing the addon using the "install from file" option.
Maybe give this a try and let me know how it goes?
J
Hello everyone,
I'm trying to setup a headless debian server as a renderclient for CR, but I ran into this problem:
> ./blender -noaudio -b -P 2.79/scripts/addons/crowdrender/src/bl_2_79/serv_int_start.py -- -t "server_int_proc"
Read prefs: /Programme/Blender/2.79/config/userpref.blend
found bundled python: /Programme/Blender/2.79/python
Exception in module register(): '/Programme/Blender/2.79/scripts/addons/object_boolean_tools.py'
Traceback (most recent call last):
File "/Programme/Blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
mod.register()
File "/Programme/Blender/2.79/scripts/addons/object_boolean_tools.py", line 1451, in register
km = wm.keyconfigs.addon.keymaps.new(name='Object Mode')
AttributeError: 'NoneType' object has no attribute 'keymaps'
Exception in module register(): '/Programme/Blender/2.79/scripts/addons/crowdrender/__init__.py'
Traceback (most recent call last):
File "/Programme/Blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
mod.register()
File "/Programme/Blender/2.79/scripts/addons/crowdrender/__init__.py", line 101, in register
select_platform()
File "/Programme/Blender/2.79/scripts/addons/crowdrender/__init__.py", line 71, in select_platform
set_sys_path('Linux')
File "/Programme/Blender/2.79/scripts/addons/crowdrender/__init__.py", line 92, in set_sys_path
addons_path = bpy.utils.script_paths(subdir="addons")[1]
IndexError: list index out of range
Traceback (most recent call last):
File "/Programme/Blender/2.79/scripts/addons/crowdrender/src/bl_2_79/serv_int_start.py", line 17, in <module>
crowdrender = sys.modules[cr_pkg]
KeyError: 'crowdrender'
Blender quit
it's the latest version of the addon
Thanks in advance!
Yes James, you all understood correctly, there is no gui only command line, this I will wait with impatience :)
I'm sure that many would like to see it, such questions often arise in our Russian community on a blender. Everyone wants to speed up the render by attracting any free machines, but to be able to work in parallel with the renderer.
Hi Lab137, so if I understand you correctly, you want to be able to run the entire render headless? With no gui being active on any of the machines?
In that case, we'd have to experiment here, we've never tried that! the renders are controlled from the crowdrender panel which is inside the blender gui. You've raised a good point though. Being able to distribute the renders using just one command would be pretty handy. If we can get a lot of people behind this idea we'd build it for sure :)
James
Hi James! Yes, I do, but I would like to be able to run the wizard as well without gui, pointing the console command to run the renderer via CrowdRender.
In any case, many thanks for your help James!
Hi Lab137,
ok, supposing you have three nodes, use one as the mster, load blender gui, on the other two run the command to start a headless server. From the master, connect to the two nodes running the headless server, then just render from the master using the render buttons on the crowdrender panel. When you render from a master node, it will use the master's CPU/GPU to render as well as the two other nodes you setup with a headless server.
Hope this helps?
James
that is, there should always be a master of the node with the gui?
Just have a couple of servers in the closet :), but I'm working behind another machine in a quiet place :) Before that, I just automated the process by casting the file on the server and the one was already starting the render without my participation, since all the parameters were already in the file with the scene.
I will specify:
Suppose I have 3 nodes, I run 2 nodes with the command ./blender -b -P /home/denis/.config/blender/2.79/scripts/addons/crowdrender/src/bl_2_79/serv_int_start.py - -t " server_int_proc "
how to tell 3 nodes that it would render a file test.blend using all nodes together?
For example, the standard launch of the render in the background:
./blender -b /home/user/test.blend -E CYCLES -t 32 -f 0
Hi lab137, the server doesn't need a gui if the command you were typing into terminal works, you can just connect to that computer from your master.
What you are seeing when running 015 is normal. The addon has bound to 0.0.0.0 which means it will listen on every network interface it has. 014 specifically enumerated each interface. We may revert back to that, but this still works fine in my tests.
Just remember that if you start a server using 015, you must use a master running 015 and vice versa. The two versions are not compatible and will not work with each other.
Glad you got it to work :D
James
OMG James :) Everything worked and with 0.1.4, I ran from under different users! :)
Ok, but can I now run projects on the render without using the gui at all? Or the server can be with the gui?
P.s. when starting at 0.1.5, I get the following output:
Read prefs: /home/denis/.config/blender/2.79/config/userpref.blend
found bundled python: /home/denis/Downloads/blender-2.79b-linux-glibc219-x86_64/blender-2.79b-linux-glibc219-x86_64/2.79/python
Crowd Render Server Interface Process ready
(('0.0.0.0', '??', 'address of this computer on the network'),)
In 1.4 I see the normal IP address
Hi Lab137, ok its telling us that the addon can't be found. This is odd since what you've shown me so far is that the addon path is set correctly. If you look at your addons tab in user preferences is crowdrender there? If you can open blender from the terminal using ./blender from the same directory as you entered the command you did in the image you just posted that will help. We need to ensure that the addon is being recognised by blender.
Thanks James, I checked, here's the new error:
Hi lab137, ok, I'm going to send you a copy of v015, its in pre-release but, it may solve this issue because the version no longer imports its self in the way that is failing in your case. It may remedy the situation, I have your e-mail address so standby to receive a download link with some more instructions :)
Yes, of course, James!
Hi Lab137, no, if you have the scripts/addons path returned from the command you ran (and I can see you do) then you've got the correct setup. Can I ask what version of crowdrender are you using?
Do you need to insert several paths in the script field? I tried to insert '/home/denis/Downloads/blender-2.79b-linux-glibc219-x86_64/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons',' /home/denis/.config/blender /2.79/scripts/addon'
but the result is the same.
Hi Lab137 can you try:
>>> bpy.utils.script_paths(subdir="addons")
['/Applications/Blender/blender.app/Contents/Resources/2.79/scripts/addons', '/Users/jamesmac/Library/Application Support/Blender/2.79/scripts/addons']
This might actually be the right path to check, apologies but I think I gave you the incorrect command before. Try this one, I think you'll need to add /home/Denis/.config/Blender/2.79/scripts/addons instead of just the path to "scripts"
Hi James!
Added a path in the settings, saved, but everything is still, maybe something is not correctly understood
Hi lab137, from what I can see, you may be missing a command switch if you are using a version later than 013. From version 014 onwards the headless rendering setup requires using the following command:
./blender -b -P /home/*your user name*/.config/blender/2.79/addons/crowdrender/src/bl_2_79/serv_int_start.py -- -t "server_int_proc"
It may also be that blender is not aware of the path of the addons folder. One way to be sure is to run the following command in the python console (available using the scripting view):
>>> bpy.utils.script_paths()
['/Applications/Blender/blender.app/Contents/Resources/2.79/scripts/modules', '/Applications/Blender/blender.app/Contents/Resources/2.79/scripts', '/Users/jamesmac/Library/Application Support/Blender/2.79/scripts']
I've included the output on my machine, you can see that the path exists for /Blender/2.79/scripts which is where the addons/crowdrender folder needs to be. Its possible that it could be missing from the blender you are running. One way to get around that is to save your user prefs after you add this path for your system. You can add it in the user preferences > file tab where it says "Scripts:"
Reply back to let us know if this works for you :D
Hi, I launch as follows:
The blender itself is not installed, unpacked and launched.
Hi lab137 :), sorry for the late reply, for some reason I am not getting notifications of some comments, usually when we get a comment in the forum or a new post we're onto it pretty quickly.
Ok, What was the exact command you ran that didn't work? You mention "the command above" but there are several, if you can reply with the exact command copied from your terminal and the accompanying failure message, I can be of more help :)
James
Hi!
Is it possible to run the job on the renderer via the Linux command line, with predefined parameters?
And it's not entirely clear what gives the launch in the background, as described above? Debian 9 crashes blender: error: unrecognized arguments: server_int_proc (blender 2.79b)
On other pure systems with Debian 9 other errors ...
Great! No worries as we say down under :D
It works!
Using only forward slashes works with Windows 10 also:
blender -b -P "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79\serv_int_start.py" -- -t "server_int_proc"
Thanks James!
Hi again :), I tried the same syntax you have above, got the same error, but it works if you use all backslashes. The problem appears to be the forward slash in:
'Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py"
Replacing this with a backslash works for me on win7.
I think the issue here is that this string is first parsed by python, which likely is expecting to see backslahses and coughs on the forward slash yielding a path that ends up causing the issue. Let me know if replacing with a backslash fixes this for you :D
J.
Referring to me as QN is fine.
I am using v0.1.4. I also added Blender to my PATH so "*path_to_blender_exe*" is just "blender" for me.
I tried with "-t":
blender -b -P "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py" -- -t "server_int_proc"
But I still get the same error message. Here is the full output:
found bundled python: C:\Program Files\Blender Foundation\Blender\2.79\python
path not found
path not found
module changed on disk: C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\__init__.py reloading...
Crowd Render Server Interface Process ready
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py", line 64, in <module>
machine_manager = server_interface.CRMachineManager()
NameError: name 'server_interface' is not defined
Blender quit
Hi, ummmmmm Mr Nameless? I am guessing you do actually have a name ,but we respect your anonymity here so I'll just refer to you as QN if thats ok?
So, the post above is out of date now, sorry I haven't updated it yet, basically the old software used position of the arguments on the command line to do stuff. Now we use things like "-t" "server_interface" which can be in any order.
The correct way to do this now is to write it like this:
*path_to_blender_exe* -b -P "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py" -- -t "server_int_proc"
The option -t now preceeds the "server_int_proc" string and is shorthand for "what type of background process should this be?"
Please bear in mind that what I just wrote works for v0.1.4 and above (0.1.5 currently in dev, due out soon will be the same and so on). If you happen to be using v0.1.3, then please reply back, there's likely another issue we'll need to work out with you.
J
It does not seem to work with Windows. I have tried running the command:
blender -b -P "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py" -- "server_int_proc"
but I get the error message:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\QuiteNameless\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\crowdrender\src\bl_2_79/serv_int_start.py", line 64, in <module>
machine_manager = server_interface.CRMachineManager()
NameError: name 'server_interface' is not defined
Thanks I was wondering this too, I'll test it when I get home tonight and let you know.
Hi Tomas,
Thanks so much for your post :) This can be done, I've put some instructions below to try.
You need to issue a command for blender to run in background mode, to do this in Linux, you need to find the path to the blender executable and then you need to add some further options to the command line like this.
*path_to_blender_binary* -b -P /home/*your_user_name*/.config/blender/2.79/scripts/addons/crowdrender/Linux/bl_2_79/serv_int_start.py -- "server_int_proc"
This is assuming you are using 2.79, if you want to use one of the 2.78 releases then you will need to replace each "79" with "78" in the command above.
Please post back and let me know that this worked :)