Can't set af_servername without GUI
Posted: Wed May 24, 2017 8:42 am
Our renders machines (agents) setup automatically and run as a windows services.
Thus we need to set 'af_servername' using a script (without GUI).
For that purpose we use C:\Users\Administrator\AppData\Roaming\cgru\config.json.
In this file our script sets af_servername = "10.163.2.222"
In GUI setting servername is 10.163.2.20
The result:
The render cannot connect to the server and only when we manually change the server in GUI to 10.163.2.222 it connects successfully.
running _afcmd.cmd prints the following strange lines:
Parsing config file ‘C:\Users\Administrator\AppData\Roaming\cgru/config.json’:
af_servername = ‘10.163.2.20’
As I mentioned in this file af_servername = "10.163.2.222"
Please help.
Thanks
Victor
Thus we need to set 'af_servername' using a script (without GUI).
For that purpose we use C:\Users\Administrator\AppData\Roaming\cgru\config.json.
In this file our script sets af_servername = "10.163.2.222"
In GUI setting servername is 10.163.2.20
The result:
The render cannot connect to the server and only when we manually change the server in GUI to 10.163.2.222 it connects successfully.
running _afcmd.cmd prints the following strange lines:
Parsing config file ‘C:\Users\Administrator\AppData\Roaming\cgru/config.json’:
af_servername = ‘10.163.2.20’
As I mentioned in this file af_servername = "10.163.2.222"
Please help.
Thanks
Victor