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

他のインスタンスのユーザーフォローできない問題 #5536

Closed
NagaseYami opened this issue Oct 22, 2019 · 40 comments
Closed

Comments

@NagaseYami
Copy link

NagaseYami commented Oct 22, 2019

💡 Summary

  • 他のインスタンスのユーザーフォローできません

🙂 Expected Behavior

  • ビルド時にエラー出ないこと
  • 正常にフォローなどできること

☹️ Actual Behavior

  • docker image をビルドするときにエラーが出ましたが、ビルド成功扱いされました。
    • ログ(エラーは362行から)
  • misskeyのインスタンスを建てました
  • admin垢を作りました
  • admin垢でpawooのユーザーをフォローしようとしたら失敗しました
  • 検証のためもう一個userを作って、pawooのユーザーをフォローしようとしたら失敗しました
  • しかしフォローしようとした他のインスタンスのユーザーが連合タイムラインに出ました

📝 Steps to Reproduce

📌 Environment

  • AWS EC2
    • Amazon Linux release 2 (Karoo)
    • Linux 4.14.146-119.123.amzn2.x86_64
  • Docker
    • Docker version 18.06.1-ce, build e68fc7a215d7133c34aa18e3b72b4a21fd0c6136
@NagaseYami NagaseYami added the ⚠️bug? This might be a bug label Oct 22, 2019
@NagaseYami NagaseYami changed the title 【記述途中】フォローできない問題 【記述途中】他のインスタンスのユーザーフォローできない問題 Oct 22, 2019
@NagaseYami
Copy link
Author

NagaseYami commented Oct 22, 2019

pawooのユーザーをフォローしようとしたときの挙動

2分前 [api] SLOW API CALL DETECTED: users/show (2667.1327270045877ms)
{
}
2分前 [queue.deliver] failed(Error: Missing process handler for job type __default__) id=1 to=https://pawoo.net/users/_moondoggie/inbox
{
"e": {
"name": "Error",
"stack": "Error: Missing process handler for job type __default__ at Queue.processJob (/misskey/node_modules/bull/lib/queue.js:1034:7) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)",
"message": "Missing process handler for job type __default__"
},
"job": {
"id": "1",
"data": {
"to": "https://pawoo.net/users/_moondoggie/inbox",
"user": {
"id": "7z4xm8yw1v",
"uri": null,
"host": null,
"name": null,
"tags": [
],
"inbox": null,
"isBot": false,
"isCat": false,
"token": "2Hw98d8KOCVR5v5g",
"emojis": [
],
"isAdmin": true,
"avatarId": null,
"bannerId": null,
"featured": null,
"isLocked": false,
"username": "admin",
"avatarUrl": null,
"bannerUrl": null,
"createdAt": "2019-10-22T04:47:40.520Z",
"updatedAt": null,
"isSilenced": false,
"notesCount": 0,
"avatarColor": null,
"bannerColor": null,
"isModerator": false,
"isSuspended": false,
"sharedInbox": null,
"lastFetchedAt": null,
"followersCount": 1,
"followingCount": 0
},
"content": {
"id": "https://misskey.nagaseyami.com/a399b4c7-3e7f-4baa-96ec-ea12680a8020",
"type": "Follow",
"actor": "https://misskey.nagaseyami.com/users/7z4xm8yw1v",
"object": "https://pawoo.net/users/_moondoggie",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"Hashtag": "as:Hashtag"
}
]
}
},
"name": "__default__",
"opts": {
"delay": 0,
"backoff": {
"type": "exponential",
"delay": 60000
},
"attempts": 8,
"timestamp": 1571719795624,
"removeOnFail": true,
"removeOnComplete": true
},
"delay": 0,
"progress": 0,
"timestamp": 1571719795624,
"finishedOn": null,
"stacktrace": [
"Error: Missing process handler for job type __default__ at Queue.processJob (/misskey/node_modules/bull/lib/queue.js:1034:7) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)"
],
"processedOn": 1571719795629,
"returnvalue": null,
"attemptsMade": 1,
"failedReason": "Missing process handler for job type __default__"
}
}

@NagaseYami
Copy link
Author

syuiloさんをフォローしようとしたときの挙動

1分前 [api] SLOW API CALL DETECTED: users/show (1890.4327009990811ms)
{
}
1分前 [queue.deliver] failed(Error: Missing process handler for job type __default__) id=2 to=https://misskey.io/users/7rkrarq81i/inbox
{
"e": {
"name": "Error",
"stack": "Error: Missing process handler for job type __default__ at Queue.processJob (/misskey/node_modules/bull/lib/queue.js:1034:7) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)",
"message": "Missing process handler for job type __default__"
},
"job": {
"id": "2",
"data": {
"to": "https://misskey.io/users/7rkrarq81i/inbox",
"user": {
"id": "7z4xm8yw1v",
"uri": null,
"host": null,
"name": null,
"tags": [
],
"inbox": null,
"isBot": false,
"isCat": false,
"token": "2Hw98d8KOCVR5v5g",
"emojis": [
],
"isAdmin": true,
"avatarId": null,
"bannerId": null,
"featured": null,
"isLocked": false,
"username": "admin",
"avatarUrl": null,
"bannerUrl": null,
"createdAt": "2019-10-22T04:47:40.520Z",
"updatedAt": null,
"isSilenced": false,
"notesCount": 0,
"avatarColor": null,
"bannerColor": null,
"isModerator": false,
"isSuspended": false,
"sharedInbox": null,
"lastFetchedAt": null,
"followersCount": 1,
"followingCount": 0
},
"content": {
"id": "https://misskey.nagaseyami.com/4501c452-d879-45b3-b9f6-f7dbe67bda36",
"type": "Follow",
"actor": "https://misskey.nagaseyami.com/users/7z4xm8yw1v",
"object": "https://misskey.io/users/7rkrarq81i",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"Hashtag": "as:Hashtag"
}
]
}
},
"name": "__default__",
"opts": {
"delay": 0,
"backoff": {
"type": "exponential",
"delay": 60000
},
"attempts": 8,
"timestamp": 1571720073520,
"removeOnFail": true,
"removeOnComplete": true
},
"delay": 0,
"progress": 0,
"timestamp": 1571720073520,
"finishedOn": null,
"stacktrace": [
"Error: Missing process handler for job type __default__ at Queue.processJob (/misskey/node_modules/bull/lib/queue.js:1034:7) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)"
],
"processedOn": 1571720073522,
"returnvalue": null,
"attemptsMade": 1,
"failedReason": "Missing process handler for job type __default__"
}
}
1分前 [api] Internal error occurred in following/create
{
"e": {
"code": "QueryFailedError",
"stack": "QueryFailedError: duplicate key value violates unique constraint "IDX_d54a512b822fac7ed52800f6b4" at new QueryFailedError (/misskey/node_modules/typeorm/error/QueryFailedError.js:11:28) at Query.callback (/misskey/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:176:38) at Query.handleError (/misskey/node_modules/pg/lib/query.js:142:17) at Connection.connectedErrorMessageHandler (/misskey/node_modules/pg/lib/client.js:211:17) at Connection.emit (events.js:210:5) at Connection.EventEmitter.emit (domain.js:476:20) at Socket.<anonymous> (/misskey/node_modules/pg/lib/connection.js:126:12) at Socket.emit (events.js:210:5) at Socket.EventEmitter.emit (domain.js:476:20) at addChunk (_stream_readable.js:308:12) at readableAddChunk (_stream_readable.js:289:11) at Socket.Readable.push (_stream_readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:182:23)",
"message": "duplicate key value violates unique constraint "IDX_d54a512b822fac7ed52800f6b4""
},
"ep": "following/create",
"ps": {
"i": "2Hw98d8KOCVR5v5g",
"userId": "7z4xuz8w44"
}
}

@NagaseYami
Copy link
Author

docker-compose.yml

version: "3"

services:
  web:
    build: .
    restart: always
    links:
      - db
      - redis
#      - es
    ports:
      - "127.0.0.1:3001:3001"
    networks:
      - internal_network
      - external_network

  redis:
    restart: always
    image: redis:4.0-alpine
    networks:
      - internal_network
    volumes:
      - ./redis:/data

  db:
    restart: always
    image: postgres:11.2-alpine
    networks:
      - internal_network
    env_file:
      - .config/docker.env
    volumes:
      - ./db:/var/lib/postgresql/data

#  es:
#    restart: always
#    image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
#    environment:
#      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
#    networks:
#      - internal_network
#    volumes:
#      - ./elasticsearch:/usr/share/elasticsearch/data

networks:
  internal_network:
    internal: true
  external_network:

@NagaseYami
Copy link
Author

docker.env

# db settings
POSTGRES_PASSWORD=$q$v1szWN^r98le
POSTGRES_USER=misskey
POSTGRES_DB=misskey

@NagaseYami
Copy link
Author

default.yml

#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Misskey configuration
#━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

#   ┌─────┐
#───┘ URL └─────────────────────────────────────────────────────

# Final accessible URL seen by a user.
url: https://misskey.nagaseyami.com/

# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
# URL SETTINGS AFTER THAT!

#   ┌───────────────────────┐
#───┘ Port and TLS settings └───────────────────────────────────

#
# Misskey supports two deployment options for public.
#

# Option 1: With Reverse Proxy
#
#                 +----- https://example.tld/ ------------+
#   +------+      |+-------------+      +----------------+|
#   | User | ---> || Proxy (443) | ---> | Misskey (3000) ||
#   +------+      |+-------------+      +----------------+|
#                 +---------------------------------------+
#
#   You need to setup reverse proxy. (eg. nginx)
#   You do not define 'https' section.

# Option 2: Standalone
#
#                 +- https://example.tld/ -+
#   +------+      |   +---------------+    |
#   | User | ---> |   | Misskey (443) |    |
#   +------+      |   +---------------+    |
#                 +------------------------+
#
#   You need to run Misskey as root.
#   You need to set Certificate in 'https' section.

# To use option 1, uncomment below line.
port: 3001    # A port that your Misskey server should listen.

# To use option 2, uncomment below lines.
#port: 443

#https:
#  # path for certification
# key: /etc/letsencrypt/live/nagaseyami.com/privkey.pem
# cert: /etc/letsencrypt/live/nagaseyami.com/fullchain.pem

#   ┌──────────────────────────┐
#───┘ PostgreSQL configuration └────────────────────────────────

db:
  host: db
  port: 5432

  # Database name
  db: misskey

  # Auth
  user: misskey
  pass: $q$v1szWN^r98le

  # Whether disable Caching queries
  #disableCache: false

  # Extra Connection options
  #extra:
    #ssl: true

#   ┌─────────────────────┐
#───┘ Redis configuration └─────────────────────────────────────

redis:
  host: redis
  port: 6379
  #pass: example-pass

#   ┌─────────────────────────────┐
#───┘ Elasticsearch configuration └─────────────────────────────

#elasticsearch:
#  host: es
#  port: 9200
#  pass: null

#   ┌───────────────┐
#───┘ ID generation └───────────────────────────────────────────

# You can select the ID generation method.
# You don't usually need to change this setting, but you can
# change it according to your preferences.

# Available methods:
# aid ... Short, Millisecond accuracy
# meid ... Similar to ObjectID, Millisecond accuracy
# ulid ... Millisecond accuracy
# objectid ... This is left for backward compatibility

# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
# ID SETTINGS AFTER THAT!

id: 'aid'

#   ┌─────────────────────┐
#───┘ Other configuration └─────────────────────────────────────

# If enabled:
#  The first account created is automatically marked as Admin.
autoAdmin: true

# Whether disable HSTS
disableHsts: false

# Number of worker processes
clusterLimit: 1

# Job concurrency per worker
deliverJobConcurrency: 128;
inboxJobConcurrency: 16;

# IP address family used for outgoing request (ipv4, ipv6 or dual)
outgoingAddressFamily: ipv4

# Syslog option
#syslog:
#  host: localhost
#  port: 514

# Proxy for HTTP/HTTPS
#proxy: http://127.0.0.1:3128

# Proxy for SMTP/SMTPS
#proxySmtp: http://127.0.0.1:3128   # use HTTP/1.1 CONNECT
#proxySmtp: socks4://127.0.0.1:1080 # use SOCKS4
#proxySmtp: socks5://127.0.0.1:1080 # use SOCKS5

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

詳細にありがとうございます。

Missing process handler for job type __default__ 

これが問題のエラーメッセージぽいですね

@NagaseYami
Copy link
Author

詳細にありがとうございます。

Missing process handler for job type __default__ 

これが問題のエラーメッセージぽいですね

そうです。

10分前 [api] SLOW API CALL DETECTED: users/show (1890.4327009990811ms)
10分前 [queue.deliver] failed(Error: Missing process handler for job type __default__) id=2 to=https://misskey.io/users/7rkrarq81i/inbox
10分前 [api] Internal error occurred in following/create

こんな感じです

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

うーむ、今まで見たことない感じのエラーなのでなぜそうなるのかまだ分からない…

@NagaseYami
Copy link
Author

うーむ、今まで見たことない感じのエラーなのでなぜそうなるのかまだ分からない…

そしたらまずビルドのエラーに対してなにか心当たりはございますでしょうか?
フォローできない問題がそもそもビルドのエラーと関係している可能もあると思いますが。

@NagaseYami NagaseYami changed the title 【記述途中】他のインスタンスのユーザーフォローできない問題 他のインスタンスのユーザーフォローできない問題 Oct 22, 2019
@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

ビルドのエラーについては既知の問題で、それで正常です。動作に影響はありません

@NagaseYami
Copy link
Author

NagaseYami commented Oct 22, 2019

なるほど、そしたら

  • docker-compose.yml
  • default.yml
  • docker.env

の内容に対してなにか不適切なところはございますでしょうか?

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

あ、ご提示いただいたログをよく見たら通常では出ないようなエラーも出てますね
でもいずれにしても動作に影響は無さそうに思えますが、なぜそうなるのかちょっと不明です

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

設定ファイルは問題なさそうに見えます。

@NagaseYami
Copy link
Author

設定ファイルは問題なさそうに見えます。

ありがとうございます

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

んー、依存関係(npm)のインストールで何か問題があるのかもしれません

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

Dockerに関しては私はあまり詳しくないので、他のメンバーに見てもらいたいところです
cc: @mei23 @acid-chicken @u1-liquid

@NagaseYami
Copy link
Author

愚案かもしれませんが、
syuiloさんがmisskeyのdocker imageをdocker hubにアップロードするという案はいかがでしょう?

@NagaseYami
Copy link
Author

NagaseYami commented Oct 22, 2019

Dockerに関しては私はあまり詳しくないので、他のメンバーに見てもらいたいところです

よろしくお願いいたします。

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

愚案かもしれませんが、
syuiloさんがmisskeyのdocker imageをdocker hubにアップロードするという案はいかがでしょう?

今そのような感じになっていると思います(そういうことではなく?)
https://hub.docker.com/r/misskey/misskey

@NagaseYami
Copy link
Author

kwwzi

@NagaseYami
Copy link
Author

docker の setup guideに書いてなかったから知らなかったっす

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

docker の setup guideに書いてなかったから知らなかったっす

ごめんなさい、ドキュメントの不備かもしれません🙏

@NagaseYami
Copy link
Author

docker hub上のimageでもう一度やってみます

@NagaseYami
Copy link
Author

[ec2-user@ip-172-31-1-83 misskey]$ docker-compose run web yarn run init
Starting misskey_redis_1 ... done
Starting misskey_db_1    ... done
yarn run v1.19.0
$ npm run migrate
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1571722386900-0.8914993605914809/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> misskey@11.34.0 migrate /misskey
> ts-node ./node_modules/typeorm/cli.js migration:run

Error during migration run:
Error: ENOENT: no such file or directory, open '/misskey/built/config/../../.config/default.yml'
    at Object.openSync (fs.js:451:3)
    at Object.readFileSync (fs.js:353:35)
    at Object.load [as default] (/misskey/built/config/load.js:20:37)
    at Object.<anonymous> (/misskey/built/config/index.js:4:33)
    at Module._compile (internal/modules/cjs/loader.js:945:30)
    at Module.m._compile (/misskey/node_modules/ts-node/src/index.ts:493:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:962:10)
    at Object.require.extensions.<computed> [as .js] (/misskey/node_modules/ts-node/src/index.ts:496:12)
    at Module.load (internal/modules/cjs/loader.js:798:32)
    at Function.Module._load (internal/modules/cjs/loader.js:711:12) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/misskey/built/config/../../.config/default.yml'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! misskey@11.34.0 migrate: `ts-node ./node_modules/typeorm/cli.js migration:run`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the misskey@11.34.0 migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-10-22T05_33_12_894Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

docker hubのimageでやったら失敗しました。
見た感じmisskeyのリポジトリをコンテナの中にマウントする必要がある?

@NagaseYami
Copy link
Author

[ec2-user@ip-172-31-1-83 misskey]$ docker-compose run --rm web yarn run init
Creating misskey_redis_1 ... done
Creating misskey_db_1    ... done
yarn run v1.19.0
$ npm run migrate
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1571722785573-0.09160174459811743/node but npm is using /usr/local/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> misskey@11.34.0 migrate /misskey
> ts-node ./node_modules/typeorm/cli.js migration:run

sh: ts-node: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! misskey@11.34.0 migrate: `ts-node ./node_modules/typeorm/cli.js migration:run`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the misskey@11.34.0 migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-10-22T05_39_45_970Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

やはりマウントだけでは解決しませんね。
dockerの詳しい方のご回答待ちましょう。

@u1-liquid

This comment has been minimized.

@u1-liquid
Copy link
Contributor

あー
default.yml の

# Job concurrency per worker
deliverJobConcurrency: 128;
inboxJobConcurrency: 16;

ここのラインの;のせいでparse error が出てNaN扱いされてしまったのでは

@syuilo
Copy link
Member

syuilo commented Oct 22, 2019

あー
default.yml の

# Job concurrency per worker
deliverJobConcurrency: 128;
inboxJobConcurrency: 16;

ここのラインの;のせいでparse error が出てNaN扱いされてしまったのでは

あー

@mei23
Copy link
Contributor

mei23 commented Oct 22, 2019

あら
syuilo/Misskey.old@6a0affc

@NagaseYami
Copy link
Author

ahm7p

@NagaseYami
Copy link
Author

NagaseYami commented Oct 22, 2019

Missing process handler for job type __default__

セミコロン削除したら治りました。ありがとうございます。

しかしリモートフォローできない問題はまだ解決されていません。

58秒前 [remote.ap.deliver] https://misskey.io/users/7rkrarq81i/inbox --> 202
57秒前 [api] Internal error occurred in following/create
{
"e": {
"code": "QueryFailedError",
"stack": "QueryFailedError: duplicate key value violates unique constraint "IDX_d54a512b822fac7ed52800f6b4" at new QueryFailedError (/misskey/node_modules/typeorm/error/QueryFailedError.js:11:28) at Query.callback (/misskey/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:176:38) at Query.handleError (/misskey/node_modules/pg/lib/query.js:142:17) at Connection.connectedErrorMessageHandler (/misskey/node_modules/pg/lib/client.js:211:17) at Connection.emit (events.js:210:5) at Connection.EventEmitter.emit (domain.js:476:20) at Socket.<anonymous> (/misskey/node_modules/pg/lib/connection.js:126:12) at Socket.emit (events.js:210:5) at Socket.EventEmitter.emit (domain.js:476:20) at addChunk (_stream_readable.js:308:12) at readableAddChunk (_stream_readable.js:289:11) at Socket.Readable.push (_stream_readable.js:223:10) at TCP.onStreamRead (internal/stream_base_commons.js:182:23)",
"message": "duplicate key value violates unique constraint "IDX_d54a512b822fac7ed52800f6b4""
},
"ep": "following/create",
"ps": {
"i": "<<<masked>>>",
"userId": "7z51t0sp25"
}
}

@rinsuki
Copy link
Contributor

rinsuki commented Oct 22, 2019

@NagaseYami トークンが記載されていたためその部分を編集しました。速やかにその時利用していたブラウザから /i/settings/api でトークンを再生成しておくことをおすすめします。


それはそれとして、IDX_d54a512b822fac7ed52800f6b4
https://github.com/syuilo/misskey/blob/21064f7859d9ec55c817133923d3e2033bebc3f6/migration/1000000000000-Init.ts#L134
なので、既にDB上にフォローリクエストが作られている可能性があります。UI上で"フォロー申請をキャンセル"的なのが出なければ、DB上のfollow_requestsテーブルを操作して解決する可能性があります。

@NagaseYami
Copy link
Author

ご対応ありがとうございます。試しにやってみます。

@NagaseYami
Copy link
Author

念の為に、インスタンス全削除して、git cloneからやり直しました。
docker-compose.ymlとdocker.envは上に記載されたものと変わらず、
default.ymlから不要なセミコロンを削除しました。

すると問題なくリモートフォローできました。ありがとうございます。

@syuilo 本issuesのCloseよろしくお願いいたします。

@NagaseYami
Copy link
Author

NagaseYami commented Oct 22, 2019

まとめ

  • example.ymlに不要なセミコロンが入っています
# deliverJobConcurrency: 128;
# inboxJobConcurrency: 16;

@NagaseYami
Copy link
Author

@syuilo 本issuesのCloseよろしくお願いいたします。

あ、失礼、もう一つ少々気になったところですが。
misskeyをビルドしたら、もう一つよくわからないimageも作られましたが、

[ec2-user@ip-172-31-1-83 misskey]$ docker images
REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
misskey_web          latest              fae50888da53        9 minutes ago       731MB
<none>               <none>              b20647ca9ef8        11 minutes ago      1.38GB

この<none>は何なのかご存知の方いらっしゃいますでしょうか?

@u1-liquid
Copy link
Contributor

u1-liquid commented Oct 22, 2019

この<none>は何なのかご存知の方いらっしゃいますでしょうか?

こちらのArticleをご覧ください。
https://codechord.com/2019/08/docker-images-none-dangling/

@NagaseYami
Copy link
Author

こちらのArticleをご覧ください。
https://codechord.com/2019/08/docker-images-none-dangling/

多分ちょっと違うと思います。
同じ名前のimageを複数回ビルドすると確かに<none>になりますが、
自分はいつもビルドする前にdocker rmiで前回ビルドしたものを削除していますので、
今回の<none>imageは前回のビルド成果物ではなく、
一回のdocker-compose buildで2個のimageが生成されたと考えられます。
そもそもimageのサイズも大きく違います。
misskey_webが731MBで、<none>は1.38GBでした。
というわけでこの<none>は何しょう?

@u1-liquid
Copy link
Contributor

https://github.com/syuilo/misskey/blob/d2edd67cff676cca632f1fd79ef4d1e634a4e7a5/Dockerfile#L9
https://github.com/syuilo/misskey/blob/d2edd67cff676cca632f1fd79ef4d1e634a4e7a5/Dockerfile#L30
いまのMisskeyはdocker build時にbuilder とrunnerで2つのイメージを作成することになっています。
おそらく<none>はbuilderの方ですね。

@NagaseYami
Copy link
Author

かしこまりました。
ありがとうございます。

@syuilo syuilo closed this as completed Oct 22, 2019
@syuilo syuilo removed the ⚠️bug? This might be a bug label Oct 22, 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

5 participants