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

pnpm devをするとuv_signal_start EINVAL -> ポート5173に何も描画されない #14201

Closed
KisaragiEffective opened this issue Jul 14, 2024 · 7 comments · Fixed by #14208
Labels
🛠️Dev Development of Misskey itself

Comments

@KisaragiEffective
Copy link
Collaborator

~/WebstormProjects/misskey $ pnpm dev

> misskey@2024.5.0 dev /home/kisaragi/WebstormProjects/misskey
> node scripts/dev.mjs


> misskey@2024.5.0 clean /home/kisaragi/WebstormProjects/misskey
> node ./scripts/clean.js


> misskey@2024.5.0 build-pre /home/kisaragi/WebstormProjects/misskey
> node ./scripts/build-pre.js


> misskey@2024.5.0 build-assets /home/kisaragi/WebstormProjects/misskey
> node ./scripts/build-assets.mjs


> misskey-js@2024.5.0 build /home/kisaragi/WebstormProjects/misskey/packages/misskey-js
> node ./build.js

(node:51218) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[misskey-js] start building...
[misskey-js] build succeeded.
[misskey-js] finish building.

> misskey-bubble-game@0.0.1 build /home/kisaragi/WebstormProjects/misskey/packages/misskey-bubble-game
> node ./build.js


> misskey-reversi@0.0.1 build /home/kisaragi/WebstormProjects/misskey/packages/misskey-reversi
> node ./build.js

[misskey-bubble-game] start building...
[misskey-bubble-game] build succeeded.
[misskey-reversi] start building...
[misskey-reversi] build succeeded.
[misskey-reversi] finish building.
[misskey-bubble-game] finish building.

> misskey@2024.5.0 build-pre /home/kisaragi/WebstormProjects/misskey
> node ./scripts/build-pre.js "--watch"


> misskey@2024.5.0 build-assets /home/kisaragi/WebstormProjects/misskey
> node ./scripts/build-assets.mjs "--watch"


> misskey-bubble-game@0.0.1 watch /home/kisaragi/WebstormProjects/misskey/packages/misskey-bubble-game
> nodemon -w package.json -e json --exec "node ./build.js --watch"


> sw@ watch /home/kisaragi/WebstormProjects/misskey/packages/sw
> nodemon -w ../../package.json -e json --exec "node build.js watch"


> misskey-reversi@0.0.1 watch /home/kisaragi/WebstormProjects/misskey/packages/misskey-reversi
> nodemon -w package.json -e json --exec "node ./build.js --watch"

(node:51595) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

> misskey-js@2024.5.0 watch /home/kisaragi/WebstormProjects/misskey/packages/misskey-js
> nodemon -w package.json -e json --exec "node ./build.js --watch"


> frontend@ dev /home/kisaragi/WebstormProjects/misskey/packages/frontend
> vite --config vite.config.local-dev.ts --debug hmr


> backend@ dev /home/kisaragi/WebstormProjects/misskey/packages/backend
> node ./scripts/dev.mjs

[nodemon] 3.1.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): ../../package.json
[nodemon] watching extensions: json
[nodemon] starting `node build.js watch`
[nodemon] 3.0.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): package.json
[nodemon] watching extensions: json
[nodemon] starting `node ./build.js --watch`
[nodemon] 3.1.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): package.json
[nodemon] watching extensions: json
[nodemon] starting `node ./build.js --watch`
[nodemon] 3.0.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): package.json
[nodemon] watching extensions: json
[nodemon] starting `node ./build.js --watch`
(node:51710) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[misskey-reversi] start watching...
[misskey-bubble-game] start watching...
[misskey-bubble-game] detect changed...
[misskey-reversi] detect changed...
[misskey-js] start watching...
[misskey-js] detect changed...
[nodemon] 3.1.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*
[nodemon] watching extensions: ts,js,mjs,cjs,json
[nodemon] starting `pnpm run build`
Starting SW building...
watching...
Re-optimizing dependencies because lockfile has changed

> backend@ build /home/kisaragi/WebstormProjects/misskey/packages/backend
> swc src -d built -D --strip-leading-paths


  VITE v5.3.2  ready in 485 ms

  ➜  Local:   http://127.0.0.1:5173/
Successfully compiled: 824 files, copied 27 files with swc (535.01ms)
[nodemon] clean exit - waiting for changes before restart

> misskey@2024.5.0 build-assets /home/kisaragi/WebstormProjects/misskey
> node ./scripts/build-assets.mjs

(node:52093) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
[misskey-reversi] finish watching.
node:internal/errors:563
    ErrorCaptureStackTrace(err);
    ^

Error: uv_signal_start EINVAL
    at process.startListeningIfSignal (node:internal/process/signal:36:13)
    at process.emit (node:events:514:28)
    at _addListener (node:events:557:14)
    at process.addListener (node:events:606:10)
    at file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-reversi/build.js:98:11
    at new Promise (<anonymous>)
    at watchSrc (file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-reversi/build.js:94:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-reversi/build.js:30:2 {
  errno: -22,
  code: 'EINVAL',
  syscall: 'uv_signal_start'
}

Node.js v20.10.0
[nodemon] app crashed - waiting for file changes before starting...
[misskey-bubble-game] finish watching.
node:internal/errors:563
    ErrorCaptureStackTrace(err);
    ^

Error: uv_signal_start EINVAL
    at process.startListeningIfSignal (node:internal/process/signal:36:13)
    at process.emit (node:events:514:28)
    at _addListener (node:events:557:14)
    at process.addListener (node:events:606:10)
    at file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-bubble-game/build.js:98:11
    at new Promise (<anonymous>)
    at watchSrc (file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-bubble-game/build.js:94:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-bubble-game/build.js:30:2 {
  errno: -22,
  code: 'EINVAL',
  syscall: 'uv_signal_start'
}

Node.js v20.10.0
[nodemon] app crashed - waiting for file changes before starting...
[misskey-js] finish watching.
node:internal/errors:563
    ErrorCaptureStackTrace(err);
    ^

Error: uv_signal_start EINVAL
    at process.startListeningIfSignal (node:internal/process/signal:36:13)
    at process.emit (node:events:514:28)
    at _addListener (node:events:557:14)
    at process.addListener (node:events:606:10)
    at file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-js/build.js:98:11
    at new Promise (<anonymous>)
    at watchSrc (file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-js/build.js:94:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/kisaragi/WebstormProjects/misskey/packages/misskey-js/build.js:30:2 {
  errno: -22,
  code: 'EINVAL',
  syscall: 'uv_signal_start'
}

Node.js v20.10.0
[nodemon] app crashed - waiting for file changes before starting...
  _____ _         _           
 |     |_|___ ___| |_ ___ _ _ 
 | | | | |_ -|_ -| '_| -_| | |
 |_|_|_|_|___|___|_,_|___|_  |
 v2024.5.0               |___|

 Misskey is an open-source decentralized microblogging platform.
 If you like Misskey, please donate to support development. https://www.patreon.com/syuilo

--- debian12-gen13 (PID: 52126) ---
INFO *  [core boot]     Welcome to Misskey!
INFO *  [core boot]     Misskey v2024.5.0
INFO *  [core boot env] NODE_ENV: development
WARN *  [core boot env] The environment is not in production mode.
WARN *  [core boot env] DO NOT USE FOR PRODUCTION PURPOSE!
VERB *  [core boot machine]     Hostname: debian12-gen13
VERB *  [core boot machine]     Platform: linux Arch: x64
VERB *  [core boot machine]     CPU: 24 core MEM: 31.1GB (available: 18.2GB)
INFO *  [core boot nodejs]      Version v20.10.0 detected.
DONE *  [core boot config]      Loaded
DONE *  [core boot]     Misskey initialized
INFO *  [core nest]     NestFactory: Starting Nest application...
INFO *  [core nest]     InstanceLoader: MainModule dependencies initialized
INFO *  [core nest]     InstanceLoader: QueueModule dependencies initialized
ERR  *  [core nest]     AggregateError
    at internalConnectMultiple (node:net:1114:18)
    at afterConnectMultiple (node:net:1667:5): 
INFO *  [core]  The process is going to exit with code 1
file:///home/kisaragi/WebstormProjects/misskey/node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6
        return new ErrorClass(message, options);
               ^

ExecaError: Command failed with exit code 1: ./built/boot/entry.js
    at getFinalError (file:///home/kisaragi/WebstormProjects/misskey/node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/final-error.js:6:9)
    at makeError (file:///home/kisaragi/WebstormProjects/misskey/node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/return/result.js:108:16)
    at getAsyncResult (file:///home/kisaragi/WebstormProjects/misskey/node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:174:4)
    at handlePromise (file:///home/kisaragi/WebstormProjects/misskey/node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/methods/main-async.js:157:17) {
  shortMessage: 'Command failed with exit code 1: ./built/boot/entry.js',
  command: './built/boot/entry.js',
  escapedCommand: './built/boot/entry.js',
  cwd: '/home/kisaragi/WebstormProjects/misskey/packages/backend',
  durationMs: 1805.173455,
  failed: true,
  timedOut: false,
  isCanceled: false,
  isGracefullyCanceled: false,
  isTerminated: false,
  isMaxBuffer: false,
  isForcefullyTerminated: false,
  exitCode: 1,
  stdio: [ undefined, undefined, undefined, undefined ],
  ipcOutput: [],
  pipedFrom: []
}

Node.js v20.10.0
/home/kisaragi/WebstormProjects/misskey/packages/backend:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  backend@ dev: `node ./scripts/dev.mjs`
Exit status 1

備考: 既知

@KisaragiEffective KisaragiEffective added the 🛠️Dev Development of Misskey itself label Jul 14, 2024
@KisaragiEffective KisaragiEffective changed the title pnpm devをするとuv_signal_start EINVAL pnpm devをするとuv_signal_start EINVAL -> ポート5173に何も描画されない Jul 14, 2024
@KisaragiEffective
Copy link
Collaborator Author

もしかして: SIGKILLにトラップハンドラーを設置してるから?

@KisaragiEffective
Copy link
Collaborator Author

cc @anatawa12

@anatawa12
Copy link
Member

anatawa12 commented Jul 14, 2024

なんだかんだでビルドは回るし、「ポート5173に何も描画されない」は再現できなかったけど、SIGKILLはハンドルできないので指定されてるのは問題だね

@KisaragiEffective
Copy link
Collaborator Author

KisaragiEffective commented Jul 14, 2024

最小再現例

// index.js
process.on('SIGKILL', () => { console.log('SIGKILL SIGKILL'); });
$ node index.js 
node:internal/process/signal:36
      throw errnoException(err, 'uv_signal_start');
      ^

Error: uv_signal_start EINVAL
    at process.startListeningIfSignal (node:internal/process/signal:36:13)
    at process.emit (node:events:514:28)
    at _addListener (node:events:557:14)
    at process.addListener (node:events:606:10)
    at Object.<anonymous> (/home/kisaragi/WebstormProjects/misskey-pnpm-dev-minimal-reproduction/index.js:1:9)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
  errno: -22,
  code: 'EINVAL',
  syscall: 'uv_signal_start'
}

Node.js v20.10.0

@Sayamame-beans
Copy link
Member

私の環境では、コンソールに同様のエラーは表示されていますが、5173で正常にアクセス/表示出来ていますね…謎
(Windows10, WSL2(Ubuntu), devcontainer使用)

@KisaragiEffective
Copy link
Collaborator Author

VSCode を使ったらちゃんと表示されました :c

@KisaragiEffective KisaragiEffective closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
@Sayamame-beans
Copy link
Member

それはそれとしてエラーが出る問題は(直せそうなら)直しておいて良い気はしたり?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️Dev Development of Misskey itself
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants