Incompatibility with Nextcloud Recognize
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- docker, node.js
調査の方向性
まず、完全な Docker Compose または実行コマンドと Nextcloud のシステム構成を収集し、その後 Recognize Node.js の ffmpeg インストール失敗を再現します。報告されている uv_os_homedir ENOENT エラーと併せて、Docker イメージの HOME およびホームディレクトリの挙動を調査します。文書化された再現可能な構成またはイメージの変更によって Recognize が ffmpeg を正常にインストールできるようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
As I have mentioned in the past year in this issue https://github.com/nextcloud/recognize/issues/1096 (please disregard the title, I am using the Debian image, not the Alpine image), there is an issue for which Recognize (a Nextcloud "featured"/"official" app) does not work with the Docker image because it uses Node.js.
Node.js uses the uv_os_homedir function to get the HOME environment variable (for whatever reason) to install ffmpeg (which is otherwise installed just fine with Memories, other apps or simply with apt-get).
This is a "recurring" issue within Docker containers as seen in https://github.com/puppeteer/puppeteer/issues/9230.
I tried setting the HOME variable forcibly when launching docker to a dummy /home/nc-user directory to no avail (even tried creating a user with useradd -m nc-user as suggested in the issue above). Do you have any suggestions in getting this to work and/or potential fixes for all users of this image?
Below the logs for one of the three errors raised (this is the most relevant one):
[recognize] Error: Failed to install ffmpeg: os.js:68
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_homedir returned ENOENT (no such file or directory)
at Object.<anonymous> (/var/www/html/custom_apps/recognize/node_modules/env-paths/index.js:5:20)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/var/www/html/custom_apps/recognize/node_modules/ffmpeg-static/install.js:7:18)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) {
code: 'ERR_SYSTEM_ERROR',
info: {
errno: -2,
code: 'ENOENT',
message: 'no such file or directory',
syscall: 'uv_os_homedir'
},
errno: [Getter/Setter],
syscall: [Getter/Setter]
}
POST /settings/apps/enable
from xxx
- 主要言語
- Shell
- スター
- 7.4k
- フォーク
- 1.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/docker のほかの issue
-
1. To develop bug feature: cron image
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug docs
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
0. Needs triage bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
Imagick architecture mismatch (x86_64 vs aarch64) on official arm64 image causes Apache segfaultsオープン0. Needs triage bug
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
nextcloud/docker の issue をすべて見る
似ている issue
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan config対応中かも @jfcabral が今日担当しました。 オープンBug Good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
armbian/build#10995 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
lane:repo
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
SPARDiffData/differential-data-collection#42 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
alunduil/alunduil-chezmoi#923 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
xonsh/xontrib-abbrevs#11 ·