Docker overlay2 disk mounts not showing up correctly
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- docker, php
调研方向
从 lib/OperatingSystems/Linux.php 约第 197 行开始,这里使用 df -TPk 命令收集磁盘信息。使用 Docker 25 或更高版本以及 overlay2 重现该问题,然后验证服务器信息页面是否按预期显示磁盘。报告的修复方案是修改命令以包含 a 标志;请对照现有的 devicemapper 行为确认结果。
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce
- Run Nextcloud with docker v25 or higher
- Use overlay2 as mount type
- Go to server info page
Expected behaviour
Disks should show up as expected. Picture with docker v24 and mounts with devicemapper.
Actual behaviour
Disks do not show up. Picture with docker v27 and mounts with overlay2
This issue can be fixed by adding a flag (df -TPk to df -TPka) to https://github.com/nextcloud/serverinfo/blob/master/lib/OperatingSystems/Linux.php#L197
Server configuration
Operating system:
RHEL 9.3
Web server:
NGINX
Database:
MariaDB
PHP version:
8.2.20
Nextcloud version: (see Nextcloud admin page)
28.0.6
Where did you install Nextcloud from:
Docker hub
List of activated apps:
Enabled:
- activity: 2.20.0
- circles: 28.0.0
- cloud_federation_api: 1.11.0
- comments: 1.18.0
- contactsinteraction: 1.9.0
- dav: 1.29.1
- federatedfilesharing: 1.18.0
- federation: 1.18.0
- files: 2.0.0
- files_pdfviewer: 2.9.0
- files_reminders: 1.1.0
- files_sharing: 1.20.0
- files_trashbin: 1.18.0
- files_versions: 1.21.0
- firstrunwizard: 2.17.0
- logreader: 2.13.0
- lookup_server_connector: 1.16.0
- nextcloud_announcements: 1.17.0
- notifications: 2.16.0
- oauth2: 1.16.3
- password_policy: 1.18.0
- photos: 2.4.0
- privacy: 1.12.0
- provisioning_api: 1.18.0
- recommendations: 2.0.0
- related_resources: 1.3.0
- serverinfo: 1.18.0
- settings: 1.10.1
- sharebymail: 1.18.0
- support: 1.11.1
- survey_client: 1.16.0
- systemtags: 1.18.0
- text: 3.9.1
- theming: 2.3.0
- twofactor_backupcodes: 1.17.0
- updatenotification: 1.18.0
- user_ldap: 1.19.0
- user_oidc: 1.3.3
- user_status: 1.8.1
- viewer: 2.2.0
- weather_status: 1.8.0
- workflowengine: 2.10.0
Disabled:
- admin_audit: 1.18.0
- b2sharebridge: 4.2.0
- bruteforcesettings: 2.8.0
- dashboard: 7.8.0 (installed 7.8.0)
- encryption: 2.16.0
- files_external: 1.20.0
- suspicious_login: 6.0.0
- twofactor_totp: 10.0.0-beta.2
Nextcloud configuration:
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'upgrade.disable-web' => true,
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => 'dev.b2drop.csc.fi',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '28.0.6.1',
'overwrite.cli.url' => 'https://dev.b2drop.csc.fi',
'dbname' => 'owncloud',
'dbhost' => 'mariadb',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'redis' =>
array (
'host' => 'redis',
'port' => 6379,
),
'user_oidc' =>
array (
'auto_provision' => false,
'single_logout' => false,
),
'remember_login_cookie_lifetime' => 300,
'session_lifetime' => 60,
'session_relaxed_expiry' => true,
'session_keepalive' => false,
'auto_logout' => false,
'maintenance_window_start' => 1,
'theme' => 'b2drop',
'loglevel' => 2,
'maintenance' => false,
);
Client configuration
Browser:
Safari 17.5
Operating system:
macOS Sonoma 14.5
- 主要语言
- JavaScript
- 星标
- 133
- 派生
- 67
- 平均合并
- 22 小时 11 分钟
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/serverinfo 的其他 Issue
-
Database checks: `Select_full_join` warning is caused by the setup checks' own schema introspection未关闭
难度 4/5 3-5 天 新手友好度 45/100
nextcloud/serverinfo#1245 ·
维护者通常 1 天内回复
-
Database checks: ∞% reported as Failing when counter is zero; no way to acknowledge/mute a check未关闭0. Needs triage bug
难度 5/5 一周以上 新手友好度 35/100
nextcloud/serverinfo#1231 ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 4/5 3-5 天 新手友好度 48/100
nextcloud/serverinfo#1224 · 4 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 3/5 1-2 天 新手友好度 55/100
nextcloud/serverinfo#1223 ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 3/5 1-2 天 新手友好度 55/100
nextcloud/serverinfo#1221 ·
维护者通常 1 天内回复
查看 nextcloud/serverinfo 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
-
bug code-annotation
难度 2/5 1-3 小时 新手友好度 76/100
quarto-dev/quarto-cli#15215 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
521xueweihan/HelloGitHub#4133 ·
-
难度 1/5 1-3 小时 新手友好度 88/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
Hugo-SA/receita-random#20 ·
维护者通常 1 天内回复