#!/usr/bin/env python3 """Fix dylive neko-6 Chrome FATAL without recreating container.""" from __future__ import annotations import sys import time import paramiko sys.stdout.reconfigure(encoding="utf-8", errors="replace") c = paramiko.SSHClient() c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect( "107.173.30.245", 22, "root", "Xiao4669805", timeout=40, allow_agent=False, look_for_keys=False, banner_timeout=120, ) _i, o, e = c.exec_command( r""" set +e echo '=== google-chrome.conf ===' docker exec douyinweb-neko-6 cat /etc/neko/supervisord/google-chrome.conf 2>&1 echo echo '=== host browser-launch overlay? ===' ls -la /opt/douyinWEB/backend/neko/ 2>/dev/null | head -30 find /opt/douyinWEB -name 'browser-launch*' 2>/dev/null | head find /opt/douyinWEB -name '*google-chrome*' 2>/dev/null | head echo echo '=== try start chrome manually to capture stderr ===' docker exec -u neko douyinweb-neko-6 bash -lc ' export DISPLAY=:99.0 export HOME=/home/neko # show command from conf grep -E "command=|environment=" /etc/neko/supervisord/google-chrome.conf # run chrome briefly timeout 8 google-chrome --version 2>&1 timeout 12 google-chrome --no-first-run --no-default-browser-check --user-data-dir=/home/neko/.config/google-chrome --remote-debugging-port=9222 about:blank 2>&1 | tail -50 echo EXIT:$? ' 2>&1 echo echo '=== dmesg / SIGILL hints ===' dmesg -T 2>/dev/null | grep -iE 'chrome|sigill|segfault|killed process' | tail -20 echo echo '=== compare healthy launch on host scripts ===' grep -Rnl 'jitless\|browser-launch\|no-wasm' /opt/douyinWEB/backend/neko /opt/douyinWEB/scripts 2>/dev/null | head -20 """, timeout=90, ) print((o.read() + e.read()).decode("utf-8", "replace")) c.close()