Cant find custom shell files

General discussions and questions.
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

ok my Bad i didn't restart afrender
but i did after and i try to render , it lights up yellow but then render machine went offline in afanasy
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

And also throws this error in output
Last edited by giel_4321 on Mon Aug 17, 2020 4:42 pm, edited 2 times in total.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

So you should discover, why machine becomes offline.
See server log and afrender, afserver processes outputs.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

import error no module named services.nuke
import error no module named services.services

AFRender interrupt signal catched
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

You have modified CGRU native files?
Or you are modifying PYTHON_PATH or PYTHON_HOME?
https://cgru.readthedocs.io/en/latest/c ... -variables
CGRU uses Python, and it shout set properly up.

If you are modifying PYTHON_PATH, you should append something to it, not reset.

Code: Select all

set PYTHON_PATH = /my/libs:${PYTHON_PATH}
instead of

Code: Select all

set PYTHON_PATH = /my/libs
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

Afanasy setup appending its modules to PYTHON_PATH
https://github.com/CGRU/cgru/blob/maste ... tup.sh#L11

Later your afrender can't import them.
So your afrender PYTHON_PATH is definitely modified.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

its very strange that one system working in the same network without adding any extra files in cgru it renders out the files where as in render blades its not working the same way.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

If one system is working and the other does not - just find the difference between systems.

But the best approach is not to modify environment "system wide".
As one software can break other software environment.

Better to modify just only CGRU environment by adding a custom setup file.
And modify your render software (artist) environment.
Keeping the Linux system clean (no /etc/profile, /etc/environment, /etc/bashrc or /etc/[WHATEVER] modifications).
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
giel_4321
Posts: 22
Joined: Tue Aug 11, 2020 1:29 am

Re: Cant find custom shell files

Post by giel_4321 »

ok so we were actually running 2.2.3 and now we were upgrading to 2.3.1

Today i found that stoping the afrender.service and starting the ./_afrender from the cgru solved the Rendering issue and all the environment issue not finding shell scripts etc.

But if I start the service back on the error ahows up again.

what am i doing wrong here?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Cant find custom shell files

Post by timurhai »

As i told before, you are using /etc/profile - this is wrong!
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply