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 doesn't add new documents from external cifs/samba storage #301
Comments
Thanks for the information. We'll see after the update. |
Hi |
Please keep me update after the release of fulltextsearch 0.7 (within the next few days) |
Works for me now with 0.72. |
Sorry. Tested only by adding files to the external storage in Nexcloud via Web Interface. This works. If I add files to a samba share on a windows client it's not indexed. |
Might be an issue with the sync and/or the event of a new file is not dispatched, therefor, fulltextsearch is not aware that a new file have been uploaded |
How can this be solved as I'd suppose this to be a very common use case? |
@lhurt did you tell your cifs client that it should use version 2? |
@Sanookmakmak I suppose you mean the smb protocol version? I set it to smb2 but the issue remains. |
@Sanookmakmak Now I even went to smb3 and still the issue remains. |
Upgraded to 13.0.4 and unfortunately still no improvement |
Upgraded to 14.0.1 and fulltextsearch 0.99.2/3/4 and still no solution Current steps to reproduce
Expected:2 hits. Files from step 1 and step 5 Very disappointing. |
Unintentionally closed. The issue still persists even with version 1.0 |
With version 1.2.3 the issue seems to be resolved and everything is working as expected so far. |
Have to reopen it. With Nextcloud 15.0.6 and full text search 1.2.5, full text search - files 1.2.6 files are not added to the index when they are created on the file system, e.g. when the folder is mounted as a Windows drive. Did a complete reinstall/reindex to verify that it's not corrupted leftover data. I don't understand why it doesn't work. |
New update 16.0.1 didn't improve the situation. Same behavior. |
@icewind1991 would you care having a look ? |
You are using Ubuntu 16.04 with smb protocol v2 or v3? |
Of course I use SMB > 1 as it is deprecated and Windows will only connect with workarounds that I don't want to apply. Here's my relevant part of smb.conf
|
Nevertheles I just noticed that there may be an issue due to the fact, that i'm using docker. My installation is based on the fpm image which is itself based on debian stretch. And here the smbclient version is 4.5.16! which is very far behind as 4.10 is current. I'll try changing the base image to fpm-alpine that should have a 4.10 smbclient and may be this solves it. As soon as I have results I'll post it. |
But the notify problem is only related to you if you use |
This issue exists now for over 1 year and it seems like I'm the only one having this problem. IS this really the case? Is it such an extraordinary use case? |
Still doesn't work with fulltext 1.3.6 and fulltext_files 1.3.5 Does anyone else have this working? |
I can confirm this problem with nextcloud 16.0.3 and fulltext 1.3.6 and fulltext_files 1.3.5. |
I tested something one time and created a new file. The file doesn't seem to be updated via notify, but after about 24h the file was included in the fulltextsearch. |
Same problem with N16 |
@Sx3 That would be nice. Please keep us updated. @icewind1991, which is the one working on external storage, told me it should work flawlessly on NC17 if the cifs/samba is well configured |
so, you're saying that when running when adding a file to the remote filesystem, the Also, please paste the result from |
note that you can use
to see how the data are handle from different PoV (provider means current files, platform is the data from elasticsearch) I also think that when you're moving files around on the SMB, a new FileID might be generated |
yes
it is not returning any results when search by the filename too.
fulltextsearch:live in a screen instead to have more details). Can you check when adding a file to the local data folder (using the webclient) ?
|
Good Morning, A new behavior is that I get the file change via occ:notify only if there's a smbclient command running inside the php container with notification on the respective directory. The shell commands were
The output of occ:notify was
These lines were only printed if a smblient notify was running at the same time within the container
I'm aware of the note in the admin section of NC17 about SMB update notifications, but the finding above indicates the assumption that an smbclient should be running where it's currently not. @daita: Do you think I'm right? Could this help to find a solution? Update: One more thing May be this helps to get a better understanding what's going on. Thanks a lot |
any updates on the issue ? |
Same with NC18. NC knows about the file changes why are they not used for indexing? |
Same issue with me on nextcloud 18.0.1. I found that this bug is reported in multiple issues and on the nextcloud forum but very little response so far: https://help.nextcloud.com/t/full-text-search-finds-no-files-on-local-external-storage/62884
@daita
|
This is so frustrating. |
@daita could it be that the files from external smb are indexed but have no owner and therefore they're not taken into account when searching via NC? If so you might be interested in having a look at my comment here #546 (comment) |
Don't think so. In my case the problem is not getting results. It works fine after the initial indexing. As soon as there are changes the live update doesn't detect them. For having the new files in the result list I have to do a manual indexing first. |
@lhurt this sounds indeed like a different problem. Could you check your elastic index after the initial indexing and tell me which owner is written for the external files? |
@R0Wi Just checked and the ownern is ""
|
Looks like PR #100 in fulltext_elasticsearch will solve this issue. |
Unfortunately merging this PR seems to be a very time consuming task. So I still have hope, but not too much. For me it's surprising that so few people are complaining. |
Have the same issue, after running manual index, the files can be searched in the searchbox, but new files do not come up. I having a local external storage, no SMB share. |
Hi,
may be this is just a configuration issue.
I'm using nextcloud/owncloud already for a long time at least since version 6. Now I'm on Nextcloud 13.0.1 and recently (on version 12) changed from Nextant to elasticsearch.
Indexing of local files stored in Nextcloud itself works as a charme. But when it comes to indexing files on external mounted smb shares new files are not recognized as new ans thus not indexed.
Just a few remarks about my installation.
Nextcloud cron selected for background job processing (not Ajax or webcron)
All fulltext apps on most recent version 0.61 except Full text search - Files which is on 0.60 due to the lack of a newer version
Any help would be greatly appreciated.
Many thanks in advance.
The text was updated successfully, but these errors were encountered: