Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - Error requesting screenshot from kasm (caa4ef49142f4ea096c48ed71c1adec9) with error ('bool' object has no attribute 'content') and Error calling KasmVNC #657

Open
meisbadatcoding opened this issue Nov 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@meisbadatcoding
Copy link

meisbadatcoding commented Nov 29, 2024

Describe the bug
When I try to connect to any server, it gives me the following two issues:

Error calling KasmVNC API (get_screenshot?width=1000&height=1000) for kasm_id (caa4ef49-142f-4ea0-96c4-8ed71c1adec9) : HTTPSConnectionPool(host='192.168.12.236', port=443): Max retries exceeded with url: /api/get_screenshot?width=1000&height=1000 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x767dddb45730>: Failed to establish a new connection: [Errno 111] Connection refused'))

and

Error requesting screenshot from kasm (caa4ef49142f4ea096c48ed71c1adec9) with error ('bool' object has no attribute 'content')

To Reproduce
Steps to reproduce the behavior:

  1. Create a multipass VM on mac (It's an old Intel MacBook).
  2. Install kasm
  3. Create a new server without the kasm desktop service
  4. Create a new workspace without kasm desktop service
  5. Try to connect and see error

Expected behavior
I expect it to actually connect.

Workspaces Version
Newest one, I think 1.16

Workspaces Installation Method
Single Server

Client Browser (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 133

Workspace Server Information (please provide the output of the following commands):

  • uname -a
    Result:
Linux ubuntu 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov  4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • cat /etc/os-release
    Result:
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
  • sudo docker info
    Result:
Client: Docker Engine - Community
 Version:    27.3.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.17.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.5.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 33
  Running: 11
  Paused: 0
  Stopped: 22
 Images: 20
 Server Version: 27.3.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan kasmweb/sidecar:1.1 macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 57f17b0a6295a39009d861b89e3b3b87b005ca27
 runc version: v1.1.14-0-g2c9f560
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-49-generic
 Operating System: Ubuntu 24.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.749GiB
 Name: ubuntu
 ID: 3445109c-89a8-4bac-9d42-27ff89e7eda2
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
  • sudo docker ps | grep kasm
    Result:
806e8bfa91c8   kasmweb/proxy:1.16.1               "/docker-entrypoint.…"   20 hours ago   Up 19 hours               80/tcp, 0.0.0.0:8443->8443/tcp, :::8443->8443/tcp                                        kasm_proxy
2a6db53bfefe   kasmweb/agent:1.16.1               "/bin/sh -c '/usr/bi…"   5 days ago     Up 19 hours (healthy)     4444/tcp                                                                                 kasm_agent
2cf69b3ed76e   kasmweb/share:1.16.1               "/bin/sh -c '/usr/bi…"   5 days ago     Up 19 hours (healthy)     8182/tcp                                                                                 kasm_share
7a72442cdcce   kasmweb/rdp-https-gateway:1.16.1   "/opt/rdpgw/rdpgw"       5 days ago     Up 5 seconds (healthy)                                                                                             kasm_rdp_https_gateway
47d3e9a48adf   kasmweb/manager:1.16.1             "/usr/bin/startup.sh…"   5 days ago     Up 19 hours (healthy)     8181/tcp                                                                                 kasm_manager
a8168e4cf3f4   kasmweb/rdp-gateway:1.16.1         "/start.sh"              5 days ago     Up 22 seconds (healthy)   0.0.0.0:3389->3389/tcp, :::3389->3389/tcp                                                kasm_rdp_gateway
3d45be50a1f7   kasmweb/kasm-guac:1.16.1           "/dockerentrypoint.sh"   5 days ago     Up 19 hours (unhealthy)                                                                                            kasm_guac
a918134300fb   redis:5-alpine                     "docker-entrypoint.s…"   5 days ago     Up 19 hours               6379/tcp                                                                                 kasm_redis
d30c6995211c   kasmweb/api:1.16.1                 "/bin/sh -c '/usr/bi…"   5 days ago     Up 19 hours (healthy)     8080/tcp                                                                                 kasm_api
60587a1ac65f   postgres:14-alpine                 "docker-entrypoint.s…"   5 days ago     Up 19 hours (healthy)     5432/tcp                                                                                 kasm_db

Additional context
It's a multipass VM on a MacBook from 2015, so the software might be a bit old.
(I closed and reopened it because the issue is back, I'm not sure how I connected last time)
I saw this reddit post but it didn't help that much: https://www.reddit.com/r/kasmweb/comments/18cqxj4/error_when_trying_to_connect_to_a_container/

@meisbadatcoding meisbadatcoding added the bug Something isn't working label Nov 29, 2024
@meisbadatcoding meisbadatcoding changed the title [Bug] - Error requesting screenshot from kasm (caa4ef49142f4ea096c48ed71c1adec9) with error ('bool' object has no attribute 'content') and [Bug] - Error requesting screenshot from kasm (caa4ef49142f4ea096c48ed71c1adec9) with error ('bool' object has no attribute 'content') and Error calling KasmVNC Nov 29, 2024
@mmcclaskey
Copy link

In the steps you said you create a Server without the desktop service installed. What kind of server is it? If you are connecting to a Windows server, the desktop service is required to be installed in order for some features to work. The screenshot api call is one such feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants