DX Application Performance Management

 View Only
Expand all | Collapse all

Install error

  • 1.  Install error

    Posted Jan 19, 2021 07:32 PM
    Hi,

    I'm trying to do an installation under minikube resulting in the following error:
    [cluster-permission] [ ERROR ] User minikube does not have sufficient permissions in minikube cluster.

    I had thought the minikube user would have unlimited permissions, just after clarification on what permissions are not sufficient?

    Thanks,
    John


  • 2.  RE: Install error

    Broadcom Employee
    Posted Jan 25, 2021 12:31 PM
    We'd need some more details here.
    Usually it is because the user trying to access the cluster using kubectl, can't access the crytpographic keys. So here, only a guess.

    ------------------------------
    Customer Solution Engineering
    Broadcom Inc.
    ------------------------------



  • 3.  RE: Install error

    Posted Jan 27, 2021 09:26 PM
    Thanks for the reply Jorg, we have a standard minikube installation.

    Here is the output of kubectl config view:
    apiVersion: v1
    clusters:
    - cluster:
    certificate-authority: /home/developer/.minikube/ca.crt
    extensions:
    - extension:
    last-update: Wed, 27 Jan 2021 15:47:58 AEST
    provider: minikube.sigs.k8s.io
    version: v1.17.0
    name: cluster_info
    server: https://192.168.49.2:8443
    name: minikube
    contexts:
    - context:
    cluster: minikube
    extensions:
    - extension:
    last-update: Wed, 27 Jan 2021 15:47:58 AEST
    provider: minikube.sigs.k8s.io
    version: v1.17.0
    name: context_info
    namespace: default
    user: minikube
    name: minikube
    current-context: minikube
    kind: Config
    preferences: {}
    users:
    - name: minikube
    user:
    client-certificate: /home/developer/.minikube/profiles/minikube/client.crt
    client-key: /home/developer/.minikube/profiles/minikube/client.key​

    The script output says it has copied this config file.

    install.log is getting the following error, though ca.crt file does exist:
    java.nio.file.NoSuchFileException: /home/developer/.minikube/ca.crt


  • 4.  RE: Install error

    Broadcom Employee
    Posted Jan 28, 2021 03:37 AM
    Edited by Jörg Mertin Jan 29, 2021 03:25 AM

    from

    java.nio.file.NoSuchFileException: /home/developer/.minikube/ca.crt


    It is looking for the ca.crt file in the "users" .minikube directory.

    Check if you, as a user, have access to /home/developer/.minikube/ca.crt -> ls -l /home/developer/.minikube/ca.crt 
    should show if you have.



    ------------------------------
    Customer Solution Engineering
    Broadcom Inc.
    ------------------------------



  • 5.  RE: Install error

    Posted Jan 28, 2021 07:26 PM
    I can access the file from the terminal (I had opened up the perms on the file):
    -rwxrwxrwx. 1 developer docker 1111 Dec 2 14:20 /home/developer/.minikube/ca.crt


  • 6.  RE: Install error

    Broadcom Employee
    Posted Jan 29, 2021 03:25 AM
    Edited by Jörg Mertin Jan 29, 2021 03:28 AM
    -rwxrwxrwx. 1 developer docker


    this might be the issue. In secure environments, keys and certificates should never be readable by world, and definitely not writable.
    Try doing a

    chmod 640 /home/developer/.minikube/ca.crt


    - assuming you are user developer - and try again.


    ------------------------------
    Customer Solution Engineering
    Broadcom Inc.
    ------------------------------



  • 7.  RE: Install error

    Posted Jan 28, 2021 08:32 PM
    I am able to reproduce this error on a separate machine, where the crt file also does exist and has access


  • 8.  RE: Install error

    Posted Jan 31, 2021 08:23 PM
    I have tried chmod 640, though still getting the same
    NoSuchFileException​
    error.

    When the install script starts, it does copy this file and the crt and key files to the install folder.  Unsure why if the install script was able to copy these files, it subsequently results in the above error.


  • 9.  RE: Install error

    Broadcom Employee
    Posted Feb 01, 2021 03:07 AM
    Edited by Jörg Mertin Feb 01, 2021 03:20 AM

    It can be due to the umask settings on your system that mess with the install-script.

    Another question - do you start the install-script with sudo?

    I would restart from scratch - Do:
    # minikube delete
    # rm -rf ~/.minikube
    First line could eventually not work. In that case, ignore it.

    # curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
    # sudo install minikube-linux-amd64 /usr/local/bin/minikube # minikube start
    This, assuming docker is installed an running.



    ------------------------------
    Customer Solution Engineering
    Broadcom Inc.
    ------------------------------



  • 10.  RE: Install error

    Posted Feb 01, 2021 08:07 PM
    We seem to have progressed past the crt error, now I'm getting the following after accepting the license:

    Application run failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataCollector': Invocation of init method failed; nested exception is java.lang.NullPointerException​



  • 11.  RE: Install error

    Broadcom Employee
    Posted Feb 02, 2021 03:08 AM

    There seem to be something else broken.

    do you by chance have selinux active? Check it out with "sestatus" and post the output here please.



    ------------------------------
    Customer Solution Engineering
    Broadcom Inc.
    ------------------------------



  • 12.  RE: Install error

    Posted Feb 02, 2021 07:59 PM
    Here's the output from sestatus:
    SELinux status: enabled
    SELinuxfs mount: /sys/fs/selinux
    SELinux root directory: /etc/selinux
    Loaded policy name: targeted
    Current mode: permissive
    Mode from config file: permissive
    Policy MLS status: enabled
    Policy deny_unknown status: allowed
    Max kernel policy version: 31