Lost all render pools on restart

General discussions and questions.
Post Reply
Anti-Distinctlyminty
Posts: 23
Joined: Sat Jan 08, 2022 4:15 pm

Lost all render pools on restart

Post by Anti-Distinctlyminty »

Our server had an expected shutdown and all the organization of the pools were lost. I have the stdout from that session.
It says "0 pools found".
Is it reading from a store file in C:/temp that is occasionally removed?

Code: Select all

Compilation date = 'Feb 15 2023 15:22:36'
CGRU version = '3.3.1'
Afanasy build version = '3.3.1'
Afanasy build revision = 'b75c1cb50dacbb9e0fbd20fb18c9b9ff0b2ce9f4'
Python version = '3.9.13'
Wed 09 Aug 11:05.02: WARNING Config file does not exist: "C:\RezCache\cgru\3.3.0-b75c1cb\98f2\a\cgru\config.json"
Wed 09 Aug 11:05.02: WARNING Config file does not exist: "C:\Users\LWH\AppData\Roaming\cgru/config.json"
Wed 09 Aug 11:05.02: INFO    Creating folder: c:/temp/afanasy\pools
Database connection "AFDB_update" is not working.
Wed 09 Aug 11:05.02: INFO    Reading store file: "c:/temp/afanasy\server.json"
AFERROR: AFDB_upTables: Database connect failed: connection to server at "localhost" (::1), port 5432 failed: FATAL:  password authentication failed for user "afadmin"

Wed 09 Aug 11:05.02: INFO    Getting pools from store...
Wed 09 Aug 11:05.02: INFO    0 pools found.
Wed 09 Aug 11:05.02: INFO    0 pools registered from store.
Wed 09 Aug 11:05.02: INFO    Root pool created: P['/':1]
Wed 09 Aug 11:05.02: INFO    Getting renders from store...
Wed 09 Aug 11:05.02: INFO    10 renders found.
Render offline registered - "pc2036".
Wed 09 Aug 11:05.02: ERROR   Render pool '/rs' does not exist.
Render offline registered - "pc1928".
Wed 09 Aug 11:05.02: ERROR   Render pool '/k' does not exist.
Render offline registered - "pc1929".
Wed 09 Aug 11:05.02: ERROR   Render pool '/k' does not exist.
Render offline registered - "pc1922".
Wed 09 Aug 11:05.02: ERROR   Render pool '/CPU' does not exist.
Render offline registered - "pc2037".
Wed 09 Aug 11:05.02: ERROR   Render pool '/rs' does not exist.
Render offline registered - "pc1921".
Wed 09 Aug 11:05.02: ERROR   Render pool '/k' does not exist.
Render offline registered - "pc2035".
Wed 09 Aug 11:05.02: ERROR   Render pool '/rs' does not exist.
Render offline registered - "pc2038".
Wed 09 Aug 11:05.02: ERROR   Render pool '/rs' does not exist.
Render offline registered - "rendernode16".
Wed 09 Aug 11:05.02: ERROR   Render pool '/CPU' does not exist.
Render offline registered - "pc1927".
Wed 09 Aug 11:05.02: ERROR   Render pool '/CPU' does not exist.
Wed 09 Aug 11:05.02: INFO    10 renders registered.
Wed 09 Aug 11:05.02: INFO    Getting users from store...
Wed 09 Aug 11:05.02: INFO    0 users found.
Wed 09 Aug 11:05.02: INFO    0 users registered from store.
Wed 09 Aug 11:05.02: INFO    Getting branches from store...
Wed 09 Aug 11:05.02: INFO    1 branches found.
Wed 09 Aug 11:05.02: ERROR   Can't process parent of a stored branch:
/C_
/
Wed 09 Aug 11:05.02: INFO    0 branches registered from store.
Wed 09 Aug 11:05.02: INFO    Getting jobs from store...
Wed 09 Aug 11:05.02: INFO    132 jobs found.
AFERROR: Can't get file:
c:/temp/afanasy\jobs\0\1.afanasy\block0_tasks.json
No such file or directory
Wed 09 Aug 11:05.02: INFO    System job retrieved from store.
Wed 09 Aug 11:05.02: INFO    Root branch constructed.
Wed 09 Aug 11:05.02: New branch registered: /[1]
Wed 09 Aug 11:05.02: INFO    Root branch created.
Wed 09 Aug 11:05.02: INFO    Job restored (1 of 132):"afanasy"[1]: afadmin[0] - 15630 bytes.Wed 09 Aug 11:05.02: New job user registered: #1:99 afadmin j0/0 r0/-1 c0  - 1281 bytes.
...
User avatar
timurhai
Site Admin
Posts: 913
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Lost all render pools on restart

Post by timurhai »

Hello!
On start your server created a folder for pools:

Code: Select all

Wed 09 Aug 11:05.02: INFO    Creating folder: c:/temp/afanasy\pools
So no pools was stored before.
You should look at server logs, why it can't create a folder.
May be permissions problem.

ps
Better not to use Windows for any servers.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Anti-Distinctlyminty
Posts: 23
Joined: Sat Jan 08, 2022 4:15 pm

Re: Lost all render pools on restart

Post by Anti-Distinctlyminty »

Thank you for the reply Timur. Linux may be an option, but I am currently compiling my own on Windows so compiling is non-trivial.
I will look into the permissions issue.
Anti-Distinctlyminty
Posts: 23
Joined: Sat Jan 08, 2022 4:15 pm

Re: Lost all render pools on restart

Post by Anti-Distinctlyminty »

I changed the server to start as a scheduled task. There is an option to "Run with highest privileges", which I assume means as Administrator. All seems to be working now.

Thank you Timur.
Anti-Distinctlyminty
Posts: 23
Joined: Sat Jan 08, 2022 4:15 pm

Re: Lost all render pools on restart

Post by Anti-Distinctlyminty »

And gone again. I've now started using Non-sucking service manager to create a service. Let's see how that works.
User avatar
timurhai
Site Admin
Posts: 913
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Lost all render pools on restart

Post by timurhai »

No matter how (by what) your afserver starts.
You should find out why it can't write|read store.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Anti-Distinctlyminty
Posts: 23
Joined: Sat Jan 08, 2022 4:15 pm

Re: Lost all render pools on restart

Post by Anti-Distinctlyminty »

I have since moved the server to Linux (all clients are still windows). So far everything is much more stable.
Post Reply