Coder Social home page Coder Social logo

Comments (11)

tai-cha avatar tai-cha commented on July 26, 2024 1

Dockerfileに書いて早めに新バージョンを出す必要がありそう

from misskey.

anatawa12 avatar anatawa12 commented on July 26, 2024 1

今手元でもう少し試した感じ、stdinがない/consoleでない場合には止まらずに勝手にCorepackはダウンロードするようで、docker run --rm misskey/misskey:2024.5.0した感じ止まることはなかったのでdocker containerのネットの設定等に依存する可能性もあるかもしれない?

$ docker run --rm misskey/misskey:2024.5.0
Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.0.6.tgz.

> [email protected] migrateandstart /misskey
> pnpm migrate && pnpm start


> [email protected] migrate /misskey
> cd packages/backend && pnpm migrate


> backend@ migrate /misskey/packages/backend
> pnpm typeorm migration:run -d ormconfig.js

Error during migration run:
Error: Unable to open file: "/misskey/packages/backend/ormconfig.js". ENOENT: no such file or directory, open '/misskey/.config/default.yml'
    at CommandUtils.loadDataSource (/misskey/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/commands/CommandUtils.js:22:19)
    at async Object.handler (/misskey/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/commands/MigrationRunCommand.js:40:26)
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.

ビルド時にダウンロードしたほうがいいことには変わりないと思いますが。

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

上に書いたログ部分は自分のサーバーで起こったログで添付画像は再現性チェックのために1から立ち上げたやつ

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

bash-installのupdate.ubuntu.shでも同様に起こるがおそらくDockerfileのほうを何とかする必要がある

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

一時的な対応としてdocker exec -it /bin/bashとかでコンテナに入ってあげて

pnpm install
pnpm migrate

をした後にコンテナ再起動したら立ち上がりはした
でもコンテナ消したらおそらくもう一度やらなければいけない

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

多分起動用にpnpm run migrateandstartを呼ぶけどそもそもpnpm入ってないよってなってる

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

Corepackで対話式ではなくpackageManagerに合わせたpnpmをインストールしておけるのかしら

from misskey.

anatawa12 avatar anatawa12 commented on July 26, 2024

corepack installっぽいです

from misskey.

anatawa12 avatar anatawa12 commented on July 26, 2024

https://pnpm.io/ja/next/docker#example-2-build-multiple-docker-images-in-a-monorepo

これとか見るとcorepack installしてなかったりするのでdockerfile側の問題かは少し怪しいところがあるかもしれない?

Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.0.6.tgz.

で止まるのの再現例他のところからもほしいきがします

EDIT

Do you want to continue? [Y/n]

があった場合はインタラクティブが有効であることになり、これはcorepackがstdinの認知を行っていそう

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

少なくともbash-install v3の新規インストール(ConoHa上Ubuntu22.04)とupdate.ubuntu.sh(vultr上Ubuntu22.04)ではどちらも再現した

from misskey.

tai-cha avatar tai-cha commented on July 26, 2024

ちなみにこれupdate deps前は起きていないので謎(pnpmが8の時は起きていない)

from misskey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.