{"id":771,"date":"2022-04-18T14:49:41","date_gmt":"2022-04-18T06:49:41","guid":{"rendered":"https:\/\/blog.espnlol.com\/?p=771"},"modified":"2026-03-17T10:11:29","modified_gmt":"2026-03-17T02:11:29","slug":"nextcloud%e4%bd%bf%e7%94%a8%e4%b8%ad%e9%81%87%e5%88%b0%e7%9a%84%e4%b8%80%e4%ba%9b%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.espnlol.com\/?p=771","title":{"rendered":"nextcloud\u4f7f\u7528\u4e2d\u9047\u5230\u7684\u4e00\u4e9b\u95ee\u9898"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4efb\u610f\u95ee\u9898\u89e3\u51b3\u5927\u62db\uff1ahttps:\/\/docs.nextcloud.com\/server\/latest\/admin_manual\/configuration_server\/caching_configuration.html<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u57fa\u4e8edocker\u5b89\u88c5\u5b8cnextcloud\u4f1a\u63d0\u793a\u4e00\u4e0b\u9519\u8bef\uff0c\u5b89\u5168\u68c0\u67e5\u4e8b\u9879<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u6570\u636e\u5e93\u4e22\u5931\u4e86\u4e00\u4e9b\u7d22\u5f15\u3002\u7531\u4e8e\u7ed9\u5927\u7684\u6570\u636e\u8868\u6dfb\u52a0\u7d22\u5f15\u4f1a\u8017\u8d39\u4e00\u4e9b\u65f6\u95f4\uff0c\u56e0\u6b64\u7a0b\u5e8f\u6ca1\u6709\u81ea\u52a8\u5bf9\u5176\u8fdb\u884c\u4fee\u590d\u3002\u60a8\u53ef\u4ee5\u5728 Nextcloud \u8fd0\u884c\u65f6\u901a\u8fc7\u547d\u4ee4\u884c\u624b\u52a8\u6267\u884c \u201cocc db:add-missing-indices\u201d \u547d\u4ee4\u4fee\u590d\u4e22\u5931\u7684\u7d22\u5f15\u3002\u7d22\u5f15\u4fee\u590d\u540e\u4f1a\u5927\u5927\u63d0\u9ad8\u76f8\u5e94\u8868\u7684\u67e5\u8be2\u901f\u5ea6\u3002\ndocker exec -u www-data -i nextcloud_app_1 php occ db:add-missing-indices\n\n#\u6b64\u5b9e\u4f8b\u4e2d\u7684 php-imagick \u6a21\u5757\u4e0d\u652f\u6301 SVG\u3002\u4e3a\u4e86\u83b7\u5f97\u66f4\u597d\u7684\u517c\u5bb9\u6027\uff0c\u5efa\u8bae\u5b89\u88c5\u5b83\u3002\ndocker exec -i nextcloud_app_1 apt update &amp;&amp; docker exec -i nextcloud_app_1 apt install imagemagick\n\n#INVALID_HASH: core\/js\/mimetypelist.js in the list of invalid files\ndocker exec -i nextcloud_app_1 cp -av \/usr\/src\/nextcloud\/core\/js\/mimetypelist.js core\/js\/\n\n#\u60a8\u7684\u7f51\u9875\u670d\u52a1\u5668\u672a\u6b63\u786e\u8bbe\u7f6e\u4ee5\u89e3\u6790\u201c\/.well-known\/caldav\u201d\u3002\u66f4\u591a\u4fe1\u606f\u8bf7\u53c2\u89c1\u6587\u6863\u3002\n#\u60a8\u7684\u7f51\u9875\u670d\u52a1\u5668\u672a\u6b63\u786e\u8bbe\u7f6e\u4ee5\u89e3\u6790\u201c\/.well-known\/carddav\u201d\u3002\u66f4\u591a\u4fe1\u606f\u8bf7\u53c2\u89c1\u6587\u6863\u3002\n#\u5728nginx\u4ee3\u7406\u4e2d\u6dfb\u52a0\nlocation = \/.well-known\/carddav {\n  return 301 https:\/\/\u7f51\u76d8\u57df\u540d:443\/remote.php\/dav;\n}\nlocation = \/.well-known\/caldav {\n  return 301 https:\/\/\u7f51\u76d8\u57df\u540d:443\/remote.php\/dav;\n}\nlocation = \/.well-known\/host-meta {\n  return 301 https:\/\/\u7f51\u76d8\u57df\u540d:443\/public.php?service=host-meta;\n}\nlocation = \/.well-known\/host-meta.json {\n  return 301 https:\/\/\u7f51\u76d8\u57df\u540d:443\/public.php?service=host-meta-json;\n}\n    location = \/.well-known\/webfinger {\n  return 301 https:\/\/\u7f51\u76d8\u57df\u540d:443\/index.php\/.well-known\/webfinger;\n}\n    location = \/.well-known\/nodeinfo {\n  return 301 https:\/\/\u7f51\u76d8\u57df\u540d:443\/index.php\/.well-known\/nodeinfo;\n}\n\n#\u5982\u679c\u662fapache\u670d\u52a1\u5668,\u7f16\u8f91\/etc\/apache2\/sites-available\/000-default.conf\uff0c\u589e\u52a0\u4e0b\u5217\n        &lt;Directory \/>\n           Options FollowSymLinks\n           AllowOverride All\n           Order deny,allow\n           Deny from all\n        &lt;\/Directory>\n\n        &lt;Directory \"\/var\/www\/html\">\n           Options Indexes FollowSymLinks MultiViews\n           AllowOverride All\n           Order allow,deny\n           Allow from all\n        &lt;\/Directory><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u51b3\u89c6\u9891\u4e0d\u663e\u793a\u7f29\u7565\u56fe<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u5b89\u88c5ffmpeg\nsudo apt-get install ffmpeg ghostscript\nsudo service apache2 restart\n\n#\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\n'enabledPreviewProviders' =>\n  array (\n    0 => 'OC\\\\Preview\\\\PNG',\n    1 => 'OC\\\\Preview\\\\JPEG',\n    2 => 'OC\\\\Preview\\\\GIF',\n    3 => 'OC\\\\Preview\\\\HEIC',\n    4 => 'OC\\\\Preview\\\\BMP',\n    5 => 'OC\\\\Preview\\\\XBitmap',\n    6 => 'OC\\\\Preview\\\\MP3',\n    7 => 'OC\\\\Preview\\\\TXT',\n    8 => 'OC\\\\Preview\\\\MarkDown',\n    9 => 'OC\\\\Preview\\\\Movie',\n    9 => 'OC\\\\Preview\\\\PDF',\n    9 => 'OC\\\\Preview\\\\MP4',\n  ),\n\n#\u5347\u7ea733.0.0\u4e4b\u540e\u4e0d\u663e\u793a\u7f29\u7565\u56fe\uff0c\u4e14\u65b0\u4e0a\u4f20\u7684\u56fe\u7247\u53ef\u4ee5\u751f\u6210\u7f29\u7565\u56fe\n#\u6d4f\u89c8\u5668\u62a5\u9519F12\u63a7\u5236\u53f0-\u7f51\u7edc\u770b\u5230\u62a5\u9519net::ERR_HTTP2_PROTOCOL_ERROR\uff0c\u540c\u65f6\u67e5\u770b\u65e5\u5fd7\u53d1\u73b0\u5927\u91cf\u76842026\/03\/16 07:17:41 [error] 30#30: *314750 upstream prematurely closed FastCGI request while reading upstream, client: 10.111.101.1, server: , request: \"GET \/apps\/photos\/api\/v1\/preview\/140?etag=67029b0964d2810167319f65a4af3009&amp;x=1024&amp;y=\u7c7b\u4f3c\u62a5\u9519\uff0c\u8fd9\u79cd\u53ea\u9700\u91cd\u5efa\u7f29\u7565\u56fe\u7f13\u5b58\u5373\u53ef\n#\u6e05\u7a7a\u7f29\u7565\u56fe\u9884\u89c8\ndocker exec -u www-data -i nextcloud-app-1  php occ preview:cleanup\n#\u751f\u6210\u7f29\u7565\u56fe\u9884\u89c8\ndocker exec -u www-data -i nextcloud-app-1  php occ preview:generate-all<\/pre>\n\n\n\n<p>\u505a\u5b8c\u4e0a\u8ff0\u914d\u7f6e\u53d1\u73b0PDF\u7f29\u7565\u56fe\u8fd8\u662f\u6ca1\u6709\u663e\u793a\u6210\u529f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u901a\u8fc7\u65e5\u5fd7\u53d1\u73b0pdf\u5728\u505a\u8f6c\u6362\u7684\u65f6\u5019\u51fa\u53d1\u4e86\u6743\u9650\u95ee\u9898\uff1aImagickException: attempt to perform an operation not allowed by the security policy `PDF' @ error\/constitute.c\/IsCoderAuthorized\/421******\n\n#\u7f16\u8f91Imagick\u7684\u914d\u7f6e\u6587\u4ef6\nvi \/etc\/ImageMagick-6\/policy.xml\n'''\n  &lt;!-- disable ghostscript format types -->\n  &lt;policy domain=\"coder\" rights=\"read|write\" pattern=\"PS\" \/>\n  &lt;policy domain=\"coder\" rights=\"read|write\" pattern=\"PS2\" \/>\n  &lt;policy domain=\"coder\" rights=\"read|write\" pattern=\"PS3\" \/>\n  &lt;policy domain=\"coder\" rights=\"read|write\" pattern=\"EPS\" \/>\n  &lt;policy domain=\"coder\" rights=\"read|write\" pattern=\"PDF\" \/>\n  &lt;policy domain=\"coder\" rights=\"read|write\" pattern=\"XPS\" \/>\n'''\n\n#\u91cd\u542fapache2\u670d\u52a1\n\/etc\/init.d\/apache2 restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">nextcloud\u65e0\u6cd5\u8bbf\u95ee\u5e94\u7528\u5546\u5e97<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u5728\u4f7f\u7528\u4e2d\u67d0\u4e9b\u62c9\u80ef\u7f51\u7edc\u65e0\u6cd5\u8bbf\u95ee\u5b98\u65b9\u6e90\uff0c\u5bfc\u81f4\u5e94\u7528\u5546\u5e97\u52a0\u8f7d\u4e0d\u51fa\u6765\n\u4f7f\u7528APP\u5546\u5e97\u56fd\u5185\u955c\u50cf\n\u955c\u50cf\u5730\u5740\uff1ahttps:\/\/www.orcy.net\/ncapps\/v1\/\ngithub\u94fe\u63a5\u52a0\u901f\u4ee3\u7406\u7684\u955c\u50cf\uff1ahttps:\/\/www.orcy.net\/ncapps\/v2\/\n\n#\u5728config.php\u4e2d\u589e\u52a0\u4ee5\u4e0b\u914d\u7f6e\n'appstoreenabled' => true,\n'appstoreurl' => 'https:\/\/www.orcy.net\/ncapps\/v2\/',<\/pre>\n\n\n\n<p>\u8bbe\u7f6e\u9ed8\u8ba4\u8bed\u8a00\u548c\u9ed8\u8ba4\u65f6\u533a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">  'default_language' => 'zh_CN',\n  'default_locale' => 'zh',<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528redis\u7f13\u5b58\u63d0\u9ad8\u6548\u7387<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u914d\u7f6e\u597dredis\uff0c\u4f7f\u7528\u4e0b\u5217\u914d\u7f6e\u5373\u53ef\uff0c\u5982\u679c\u6709\u5176\u4ed6\u95ee\u9898\u5168\u529b\u6392\u67e5redis\u6545\u969c\n  'memcache.local' => '\\\\OC\\\\Memcache\\\\redis',\n  'memcache.distributed' => '\\OC\\Memcache\\Redis',\n  'memcache.locking' => '\\OC\\Memcache\\Redis',\n  'redis' => [\n       'host'     => '1.1.1.1',\n       'port'     => 6379,\n       'dbindex'  => 0,\n       'password' => 'xxxxxx',\n       'timeout'  => 1.5,\n  ],\n\n#php\u4f18\u5316\u914d\u7f6e\nredis.session.locking_enabled=1\nredis.session.lock_retries=-1\nredis.session.lock_wait_time=10000<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">nextcloud\u57fa\u4e8ecurl\u4e0b\u8f7dshare\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u57fa\u4e8e\u5206\u4eab\u8fde\u63a5\u5b9e\u73b0\u975e\u4ea4\u4e92\u4e0b\u8f7d\n#\u5982\u679c\u5206\u4eab\u4e3a\u6574\u4e2a\u76ee\u5f55\n#\u53ef\u53c2\u8003\u5de5\u5177:https:\/\/github.com\/aertslab\/nextcloud_share_url_downloader\ncurl -u \"SHARE_ID:SHARE_PASSWORD\" -H 'X-Requested-With: XMLHttpRequest' -O \"https:\/\/urls\/public.php\/webdav\/xxxxxx.tgz\"\n#\u5982\u679c\u5206\u4eab\u4e3a\u5355\u4e2a\u6587\u4ef6\ncurl -u \"SHARE_ID:SHARE_PASSWORD\" -H 'X-Requested-With: XMLHttpRequest' -o xxxxxx.tgz \"https:\/\/urls\/public.php\/webdav\/\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">nextcloud\u57fa\u4e8e\u7528\u6237\u4f7f\u7528curl\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u57fa\u4e8e\u7528\u6237\u540d\u5bc6\u7801\u5b9e\u73b0\u975e\u4ea4\u4e92\u4e0a\u4f20\u548c\u4e0b\u8f7d\n#upload\ncurl -X PUT -u yasu:&lt;pass> https:\/\/urls\/remote.php\/dav\/files\/xxx\/ -T .\/image.jpg\n#download\ncurl -X GET -u yasu:&lt;pass> https:\/\/urls\/remote.php\/dav\/files\/xxx\/Nextcloud.png --output Nextcloud.png<\/pre>\n\n\n\n<p>\u670d\u52a1\u5668\u4e0a\u4f7f\u7528mv\u5c06\u6587\u4ef6\u66f4\u65b0\u5230\u7528\u6237\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u79fb\u52a8\u6570\u636e\u5230\u7528\u6237\u76ee\u5f55\u4e0b\nmv bge-m3.tgz \/$nextcloud_home\/data\/zhangsan\/files\/\n#\u66f4\u65b0\u6587\u4ef6\u4fe1\u606f\ndocker exec -u www-data -i nextcloud_app_1 php occ files:scan --path=zhangsan<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">nextcloud\u914d\u7f6e\u6587\u4ef6config.php\u5168\u89c8<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php\n$CONFIG = array (\n  'htaccess.RewriteBase' => '\/',\n  'memcache.local' => '\\\\OC\\\\Memcache\\\\redis',\n  'memcache.distributed' => '\\OC\\Memcache\\Redis',\n  'memcache.locking' => '\\OC\\Memcache\\Redis',\n  'redis' => [\n       'host'     => '1.1.1.1',\n       'port'     => 6379,\n       'dbindex'  => 0,\n       'password' => 'xxxxxxxx',\n       'timeout'  => 1.5,\n  ],\n  'apps_paths' => \n  array (\n    0 => \n    array (\n      'path' => '\/var\/www\/html\/apps',\n      'url' => '\/apps',\n      'writable' => false,\n    ),\n    1 => \n    array (\n      'path' => '\/var\/www\/html\/custom_apps',\n      'url' => '\/custom_apps',\n      'writable' => true,\n    ),\n  ),\n  'instanceid' => 'xxxxxgsvdlxg',\n  'passwordsalt' => 'xxxxxxxxUJTczZLe2hWU\/M0t',\n  'secret' => 'xxxxxxxxxxmZxDgXGv43+rVAFXtL080VS7',\n  'trusted_domains' => \n  array (\n    0 => '192.168.2.181:8080',\n    1 => 'xxx.xxxxx.com:8443',\n  ),\n  'datadirectory' => '\/var\/www\/html\/data',\n  'dbtype' => 'mysql',\n  'version' => '23.0.3.2',\n  'overwrite.cli.url' => 'http:\/\/xxx.xxxxxx.com:8443',\n  'forcessl' => true,\n  'overwriteprotocol' => 'https',\n  'dbname' => 'nextcloud',\n  'dbhost' => 'db',\n  'dbport' => '',\n  'dbtableprefix' => 'oc_',\n  'mysql.utf8mb4' => true,\n  'dbuser' => 'nextcloud',\n  'dbpassword' => 'xxxxxxxx',\n  'installed' => true,\n  'mail_smtpmode' => 'smtp',\n  'mail_sendmailmode' => 'smtp',\n  'default_language' => 'zh_CN',\n  'default_locale' => 'zh',\n  'mail_from_address' => 'xxxx',\n  'mail_domain' => '126.com',\n  'mail_smtpauthtype' => 'LOGIN',\n  'mail_smtpauth' => 1,\n  'mail_smtphost' => 'smtp.126.com',\n  'mail_smtpport' => '465',\n  'mail_smtpname' => 'xxxxxxxxx@126.com',\n  'mail_smtppassword' => 'Oxxxxxxxxx',\n  'mail_smtpsecure' => 'ssl',\n  'enabledPreviewProviders' => \n  array (\n    0 => 'OC\\\\Preview\\\\PNG',\n    1 => 'OC\\\\Preview\\\\JPEG',\n    2 => 'OC\\\\Preview\\\\GIF',\n    3 => 'OC\\\\Preview\\\\HEIC',\n    4 => 'OC\\\\Preview\\\\BMP',\n    5 => 'OC\\\\Preview\\\\XBitmap',\n    6 => 'OC\\\\Preview\\\\MP3',\n    7 => 'OC\\\\Preview\\\\TXT',\n    8 => 'OC\\\\Preview\\\\MarkDown',\n    9 => 'OC\\\\Preview\\\\Movie',\n    10 => 'OC\\\\Preview\\\\PDF',\n    11 => 'OC\\\\Preview\\\\MP4',\n  ),\n  'default_phone_region' => 'CN',\n  'maintenance' => false,\n  'loglevel' => 0,\n  'theme' => '',\n  'appstoreenabled' => true,\n  'appstoreurl' => 'https:\/\/www.orcy.net\/ncapps\/v2\/',\n);<\/pre>\n\n\n\n<p>\u5347\u7ea7\u5931\u8d25\u5bfc\u81f4\u8fdb\u5165\u7ef4\u62a4\u6a21\u5f0f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\n#################\nAn unhandled exception has been thrown:\nError: Call to undefined method OCA\\Music\\Utility\\Util::extractUserIds() in \/var\/www\/html\/custom_apps\/music\/lib\/Utility\/Scanner.php:392\nStack trace:\n#0 \/var\/www\/html\/custom_apps\/music\/lib\/Utility\/Scanner.php(411): OCA\\Music\\Utility\\Scanner->deleteImage(Array, NULL)\n#1 \/var\/www\/html\/custom_apps\/music\/lib\/Hooks\/FileHooks.php(40): OCA\\Music\\Utility\\Scanner->delete(64391)\n#2 [internal function]: OCA\\Music\\Hooks\\FileHooks::deleted(Object(OC\\Files\\Node\\File))\n#3 \/var\/www\/html\/lib\/private\/Hooks\/EmitterTrait.php(88): call_user_func_array(Array, Array)\n#4 \/var\/www\/html\/lib\/private\/Hooks\/PublicEmitter.php(22): OC\\Hooks\\BasicEmitter->emit('\\\\OC\\\\Files', 'preDelete', Array)\n#5 \/var\/www\/html\/lib\/private\/Files\/Node\/Root.php(126): OC\\Hooks\\PublicEmitter->emit('\\\\OC\\\\Files', 'preDelete', Array)\n#6 \/var\/www\/html\/lib\/private\/Files\/Node\/Node.php(110): OC\\Files\\Node\\Root->emit('\\\\OC\\\\Files', 'preDelete', Array)\n#7 \/var\/www\/html\/lib\/private\/Files\/Node\/File.php(110): OC\\Files\\Node\\Node->sendHooks(Array)\n#8 \/var\/www\/html\/lib\/private\/Files\/SimpleFS\/SimpleFile.php(114): OC\\Files\\Node\\File->delete()\n#9 \/var\/www\/html\/lib\/private\/Template\/JSCombiner.php(233): OC\\Files\\SimpleFS\\SimpleFile->delete()\n#10 \/var\/www\/html\/lib\/private\/Repair\/ClearFrontendCaches.php(36): OC\\Template\\JSCombiner->resetCache()\n#11 \/var\/www\/html\/lib\/private\/Repair.php(104): OC\\Repair\\ClearFrontendCaches->run(Object(OC\\Repair))\n#12 \/var\/www\/html\/lib\/private\/Updater.php(265): OC\\Repair->run()\n#13 \/var\/www\/html\/lib\/private\/Updater.php(100): OC\\Updater->doUpgrade('31.0.8.1', '31.0.6.2')\n#14 \/var\/www\/html\/core\/Command\/Upgrade.php(192): OC\\Updater->upgrade()\n#15 \/var\/www\/html\/3rdparty\/symfony\/console\/Command\/Command.php(326): OC\\Core\\Command\\Upgrade->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#16 \/var\/www\/html\/3rdparty\/symfony\/console\/Application.php(1078): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#17 \/var\/www\/html\/3rdparty\/symfony\/console\/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand(Object(OC\\Core\\Command\\Upgrade), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#18 \/var\/www\/html\/3rdparty\/symfony\/console\/Application.php(175): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#19 \/var\/www\/html\/lib\/private\/Console\/Application.php(187): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#20 \/var\/www\/html\/console.php(87): OC\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput))\n#21 \/var\/www\/html\/occ(33): require_once('\/var\/www\/html\/c...')\n#22 {main}    0\/0 [--->------------------------]   0%Warning: \/var\/www\/html\/config\/apps.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/apps.config.php\nWarning: \/var\/www\/html\/config\/redis.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/redis.config.php\nWarning: \/var\/www\/html\/config\/reverse-proxy.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/reverse-proxy.config.php\nWarning: \/var\/www\/html\/config\/s3.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/s3.config.php\nWarning: \/var\/www\/html\/config\/smtp.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/smtp.config.php\nWarning: \/var\/www\/html\/config\/swift.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/swift.config.php\nWarning: \/var\/www\/html\/config\/upgrade-disable-web.config.php differs from the latest version of this image at \/usr\/src\/nextcloud\/config\/upgrade-disable-web.config.php\n=> Searching for hook scripts (*.sh) to run, located in the folder \"\/docker-entrypoint-hooks.d\/before-starting\"\n==> Skipped: the \"before-starting\" folder is empty (or does not exist)\n[15-Aug-2025 16:35:44] NOTICE: fpm is running, pid 1\n[15-Aug-2025 16:35:44] NOTICE: ready to handle connections\n11.111.96.4 -  15\/Aug\/2025:16:35:51 +0800 \"GET \/ocs\/v2.php\" 503\n11.111.96.4 -  15\/Aug\/2025:16:35:50 +0800 \"GET \/index.php\" 503\n###################\n\n#\u901a\u8fc7\u65e5\u5fd7\u770b\u51fa\u5728\u5347\u7ea7\u65f6\u5e94\u7528music\u5bfc\u81f4\u5347\u7ea7\u5931\u8d25\uff0c\u540c\u65f6\u540e\u7aef\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\u7531\u4e8e\u592a\u8001\u4e86\u7f3a\u5c11\u914d\u7f6e\u5bfc\u81f4\u4e86\u8b66\u544a\uff0c\u5904\u7406\u8fc7\u7a0b\n#\u5907\u4efd\u8001\u7684\u914d\u7f6e\u6587\u4ef6\nmv \/var\/www\/html\/config \/var\/www\/html\/config.bak\n\ncp \/usr\/src\/nextcloud\/config\/apps.config.php \/var\/www\/html\/config\/apps.config.php \ncp \/usr\/src\/nextcloud\/config\/redis.config.php \/var\/www\/html\/config\/redis.config.php\ncp \/usr\/src\/nextcloud\/config\/reverse-proxy.config.php \/var\/www\/html\/config\/reverse-proxy.config.php\ncp \/usr\/src\/nextcloud\/config\/s3.config.php \/var\/www\/html\/config\/s3.config.php\ncp \/usr\/src\/nextcloud\/config\/smtp.config.php \/var\/www\/html\/config\/smtp.config.php\ncp \/usr\/src\/nextcloud\/config\/swift.config.php \/var\/www\/html\/config\/swift.config.php\ncp \/usr\/src\/nextcloud\/config\/upgrade-disable-web.config.php \/var\/www\/html\/config\/upgrade-disable-web.config.php\n\n#\u5173\u95ed\u5931\u8d25\u5e94\u7528\nphp occ app:disable music\n\n#\u5173\u95ed\u7ef4\u62a4\u6a21\u5f0f\nphp occ maintenance:mode --off\n\n#\u5347\u7ea7\u670d\u52a1\nphp occ upgrade<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4efb\u610f\u95ee\u9898\u89e3\u51b3\u5927\u62db\uff1ahttps:\/\/docs.nextcloud.com\/serv &hellip; <a href=\"https:\/\/blog.espnlol.com\/?p=771\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-771","post","type-post","status-publish","format-standard","hentry","category-pan"],"_links":{"self":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=771"}],"version-history":[{"count":2,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":1067,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions\/1067"}],"wp:attachment":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}