workspaces-issues icon indicating copy to clipboard operation
workspaces-issues copied to clipboard

[Bug] - Nginx failed to reload after generating config for container

Open elproducto opened this issue 1 year ago • 8 comments

Existing Resources

  • [x] Please search the existing issues for related problems
  • [x] Consult the product documentation : Docs
  • [x] Consult the FAQ : FAQ
  • [x] Consult the Troubleshooting Guide : Guide
  • [x] Reviewed existing training videos: Youtube

Describe the bug Installed an image that consumed remaining disk storage. To address I expanded the drive. Post expansion I could nit get any Workspaces to launch. I attempted to follow instructions provided in prior issue reported on addressing low disk space(linked below). However, part 2 of instructions does not cover latest version of Kasm 1.16.1. How would I go about fixing the issue? I am not sure were to "Create a new value for the Authentication token", as the Proxy configuration in new version is missing

https://kasmweb.atlassian.net/servicedesk/customer/portal/3/article/8126468

To Reproduce Steps to reproduce the behavior:

  1. Launch workspace session
  2. Wait for error notification "An Unexpected Error occurred creating the Kasm. Please contact an Administrator "

Expected behavior Workspace launched once clicked

Screenshots Screen Shot 2024-12-06 at 2 18 39 AM

Workspaces Version 1.16.1

Workspaces Installation Method Single Server

Client Browser (please complete the following information):

  • OS: macOS
  • Browser Firefox
  • Version 133.0

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

  • Linux kasm01 5.10.0-33-cloud-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64 GNU/Linux
  • PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"`
  • 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: 10 Running: 7 Paused: 0 Stopped: 3 Images: 37 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: 88bf19b2105c8b17560993bee28a01ddc2f97182 runc version: v1.2.2-0-g7cb3632 init version: de40ad0 Security Options: apparmor seccomp Profile: builtin cgroupns Kernel Version: 5.10.0-33-cloud-amd64 Operating System: Debian GNU/Linux 11 (bullseye) OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 3.842GiB Name: kasm01 ID: f14361b9-6a67-4d38-aa91-e0653afac811 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

  • a7c9c6e1ad35 kasmweb/proxy:1.16.1 "/docker-entrypoint.…" 4 hours ago Up 3 hours 80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp kasm_proxy e75ac5e82bc2 kasmweb/rdp-https-gateway:1.16.1 "/opt/rdpgw/rdpgw" 4 hours ago Restarting (2) 27 seconds ago kasm_rdp_https_gateway d80af8fe9a01 kasmweb/agent:1.16.1 "/bin/sh -c '/usr/bi…" 4 hours ago Up 3 hours (healthy) 4444/tcp kasm_agent 5db42a385880 kasmweb/kasm-guac:1.16.1 "/dockerentrypoint.sh" 4 hours ago Restarting (1) 42 seconds ago kasm_guac d128afbcea1b kasmweb/share:1.16.1 "/bin/sh -c '/usr/bi…" 4 hours ago Up 3 hours (healthy) 8182/tcp kasm_share 8f2cc71f5bc6 kasmweb/rdp-gateway:1.16.1 "/start.sh" 4 hours ago Restarting (1) 25 seconds ago kasm_rdp_gateway f8ad46072607 kasmweb/manager:1.16.1 "/usr/bin/startup.sh…" 4 hours ago Up 3 hours (healthy) 8181/tcp kasm_manager 086ae6a444bf kasmweb/api:1.16.1 "/bin/sh -c '/usr/bi…" 31 hours ago Up 3 hours (healthy) 8080/tcp kasm_api 56f9e99b6730 redis:5-alpine "docker-entrypoint.s…" 31 hours ago Up 3 hours 6379/tcp kasm_redis 485cb3d2ea31 postgres:14-alpine "docker-entrypoint.s…" 31 hours ago Up 3 hours (healthy) 5432/tcp kasm_db

Additional context host: proxy ingest_date: 20241206071836 application: kasm_agent levelname: ERROR process: __main__.handler message Exception creating Kasm: Traceback (most recent call last): File "__init__.py", line 574, in post File "provision.py", line 1931, in provision File "provision.py", line 2127, in generate_nginx_config Exception: Nginx failed to reload after generating config for container (33c0761c6f3691fd811c228d506254e61f251e6415ebe2954d930a7e157bf852) Traceback (most recent call last): File "__init__.py", line 574, in post File "provision.py", line 1931, in provision File "provision.py", line 2127, in generate_nginx_config Exception: Nginx failed to reload after generating config for container (33c0761c6f3691fd811c228d506254e61f251e6415ebe2954d930a7e157bf852)

elproducto avatar Dec 06 '24 07:12 elproducto

I don't have a solution, but I'll chime in and say I now have this same problem so the bug doesn't go stale.

Majoraslayer avatar Jan 11 '25 16:01 Majoraslayer

Same. Fresh install Ubuntu over here and having this problem.

Edit: I just did a fresh install of Debian and I do not get the error.

captbrando avatar Jan 11 '25 19:01 captbrando

I do get this error trying to run Kasm, all the bad smell is around nginx

host: pi-vault ingest_date: 20250624152036 application: kasm_api levelname: ERROR kasm_user_name: [email protected] process: client_api_server client_ip: 192.168.1.1 user_agent: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

message Error during Create request for Server(d6b71a8e-5858-4e7b-b9d5-b920b2a3ba7a) : (Exception creating Kasm: Traceback (most recent call last): File "ProvisionAgent/init.py", line 297, in post File "ProvisionAgent/provision.py", line 743, in provision File "ProvisionAgent/provision.py", line 782, in post_provision File "ProvisionAgent/provision.py", line 821, in generate_nginx_config Exception: Nginx failed to reload after generating config for container (8ad130bf8ba66c977e1c8c931ddc5a604b9dd12aba989f9d8811ecac70c6531d)

aldobranti avatar Jun 24 '25 15:06 aldobranti

I do get this error trying to run Kasm, all the bad smell is around nginx

What is the underlying OS flavor? Debian? Ubuntu? What version?

captbrando avatar Jun 24 '25 16:06 captbrando

Debian raspi5 1.17 All as one kasm sharing the space with openmediavault 7

On Tue, 24 Jun 2025, 17:31 Branden R. Williams, @.***> wrote:

captbrando left a comment (kasmtech/workspaces-issues#661) https://github.com/kasmtech/workspaces-issues/issues/661#issuecomment-3001146025

I do get this error trying to run Kasm, all the bad smell is around nginx

What is the underlying OS flavor? Debian? Ubuntu? What version?

— Reply to this email directly, view it on GitHub https://github.com/kasmtech/workspaces-issues/issues/661#issuecomment-3001146025, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJVMHYT5KF7HJLGZV7E2T33FF4MVAVCNFSM6AAAAABTEDI3E2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBRGE2DMMBSGU . You are receiving this because you commented.Message ID: @.***>

aldobranti avatar Jun 24 '25 20:06 aldobranti

Not familiar with that version. What is the contents of your /etc/issue file?

captbrando avatar Jun 24 '25 20:06 captbrando

Will catch up with this tomorrow, UK time Thanks for your interest

On Tue, 24 Jun 2025, 21:44 Branden R. Williams, @.***> wrote:

captbrando left a comment (kasmtech/workspaces-issues#661) https://github.com/kasmtech/workspaces-issues/issues/661#issuecomment-3001808645

Not familiar with that version. What is the contents of your /etc/issue file?

— Reply to this email directly, view it on GitHub https://github.com/kasmtech/workspaces-issues/issues/661#issuecomment-3001808645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJVMH5L3X2RCVAC2BTWQBT3FG2BZAVCNFSM6AAAAABTEDI3E2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBRHAYDQNRUGU . You are receiving this because you commented.Message ID: @.***>

aldobranti avatar Jun 24 '25 20:06 aldobranti

Hi Branden, I cleared that problem by a clean reinstall -- I was balancing precariously on top of an attempt to run a single Gimp docker container from the command line -- thorough spring cleaning helped a lot Thank you again for your interest A

On Tue, 24 Jun 2025 at 21:44, Branden R. Williams @.***> wrote:

captbrando left a comment (kasmtech/workspaces-issues#661) https://github.com/kasmtech/workspaces-issues/issues/661#issuecomment-3001808645

Not familiar with that version. What is the contents of your /etc/issue file?

— Reply to this email directly, view it on GitHub https://github.com/kasmtech/workspaces-issues/issues/661#issuecomment-3001808645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJVMH5L3X2RCVAC2BTWQBT3FG2BZAVCNFSM6AAAAABTEDI3E2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBRHAYDQNRUGU . You are receiving this because you commented.Message ID: @.***>

-- Aldobranti: A performance in digital social media and large quantities of photographic film https://aldobranti.org

aldobranti avatar Jun 26 '25 12:06 aldobranti