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

Index not updating on file create/delete #18

Open
vredesbyyrd opened this issue May 10, 2021 · 2 comments
Open

Index not updating on file create/delete #18

vredesbyyrd opened this issue May 10, 2021 · 2 comments

Comments

@vredesbyyrd
Copy link

Hi, I rely on gosearch as my main search tool on the daily. Thanks for sharing it, its great tool that should have more exposure imho.

I cannot be sure when this issue started, but the index is no longer "automagically" updating when files are created, deleted etc. I am also unsure how to go about debugging this. systemctl status gosearch does show fanotify.go and indexer.go are active and receiving events, but lets say we create file $HOME/USER/HelloWorld.sh, querying said file does not return a result. Re-indexing manually, systemctl restart gosearch and running the query again correctly returns $HOME/USER/HelloWorld.sh.

Environment info:

Kernel: 5.12.1.arch1-1
Go: 2:1.16.4-1

Not sure the atime mount option is relevant, but ext4 filesystem is mounted with relatime.

If you have any thoughts on this issue I would love to hear them!

Thanks for your time.

@ozeidan
Copy link
Owner

ozeidan commented May 10, 2021

Hello, glad to hear that gosearch is still being used. I'm currently not using Linux so it's possible that there has been a change in the kernel API that went unnoticed. Also I won't be able to look immediately but hopefully in the next couple of days 👍🏻 I agree it's a nice project, I think I'll put some more time into it soon

@vredesbyyrd
Copy link
Author

...it's possible that there has been a change in the kernel API that went unnoticed.

Yeah I was thinking that might be the case to. Ill take a look at change logs and see if anything jumps out to me.

Also I won't be able to look immediately but hopefully in the next couple of days 👍🏻

No sweat, i'm just happy it may get some attention, thank you!

I agree it's a nice project, I think I'll put some more time into it soon

That would be quite awesome. gosearch + fzf and its preview window for image/file previews is a beautiful thing.

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