Afserver doesn't starts on Debian 10

General discussions and questions.
Post Reply
User avatar
ITdreamer
Posts: 15
Joined: Tue Oct 31, 2017 1:13 pm

Afserver doesn't starts on Debian 10

Post by ITdreamer »

Hi

I can't understand what's wrong. On Debian 9 we didn't have any problems.
Few days ago we've updated our server to Debian 10.

There wasn't build for Debian 10 on the official site, so we've downloaded and instaled packages for Debian 9.
All packages installed without problems.

But when I check the afserver.session status i get this:

$ sudo systemctl status afserver.service
● afserver.service - Afanasy server daemon
Loaded: loaded (/opt/cgru/afanasy/systemd/afserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-09-01 18:31:23 MSK; 2min 39s ago
Process: 574 ExecStart=/opt/cgru/start/AFANASY/_afserver.sh -log_nodate (code=exited, status=217/USER)
Main PID: 574 (code=exited, status=217/USER)

Sep 01 18:31:23 vfxserver01 systemd[1]: Started Afanasy server daemon.
Sep 01 18:31:23 vfxserver01 systemd[574]: afserver.service: Failed to determine user credentials: No such process
Sep 01 18:31:23 vfxserver01 systemd[574]: afserver.service: Failed at step USER spawning /opt/cgru/start/AFANASY/_afserver.sh: No such process
Sep 01 18:31:23 vfxserver01 systemd[1]: afserver.service: Main process exited, code=exited, status=217/USER
Sep 01 18:31:23 vfxserver01 systemd[1]: afserver.service: Failed with result 'exit-code'.

Ok. I've downloaded the latest sources and used and compiled them using the instruction from here
https://cgru.readthedocs.io/en/latest/i ... ject-build

And again the same error. ((

What's the problem? I can't understand.

By the way!
If I go and start /opt/cgru/start/AFANASY/_afserver.sh manually it STARTS.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afserver doesn't starts on Debian 10

Post by timurhai »

Hi,
It looks like some SystemD error:
https://github.com/CGRU/cgru/blob/maste ... er.service

May be user render was not created automatically?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
ITdreamer
Posts: 15
Joined: Tue Oct 31, 2017 1:13 pm

Re: Afserver doesn't starts on Debian 10

Post by ITdreamer »

Yes, thats it.

Thanks a lot

By the way
I am trying to initialize some environment variables at the program startup.
So I've created a file /cgru/setup_cg.sh:

#!/bin/bash
export OCIO="/mnt/Tools/OCIO/aces_1.1/config.ocio"
export TMP="/mnt/${HOSTNAME}/Temp"
export TMPDIR="/mnt/${HOSTNAME}/Temp"

The problem is that I see that only OCIO initializes during startup. The TMP and TMPDIR does not.
I understand that the problem is in $HOSTNAME variable, but I don't know how to fix it. Can you help?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afserver doesn't starts on Debian 10

Post by timurhai »

Hm, I never used HOSTNAME on such early init scripts.
You should dig inet to see when it is initialized.

But i can give you advice, use minimal setup on such early and global stages.
You can setup aces and temps when you really need it.

For example when we launch any soft, a special scrips is sourced.
There can be setup for such things as color-spaces and temps.

So we setup aces on Houdini or Nuke start, and it definitely not needed on afrender start.
Better to append PATH in /cgru/setup_cg.sh and override nuke and houdini commands, that will source your studio setup and then launch software.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
ITdreamer
Posts: 15
Joined: Tue Oct 31, 2017 1:13 pm

Re: Afserver doesn't starts on Debian 10

Post by ITdreamer »

Timur, thanks a lot for your time.

I've put these variables in software_setup, so it's OK now.

Ah, by the way Is there any way ro remove some render clients from the renders list?
I have some machines which are in the list of renders, but the are old and even don't exist, but they still in the list of renders in Afanasy in Offline, of course.
Can I somehow remove them from the list?

Thanks a lot
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Afserver doesn't starts on Debian 10

Post by timurhai »

Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
ITdreamer
Posts: 15
Joined: Tue Oct 31, 2017 1:13 pm

Re: Afserver doesn't starts on Debian 10

Post by ITdreamer »

Thanks, man!
Post Reply