Ubuntu 24 , c4d 2024.5.1, Deadline10.3 - how to set the right environment variables for a client

I am trying to get deadline running on a linxu machine. rather painful as expected.

this works locally on the node

cd /opt/maxon/cinema4dr2024.501/bin && . ./setup_c4d_env
/opt/maxon/cinema4dr2024.501/bin/Commandline -render /mnt/x/deadtest/cube-01.c4d

when I try to render through deadline client the same file it launches c4d but then just stists there until it times out. I noticed that the ENV variables are likely wrong ( set above in the manual comand, these ones are correct)

Working setup:

LD_LIBRARY_PATH=/opt/maxon/cinema4dr2024.501/bin/…/lib64:/opt/maxon/cinema4dr2024.501/bin/…/bin/resource/modules/python/libs/python311.linux64.framework/lib64

Deadline setup:

LD_LIBRARY_PATH=/opt/maxon/cinema4dr2024.501/bin/…/lib64:/opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib64:/opt/maxon/cinema4dr2024.501/bin/resource/modules/embree.module/libs/linux64

why is it using python2.7? I thought python3 should now be working, I have Deadline Client Version: 10.3.2.1 Release (1a66fe40f)
https://docs.thinkboxsoftware.com/products/deadline/10.3/1_User%20Manual/manual/python-upgrade.html?highlight=python

here is the log from the client until it jsut stops.

2024-11-29 18:14:18:  0: Loading Job's Plugin timeout is Disabled
2024-11-29 18:14:18:  0: SandboxedPlugin: Render Job As User disabled, running as current user 'tt'
2024-11-29 18:14:20:  All job files are already synchronized
2024-11-29 18:14:20:  Synchronizing Plugin Cinema4DBatch from /mnt/DeadlineRepository10/plugins/Cinema4DBatch took: 0 seconds
2024-11-29 18:14:20:  0: Executing plugin command of type 'Initialize Plugin'
2024-11-29 18:14:20:  0: INFO: Executing plugin script '/var/lib/Thinkbox/Deadline10/workers/tm-8/plugins/674a047a8c2f7e920f7f61cd/Cinema4DBatch.py'
2024-11-29 18:14:21:  0: INFO: Plugin execution sandbox using Python version 3
2024-11-29 18:14:21:  0: INFO: About: Cinema 4D Batch Plugin for Deadline
2024-11-29 18:14:21:  0: INFO: The job's environment will be merged with the current environment before rendering
2024-11-29 18:14:21:  0: Done executing plugin command of type 'Initialize Plugin'
2024-11-29 18:14:21:  0: Start Job timeout is disabled.
2024-11-29 18:14:21:  0: Task timeout is disabled.
2024-11-29 18:14:21:  0: Loaded job: cube-01-rs (674a047a8c2f7e920f7f61cd)
2024-11-29 18:14:21:  0: Executing plugin command of type 'Start Job'
2024-11-29 18:14:21:  0: DEBUG: S3BackedCache Client is not installed.
2024-11-29 18:14:21:  0: INFO: Executing global asset transfer preload script '/var/lib/Thinkbox/Deadline10/workers/tm-8/plugins/674a047a8c2f7e920f7f61cd/GlobalAssetTransferPreLoad.py'
2024-11-29 18:14:21:  0: INFO: Looking for legacy (pre-10.0.26) AWS Portal File Transfer...
2024-11-29 18:14:21:  0: INFO: Looking for legacy (pre-10.0.26) File Transfer controller in /opt/Thinkbox/S3BackedCache/bin/task.py...
2024-11-29 18:14:21:  0: INFO: Could not find legacy (pre-10.0.26) AWS Portal File Transfer.
2024-11-29 18:14:21:  0: INFO: Legacy (pre-10.0.26) AWS Portal File Transfer is not installed on the system.
2024-11-29 18:14:21:  0: INFO: Start Job called - starting up Cinema 4D Batch plugin
2024-11-29 18:14:21:  0: CheckPathMapping: Swapped "X:\deadtest\cube-01-rs.c4d" with "/mnt/x/deadtest\cube-01-rs.c4d"
2024-11-29 18:14:21:  0: INFO: Setting Process Environment Variable g_additionalModulePath to /var/lib/Thinkbox/Deadline10/workers/tm-8/plugins/674a047a8c2f7e920f7f61cd
2024-11-29 18:14:21:  0: INFO: [g_additionalModulePath] set to: /var/lib/Thinkbox/Deadline10/workers/tm-8/plugins/674a047a8c2f7e920f7f61cd
2024-11-29 18:14:21:  0: INFO: [LD_LIBRARY_PATH] set to /opt/maxon/cinema4dr2024.501/bin/../lib64:/opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib64:/opt/maxon/cinema4dr2024.501/bin/resource/modules/embree.module/libs/linux64:
2024-11-29 18:14:21:  0: INFO: [PYTHONPATH] set to /opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib/python2.7:/opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib64/python2.7/lib-dynload:
2024-11-29 18:14:21:  0: INFO: [PATH] set to /home/tt/.local/bin:./bin:/home/tt/.local/bin:/home/tt/.local/share/omakub/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/bin:/usr/bin:/sbin:/bin:/usr/bin:/bin:/usr/bin:/opt/maxon/cinema4dr2024.501/bin
2024-11-29 18:14:21:  0: INFO: Setting Process Environment Variable LD_LIBRARY_PATH to /opt/maxon/cinema4dr2024.501/bin/../lib64:/opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib64:/opt/maxon/cinema4dr2024.501/bin/resource/modules/embree.module/libs/linux64:
2024-11-29 18:14:21:  0: INFO: Setting Process Environment Variable PYTHONPATH to /opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib/python2.7:/opt/maxon/cinema4dr2024.501/bin/resource/modules/python/Python.linux64.framework/lib64/python2.7/lib-dynload:
2024-11-29 18:14:21:  0: INFO: Setting Process Environment Variable PATH to /home/tt/.local/bin:./bin:/home/tt/.local/bin:/home/tt/.local/share/omakub/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/bin:/usr/bin:/sbin:/bin:/usr/bin:/bin:/usr/bin:/opt/maxon/cinema4dr2024.501/bin
2024-11-29 18:14:21:  0: INFO: Cinema 4D socket connection port: 38051
2024-11-29 18:14:21:  0: INFO: Parameters: -nogui -noopengl -redshift-log-console Debug "-DeadlineConnect 38051 1732904061 '/var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/674a047a8c2f7e920f7f61cd/importTest_tempGA3on0/importCheck.txt'"
2024-11-29 18:14:21:  0: INFO: Starting monitored managed process Cinema4DProcess
2024-11-29 18:14:21:  0: INFO: Stdout Redirection Enabled: True
2024-11-29 18:14:21:  0: INFO: Asynchronous Stdout Enabled: False
2024-11-29 18:14:21:  0: INFO: Stdout Handling Enabled: True
2024-11-29 18:14:21:  0: INFO: Popup Handling Enabled: True
2024-11-29 18:14:21:  0: INFO: QT Popup Handling Enabled: False
2024-11-29 18:14:21:  0: INFO: WindowsForms10.Window.8.app.* Popup Handling Enabled: False
2024-11-29 18:14:21:  0: INFO: Using Process Tree: True
2024-11-29 18:14:21:  0: INFO: Hiding DOS Window: True
2024-11-29 18:14:21:  0: INFO: Creating New Console: False
2024-11-29 18:14:21:  0: INFO: Running as user: tt
2024-11-29 18:14:21:  0: INFO: Executable: "/opt/maxon/cinema4dr2024.501/bin/Commandline"
2024-11-29 18:14:21:  0: INFO: Argument: -nogui -noopengl -redshift-log-console Debug "-DeadlineConnect 38051 1732904061 '/var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/674a047a8c2f7e920f7f61cd/importTest_tempGA3on0/importCheck.txt'"
2024-11-29 18:14:21:  0: INFO: Full Command: "/opt/maxon/cinema4dr2024.501/bin/Commandline" -nogui -noopengl -redshift-log-console Debug "-DeadlineConnect 38051 1732904061 '/var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/674a047a8c2f7e920f7f61cd/importTest_tempGA3on0/importCheck.txt'"
2024-11-29 18:14:21:  0: INFO: Startup Directory: "/opt/maxon/cinema4dr2024.501/bin"
2024-11-29 18:14:21:  0: INFO: Process Priority: BelowNormal
2024-11-29 18:14:21:  0: INFO: Process Affinity: default
2024-11-29 18:14:21:  0: INFO: Process is now running
2024-11-29 18:14:21:  0: STDOUT: Attempt to initialize net.maxon.interface.configuration of different dependency group 121 [caused by net.maxon.interface.configuration].
2024-11-29 18:14:21:  0: STDOUT: Application start      : 11/29/24 at 18:14:21
2024-11-29 18:14:21:  0: STDOUT: Executable (T)         : 64 Bit
2024-11-29 18:14:21:  0: STDOUT: Version / Build        : 2024.5.1 / 2024_5_ac4bc44383e4_1378804312
2024-11-29 18:14:21:  0: STDOUT: Debugger               : not available
2024-11-29 18:14:21:  0: STDOUT: Memory model           : release
2024-11-29 18:14:21:  0: STDOUT: Startup path           : file:///opt/maxon/cinema4dr2024.501/bin
2024-11-29 18:14:21:  0: STDOUT: Application path       : file:///opt/maxon/cinema4dr2024.501/bin/Commandline
2024-11-29 18:14:21:  0: STDOUT: Application executable : file:///opt/maxon/cinema4dr2024.501/bin/Commandline
2024-11-29 18:14:21:  0: STDOUT: Resource path          : file:///opt/maxon/cinema4dr2024.501/bin/resource
2024-11-29 18:14:21:  0: STDOUT: Library path           : file:///opt/maxon/cinema4dr2024.501/bin/library
2024-11-29 18:14:21:  0: STDOUT: Module path(s)         : file:///opt/maxon/cinema4dr2024.501/bin/corelibs; file:///opt/maxon/cinema4dr2024.501/bin/plugins; file:///home/tt/Maxon/bin_427F2F79_x/plugins; file:///var/lib/Thinkbox/Deadline10/workers/tm-8/plugins/674a047a8c2f7e920f7f61cd
2024-11-29 18:14:21:  0: STDOUT: Temporary path         : file:///tmp
2024-11-29 18:14:21:  0: STDOUT: Prefs path             : file:///home/tt/Maxon/bin_427F2F79_x
2024-11-29 18:14:21:  0: STDOUT: Global Prefs path      : file:///home/tt/Maxon
2024-11-29 18:14:21:  0: STDOUT: OS version             : Linux 6.8.0-49-generic, Ubuntu 24.04.1 LTS
2024-11-29 18:14:21:  0: STDOUT: OS languages           : {en-US}
2024-11-29 18:14:21:  0: STDOUT: App languages          : {en-US}
2024-11-29 18:14:21:  0: STDOUT: Startup language       : en-US
2024-11-29 18:14:21:  0: STDOUT: Processor              : 8(16)x AMD Ryzen Threadripper 1900X 8-Core Processor
2024-11-29 18:14:21:  0: STDOUT: Binary Architecture    : x86
2024-11-29 18:14:21:  0: STDOUT: Computer name          : tm-8
2024-11-29 18:14:21:  0: STDOUT: Unique OS identifier   : v1F3onJzRSUtfmmABShKCo9CW6OW0i92Dvlq/xv2nHSfA= [cryptographyid]
2024-11-29 18:14:21:  0: STDOUT: Thread Count           : 16
2024-11-29 18:14:21:  0: STDOUT: CPU Speed (MHz)        : 3800.000
2024-11-29 18:14:21:  0: STDOUT: Application Type       : Modular
2024-11-29 18:14:21:  0: STDOUT: Command line arguments : "-nogui" "-noopengl" "-redshift-log-console" "Debug" "-DeadlineConnect 38051 1732904061 '/var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/674a047a8c2f7e920f7f61cd/importTest_tempGA3on0/importCheck.txt'"
2024-11-29 18:14:21:  0: STDOUT:   crypt.module.xso64 with module net.maxon.crypt
2024-11-29 18:14:21:  0: STDOUT:   gui.module.xso64 with module net.maxon.gui
2024-11-29 18:14:21:  0: STDOUT:   image.module.xso64 with module net.maxon.image
2024-11-29 18:14:21:  0: STDOUT:   image_ocio.module.xso64 with module net.maxon.image_ocio
2024-11-29 18:14:21:  0: STDOUT:   misc.module.xso64 with module net.maxon.misc
2024-11-29 18:14:21:  0: STDOUT: before notify_init(), notification disabled
2024-11-29 18:14:22:  0: STDOUT: No connection to X server, running headless probably
2024-11-29 18:14:22:  0: STDOUT:   asset.module.xso64 with module net.maxon.asset
2024-11-29 18:14:22:  0: STDOUT:   c4d_base.xso64 with modules net.maxon.rlmlicensing net.maxon.c4d.c4d_base
2024-11-29 18:14:22:  0: STDOUT:   c4d_viewport_nodegraph.module.xso64 with module net.maxon.c4d_viewport_nodegraph
2024-11-29 18:14:22:  0: STDOUT:   ca.module.xso64 with module net.maxon.ca
2024-11-29 18:14:22:  0: STDOUT:   command.module.xso64 with module net.maxon.command
2024-11-29 18:14:22:  0: STDOUT:   corenodes.module.xso64 with module net.maxon.corenodes
2024-11-29 18:14:22:  0: STDOUT:   crashhandler.module.xso64 with module net.maxon.crashhandler
2024-11-29 18:14:22:  0: STDOUT:   denoiser.module.xso64 with module net.maxon.denoiser
2024-11-29 18:14:22:  0: STDOUT:   drawport.module.xso64 with module net.maxon.drawport
2024-11-29 18:14:22:  0: STDOUT:   drawport_general.module.xso64 with module net.maxon.drawport_general
2024-11-29 18:14:22:  0: STDOUT:   drawport_selector.module.xso64 with module net.maxon.drawport_selector
2024-11-29 18:14:22:  0: STDOUT:   embree.module.xso64 with module net.maxon.embree
2024-11-29 18:14:22:  0: STDOUT:   embree_classic.module.xso64 with module net.maxon.embree_classic
2024-11-29 18:14:22:  0: STDOUT:   gui_gluon.module.xso64 with module net.maxon.gui_gluon
2024-11-29 18:14:22:  0: STDOUT:   image_exif.module.xso64 with module net.maxon.image_exif
2024-11-29 18:14:22:  0: STDOUT:   image_gpu.module.xso64 with module net.maxon.image_gpu
2024-11-29 18:14:22:  0: STDOUT:   image_ocio_gpu.module.xso64 with module net.maxon.image_ocio_gpu
2024-11-29 18:14:22:  0: STDOUT:   image_openexr.module.xso64 with module net.maxon.image_openexr
2024-11-29 18:14:22:  0: STDOUT:   io_usd.module.xso64 with module net.maxon.io_usd
2024-11-29 18:14:22:  0: STDOUT:   licensing.module.xso64 with module net.maxon.licensing
2024-11-29 18:14:22:  0: STDOUT:   magicbulletlooks.module.xso64 with module net.maxon.magicbulletlooks
2024-11-29 18:14:22:  0: STDOUT:   math.module.xso64 with module net.maxon.math
2024-11-29 18:14:22:  0: STDOUT:   modeling_geom.module.xso64 with module net.maxon.modeling_geom
2024-11-29 18:14:22:  0: STDOUT:   modeling_geometry_abstraction.module.xso64 with module net.maxon.modeling_geometry_abstraction
2024-11-29 18:14:22:  0: STDOUT:   modeling_mesh.module.xso64 with module net.maxon.modeling_mesh
2024-11-29 18:14:22:  0: STDOUT:   network.module.xso64 with module net.maxon.network
2024-11-29 18:14:22:  0: STDOUT:   neutron.module.xso64 with module net.maxon.neutron
2024-11-29 18:14:22:  0: STDOUT:   nodes.module.xso64 with module net.maxon.nodes
2024-11-29 18:14:22:  0: STDOUT:   nodes_corenodes.module.xso64 with module net.maxon.nodes_corenodes
2024-11-29 18:14:22:  0: STDOUT:   opensubdiv.module.xso64 with module net.maxon.opensubdiv
2024-11-29 18:14:22:  0: STDOUT:   parallelprogram.module.xso64 with module net.maxon.parallelprogram
2024-11-29 18:14:22:  0: STDOUT:   physx.module.xso64 with module net.maxon.physx
2024-11-29 18:14:22:  0: STDOUT:   post.module.xso64 with module net.maxon.post
2024-11-29 18:14:22:  0: STDOUT:   presenter_base.module.xso64 with module net.maxon.presenter_base
2024-11-29 18:14:22:  0: STDOUT:   presenter_nodegraph.module.xso64 with module net.maxon.presenter_nodegraph
2024-11-29 18:14:22:  0: STDOUT:   presenter_nodes.module.xso64 with module net.maxon.presenter_nodes
2024-11-29 18:14:22:  0: STDOUT:   pythonvm.module.xso64 with module net.maxon.pythonvm
2024-11-29 18:14:22:  0: STDOUT:   reflection.module.xso64 with module net.maxon.reflection
2024-11-29 18:14:22:  0: STDOUT:   render.module.xso64 with module net.maxon.render
2024-11-29 18:14:22:  0: STDOUT:   shadernodes.module.xso64 with module net.maxon.shadernodes
2024-11-29 18:14:22:  0: STDOUT:   svg.module.xso64 with module net.maxon.svg
2024-11-29 18:14:22:  0: STDOUT:   tool_scene_abstraction.module.xso64 with module net.maxon.tool_scene_abstraction
2024-11-29 18:14:22:  0: STDOUT:   tool_system.module.xso64 with module net.maxon.tool_system
2024-11-29 18:14:22:  0: STDOUT:   advanced_render.xso64 with module net.maxon.c4d.advanced_render
2024-11-29 18:14:22:  0: STDOUT:   archigrass.xso64 with module net.maxon.c4d.archigrass
2024-11-29 18:14:22:  0: STDOUT:   c4d_assetbrowser.xso64 with module net.maxon.c4d.c4d_assetbrowser
2024-11-29 18:14:22:  0: STDOUT:   c4d_bitmapfilter.xso64 with module net.maxon.c4d.c4d_bitmapfilter
2024-11-29 18:14:22:  0: STDOUT:   c4d_manager.xso64 with module net.maxon.c4d.c4d_manager
2024-11-29 18:14:22:  0: STDOUT:   c4d_nodes.xso64 with module net.maxon.c4d.c4d_nodes
2024-11-29 18:14:22:  0: STDOUT:   c4d_objects.xso64 with module net.maxon.c4d.c4d_objects
2024-11-29 18:14:22:  0: STDOUT:   c4d_simulation.xso64 with module net.maxon.c4d.c4d_simulation
2024-11-29 18:14:22:  0: STDOUT:   c4d_viewport_render.xso64 with module net.maxon.c4d.c4d_viewport_render
2024-11-29 18:14:22:  0: STDOUT:   c4d_xtensions.xso64 with module net.maxon.c4d.c4d_xtensions
2024-11-29 18:14:22:  0: STDOUT:   ca.xso64 with module net.maxon.c4d.ca
2024-11-29 18:14:22:  0: STDOUT:   clothilde.xso64 with module net.maxon.c4d.clothilde
2024-11-29 18:14:22:  0: STDOUT:   dynamics.xso64 with module net.maxon.c4d.dynamics
2024-11-29 18:14:22:  0: STDOUT:   hair.xso64 with module net.maxon.c4d.hair
2024-11-29 18:14:22:  0: STDOUT:   interop_bpexchange.xso64 with module net.maxon.c4d.interop_bpexchange
2024-11-29 18:14:22:  0: STDOUT:   interop_forger.xso64 with module net.maxon.c4d.interop_forger
2024-11-29 18:14:22:  0: STDOUT:   interop_misc.xso64 with module net.maxon.c4d.interop_misc
2024-11-29 18:14:22:  0: STDOUT:   interop_moves.xso64 with module net.maxon.c4d.interop_moves
2024-11-29 18:14:22:  0: STDOUT:   io_alembic.xso64 with module net.maxon.c4d.io_alembic
2024-11-29 18:14:22:  0: STDOUT:   io_cadexchange.xso64 with module net.maxon.c4d.io_cadexchange
2024-11-29 18:14:22:  0: STDOUT:   io_collada14.xso64 with module net.maxon.c4d.io_collada14
2024-11-29 18:14:22:  0: STDOUT:   io_collada15.xso64 with module net.maxon.c4d.io_collada15
2024-11-29 18:14:22:  0: STDOUT:   io_compositing.xso64 with module net.maxon.c4d.io_compositing
2024-11-29 18:14:22:  0: STDOUT:   io_fbx.xso64 with module net.maxon.c4d.io_fbx
2024-11-29 18:14:22:  0: STDOUT:   io_forger.xso64 with module net.maxon.c4d.io_forger
2024-11-29 18:14:22:  0: STDOUT:   io_gltf.xso64 with module net.maxon.c4d.io_gltf
2024-11-29 18:14:22:  0: STDOUT:   io_obj.xso64 with module net.maxon.c4d.io_obj
2024-11-29 18:14:22:  0: STDOUT:   io_substance.xso64 with module net.maxon.c4d.io_substance
2024-11-29 18:14:22:  0: STDOUT:   io_usd.xso64 with module net.maxon.c4d.io_usd
2024-11-29 18:14:22:  0: STDOUT:   mocca.xso64 with module net.maxon.c4d.mocca
2024-11-29 18:14:22:  0: STDOUT:   mograph.xso64 with module net.maxon.c4d.mograph
2024-11-29 18:14:22:  0: STDOUT:   motioncam.xso64 with module net.maxon.c4d.motioncam
2024-11-29 18:14:22:  0: STDOUT:   motiontracker.xso64 with module net.maxon.c4d.motiontracker
2024-11-29 18:14:22:  0: STDOUT:   pbd_simulations.xso64 with module net.maxon.pbd_simulations
2024-11-29 18:14:22:  0: STDOUT:   python.xso64 with module net.maxon.c4d.python
2024-11-29 18:14:22:  0: STDOUT:   redshift.xso64 with module net.maxon.c4d.redshift
2024-11-29 18:14:22:  0: STDOUT:   redshift4c4d.xso64 with module com.redshift3d.redshift4c4d
2024-11-29 18:14:22:  0: STDOUT:   sculpt.xso64 with module net.maxon.c4d.sculpt
2024-11-29 18:14:22:  0: STDOUT:   shader.xso64 with module net.maxon.c4d.shader
2024-11-29 18:14:22:  0: STDOUT:   sketch.xso64 with module net.maxon.c4d.sketch
2024-11-29 18:14:22:  0: STDOUT:   sky.xso64 with module net.maxon.c4d.sky
2024-11-29 18:14:22:  0: STDOUT:   sla.xso64 with module net.maxon.c4d.sla
2024-11-29 18:14:22:  0: STDOUT:   thinking_particles.xso64 with module net.maxon.c4d.thinking_particles
2024-11-29 18:14:22:  0: STDOUT:   tool_system_hybrid.xso64 with module net.maxon.c4d.tool_system_hybrid
2024-11-29 18:14:22:  0: STDOUT:   uvviewport.xso64 with module net.maxon.c4d.uvviewport
2024-11-29 18:14:22:  0: STDOUT:   volumes.xso64 with module net.maxon.c4d.volumes
2024-11-29 18:14:22:  0: STDOUT:   xpressocore.xso64 with module net.maxon.c4d.xpressocore
2024-11-29 18:14:22:  0: STDOUT: Avahi version 0.8 detected
2024-11-29 18:14:24:  0: STDOUT: argv[0] = (null)
2024-11-29 18:14:24:  0: STDOUT: argv[1] = -nogui
2024-11-29 18:14:24:  0: STDOUT: argv[2] = -noopengl
2024-11-29 18:14:24:  0: STDOUT: argv[3] = -redshift-log-console
2024-11-29 18:14:24:  0: STDOUT: argv[4] = Debug
2024-11-29 18:14:24:  0: STDOUT: argv[5] = -DeadlineConnect 38051 1732904061 '/var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/674a047a8c2f7e920f7f61cd/importTest_tempGA3on0/importCheck.txt'
2024-11-29 18:14:24:  0: STDOUT: No supported drawport type found. Requested types: directx ({directx})
1 Like

I talk to myself about this here, would love to see it implemented into Deadline…

hey @anthonygelatka I have trouble following your post but lets sort this out. I managed to get very far. I think the last hurdle might be something else.

loaded redshift everything as if I launched it manually then stopped and timed out:

my idea:

c4d documentation mentions to load the env variables before loading a job from the file setup_c4d_env

cd /opt/maxon/cinema4dr2024.501/bin && . ./setup_c4d_env
/opt/maxon/cinema4dr2024.501/bin/Commandline -render /mnt/x/deadtest/cube-01.c4d

I noticed that the Cinema4DBatch.py script doesn’t have the right env variables.

what I did:

  1. I modified the script in \\your-server\DeadlineRepository10\plugins\Cinema4DBatch called Cinema4DBatch.py in Line 222 with the correct ENV VARS from c4d documentation.

        # correct environment variables for Linux
        # /opt/maxon/cinema4dr2024.501/bin
        # C4D_BASE=$PWD/..
        # export LD_LIBRARY_PATH=$C4D_BASE/lib64:$C4D_BASE/bin/resource/modules/python/libs/python311.linux64.framework/lib64
        # export PATH=$PATH:$C4D_BASE/bin
        # export LC_NUMERIC=en_US.UTF-8
        # export PYTHONPATH=$C4D_BASE/bin/resource/modules/python/libs/python311.linux64.framework/lib/python3.11/lib-dynload


        if SystemUtils.IsRunningOnLinux() and self.Plugin.GetBooleanConfigEntryWithDefault( "SetLinuxEnvironment", True ):
            c4dDir = os.path.dirname( self.Cinema4DRenderExecutable )
            c4dBase = os.path.dirname(c4dDir)  # Get parent directory as C4D_BASE
            ldPath = os.environ.get( "LD_LIBRARY_PATH", "" )
            pyPath = os.environ.get( "PYTHONPATH", "" )
            path = os.environ.get( "PATH", "" )
            
            modLdPath = "%s/lib64:%s/bin/resource/modules/python/libs/python311.linux64.framework/lib64" % (c4dBase, c4dBase)
            modPyPath = "%s/bin/resource/modules/python/libs/python311.linux64.framework/lib/python3.11/lib-dynload" % c4dBase
            modPath = "%s:%s/bin" % (path, c4dBase)
            
            self.Plugin.LogInfo( "[C4D_BASE] set to %s" % c4dBase )
            self.Plugin.LogInfo( "[LD_LIBRARY_PATH] set to %s" % modLdPath )
            self.Plugin.LogInfo( "[PYTHONPATH] set to %s" % modPyPath )
            self.Plugin.LogInfo( "[PATH] set to %s" % modPath )
            self.Plugin.SetProcessEnvironmentVariable( "LD_LIBRARY_PATH", modLdPath )
            self.Plugin.SetProcessEnvironmentVariable( "PYTHONPATH", modPyPath )
            self.Plugin.SetProcessEnvironmentVariable( "PATH", modPath )
            self.Plugin.SetProcessEnvironmentVariable( "LC_NUMERIC", "en_US.UTF-8" )

it launches further then into redshift but then loads the job and then… does nothing.


2024-12-02 11:15:18:  0: STDOUT: Redshift Debug: PreviewScheduler: Caches Cleared
2024-12-02 11:15:18:  0: INFO: Received Token: 1733138105
2024-12-02 11:15:18:  0: INFO: Connected to Cinema 4D
2024-12-02 11:15:19:  0: INFO: Set Verbose to True
2024-12-02 11:15:19:  0: STDOUT: Loading Scene: /mnt/x/deadtest/cube-01-rs_0003.c4d
2024-12-02 11:15:40:  Connecting to Worker log: tm-8
Success

2024-12-05 17:56:02:  0: STDOUT: Loading Scene: /mnt/x/deadtest/cube-01-rs_0004.c4d
2024-12-05 17:56:02:  0: INFO: Loaded Scene
2024-12-05 17:56:02:  0: STDOUT: Running Path Mapping
2024-12-05 17:56:02:  0: STDOUT: Setting texture paths to: []
2024-12-05 17:56:02:  0: STDOUT: RS Sky: RS Sky
2024-12-05 17:56:02:  0: STDOUT:     RS Light: RS Sun
2024-12-05 17:56:02:  0: STDOUT: Plane: Plane
2024-12-05 17:56:02:  0: STDOUT:     Phong: Phong
2024-12-05 17:56:02:  0: STDOUT: Camera: Camera
2024-12-05 17:56:02:  0: STDOUT:     Target: Target
2024-12-05 17:56:03:  0: STDOUT: RS Light: RS Dome Light
2024-12-05 17:56:03:  0: STDOUT: Cube: Cube
2024-12-05 17:56:03:  0: STDOUT:     Phong: Phong
2024-12-05 17:56:03:  0: STDOUT: Collected 0 filepath(s)
2024-12-05 17:56:04:  0: INFO: Done Path Mapping
2024-12-05 17:56:04:  0: Done executing plugin command of type 'Start Job'
2024-12-05 17:56:04:  0: Plugin rendering frame(s): 0-199
2024-12-05 17:56:04:  0: Executing plugin command of type 'Render Task'
2024-12-05 17:56:04:  0: INFO: Render Tasks called
2024-12-05 17:56:04:  0: INFO: Pre Build Script
2024-12-05 17:56:04:  0: CheckPathMapping: Swapped "X:\deadtest\render\cube-01-rs\" with "/mnt/x/deadtest\render\cube-01-rs\"
2024-12-05 17:56:04:  0: INFO: Validating the path: '/mnt/x/deadtest/render/cube-01-rs/'
2024-12-05 17:56:04:  0: INFO: Validating the path: '/var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/6751e398991a2e0a8f283bba/c4dOutput_tempZynvc0'
2024-12-05 17:56:04:  0: INFO: Rendering main output to local drive, will copy files and folders to final location after render is complete
2024-12-05 17:56:04:  0: INFO: 
2024-12-05 17:56:04:  0: STDOUT: Running Script: /var/lib/Thinkbox/Deadline10/workers/tm-8/jobsData/6751e398991a2e0a8f283bba/thread0_temprTXi30/c4d_Batch_Script.py
2024-12-05 17:57:07:  Connecting to Worker log: tm-8
2024-12-05 18:04:55:  Connecting to Worker log: tm-8

here it stops…

No really answer to your problem but Deadline has mechanism of setting environment before plugin is loaded. It automatically starts JobPreLoad.py (if this file exists in your plugin) where you can set your environment variables or call an external system file where you do it. More info here Application Plugins — Deadline 10.4.0.10 documentation