Error running apt update - postinstall script fails

Comments

8 comments

  • Official comment
    Avatar
    Paul Namuag

    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 Permalink
  • Avatar
    Henry Bonath

    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.

    0
    Comment actions Permalink
  • Avatar
    Александр

    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.

    0
    Comment actions Permalink
  • Avatar
    Henry Bonath

    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.

    0
    Comment actions Permalink
  • Avatar
    Александр

    Why did you used such command?
    sudo apt -f install
    Where did you get it from?

    0
    Comment actions Permalink
  • Avatar
    Paul Namuag

    If you experience issues with ccrpc user, try running this script:

     /var/www/html/clustercontrol/app/tools/reset-ccrpc.sh

    0
    Comment actions Permalink
  • Avatar
    Александр

    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.

     

    0
    Comment actions Permalink
  • Avatar
    Paul Namuag

    You can try this,

    $ rm -v /etc/s9s.conf* ~/.s9s/s9s.conf

    $ s9s user --create --generate-key --controller="https://localhost:9501" --group=admins mydba_user

    Then run the reset-ccrpc.sh script again.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk