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

Docker使用時にエラー吐いて落ちる #12822

Closed
1 task
chikage8640 opened this issue Dec 27, 2023 · 7 comments · Fixed by #12824
Closed
1 task

Docker使用時にエラー吐いて落ちる #12822

chikage8640 opened this issue Dec 27, 2023 · 7 comments · Fixed by #12824
Labels
🐛Bug Unexpected behavior 🔥high priority packages/backend Server side specific issue/PR

Comments

@chikage8640
Copy link

💡 Summary

DockerでMisskey 2023.12.1起動時、エラーを吐いて終了します。

🥰 Expected Behavior

エラーなく起動する

🤬 Actual Behavior

Dockerで起動した際、以下のようなエラーを吐いて落ちます。

Error: Cannot find package '/misskey/packages/backend/node_modules/misskey-js/package.json' imported from /misskey/packages/backend/built/server/oauth/OAuth2ProviderService.js
    at legacyMainResolve (node:internal/modules/esm/resolve:205:26)
    at packageResolve (node:internal/modules/esm/resolve:831:14)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1121:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

これは公式イメージでも自分でビルドしたイメージでも発生します。

📝 Steps to Reproduce

  1. Misskeyの公式Dockerイメージ(2023.12.1)を起動する

💻 Frontend Environment

* Model and OS of the device(s):
* Browser:
* Server URL:
* Misskey:

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service:
* Misskey: 2023.12.1
* Node: v20.10.0
* PostgreSQL: 
* Redis: 
* OS and Architecture: Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-91-generic x86_64)
* Docker: 24.0.7, build afdd53b

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request
@anatawa12
Copy link
Member

memo: import { permissions as kinds } from "misskey-js"; が悪そう。今までどうやらbackendからmisskey-jsを参照してることがなくて今回発覚したっぽいです。ごめんなさい。

@kakkokari-gtyih
Copy link
Contributor

kakkokari-gtyih commented Dec 27, 2023

memo: import { permissions as kinds } from "misskey-js"; が悪そう。今までどうやらbackendからmisskey-jsを参照してることがなくて今回発覚したっぽいです。ごめんなさい。

とりあえずこのFixだけでも取り込んで明日中にv2023.12.2出しちゃいましょうか
@syuilo が起きてるのなら今日やっちゃいたいけど

@anatawa12
Copy link
Member

ですね。今修正pullreq作ってます

@tamaina
Copy link
Contributor

tamaina commented Dec 27, 2023

テストでdockerの立ち上げについて確認してないんだっけ(ビルドはするけど起動テストはしない?)

@anatawa12
Copy link
Member

https://github.com/misskey-dev/misskey/actions/workflows/docker-develop.yml 見る感じビルドだけですね

@tamaina
Copy link
Contributor

tamaina commented Dec 27, 2023

定期的にdockerで起動しないと言われているので起動までテストしたほうがよさそう

@kakkokari-gtyih
Copy link
Contributor

定期的にdockerで起動しないと言われているので起動までテストしたほうがよさそう

#12827

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Unexpected behavior 🔥high priority packages/backend Server side specific issue/PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants