question

UConn DMD avatar image
UConn DMD asked ·

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

mtoaarnold5render farmrender machines
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

UConn DMD avatar image
UConn DMD answered ·

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

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

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

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

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

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.