• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'

C

cololo

Guest
I've got a trouble while installing PLESK 10.2 on CentOS 4.8 using command:
# wget -O - http://autoinstall.plesk.com/one-click-installer | sh

As far as I see the installer tries to add supplementary swkey-data group twice and fails on the second try:


===> Checking for previous installation ... not found.
Create user 'psaadm' and group 'psaadm'
Checking for the group 'psaadm'...
Trying to add group 'psaadm'... done

Checking for the user 'psaadm'...
Trying to add user 'psaadm'... done

Create group swkey-data
Checking for the group 'swkey-data'...
Trying to add group 'swkey-data'... done

Checking for the group 'swkey-data'...
Trying to add supplementary group 'swkey-data' for user 'psaadm'... done
Create Mail accounts
Checking for the group 'popuser'...
Trying to add group 'popuser'... done

Checking for the user 'popuser'...
Trying to add user 'popuser'... done

Checking for the user 'mhandlers-user'...
Trying to add user 'mhandlers-user'... done

Trying to got legacy variables... done
Trying to save legacy variables... done
Checking for the system groups and users necessary for ftp server...
Checking for the group 'psaftp'...
Trying to add group 'psaftp'... done

Checking for the user 'psaftp'...
Trying to add user 'psaftp'... done


ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_10.2.0_installation.log), fix and try again

***** problem report *****
ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_10.2.0_installation.log), fix and try again

ERROR: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.



~]# cat /etc/group
[...]
named:x:25:
ntp:x:38:
psaadm:x:514:psaadm
swkey-data:x:515:psaadm
popuser:x:30:
psaftp:x:516:


Could someone advise please?
 
And as far as I see supplementary group creates successfully but installer thinks different :(
 
On my test environment I see following:

Code:
# cat /etc/group | grep psaadm
psaadm:x:500:psaadm,sw-cp-server
swkey-data:x:501:psaadm
psaserv:x:503:apache,psaftp,psaadm
psasb:x:505:psaadm,apache
 
On my test environment I see following:

Code:
# cat /etc/group | grep psaadm
psaadm:x:500:psaadm,sw-cp-server
swkey-data:x:501:psaadm
psaserv:x:503:apache,psaftp,psaadm
psasb:x:505:psaadm,apache

added your lines stated above to /etc/group
but got the same error again :(

Code:
 User 'mhandlers-user' already exists

 Trying to got legacy variables... done
 Trying to save legacy variables... done
 Checking for the system groups and users necessary for ftp server...
 Checking for the group 'psaftp'...
 Group 'psaftp' already exists

 Checking for the user 'psaftp'...
 User 'psaftp' already exists


ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_10.2.0_installation.log), fix and try again

*****  problem report *****
ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_10.2.0_installation.log), fix and try again

ERROR: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.
 
Is it fresh OS installation or previously there was already installed any Plesk version?
 
Is it fresh OS installation or previously there was already installed any Plesk version?

It is fresh installation.
Of course if running installation script revert back all changes made to the system after unsuccessful attempt to install. 1st attempt to run the installation script was failed to install mysql and exited with error because there was already installed mysql from sources by the hand. After removing it I ran installation script again which now failed with the above error.

Tweaking with /etc/group and running installation script more and more didn't work because it stumbles on the same state trying to modify the group.
 
Is it fresh OS installation or previously there was already installed any Plesk version?

I have tried to install plesk on CentOS 5.6 and it succeeded with no such behavior.
So I suppose that something has changed in user/group handling utilities between CentOS4.8 and 5.6

Unfortunately I wasn't able to check how exactly Plesk installation script check/create/modify system users/groups during installation. Because script itself (parallels_installer) is in binary format and it's impossible to analyze.

Using --debug option doesn't make picture clearer.

So I need further suggestions for centos 4.8 if possible.
 
Last edited by a moderator:
Why you want to use this very old and vulnerable CentOS version instead latest 5.6 version?
 
OS: Debian 6.0 amd64
using parallels_installer_v3.10.0_build110701.11_os_Debian_6.0_x86_64
----
===> Checking for previous installation ... not found.
Create user 'psaadm' and group 'psaadm'
Checking for the group 'psaadm'...
Group 'psaadm' already exists

Checking for the user 'psaadm'...
User 'psaadm' already exists

Create group swkey-data
Checking for the group 'swkey-data'...
Group 'swkey-data' already exists

Checking for the group 'swkey-data'...
Trying to add supplementary group 'swkey-data' for user 'psaadm'... already there
Create Mail accounts
Checking for the group 'popuser'...
Group 'popuser' already exists

Checking for the user 'popuser'...
User 'popuser' already exists

Checking for the user 'mhandlers-user'...
User 'mhandlers-user' already exists

Trying to got legacy variables... done
Trying to save legacy variables... done
Checking for the system groups and users necessary for ftp server...
Checking for the group 'psaftp'...
Group 'psaftp' already exists

Checking for the user 'psaftp'...
User 'psaftp' already exists


ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_10.3.1_installation.log), fix and try again

***** problem report *****
Checking /etc/group:

psaadm:x:1001:psaadm
swkey-data:x:1002:psaadm
in the installation log is the same description as above not a single sign more.

So i follow the advice:

Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.


regards

chris
 
the users/groups exists from previous tries to install. Removing them shows the same errors:
Checking for the user 'psaftp'...
Trying to add user 'psaftp'... done


ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_10.3.1_installation.log), fix and try again
 
Code:
Installing packages
config updated
===> Updated /etc/psa/psa.conf

**** Product prep-install started.

===> Checking for previous installation ... not found.
Create user 'psaadm' and group 'psaadm'
 Checking for the group 'psaadm'...
 Group 'psaadm' already exists

 Checking for the user 'psaadm'...
 User 'psaadm' already exists

Create group swkey-data
 Checking for the group 'swkey-data'...
 Group 'swkey-data' already exists

 Checking for the group 'swkey-data'...
 Trying to add supplementary group 'swkey-data' for user 'psaadm'...  already th                                                           ere
Create Mail accounts
 Checking for the group 'popuser'...
 Group 'popuser' already exists

 Checking for the user 'popuser'...
 User 'popuser' already exists

 Checking for the user 'mhandlers-user'...
 User 'mhandlers-user' already exists

 Trying to got legacy variables... done
 Trying to save legacy variables... done
 Checking for the system groups and users necessary for ftp server...
 Checking for the group 'psaftp'...
 Group 'psaftp' already exists

 Checking for the user 'psaftp'...
 User 'psaftp' already exists


ERROR while trying to add supplementary group 'swkey-data' for user 'psa
Check the error reason(see log file: /tmp/plesk_10.3.1_installation.log)                                                                   d try again

*****  problem report *****
ERROR while trying to add supplementary group 'swkey-data' for user 'psa
Check the error reason(see log file: /tmp/plesk_10.3.1_installation.log)                                                                   d try again
Synchronizing the Debian APT package index files...

ERROR: An error occurred during performing of installation PREP actions                                                                     for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical s                                                                   or assistance.

OS: Debian 5 Lenny

Our situation:

After a failed upgrade to 10.3.1 (blank screen), we decided to try and roll-back and found ourselves not being able to reinstall plesk again. APT gives a dependency error (psa: Depends: pp-sitebuilder (>= 5.2.0) but it is not installable) and the autoinstaller gives the same swkey-data error as described above. (Using the bootstrapper also gives this PREP error)

Any ideas on how to fix this without having to reinstall from scratch?
 
No idea if it is the same problem as I had.

In my case it was a special character ":" in plesk admin password.

After changing to a "better" password the error didn't appear again.

Hope it helps

chris
 
Same Error here :( - But with Version 11

**** Product prep-install started.

===> Checking for previous installation ... not found.
Create user 'psaadm' and group 'psaadm'
Checking for the group 'psaadm'...
Group 'psaadm' already exists

Checking for the user 'psaadm'...
User 'psaadm' already exists

Create group swkey-data
Checking for the group 'swkey-data'...
Group 'swkey-data' already exists

Checking for the group 'swkey-data'...
Trying to add supplementary group 'swkey-data' for user 'psaadm'... already there
Create Mail accounts
Checking for the group 'popuser'...
Group 'popuser' already exists

Checking for the user 'popuser'...
User 'popuser' already exists

Checking for the user 'mhandlers-user'...
User 'mhandlers-user' already exists

Trying to got legacy variables... done
Trying to save legacy variables... done
Checking for the system groups and users necessary for ftp server...
Checking for the group 'psaftp'...
Group 'psaftp' already exists

Checking for the user 'psaftp'...
User 'psaftp' already exists


ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_11.0.9_installation.log), fix and try again

***** problem report *****
ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_11.0.9_installation.log), fix and try again
Synchronizing the Debian APT package index files...

ERROR: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.

Tried to install on Debian 6.0..

# cat /etc/group | grep psaadm
psaadm:x:10007:psaadm
swkey-data:x:10008:psaadm


In my case it was a special character ":" in plesk admin password.
No Idea how to check or change this.. I didn't get asked for a password
 
Last edited by a moderator:
got same problem updating to 11.0.9

START Bootstrapper 11.0.9 prep-install for BASE AT Tue Jun 18 21:20:16 CEST 2013

**** Product prep-install started.

===> Checking for previous installation ... not found.
Create user 'psaadm' and group 'psaadm'
Checking for the group 'psaadm'...
Group 'psaadm' already exists

Checking for the user 'psaadm'...
User 'psaadm' already exists

Create group swkey-data
Checking for the group 'swkey-data'...
Group 'swkey-data' already exists

Checking for the group 'swkey-data'...
Trying to add supplementary group 'swkey-data' for user 'psaadm'... done
Create Mail accounts
Checking for the group 'popuser'...
Group 'popuser' already exists

Checking for the user 'popuser'...
User 'popuser' already exists

Checking for the user 'mhandlers-user'...
User 'mhandlers-user' already exists

Trying to got legacy variables... done
config updated
===> Updated /etc/psa/psa.conf
Trying to save legacy variables... done
Checking for the system groups and users necessary for ftp server...
Checking for the group 'psaftp'...
Group 'psaftp' already exists

Checking for the user 'psaftp'...
User 'psaftp' already exists


ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_11.0.9_installation.log), fix and try again


**** Product prep-install for BASE failed.

***** problem report *****
ERROR while trying to add supplementary group 'swkey-data' for user 'psaadm'
Check the error reason(see log file: /tmp/plesk_11.0.9_installation.log), fix and try again
STOP Bootstrapper 11.0.9 prep-install for BASE AT Tue Jun 18 21:20:17 CEST 2013

group cat:
psaadm:x:500:psaadm
swkey-data:x:501:psaadm
psaftp:x:502:

stucked...
anyone had been capable to solve it?

thx
 
Regarding this issue, you need to follow the below steps to fix.

1. Remove the custom Mysql package present inside the server and install the mysql package that comes with OS repo using yum.
2. Afterwards, you will be able to install Mysql version 5.5 on to the server using autoinstaller.
 
I'm not sure. But you can create dump before just in case.
 
yeah, that's for sure, but sucks to import it all again...

i will get a try and let you know... (finger crossed....)
 
Back
Top