Portal Server

Each article describes a different situation.

  • Solution for: "failed to create fs.notify watcher: too many open files" error, execute this command on the master node machine:

    1. sudo sysctl -w fs.inotify.max_user_watches=2099999999

    2. sudo sysctl -w fs.inotify.max_user_instances=2099999999

    3. sudo sysctl -w fs.inotify.max_queued_events=2099999999

    4. sysctl -p

  • Solution for authentication: If sec.yaml keys and values are the same on the UI and yaml, redeploy the sec component. But this time please only use yaml file instead of adding keys & values by hand, Rancher encrypts secrets in his own way. If key & value fields are given by hand, Rancher's encryption is not working and an authentication problem will happen.

  • If portal is not working after assigning the proxy settings you have to reset the rancher. For rancher reset, after these steps you have to deploy rancher and do the deployment step by step again:

    1. docker rm -fv $(docker ps -a -q)

    2. docker volume rm -f $(docker volume ls)

    3. sudo reboot -h now

    4. sudo su

    5. rm -rf /run/secrets/kubernetes.io

    6. rm -rf /var/lib/etcd

    7. rm -rf /var/lib/kubelet

    8. rm -rf /var/lib/rancher

    9. rm -rf /etc/kubernetes

    10. rm -rf /opt/rke/etc/kubernetes/ssl

    11. exit

    12. docker volume rm -f $(docker volume ls)

    13. sudo reboot -h now

  • If the onprem.cloudcyte.com gives "cannot get/" error, please check the auth pod. Sometimes it needs to be restarted.

  • If the servers have issue with connecting to the internet, please check:

    1. certificates -> "Storage -> Secrets" on rancher

    2. configmap -> "Storage -> ConfigMaps" on rancher, there should be no_proxy/NO_PROXY and http(s)_proxy/HTTP(s)_PROXY fields

    3. pods -> check the pods that have config maps proxy variables

    4. /etc/resolv.conf

    5. /etc/resolvconf/resolv.conf.d/head

    6. /etc/dnsmasq.conf

    7. /etc/network/interfaces

  • Check DNS Port:

    1. ss -lptn 'sport = :53'

  • Show docker container logs of the rancher:

    1. docker logs -f <container_id>

  • For applying the proxy settings again or resetting the rancher, please download the settings.sh file from https://download.cloudcyte.com/yamls/settings.sh. Move the settings.sh file under the /usr/bin directory and give 755 access. After that run settings.sh anywhere in the server by typing "setting.sh". After execution, please enter the required credentials(proxy user and password are not required by default, use it only if the customer gives one). The script will be asking which option should be taken, if the 8.th option is selected script will do all the required steps for proxy settings. Make sure the root CA certificate is correct. After that please reboot the machine.

Last updated