-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
OC 6.0.0.14 / 6.0.0a Error while running background job #6876
Comments
@MBurchard we need more infos about your environment, please fill the issue template: https://raw.github.com/owncloud/core/master/issue_template.md @butonic I grepped the code and found that this message could only be generated by |
The search_lucene app stores its seach index in If @MBurchard My guess is: it is a permission problem. In that case correct the permissions for If that is not the case please provide additional info as stated by @PVince81. |
Hello guys, I don't have the same issue provided by the requester MBurchard, in fact I never managed to get the search feature working (I'm using ownCloud 6.0.1 stable for Debian). But, reading at this post I understood that the folder /lucene_index had to exist. So I browsed my folder and noticed that:
So I created the lucene_index folder and set the ownership of my to www-data instead of root. Now things are getting slightly better, I still can't search full text (ie in the body of documents) but at least I have now a combo list with matches for filenames in Activity, Text and Files. I'll make a fresh install of the debian package under Linux Mint to check if I can reproduce this issue with ownership / permission and check if the indexing works as expected. Regards, Alexandre 8) |
OK I made further testing on this...
I made a search on keywords provided in the created / updated content, but nothing matches in the Full Text search (sometimes results from Activity are found). The funny thing is that the table I installed a similar configuration - latest Debian package owncloud 6.0.1 to a Linux Mint - with a similar configuration, and it works fine on this Linux Mint. While my main and hosted owncloud instance does not do a full-text indexing. Don't know if it helps, but just in case the permissions of my lucene index in my personal folder:
Would you have other ideas on how to investigate or debug this ? Thanks for your help, Best regards, Alexandre |
OK, made a new round of test... In my case (owncloud 6.0.1 packaged for Debian) it appears problem comes from cronjobs... Either using an script in
or registering in crontab
None is working for the full-text indexing. I switched to the method "Ajax" for the background jobs, an now it's working fine ! I mean, it woks fine provided that the file is edited from the owncloud interface; files added on my desktop and then synced seems a bit buggy, their are not always indexed, unless they are edited in the owncloud interface, then they are indexed. @butonic + @PVince81 : Shall I open a new bug request for this or is this ticket enough (because my issue now is not related to the initial issue of "Error while running background job: Index doesn't exists in the specified directory." ? Best regards, Alexandre 8) |
@alexboss You are correct, I meant lucene_index. Updated the comments to prevent people looking for the wrong folder. If The lucene_index folder looks good. If you want do dig deeper there by copying it to your local machine and use luke to look at it: https://code.google.com/p/luke/ It is a java app for examining a lucene index. That you don't see any debug messages from the search_lucene app seems strage. Did you set If you feel adventurous you could try owncloud-archive/apps#1624 which contains a different approach to background jobs and should fix any issue of indexing files via cron. |
Thanks @butonic for your answer ! Indeed, I confirm that Made a final test: 1/ Edit through owncloud interface a file
3/ Check
4/ Go back to owncloud interface - check
5/ Wait for background job to execute and check
6/ Table Thanks for the project Luke, I checked my index, and indeed I found the content indexed for I then ran a second test with a document
... and content of PHP errors:
I confirm that Does it require to have zend framework installed to work ? So it's a mystery, I'll check refactoring of the search_lucene (1624) but I hope it won't mess with my debian installation. Thanks, Alexandre 8) |
now tracked in owncloud-archive/search_lucene#4 |
The Problem is, this error doesn't tell, what's really wrong.
Any ideas?
The text was updated successfully, but these errors were encountered: