-
Notifications
You must be signed in to change notification settings - Fork 1
Description
➜ Yogurt-PMHQ docker logs pmhq
Mon Mar 16 00:12:09 CST 2026: Startup script initiated.
Mon Mar 16 00:12:09 CST 2026: Set headless to true
Mon Mar 16 00:12:09 CST 2026: Global DISPLAY set to :99
Mon Mar 16 00:12:09 CST 2026: Global LIBGL_ALWAYS_SOFTWARE set to 1
Mon Mar 16 00:12:09 CST 2026: Starting Xvfb...
Mon Mar 16 00:12:09 CST 2026: Xvfb started with PID 16. Waiting for X server to be ready on :99...
Mon Mar 16 00:12:09 CST 2026: X server on :99 not ready yet (attempt 1/15)... waiting 1s.
The XKEYBOARD keymap compiler (xkbcomp) reports:
Warning: Could not resolve keysym XF86CameraAccessEnable
Warning: Could not resolve keysym XF86CameraAccessDisable
Warning: Could not resolve keysym XF86CameraAccessToggle
Warning: Could not resolve keysym XF86NextElement
Warning: Could not resolve keysym XF86PreviousElement
Warning: Could not resolve keysym XF86AutopilotEngageToggle
Warning: Could not resolve keysym XF86MarkWaypoint
Warning: Could not resolve keysym XF86Sos
Warning: Could not resolve keysym XF86NavChart
Warning: Could not resolve keysym XF86FishingChart
Warning: Could not resolve keysym XF86SingleRangeRadar
Warning: Could not resolve keysym XF86DualRangeRadar
Warning: Could not resolve keysym XF86RadarOverlay
Warning: Could not resolve keysym XF86TraditionalSonar
Warning: Could not resolve keysym XF86ClearvuSonar
Warning: Could not resolve keysym XF86SidevuSonar
Warning: Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
Mon Mar 16 00:12:10 CST 2026: X server on :99 is ready.
Mon Mar 16 00:12:10 CST 2026: Starting pmhq (QQ)...
Mon Mar 16 00:12:10 CST 2026: pmhq (QQ) launched via dbus-run-session (PID 26) with DISPLAY=:99.
Mon Mar 16 00:12:10 CST 2026: Waiting for QQ process to start...
Mon Mar 16 00:12:10 CST 2026: QQ process not found yet (attempt 1/30)... waiting 1s.
已加载配置文件: /opt/pmhq_config.json
QQ 路径: /opt/QQ/qq
QQ 版本: 36497
注入 SO: /opt/libpmhq.so
正在启动 QQ (LD_PRELOAD)...
DISPLAY: :99
QQ 进程 PID: 37
PMHQ 注入完成!
QQ 已启动,pmhq 退出
[PMHQ-INIT] Step 0: Checking main process
[PMHQ-INIT] Step 1: Initializing logger
not mini app.
[PMHQ-INIT] Step 0: Checking main process
[PMHQ-INIT] Step 0: Not main process (PID 40), skipping. cmdline: /opt/QQ/qq --type=zygote --no-zygote-sandbox --no-sandbox --enable-logging
[PMHQ-INIT] Step 0: Checking main process
[PMHQ-INIT] Step 0: Not main process (PID 41), skipping. cmdline: /opt/QQ/qq --type=zygote --no-sandbox --enable-logging
[preload] succeeded. /opt/QQ/resources/app/major.node
[preload] succeeded. /opt/QQ/resources/app/major.node
[37:0316/001210.937004:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
resourcesPath: /opt/QQ/resources
Mon Mar 16 00:12:11 CST 2026: QQ main process found with PID 37.
Mon Mar 16 00:12:11 CST 2026: All services launched. Monitoring critical processes...
[PMHQ] ctx require= undefined process= object process.type= browser process.mainModule= true electron= 34.0.0 fs.readFileSync= no-require globalThis= object window= undefined
[PMHQ] Base variables initialized
[PMHQ] load_plugins.js executed
Plugins directory does not exist: /opt/plugins
Server started on http://0.0.0.0:13000
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'app')
at Object. (/opt/QQ/resources/app/app_launcher/index.js:1:297)
at Object. (/opt/QQ/resources/app/application.asar/app_launcher/index.js:1:29)
at Module._compile (node:internal/modules/cjs/loader:1484:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1295:32)
at Module._load (node:internal/modules/cjs/loader:1111:12)
at f._load (node:electron/js2c/node_init:2:18418)
at node:electron/js2c/browser_init:2:129820
at node:electron/js2c/browser_init:2:130029
at node:electron/js2c/browser_init:2:130033
[37:0316/001214.369413:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[37:0316/001214.369630:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[37:0316/001214.391859:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /tmp/dbus-OlZpiGn4PH: No such file or directory
[37:0316/001214.392383:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /tmp/dbus-OlZpiGn4PH: No such file or directory
[37:0316/001214.392690:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /tmp/dbus-OlZpiGn4PH: No such file or directory
[37:0316/001214.393056:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /tmp/dbus-OlZpiGn4PH: No such file or directory
[37:0316/001214.393396:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type:
[37:0316/001214.860197:WARNING:bluez_dbus_manager.cc(234)] Floss manager service not available, cannot set Floss enable/disable.
[76:0316/001216.008670:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[76:0316/001216.053555:WARNING:sandbox_linux.cc(430)] InitializeSandbox() called with multiple threads in process gpu-process.
[76:0316/001216.218813:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning)
[PMHQ-INIT] Step 0: Checking main process
[PMHQ-INIT] Step 0: Not main process (PID 81), skipping. cmdline: /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --enable-crash-reporter=54600a35-92d3-47e6-ae43-d45a535de767,no_channel --user-data-dir=/root/.config/QQ --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,13463022306776208784,4492243339933648125,262144 --disable-features=SpareRendererForSitePerProcess --variations-seed-version --enable-logging
appid 537298509
[37][96231979863]LongTask(1): duration=1021ms, container=Browser
配置:
services:
pmhq:
image: linyuchen/pmhq:latest
container_name: pmhq
privileged: true
environment:
- ENABLE_HEADLESS=true
- RUST_LOG=error
volumes:
- qq_volume:/root/.config/QQ
networks:
- app_network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:13000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
yogurt:
image: ghcr.io/llonebot/yogurt-pmhq:latest
container_name: yogurt-pmhq
environment:
- PMHQ_HOST=pmhq
- PMHQ_PORT=13000
- YOGURT_HOST=0.0.0.0
- YOGURT_PORT=3002
- YOGURT_ACCESS_TOKEN= # 请在此修改 Access Token,确保安全
- HTTP_CORS_ORIGINS=
- WEBHOOK_URLS=
- WEBHOOK_ACCESS_TOKEN=
- QUICK_LOGIN_UIN=3680634419
- PRELOAD_CONTACTS=false
- REPORT_SELF_MESSAGE=true
- TRANSFORM_INCOMING_MFACE_TO_IMAGE=false
- SKIP_SECURITY_CHECK=true
- ANSI_LEVEL=ANSI256
- CORE_LOG_LEVEL=DEBUG
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./data:/app/data
- /root/karin/@karinjs:/root/karin/@karinjs
ports:
- "3002:3002"
depends_on:
pmhq:
condition: service_healthy
networks:
- app_network
restart: unless-stopped
volumes:
qq_volume:
networks:
app_network:
driver: bridge