Monthly Archives: March 2019

sni for exim directadmin

It should fix Outlook errors like Cannot verify Security Certificate or Internet security warning
Common name: localhost issue


cd /usr/local/directadmin
echo mail_sni=1 >> conf/directadmin.conf
service directadmin restart
cd custombuild
./build update
./build set eximconf yes
./build set eximconf_release 4.5
./build set dovecot_conf yes
./build exim_conf
./build dovecot_conf

Too many open files in system openvz

id: cannot find name for user ID 0
-bash: cannot make pipe for command substitution: Too many open files in system
-bash: /etc/profile.d/less.sh: Too many open files in system
-bash: /etc/profile.d/mc.sh: Too many open files in system
-bash: /etc/profile.d/vim.sh: Too many open files in system
-bash: /etc/profile.d/which-2.sh: Too many open files in system
-bash: /root/.bash_profile: Too many open files in system
-bash-3.2# logout
-bash: /root/.bash_logout: Too many open files in system
-bash: /etc/bash.bash_logout: Too many open files in system
exited from CT XXXX

Fast fix:
vzctl restart XXXX

Checking C compiler….Could not locate an executable “gcc” binary….Done ** Unrecoverable Error ** The C compiler is not functional and auto repair failed. Perl module installs require a working C compiler.

Checking C compiler….Could not locate an executable “gcc” binary….Done ** Unrecoverable Error ** The C compiler is not functional and auto repair failed. Perl module installs require a working C compiler

You should find Compiler Access in WHM and enable it for some users.

kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)

ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)

journalctl -u kubelet
kubelet[25843]: F0310 21:08:58.395379 25843 server.go:189] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error
kubelet.service: main process exited, code=exited, status=255/n/a

Fix:
kubeadm init

[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using ‘kubeadm config images pull’
[kubelet-start] Writing kubelet environment file with flags to file “/var/lib/kubelet/kubeadm-flags.env”
[kubelet-start] Writing kubelet configuration to file “/var/lib/kubelet/config.yaml”
[kubelet-start] Activating the kubelet service
[certs] Using certificateDir folder “/etc/kubernetes/pki”
[certs] Generating “etcd/ca” certificate and key
[certs] Generating “etcd/server” certificate and key

[access_compat:error] [pid 28167:tid 140515211155200] [client xx.xx.xx.xx:37918] AH01797: client denied by server configuration: /var/www/html/

Forbidden You don’t have permission to access / on this server

You should check directory permissions: namei -l /var/www/html/, if permissions are fine you need check virtual host configuration if there are no such options like ‘Deny from all’, if virtual host fine, you need search for .htaccess like this: find / -type f -name .htaccess