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

node --inspectが動作しない #277

Closed
masnagam opened this issue Jun 17, 2019 · 3 comments
Closed

node --inspectが動作しない #277

masnagam opened this issue Jun 17, 2019 · 3 comments

Comments

@masnagam
Copy link
Contributor

環境

  • Version of EPGStation: 1.5.3
  • Version of Mirakurun: 2.11.0
  • Version of Node: v10.16.0
  • Version of NPM: 6.9.0
  • OS: Linux 4.9.125-linuxkit (Docker for macOS)
  • Architecture: x64

Issue

サーバーのデバッグのため,node --inspect=0.0.0.0:9229 dist/server/index.jsとしたところ,以下のようなエラーが発生しました.

epgstation    | Debugger listening on ws://0.0.0.0:9229/4ab9e134-82a8-4f71-a56e-c4507d50a8a3
epgstation    | For help, see: https://nodejs.org/en/docs/inspector
epgstation    | [2019-06-17T11:24:59.016] [WARN] system - reserves.json is not found.
epgstation    | [2019-06-17T11:24:59.045] [WARN] system - dbinfo.json is not found.
epgstation    | [2019-06-17T11:24:59.053] [INFO] system - create dbinfo.json
epgstation    | [2019-06-17T11:24:59.061] [INFO] system - ServicesDB created
epgstation    | [2019-06-17T11:24:59.066] [INFO] system - ProgramsDB created
epgstation    | [2019-06-17T11:24:59.071] [INFO] system - RulesDB created
epgstation    | [2019-06-17T11:24:59.076] [INFO] system - RecordedDB created
epgstation    | [2019-06-17T11:24:59.081] [INFO] system - EncodedDB created
epgstation    | [2019-06-17T11:24:59.086] [INFO] system - RecordedHistoryDB created
epgstation    | [2019-06-17T11:24:59.097] [INFO] system - start Updater pid: 18
epgstation    | [2019-06-17T11:24:59.102] [ERROR] system - Starting inspector on 0.0.0.0:9229 failed: address already in use
epgstation    | [2019-06-17T11:24:59.104] [ERROR] system - MirakurunUpdater abort
epgstation    | [2019-06-17T11:24:59.107] [FATAL] system - service process is down
epgstation    | [2019-06-17T11:24:59.107] [FATAL] system - restart service
epgstation    | [2019-06-17T11:24:59.117] [FATAL] system - service process is down
epgstation    | [2019-06-17T11:24:59.117] [FATAL] system - restart service
[以下,最後の2行の繰り返し]

--inspect=localhost:9229でも同じです.

多分,以下と同じ問題です.

src/server/Model/Operator/EPGUpdate/MirakurunManageModel.ts#L47が原因です.

コマンドラインオプションを引き継がないspawnexecFileなどに置き換えることで問題を回避できると思われます.

@l3tnun
Copy link
Owner

l3tnun commented Jun 17, 2019

修正する時間が取れないので、しばらくお持ちください。

PRがあれば見ます。

@masnagam
Copy link
Contributor Author

私もすぐに修正を行うことができません.

急いでいるわけではありませんので,このまま残しておいてもらえれば,時間ができたときに修正を試みてみます.

l3tnun added a commit that referenced this issue Jul 6, 2019
@l3tnun
Copy link
Owner

l3tnun commented Jul 7, 2019

最新の master にて対応しましたので閉じます

@l3tnun l3tnun closed this as completed Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants