Error running apt update - postinstall script fails
Hello, I am running into the following error when doing package updates on my existing Clustercontrol Server. (OS: Ubuntu 18.04, Controller: 1.9.2.5177, Frontend: 1.9.2.8229-#3b53f4, License: Community Version)
# sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up clustercontrol (1.9.2-8229) ...
*** Automatically updating the dcps schema ...
*** Trying: mysql -ucmon -p < /var/www/html/clustercontrol/sql/dc-schema.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
Access denied.
*** Unable to create a 'ccrpc' user! Please check your s9s command line installation! ***
*** Please see https://docs.severalnines.com/docs/clustercontrol/troubleshooting/common-issues/#clustercontrol-controller-cmon on how fix a suspended s9s admin user.
*** Re-install the ClusterControl package again after checking the s9s command line installation.
dpkg: error processing package clustercontrol (--configure):
installed clustercontrol package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
clustercontrol
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried running the unlock admin user procedure, however I don't believe that is the underlying cause here. Are there any suggestions as to what to try next?
Thanks!
-
Official comment
Hi @Henry,
Have you tried to install this as a superadmin or root OS user? It reveals that it might have a failed installation i.e.,
>>> 1 not fully installed or removed
can you please paste the whole log of the installation?Thanks.
Comment actions -
Thanks for the response Paul. I have run this as the root user, and the output above is from that session.
Where would I find the whole log of the installation? This is on a system that has been running Clustercontrol for many years and just started happening recently with the apt package upgrade.
-
the same error
sudo S9S_CMON_PASSWORD=la17D3Am S9S_ROOT_PASSWORD=Nb53AD7Y HOST=localhost ./install-cc
gives a
Access denied.
*** Unable to create a 'ccrpc' user! Please check your s9s command line installation! ***
*** Please see https://docs.severalnines.com/docs/clustercontrol/troubleshooting/common-issues/#clustercontrol-controller-cmon on how fix a suspended s9s admin user.
*** Re-install the ClusterControl package again after checking the s9s command line installation.
Please contact Severalnines support at http://support.severalnines.com if you have installation issues that cannot be resolved. -
I stepped through the script at `/var/lib/dpkg/info/clustercontrol.postinst` and found that my root user does not have permissions to create users using the `s9s` utility, which I believe was the underlying cause.
After running the commands to create the `ccrpc` user using my non-root account, I was able to re-run apt and get the installation to complete.
-
I don't know suspended it ot not error says it has issue.
s9s user --list
system
nobody
admin
ccrpc
dba
emoxam@clustercontrol:~$ sudo /var/www/html/clustercontrol/app/tools/reset-ccrpc.sh
*** This script resets the 'ccrpc' s9s user which is used by the web application to create an admin user.
*** Run this script if you have a problem creating an Admin user with our new user management system.
Press any key to continue (CTRL-C to quit)*** Checking for s9s admin user ...
*** Note: Your active s9s user must be an 'admins' user.
No user name set.
*** Error: It seems your s9s admin user is having an issue.
*** Please see https://docs.severalnines.com/docs/clustercontrol/troubleshooting/common-issues/#clustercontrol-controller-cmon on how fix a suspended s9s admin user.
Please sign in to leave a comment.
Comments
8 comments