Afanasy on Ubuntu 20.04

Installation and configuration.
Post Reply
User avatar
romanvolodin
Posts: 2
Joined: Fri May 15, 2020 4:42 pm

Afanasy on Ubuntu 20.04

Post by romanvolodin » Fri May 15, 2020 5:00 pm

I've found out that render user group exists in Ubuntu 20.04 by default. So Afanasy can't create user render on installation.
Is there a way to fix this situation?
May be some workaround for Afanasy installation or may be I just can delete this user group? (No idea what this group is for.)
Any info would be helpful.

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

Re: Afanasy on Ubuntu 20.04

Post by timurhai » Mon May 18, 2020 11:59 am

Hi
Try to type this command:

Code: Select all

id render
What is the output?
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

User avatar
romanvolodin
Posts: 2
Joined: Fri May 15, 2020 4:42 pm

Re: Afanasy on Ubuntu 20.04

Post by romanvolodin » Mon May 18, 2020 12:45 pm

On fresh Ubuntu 20.04 installation (I'm using Virtualbox):

Code: Select all

$ id render
id: ‘render’: no such user
$ grep render /etc/group
render:x:109:
I've run the following command:

Code: Select all

$ sudo delgroup --system --only-if-empty render
Removing group `render' ...
Done.
Quote from delgroup man:
--system
Only delete if user/group is a system user/group. This avoids
accidentally deleting non-system users/groups. Additionally, if
the user does not exist, no error value is returned. This option
is mainly for use in Debian package maintainer scripts.

--only-if-empty
Only remove if no members are left.
And then Afanasy was successfully installed.

After Afanasy install:

Code: Select all

$ id render
uid=1001(render) gid=1001(render) groups=1001(render)
$ grep render /etc/group
render:x:1001:

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

Re: Afanasy on Ubuntu 20.04

Post by timurhai » Mon May 18, 2020 2:40 pm

Just installed a fresh 20.04 on a virtual box too.
Hm, new group "render" appeared in 20.04 just after installation.
And i checked that there are no users in it.
So i do not know why it is needed. Most probably that it is not.

It is not breaks Afanasy installation, but it can't create a "render" user during installation.
So systemd scripts can launch afserver and afrender under render user that does not exist.

After installation, i just created "render" user by

Code: Select all

sudo useradd render -g render -m
to put it into existing group.
And after reboot, afserver and afrender was started by systemd.

I think i should check "render" group in the installation scripts, and use existing if it exists.
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

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

Re: Afanasy on Ubuntu 20.04

Post by timurhai » Mon May 18, 2020 4:33 pm

This fixes the issue: (i checked on 20.04)
https://github.com/CGRU/cgru/commit/3bb ... d325800c57
Timur Hairulin
CGRU 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest