ct-Open-Source / team-container

A collection of containers to prepare a server for collaboration.
117 stars 39 forks source link

kubectl get nodes: "the server is currently unable to handle the request" #9

Open macbef opened 4 years ago

macbef commented 4 years ago

After cloning and installing team-container "kubectl get nodes" shows the above error.

the server is currently unable to handle the request

k3s-serve seems to be listening on the specified port:

lsof -i -n

k3s-serve 3165 root 5u IPv6 1291421350 0t0 TCP *:6443 (LISTEN) k3s-serve 3165 root 12u IPv4 1291415104 0t0 TCP 127.0.0.1:sge-qmaster (LISTEN) k3s-serve 3165 root 152u IPv4 1291371447 0t0 TCP 127.0.0.1:47276->127.0.0.1:sge-qmaster (ESTABLISHED) k3s-serve 3165 root 153u IPv4 1291397987 0t0 TCP 127.0.0.1:sge-qmaster->127.0.0.1:47276 (ESTABLISHED) k3s-serve 3165 root 155u IPv4 1291397990 0t0 TCP 127.0.0.1:47352->127.0.0.1:sge-qmaster (ESTABLISHED) k3s-serve 3165 root 179u IPv4 1291437064 0t0 TCP 127.0.0.1:sge-qmaster->127.0.0.1:47352 (ESTABLISHED)

The syslog tells me that some modules seem to be missing:

'Apr 17 16:12:43 localhost modprobe[5178]: modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.9.0/modules.builtin.bin' Apr 17 16:12:43 localhost modprobe[5178]: modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/4.9.0 Apr 17 16:12:43 localhost modprobe[5179]: modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.9.0/modules.builtin.bin'

Have you seen this before? I'm trying to get things working on an 1blu V-server with Debian 9.8

miladdin commented 4 years ago

Hi, I had the same error message on my Strato VPS Server with Ubuntu 18.04 LTS. After a while I've found out that Strato is using "Virtualizor" as Hypervisor and it blocks k3s to read the true Linux Kernel which it needs to do. "Virtualizor" show only a part of it or something like that. Not really familiar with this stuff. Anyway, as I set up my own server at home on DEBIAN, it has worked well with installation but there is another part where it stucks => """"IPv6"""!! I can not get Traefik work with my domain and my server.

macbef commented 4 years ago

I took the easy way out. I just installed jitsi without containers (using apt-get). That was all I wanted in the first place. But thanks for pointing out the kernel-obfuscation.

anotherHoffmann commented 4 years ago

If anyone has a workaround, I would be very thankfull

wj-jw commented 4 years ago

I have a similar issue on Ubuntu 18.04 LTS and CentOS 7 running on 1blu VPS "vServer 4R" (1 vCPU, 4 GB RAM). After executing sudo kubectl get nodes sometimes I am getting an error message

Error from server (ServiceUnavailable): the server is currently unable to handle the request

sometimes it is

The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

and sometimes

NAME STATUS ROLES AGE VERSION localhost.localdomain NotReady master 13h v1.17.4+k3s1

or

Unable to connect to the server: net/http: TLS handshake timeout

Other symptoms are the same as described by @macbef.

So, maybe someone can add 1blu and Strato VPS as not compatible to the compatibility list?

SoulkeeperNRW commented 4 years ago

At Webtropia I added port 6443 to the firewall-rules and rebooted the vServer - that solved the problem.