Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API Errors on farm

3 REPLIES 3
Reply
Message 1 of 4
UConn_DMD1
833 Views, 3 Replies

API Errors on farm

Hello,

I'm trying to get Maya working with Deadline to be able to submit standard Maya files for rendering. Rendering ASS files already works, but whenever I try to utilize the Maya submission the job fails. I've gotten all of the Maya dependency kinks out of the way, so this is the only error left (apologies for the length):

2018-03-31 03:26:11:  0: STDOUT: API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 268
2018-03-31 03:26:11:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:11:  0: STDOUT: API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 268
2018-03-31 03:26:11:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:11:  0: STDOUT: API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 268
2018-03-31 03:26:11:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:11:  0: STDOUT: API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 268
2018-03-31 03:26:11:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 648
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: API error detected in plugins/mtoa/Main.cpp at line 1046
2018-03-31 03:26:15:  0: STDOUT: : (kFailure): Unexpected Internal Failure
2018-03-31 03:26:15:  0: STDOUT: mel: mel: mel: mel: mel: mel: 00:00:05   362MB ERROR   | Failed to import python module 'arnold'

This is the environment for the blades:

####################
# System Variables #
####################

export MAYA_LOCATION=/mnt/software/autodesk/maya2018
export ADSKFLEX_LICENSE_FILE=@[redacted]
export MAYA_DISABLE_CIP=1
export MAYA_DISABLE_CER=1
export MAYA_DISABLE_CLIC_IPM=1
PATH=$MAYA_LOCATION:$MAYA_LOCATION/bin:$PATH

#######################
# RenderMan Variables #
#######################

export PIXAR_LICENSE_FILE=9010@[redacted]
export RMANTREE=/mnt/software/pixar/RenderManProServer-21.7
export RMSTREE=/mnt/software/pixar/RenderManForMaya-21.7-maya2018
RMANDESC=$RMANTREE/etc
PATH=$RMSTREE/bin:$PATH
MAYA_PLUG_IN_PATH=$RMSTREE/plug-ins

####################
# Arnold Variables #
####################

ARNPATH=/mnt/software/mtoa/2018
ARNDESC=$ARNPATH
export ARNOLD_PLUGIN_PATH=$ARNPATH/shaders
PATH=$ARNPATH/bin:$PATH
MAYA_PLUG_IN_PATH=$ARNPATH/plug-ins:$ARNPATH/bin:$MAYA_PLUG_IN_PATH
# ^ Seemed to resolve renderview/libmtoa_api loading errors.

#################
# Final Exports #
#################

export PATH
export MAYA_RENDER_DESC_PATH=$RMANDESC:$ARNDESC
export MAYA_PLUG_IN_PATH

Any help would be appreciated! Arnold Core 5.0.2.4 | MtoA 2.0.1.3

Cheers,

Mike

Labels (4)
3 REPLIES 3
Message 2 of 4
Stephen.Blair
in reply to: UConn_DMD1

Where's the MtoA module file? Are you not using it? (I see you set MAYA_PLUGIN_PATH, which normally is set by Maya when it loads a module) Also, the module file sets PATH

It's Python related. You can't even import the arnold Python module. If you really don't use the module file, you'll have to also set MAYA_SCRIPTS_PATH and PYTHONPATH



// Stephen Blair
// Arnold Renderer Support
Message 3 of 4
UConn_DMD1
in reply to: Stephen.Blair

I wasn't sure if the module file would be read in a headless state on the farm, so I was trying to be more specific with the environment variables. I'm also never going to be using multiple versions of software at the same time so I felt this might be easier to maintain.

So I should add in the scripts directory as defined in the module file? And the PYTHONPATH should also reference Maya's python?

Cheers,

Mike

Message 4 of 4
UConn_DMD1
in reply to: UConn_DMD1

Thanks @Stephen Blair, I switched to using the module file (commented out the Maya plugin path variables) and added the location to the module path. Now Arnold renders fine, minus the fact that there are watermarks. I've defined the global variable for ADSKFLEX_LICENSE_FILE in the sourced file, and I also tried adding it to the Arnold module file but no dice. Is there something I'm missing here? The blades are CentOS 7 (as is my workstation which handles this fine). I don't need to make a local ~/.flexlmrc file do I? I had thought that was a macOS thing.

Update: It would actually seem that either deadline or Maya made a .flexlmrc file, as I don't remember ever making one for the user that controls the render job... Now I don't know what to do. This could possibly be because I haven't set up Maya licenses on the farm... time to hit up studiosysadmins.

Cheers,

Mike

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report