Termix icon indicating copy to clipboard operation
Termix copied to clipboard

Container crashes with exit code 143 loading remote desktop plugin

Open ParkerPass opened this issue 1 week ago • 5 comments

What happened?

Container constantly restarting when loading remote desktop plugin. The issues is introduced with version <26.11.2. container loading normally if the image is hardcoded to 26.11.1

termix | [3:41:06 PM] [WARN] [🧩] Plugin remote-desktop: (node:227) [PERM0006] SecurityWarning: The flag --allow-worker must be used with extreme caution. It could invalidate the permission model. [op:plugin_sandbox] termix | [3:41:06 PM] [WARN] [🧩] Plugin remote-desktop: (Use node --trace-warnings ... to show where the warning was created) [op:plugin_sandbox] termix | [3:41:06 PM] [WARN] [🧩] Plugin remote-desktop: (node:227) ExperimentalWarning: The flag --allow-net is under experimental phase. [op:plugin_sandbox] termix exited with code 143 (restarting)

Steps to reproduce

Container crashed after update, reverting to the previous version allow the normal start.

What did you expect?

No response

Termix version

v 26.11.2 and above

Platform

Other

Server install

Docker

Environment


x-common-env: &common-env TZ: ${TZ} PUID: ${PUID} PGID: ${PGID}

services: termix: # image: bugattiguy527/termix:26.11.1 image: bugattiguy527/termix:latest container_name: termix restart: unless-stopped # Hardening: no privilege escalation via setuid binaries cap_drop: - ALL cap_add: - CHOWN - DAC_OVERRIDE - FOWNER - SETUID - SETGID security_opt: - no-new-privileges:true tmpfs: - /tmp # Resource limits as .env-overridable defaults (e.g. TERMIX_MEMORY_LIMIT=512m); # the override survives every git pull. deploy: resources: limits: memory: ${TERMIX_MEMORY_LIMIT:-512m} cpus: "${TERMIX_CPU_LIMIT:-1.0}" reservations: memory: ${TERMIX_MEMORY_RESERVATION:-256m} cpus: "${TERMIX_CPU_RESERVATION:-0.5}" environment: <<: *common-env

#ports:
#  - "8080:8080"
depends_on:
  - guacd
volumes:
  - ./termix-data:/app/data
# Traefik added section
networks:
  - proxy
  - termix-net
labels:
  - "traefik.enable=true"
  - "traefik.http.routers.termix.tls.certresolver=default"
  - "traefik.http.routers.termix.entrypoints=https"
  - "traefik.http.routers.termix.rule=Host(`termix.local.mydomain.org`)"
  - "traefik.http.routers.termix.tls=true"
  - "traefik.http.services.termix.loadbalancer.server.port=8080"
  - "traefik.docker.network=proxy"
  # Autoheal label to allow autoheal to monitor this container
  # - "autoheal=true"

guacd: # image: guacamole/guacd:1.6.0 image: guacamole/guacd:latest container_name: guacd restart: unless-stopped # Resource limits as .env-overridable defaults (e.g. GUACD_MEMORY_LIMIT=512m); # the override survives every git pull. security_opt: - no-new-privileges:true deploy: resources: limits: memory: ${GUACD_MEMORY_LIMIT:-128m} cpus: "${GUACD_CPU_LIMIT:-0.5}" reservations: memory: ${GUACD_MEMORY_RESERVATION:-64m} cpus: "${GUACD_CPU_RESERVATION:-0.25}" ports: - "4822:4822" networks: - termix-net

networks: termix-net: driver: bridge name: termix-net proxy: external: true name: proxy

Logs

termix  | [3:40:25 PM] [INFO] [🧩] Mounted /plugin-api/tunnels [op:plugin_http_mount]
termix  | [3:40:25 PM] [INFO] [🧩] Mounted /plugin-ws/tunnels/c2s/stream [op:plugin_ws_mount]
termix  | [3:40:25 PM] [INFO] [🧩] Tunnel routes mounted at /plugin-api/tunnels [op:plugin:tunnels]
termix  | [3:40:25 PM] [INFO] [🧩] Plugin tunnels: ready in 3212 ms [op:plugin_sandbox]
termix  | [3:40:25 PM] [SUCCESS] [🧩] Activated plugin tunnels in its own process [op:plugin_activate]
termix  | [3:40:25 PM] [WARN] [🧩] Plugin remote-desktop: (node:230) [PERM0006] SecurityWarning: The flag --allow-worker must be used with extreme caution. It could invalidate the permission model. [op:plugin_sandbox]
termix  | [3:40:25 PM] [WARN] [🧩] Plugin remote-desktop: (Use `node --trace-warnings ...` to show where the warning was created) [op:plugin_sandbox]
termix  | [3:40:25 PM] [WARN] [🧩] Plugin remote-desktop: (node:230) ExperimentalWarning: The flag --allow-net is under experimental phase. [op:plugin_sandbox]
termix exited with code 143 (restarting)

Anything else?

No response

Before you submit

  • [x] I searched open and closed issues and this is not a duplicate
  • [x] I am on the latest version, or I said which version I am on

ParkerPass avatar Nov 21 '26 23:11 ParkerPass

Auto-triage

Termix Docker container crashes with exit code 143 when memory limit is too low for the new plugin sandbox architecture introduced in v26.11.2. Increasing memory resolves the issue.

Field Value
Type Bug
Difficulty 1/5 (Trivial)
Priority Medium

A maintainer will take a look. If anything above looks wrong, just say so.

termix-triage-bot[bot] avatar Nov 21 '26 23:11 termix-triage-bot[bot]

I'm on the latest and it crashes

ParkerPass avatar Nov 22 '26 00:11 ParkerPass

I was able to reproduce this crash by lowering Termix's memory limit to 512 MB, the same as your compose file. I got the same log ending and the same exit code 143. With the same settings and 1 GB of memory, it starts normally. So the likely fix is to give Termix more memory.

In the .env file next to your docker-compose.yml, add this line:

TERMIX_MEMORY_LIMIT=1g

Then run docker compose up -d. (Or change 512m to 1g on the memory: line of your compose file.) If it still crashes after that, let me know here.

This is only a ceiling: Termix won't use the whole 1 GB. In my test it used about 750 MB. If your server has more memory to spare, 1536m gives extra room for many open sessions. If it has less, turning off plugins you don't use (in Termix's Plugins tab) lowers what Termix needs.

Why: starting with 26.11.2, Termix runs each plugin as a separate program, so it needs more memory than 26.11.1 did. With a 512 MB limit it runs out while starting up. Remote desktop just happens to be the plugin loading at that moment.

Li-Lee avatar Nov 22 '26 16:11 Li-Lee

Thank you for the quick update, increasing memory limits fixed the issue.

The only suggestion is to reflect memory requirements in the server documentation.

Thank you

ParkerPass avatar Nov 22 '26 16:11 ParkerPass

Closing, since @ParkerPass says this is fixed now. Reply here if it comes back and it will be reopened.

termix-triage-bot[bot] avatar Nov 22 '26 16:11 termix-triage-bot[bot]