警告:不允许编辑大小超过 256 KiB 的文档
Warning: Editing of document with size more than 256 KiB is not allowed
针对 Couchbase Server 4.5 和 Ubuntu 14.04
测试的解决方案
从 4.5 版开始,此解决方案不再有效:
vim /opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/ui/app.min.js
/docBytesLimit
编辑并保存
支持人员的回答:
In Couchbase Server 4.5.0 we ship with a new UI, and the value for docBytesLimit is set in a different location (/opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/ui/app/constants/constants.js
in 4.5.0 vs. /opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/js/documents.js
for the old UI).
There is a slight complication with the new UI, in that for performance reasons the JavaScript code is "minified" and the above constants.js is actually bundled in to /opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/ui/app.min.js
when we build the Couchbase Server package.
If you want to change the value for docBytesLimit you can either edit app.min.js
directly, or you can edit constants.js
and load the UI without using the "minified" version of the JavaScript by adding minified=false
to the URL you use to connect to your cluster:
http://my.couchbase.cluster:8091/ui/index.html?minified=false
There will be a slight delay the first time you connect using this method.
Please bear in mind that any changes you make to these files are completely unsupported, and that the changes will likely be lost when you perform an upgrade.
针对 Couchbase Server 4.5 和 Ubuntu 14.04
测试的解决方案从 4.5 版开始,此解决方案不再有效:
vim /opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/ui/app.min.js
/docBytesLimit
编辑并保存
支持人员的回答:
In Couchbase Server 4.5.0 we ship with a new UI, and the value for docBytesLimit is set in a different location (
/opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/ui/app/constants/constants.js
in 4.5.0 vs./opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/js/documents.js
for the old UI). There is a slight complication with the new UI, in that for performance reasons the JavaScript code is "minified" and the above constants.js is actually bundled in to/opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/ui/app.min.js
when we build the Couchbase Server package. If you want to change the value for docBytesLimit you can either editapp.min.js
directly, or you can editconstants.js
and load the UI without using the "minified" version of the JavaScript by addingminified=false
to the URL you use to connect to your cluster:http://my.couchbase.cluster:8091/ui/index.html?minified=false
There will be a slight delay the first time you connect using this method. Please bear in mind that any changes you make to these files are completely unsupported, and that the changes will likely be lost when you perform an upgrade.