Permission issue while rendering

General discussions and questions.
Post Reply
Khiladi
Posts: 34
Joined: Mon Jul 06, 2020 6:49 am

Permission issue while rendering

Post by Khiladi »

Hi Timur,

I have dedicated machines for my render farm, all of them are working fine. They use a render user who has access to our output directory. But now I want to add my artist's machines on farm also, what would be the best possible way.

I tried installing cgru on artist's machine and started afrender service with render user login only. But still it is unable to write in that central output directory, farm is throwing these errors:

Code: Select all

Warning! Unexpected error while opening /home/render/.cgru/config.json.
Error: [Errno 2] No such file or directory: '/home/render/.cgru/config.json'
Unknown command: verification_id
Unknown command: license_id
Unknown command: lock
Unknown command: product_id
Unknown command: server_platform
Unknown command: support_expiry
Unknown command: houdini_version
Unknown command: available
Unknown command: count
Unknown command: ip_mask
Unknown command: display
Unknown command: }
Trying to set "Verbose Level" to 1 on mantra
Trying to set "Alfred Style Progress" on mantra
/out/bcd001_0183_test: RopNode.render: frame 1042.0; Started at: 14:38:44
[14:40:30] Generating Image: /outpath/file.1042.exr (1439x809)
[14:40:30] Plane[C]: 0 Cf+Af[4] (16-bit float)
[14:40:30] mantra: Mantra tile imager open failure: Tiled Image File: 0 file []
File: /outpath/file.1042.exr
[14:40:30] mantra: Could not open imager
Error: Failed to create file "/outpath/file.1042.exr : Permission denied".
103572 ThreadId=0x7f0aad3fe700: Fatal error: Segmentation fault
103572: Fatal error: Segmentation fault (sent by pid 103572)
-- TRACEBACK BEGIN --
Traceback from mantra 18.5.462 (Compiled on linux-x86_64-gcc6.3):
stackTrace() 
signalCallback(UTsignalHandlerArg) 
UT_Signal::UT_ComboSignalHandler::operator()(int, siginfo_t*, void*) const 
UT_Signal::processSignal(int, siginfo_t*, void*) 
_L_unlock_13 
(anonymous namespace)::system_error_category::~system_error_category() 
__cxa_finalize 
__do_global_dtors_aux 
-- TRACEBACK END --
Traceback (most recent call last):
File "/cgru.3.1.0/plugins/houdini/hrender_af.py", line 315, in 
ignore_inputs=ignoreInputs
File "/opt/hfs18.5.462/houdini/python2.7libs/hou.py", line 69031, in render
return _hou.RopNode_render(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Error: Command Exit Code: 139
Any lead would be appreciated
Thanks
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Permission issue while rendering

Post by timurhai »

Hi!
On permissions problem - user that afrender service running by should have write access to the ouput folder.
May be your "/outpath/" was created by artist user with permissions that deny other users to write.
Your artists users should create folders with permissions (mask) that allows render user to write.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Khiladi
Posts: 34
Joined: Mon Jul 06, 2020 6:49 am

Re: Permission issue while rendering

Post by Khiladi »

Hi,

Yes indeed it was permission issue.

What I did was:
  • Made the user who was responsible for rendering owner of the cgru.
  • Set user in systemd afrender.service to the render user.
Thanks
Post Reply