Script alert when submitting job

Post Reply
Bret Karson
Posts: 14
Joined: Thu Mar 15, 2018 9:53 am

Script alert when submitting job

Post by Bret Karson »

Yesterday when trying out Afanasy with AfterFX everything worked quite well. But today I get this error:
Image

Somehow the original aep-project file gets copied with the error and is being used for the render job. Maybe this is standard AfterFX behaviour on script error.

Also the output task log shows this:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
The directory name is invalid.
Which again seems to do with spaces in folder paths.
All worked relatively fine yesterday, but this new error happened without seemingly changing anything regarding AfterFX settings.

Tried to delete CGRU and all environment variables and then start from zero again, but problem persists.
User avatar
timurhai
Site Admin
Posts: 910
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Script alert when submitting job

Post by timurhai »

Strange.
I can`t say anything remotely, especially because MS Windows is not my common OS (i am using for work, development and at home Linux OS).
You can try to ask some Windows admin who is familiar with CMD scripts.

But periodically i have a deal with MS Windows admins that handle render farm support.
As from this experience i can say:
1. Install soft, that you will use on farm in some other folder (not in "c:\Program Files\).
2. Any paths (and soft installation folders) should not have spaces, all characters are ASCII and lowercase.
3. Do not modify system environment. If you want to launch some soft with some "VAR=VALUE", create a .cmd script, that will set define variable at first than launch soft:

Code: Select all

set "VAR=VALUE"
%program_name%
In other case there will be lots of trash (with time) in your system environment, some incompatible things can happen (various Python versions), harder to debug.

This rules will make system (and render farm) administration much more clean, plain and simple.

ps
Due such experience, CGRU has no installer at all, you can simple to un-archive it and run, or simple to delete if not needed, CGRU does not modify system, does not add anything to the system, if you are not running it, it has effect to the system. This is most likely "Linux way" approach, sometimes this is called "Portable Version" on MS Windows.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Bret Karson
Posts: 14
Joined: Thu Mar 15, 2018 9:53 am

Re: Script alert when submitting job

Post by Bret Karson »

In Windows, various software is usually installed under the "Program Files" folder. And yes, it contains a space unfortunately.
There is an environment variable that always points to this folder: %ProgramFiles%, and %ProgramFiles(x86)% for 32bit applications.

I'm not sure if incorporating the variable would help improve the CGRU system though.
Post Reply