Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control Panel, Full Text Search Not Working #275

Open
swt83 opened this issue Feb 4, 2021 · 3 comments
Open

Control Panel, Full Text Search Not Working #275

swt83 opened this issue Feb 4, 2021 · 3 comments

Comments

@swt83
Copy link

swt83 commented Feb 4, 2021

My Full Text search page isn't loading in the Control Panel.

When I looked at /var/log/onlyoffice/web.api.log I saw this:

2021-02-03 20:10:47,147 ERROR [388] ASC.Api - method error: https://127.0.0.1/api/2.0/portal/search/state.json - Server error Elasticsearch.Net.ElasticsearchClientException: Error: ConnectFailure (Connection refused). Call: Status code unknown from: GET /_cat/indices?s=index ---> System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
  at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <88f564ea69dd4dc8ba9bf979e48d5996>:0
  at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <88f564ea69dd4dc8ba9bf979e48d5996>:0
  at System.Net.WebConnection+<>c.<Connect>b__16_1 (System.IAsyncResult asyncResult) [0x00006] in <88f564ea69dd4dc8ba9bf979e48d5996>:0
  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <f2b3ab7dfff746f594d2ef5b16ec3c90>:0
--- End of stack trace from previous location where exception was thrown ---

Any ideas how to fix?

@Carazyda
Copy link
Member

Carazyda commented Feb 5, 2021

Please check systemctl status elasticsearch and /var/log/onlyoffice/Index/elasticsearch.log for errors. Make sure you have enought RAM (8gb+ recommended).

@swt83
Copy link
Author

swt83 commented Feb 5, 2021

Status showed active. Server has 8 GB ram. Log showed this:

[2021-02-05T16:28:50,901][INFO ][o.e.e.NodeEnvironment    ] [localhost] using [1] data paths, mounts [[/ (/dev/root)]], net usable_space [133.2gb], net total_space [156.9gb], types [ext4]
[2021-02-05T16:28:50,969][INFO ][o.e.e.NodeEnvironment    ] [localhost] heap size [990.7mb], compressed ordinary object pointers [true]
[2021-02-05T16:28:51,005][INFO ][o.e.n.Node               ] [localhost] node name [localhost], node ID [J8sHnQmrRGOb1UTHzE0PYg], cluster name [elasticsearch]
[2021-02-05T16:28:51,007][INFO ][o.e.n.Node               ] [localhost] version[7.4.0], pid[773], build[default/deb/22e1767283e61a198cb4db791ea66e3f11ab9910/2019-09-27T08:36:48.569419Z], OS[Linux/5.10.2-x86_64-linode140/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13/13+33]
[2021-02-05T16:28:51,008][INFO ][o.e.n.Node               ] [localhost] JVM home [/usr/share/elasticsearch/jdk]
[2021-02-05T16:28:51,009][INFO ][o.e.n.Node               ] [localhost] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-3341852734001699046, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Dio.netty.allocator.type=unpooled, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=deb, -Des.bundled_jdk=true]
[2021-02-05T16:28:56,526][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [aggs-matrix-stats]
[2021-02-05T16:28:56,527][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [analysis-common]
[2021-02-05T16:28:56,528][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [data-frame]
[2021-02-05T16:28:56,528][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [flattened]
[2021-02-05T16:28:56,529][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [frozen-indices]
[2021-02-05T16:28:56,529][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-common]
[2021-02-05T16:28:56,529][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-geoip]
[2021-02-05T16:28:56,530][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-user-agent]
[2021-02-05T16:28:56,530][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-expression]
[2021-02-05T16:28:56,531][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-mustache]
[2021-02-05T16:28:56,531][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-painless]
[2021-02-05T16:28:56,531][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [mapper-extras]
[2021-02-05T16:28:56,532][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [parent-join]
[2021-02-05T16:28:56,532][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [percolator]
[2021-02-05T16:28:56,532][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rank-eval]
[2021-02-05T16:28:56,533][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [reindex]
[2021-02-05T16:28:56,533][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-url]
[2021-02-05T16:28:56,534][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [search-business-rules]
[2021-02-05T16:28:56,534][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [spatial]
[2021-02-05T16:28:56,534][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [systemd]
[2021-02-05T16:28:56,535][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [transport-netty4]
[2021-02-05T16:28:56,535][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [vectors]
[2021-02-05T16:28:56,536][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-analytics]
[2021-02-05T16:28:56,536][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ccr]
[2021-02-05T16:28:56,536][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-core]
[2021-02-05T16:28:56,537][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-deprecation]
[2021-02-05T16:28:56,537][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-graph]
[2021-02-05T16:28:56,538][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ilm]
[2021-02-05T16:28:56,538][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-logstash]
[2021-02-05T16:28:56,538][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ml]
[2021-02-05T16:28:56,539][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-monitoring]
[2021-02-05T16:28:56,539][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-rollup]
[2021-02-05T16:28:56,540][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-security]
[2021-02-05T16:28:56,540][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-sql]
[2021-02-05T16:28:56,540][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-voting-only-node]
[2021-02-05T16:28:56,541][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-watcher]
[2021-02-05T16:28:56,542][INFO ][o.e.p.PluginsService     ] [localhost] loaded plugin [ingest-attachment]
[2021-02-05T16:29:03,884][INFO ][o.e.x.s.a.s.FileRolesStore] [localhost] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2021-02-05T16:29:05,054][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [localhost] [controller/2027] [Main.cc@110] controller (64 bit): Version 7.4.0 (Build 11d694e7bae395) Copyright (c) 2019 Elasticsearch BV
[2021-02-05T16:29:06,042][DEBUG][o.e.a.ActionModule       ] [localhost] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security
[2021-02-05T16:29:06,776][INFO ][o.e.d.DiscoveryModule    ] [localhost] using discovery type [zen] and seed hosts providers [settings]
[2021-02-05T16:29:08,603][INFO ][o.e.n.Node               ] [localhost] initialized
[2021-02-05T16:29:08,604][INFO ][o.e.n.Node               ] [localhost] starting ...
[2021-02-05T16:29:08,855][INFO ][o.e.t.TransportService   ] [localhost] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2021-02-05T16:29:08,937][WARN ][o.e.b.BootstrapChecks    ] [localhost] the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2021-02-05T16:29:08,947][INFO ][o.e.c.c.Coordinator      ] [localhost] cluster UUID [D2pHZG_wSSGiDjeaJYyQHw]
[2021-02-05T16:29:08,964][INFO ][o.e.c.c.ClusterBootstrapService] [localhost] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered
[2021-02-05T16:29:09,255][INFO ][o.e.c.s.MasterService    ] [localhost] elected-as-master ([1] nodes joined)[{localhost}{J8sHnQmrRGOb1UTHzE0PYg}{SHc8daXDR-yjpRGtJkh-cg}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=8330313728, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 5, version: 27, reason: master node changed {previous [], current [{localhost}{J8sHnQmrRGOb1UTHzE0PYg}{SHc8daXDR-yjpRGtJkh-cg}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=8330313728, xpack.installed=true, ml.max_open_jobs=20}]}
[2021-02-05T16:29:09,369][INFO ][o.e.c.s.ClusterApplierService] [localhost] master node changed {previous [], current [{localhost}{J8sHnQmrRGOb1UTHzE0PYg}{SHc8daXDR-yjpRGtJkh-cg}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=8330313728, xpack.installed=true, ml.max_open_jobs=20}]}, term: 5, version: 27, reason: Publication{term=5, version=27}
[2021-02-05T16:29:09,595][INFO ][o.e.h.AbstractHttpServerTransport] [localhost] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2021-02-05T16:29:09,600][INFO ][o.e.n.Node               ] [localhost] started
[2021-02-05T16:29:09,971][INFO ][o.e.l.LicenseService     ] [localhost] license [67053363-ec49-4432-b9de-a422c3607f9a] mode [basic] - valid
[2021-02-05T16:29:09,972][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [localhost] Active license is now [BASIC]; Security is disabled
[2021-02-05T16:29:09,997][INFO ][o.e.g.GatewayService     ] [localhost] recovered [0] indices into cluster_state

@Carazyda
Copy link
Member

Carazyda commented Feb 7, 2021

Also check systemctl status onlyofficeIndex and it's log for errors. Try to restart it. Run this curl http://localhost:9200/_cat/indices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants