NextCloud装错app卡死

问题描述

我这里挂了个外部存储,但是外部存储内容有点多,导致Nextcloud不停建立索引,网页都无响应。
没法进网页就没法从网页端关闭这个东西。只能考虑命令行。

命令

事先要求: 你一定要知道是哪个应用导致你卡死的, 例如richdocumentsXXXXX。进入docker后, 首先要看看应用叫啥名字? 命令如下:

1
sudo -u www-data php occ app:list

然后禁用这个app/插件

1
sudo -u www-data php occ app:disable <出了问题的应用>

比如我这里

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
$ docker exec -it 01fb /bin/bash                                                                       [15:32:49]
01fb977d257d:/var/www/html# sudo -u www-data php occ app:list

Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
The current PHP memory limit is below the recommended value of 512MB.
Enabled:
- activity: 2.19.0
- admin_audit: 1.17.0
- bruteforcesettings: 2.7.0
- circles: 27.0.1
- cloud_federation_api: 1.10.0
- comments: 1.17.0
- contactsinteraction: 1.8.0
- dashboard: 7.7.0
- dav: 1.27.0
- federatedfilesharing: 1.17.0
- federation: 1.17.0
- files: 1.22.0
- files_external: 1.19.0
- files_pdfviewer: 2.8.0
- files_reminders: 1.0.0
- files_rightclick: 1.6.0
- files_sharing: 1.19.0
- files_trashbin: 1.17.0
- files_versions: 1.20.0
- firstrunwizard: 2.16.0
- logreader: 2.12.0
- lookup_server_connector: 1.15.0
- nextcloud-aio: 0.4.0
- nextcloud_announcements: 1.16.0
- notifications: 2.15.0
- notify_push: 0.6.5
- oauth2: 1.15.1
- password_policy: 1.17.0
- photos: 2.3.0
- privacy: 1.11.0
- provisioning_api: 1.17.0
- recommendations: 1.6.0
- related_resources: 1.2.0
- richdocuments: 8.2.3
- serverinfo: 1.17.0
- settings: 1.9.0
- sharebymail: 1.17.0
- spreed: 17.1.3
- support: 1.10.0
- survey_client: 1.15.0
- systemtags: 1.17.0
- text: 3.8.0
- theming: 2.2.0
- twofactor_backupcodes: 1.16.0
- user_status: 1.7.0
- viewer: 2.1.0
- weather_status: 1.7.0
- workflowengine: 2.9.0
Disabled:
- encryption: 2.15.0
- suspicious_login: 5.0.0
- twofactor_totp: 9.0.0
- user_ldap: 1.17.0
01fb977d257d:/var/www/html# sudo -u www-data php occ app:list | grep external
The current PHP memory limit is below the recommended value of 512MB.
- files_external: 1.19.0
01fb977d257d:/var/www/html# sudo -u www-data php occ app:disable files_external

Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
The current PHP memory limit is below the recommended value of 512MB.
files_external 1.19.0 disabled

关闭files_external解决问题。


NextCloud装错app卡死
http://blog.jiuge.host/post/20231203154500.html
作者
Pigeon.🕊
发布于
2023年12月3日
许可协议
CC BY-NC-SA 3.0