kasmtech / workspaces-issues

19 stars 5 forks source link

Can´t login after clean install #651

Open Sentinel-sys opened 1 week ago

Sentinel-sys commented 1 week ago

I have just made a completely new installation of KASM for the second time and the installation seems to go through without any problems. Unfortunately, I can neither log in as admin nor as user.

During the first installation I noticed that the capacity of my Ubuntu volume group was halved. From 50 GB to 25 GB.

During the second installation I did not use LVM and gave the VM 100GB as a precaution. Unfortunately the error remains.

Operating system: Ubuntu Server 24.04 with all updates

sudo docker ps shows:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f9ed416ec00b kasmweb/proxy:1.16.0 "/docker-entrypoint.…" About an hour ago Up 28 minutes 80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp kasm_proxy 8892e374aa2c kasmweb/rdp-https-gateway:1.16.0 "/opt/rdpgw/rdpgw" About an hour ago Restarting (1) 4 seconds ago kasm_rdp_https_gateway a67976279c19 kasmweb/share:1.16.0 "/bin/sh -c '/usr/bi…" About an hour ago Up 28 minutes (healthy) 8182/tcp kasm_share 235dbe84d876 kasmweb/rdp-gateway:1.16.0 "/start.sh" About an hour ago Up About a minute (healthy) 0.0.0.0:3389->3389/tcp, :::3389->3389/tcp kasm_rdp_gateway edd963f9a037 kasmweb/agent:1.16.0 "/bin/sh -c '/usr/bi…" About an hour ago Up 28 minutes (healthy) 4444/tcp kasm_agent 3d46f66e03ef kasmweb/api:1.16.0 "/bin/sh -c '/usr/bi…" About an hour ago Restarting (143) Less than a second ago kasm_api 4b24bd11b588 kasmweb/kasm-guac:1.16.0 "/dockerentrypoint.sh" About an hour ago Up 28 minutes (unhealthy) kasm_guac e31c9b0d4ab1 redis:5-alpine "docker-entrypoint.s…" About an hour ago Up 28 minutes 6379/tcp kasm_redis 62ec64ca7f43 kasmweb/manager:1.16.0 "/usr/bin/startup.sh…" About an hour ago Up 28 minutes (healthy) 8181/tcp kasm_manager ef99a7fca7ed postgres:14-alpine "docker-entrypoint.s…" About an hour ago Up 28 minutes (healthy) 5432/tcp kasm_db

It seems "kasm_rdp_https_gateway" is constantly restarting.

sudo docker logs -f --tail 10 kasm_api shows:

Using parameters --enable-admin-api --enable-client-api --enable-public-api cherrypy/init.py:112: UserWarning: Module cherrypy was already imported from /usr/bin/cherrypy/init.pyc, but /usr/bin/CherryPy-18.1.1-py3.8.egg is being added to sys.path cherrypy/init.py:112: UserWarning: Module more_itertools was already imported from /usr/bin/more_itertools/init.pyc, but /usr/bin/more_itertools-8.12.0-py3.8.egg is being added to sys.path cherrypy/init.py:112: UserWarning: Module portend was already imported from /usr/bin/portend.pyc, but /usr/bin/portend-2.6-py3.8.egg is being added to sys.path cherrypy/init.py:112: UserWarning: Module cheroot was already imported from /usr/bin/cheroot/init.pyc, but /usr/bin/cheroot-11.0.0rc0-py3.8.egg is being added to sys.path cherrypy/init.py:112: UserWarning: Module tempora was already imported from /usr/bin/tempora/init.pyc, but /usr/bin/tempora-5.7.0-py3.8.egg is being added to sys.path cherrypy/init.py:112: UserWarning: Module jaraco was already imported from None, but /usr/bin/jaraco.functools-4.1.0-py3.8.egg is being added to sys.path cherrypy/init.py:112: UserWarning: Module dateutil was already imported from /usr/bin/dateutil/init.pyc, but /usr/bin/python_dateutil-2.8.1-py3.8.egg is being added to sys.path 2024-11-08 15:45:31,948 [INFO] root: Performing Database Connectivity Test 2024-11-08 15:45:33,198 [INFO] root: Added Log Handler Terminated

What did I do wrong?

norjms commented 5 days ago

I have also experienced this issue. I have tried clean installs of both Debian 12.6 and ubuntu 24.04. Both installs successfully complete without errors. kasm_rdp_https_gateway constantly restarts and prevents login.

norjms commented 5 days ago

2024-11-10T18:05:01.034Z DEBUG main.go:main.main:101 Kasm RDP HTTPS Gateway logging configured 2024-11-10T18:05:01.036Z INFO proc.go:runtime.main:271 Starting remote desktop gateway server 2024-11-10T18:05:01.038Z INFO proc.go:runtime.main:271 Enabling Kasm authentication 2024-11-10T18:05:01.038Z INFO proc.go:runtime.main:271 Enabling Kasm healthchecks 2024-11-10T18:05:01.039Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.056Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.057Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.057Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.071Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.071Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.072Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.085Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.085Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.086Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.098Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.098Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.099Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.111Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.112Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.112Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.125Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.155Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.155Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.168Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.168Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.169Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.187Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.188Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.188Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.200Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.201Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.201Z INFO kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Checking for a healthy host: https://proxy:443/api/__healthcheck 2024-11-10T18:05:01.214Z ERROR kasm.go:kasmtechnologies/rdpgw/cmd/rdpgw/kasm.RegisterComponent:305 Error unmarshaling response JSON: invalid character '<' looking for beginning of value 2024-11-10T18:05:01.214Z DEBUG main.go:main.main:349 Could not find a healthy hostname 2024-11-10T18:05:01.215Z FATAL proc.go:runtime.main:271 Cannot register component: unable to register component

octave21 commented 4 days ago

I have many difficulties with the kasm guac container which frequently goes into the unheathly state which prohibits any connection to the service. This often occurs in correlation with heavy system load. See issues number #571 #638. The only way out for me is to completely reinstall kasm on a lightly loaded system. This led me to create a procedure to uninstall/install Kasm and automatically create a workspace. See issue number #476

Sentinel-sys commented 4 days ago

I have now got it to work. However, not under Ubuntu but Debian 12. I also noticed that I had the same error at the beginning. After about half an hour the container “kasm_rdp_https_gateway” did not restart.