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
fulltextsearch:index throws unhandled exception #345
Comments
This error seems to stem from some weird LDAP issues, when trying to resolve shared files. I noticed that each time, this issue occurs, there is a corresponding error like this in the nextcloud log:
And in fact, the indexer just died like this:
|
I have tried to circumvent this issue by providing multiple LDAP replicas, but I can't get rid of this issue. Could the indexer made to wait a bit for the LDAP server to answer? Or maybe only perform a soft error and skip the current account, but continue indexing the remaining accounts, because the way it works now, I won't be able to finish one initial index ever. |
I had the same issue. Coming to this post actually helped me solve it as I didn't think of the relationship between LDAP and the external mounts I was indexing (mounted using LDAP). when I checked my LDAP settings, I realized that things seemed a bit janky. Auth was completely inconsistent. I then noticed that the release notes for NC 13.0.05 had addressed some LDAP issues, so I removed my LDAP server, upgraded to 13.0.05, and added the LDAP server again. Logs still show inconsistency in ability to auth, but after resetting my index, I am now flying like I've never seen and am not getting hung up on the users with access to the external mounts. So, my advice is, if you see RAM just repeating and not increasing in value, have external mounts, and use LDAP ... upgrade to NC13.05, remove and re-add your LDAP server, and reset and re-index. I'm still in the process of indexing (> 100K docs) but I'll update this when it completes. Its looks good thus far, though. |
Thanks - I am already on NC13.0.5, but resetting LDAP surely couldn't hurt. I will try that out and see, how it goes… |
@budachst - I also installed Kibana so I can have further insight into what's happening and when. My index completed and replicated across the cluster. This is definitely a first for me. LDAP seems to have really been the culprit. Even now, when configuring LDAP, I get inconsistent auth but 13.0.05 seems to handle those failures better than previously and doesn't get stuck on external drives mounted with LDAP. |
I now got fulltextsearch churning away on my test instance and it indexed approx. 1/3 of my accounts (400/1200) so far without issue. I have done two things: remove the uid attribute from the user home folder naming section, which repeatedly causes an ldap attribut lookup error and changed the ldap configuration to use another of our ldap servers. I probably will also setup an caching ldap server on our NC instance itself to get even more load off our backend ldap servers. |
Any update on your tests ? Can we close this ticket ? |
Yes - this ticket can be closed. |
Steps to reproduce
Expected behaviour
Perform initial index of all 253736 files
Actual behaviour
Indexing starts and after some time, the process throws an unhandled exception:
Running the indexer again will get over that one, but will throw another execption somewhere else.
Server configuration detail
Operating system: Linux 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
Webserver: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.30 (apache2handler)
Database: mysql 5.5.56
PHP version: 7.0.30
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, apcu, igbinary, memcached, redis, Zend OPcache
Nextcloud version: 13.0.4 - 13.0.4.0
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status
Array
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
Client configuration
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0
Operating system:
Logs
Browser log
Nextcloud log
Browser log
Insert your browser log here, this could for example include:
The text was updated successfully, but these errors were encountered: