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: 使用 windows 安装的 podman-desktop 启动镜像时老是尝试启动 /mnt/c/.../powershell.exe 但报错 ENOENT #1379

Open
zombie110year opened this issue Mar 13, 2024 · 1 comment
Labels
bug BUG

Comments

@zombie110year
Copy link

Describe the bug

启动容器后设备风扇狂转但打不开网页控制台,一看容器日志,发现在疯狂报错并重启:

app Error: spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT

Steps to reproduce

在安装了 podman-desktop 的 Windows 10 电脑上运行 podman run -p 5140:5140 koishijs/koishi:v1.3.8

Expected behavior

期望能正常启动容器。

Screenshots

无限循环报错下面这一小段:

2024-03-13 05:01:40 [I] app Koishi/4.16.8
2024-03-13 05:01:40 [I] loader apply plugin group:entry
2024-03-13 05:01:40 [I] loader apply plugin group:server
2024-03-13 05:01:40 [I] loader apply plugin server:h180rf
2024-03-13 05:01:40 [I] loader apply plugin group:basic
2024-03-13 05:01:40 [I] loader apply plugin commands:fr8ri0
2024-03-13 05:01:40 [I] loader apply plugin help:9pivpb
2024-03-13 05:01:40 [I] loader apply plugin locales:sdsahx
2024-03-13 05:01:40 [I] loader apply plugin rate-limit:bvkn3v
2024-03-13 05:01:40 [I] loader apply plugin telemetry:ksqag9
2024-03-13 05:01:40 [I] loader apply plugin group:console
2024-03-13 05:01:40 [I] loader apply plugin actions:h7s7i4
2024-03-13 05:01:40 [I] loader apply plugin analytics:9toqxg
2024-03-13 05:01:40 [I] loader apply plugin config:tcfhz2
2024-03-13 05:01:40 [I] loader apply plugin console:ts3mu9
2024-03-13 05:01:40 [I] loader apply plugin dataview:4wxm1z
2024-03-13 05:01:40 [I] loader apply plugin explorer:068bgs
2024-03-13 05:01:40 [I] loader apply plugin logger:snjigm
2024-03-13 05:01:40 [I] loader apply plugin insight:9wha6q
2024-03-13 05:01:40 [I] loader apply plugin market:5quyav
2024-03-13 05:01:40 [I] loader apply plugin notifier:fe405v
2024-03-13 05:01:40 [I] loader apply plugin oobe:t160nr
2024-03-13 05:01:40 [I] loader apply plugin sandbox:nl2aax
2024-03-13 05:01:40 [I] loader apply plugin status:y4xx3m
2024-03-13 05:01:40 [I] loader apply plugin theme-vanilla:rfruko
2024-03-13 05:01:40 [I] loader apply plugin group:storage
2024-03-13 05:01:40 [I] loader apply plugin database-sqlite:tjvi2o
2024-03-13 05:01:40 [I] loader apply plugin assets-local:1yykt2
2024-03-13 05:01:40 [I] loader apply plugin group:adapter
2024-03-13 05:01:40 [I] assets missing config "selfUrl", fallback to "file:" scheme
2024-03-13 05:01:40 [I] server server listening at http://0.0.0.0:5140
2024-03-13 05:01:40 [I] console webui is available at http://127.0.0.1:5140
2024-03-13 05:01:40 [E] app Error: spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT
                            at ChildProcess._handle.onexit (node:internal/child_process:286:19)
                            at onErrorNT (node:internal/child_process:484:16)
                            at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Versions

  • OS: Windows 11 / podman-desktop
  • Platform: 无
  • Node version:
  • Koishi version: 4.16.8

Additional context

No response

@zombie110year zombie110year added the bug BUG label Mar 13, 2024
@ilharp
Copy link
Member

ilharp commented Mar 13, 2024

可能需要使用 envinfo 提供一下环境信息

在容器停止状态下,尝试运行 sh 进入终端,之后运行

cd /koishi
yarn dlx envinfo

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

No branches or pull requests

2 participants