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

Search returns empty, even the searched contents is present #6316

Open
spirillen opened this issue Nov 12, 2024 · 7 comments
Open

Search returns empty, even the searched contents is present #6316

spirillen opened this issue Nov 12, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@spirillen
Copy link

Describe The Bug
Read title and Please see screenshots, it says it all

Steps To Reproduce

  1. Search
  2. In example we search for Trigger Warning
  3. The results returns nothing
  4. See error

Expected Behavior
The film would have been shown

Logs
Not showing anything on issue

Screenshots
Search result

Image

The Film is present

Image

System (please complete the following information):

  • Platform: Linux (Debian Bookworm (12))
  • Browser: Firefox-esr
  • Jellyfin Version: 10.10.1

Additional Context

@spirillen spirillen added the bug Something isn't working label Nov 12, 2024
@viown
Copy link
Member

viown commented Nov 12, 2024

Any errors in Dashboard -> Logs after search?

@spirillen
Copy link
Author

Any errors in Dashboard -> Logs after search?

Nope, that is what is weird, it feels like a timeout, but I can't find anything in the log(s)

And here is even the search without any search...

Image

This is the log for when I made this reply and retested

[2024-11-12 11:53:43.062 +01:00] [ERR] Error processing request: "Could not find file '/etc/jellyfin/users/Tablet/profile.png'". URL "GET" "/Users/45e6ce0efb884db696b9a9332d3e6b6e/Images/Primary".
[2024-11-12 11:54:20.951 +01:00] [INF] Authentication request for "USER" has succeeded.
[2024-11-12 11:54:20.952 +01:00] [INF] Current/Max sessions for user "USER": 1/0
[2024-11-12 11:54:20.955 +01:00] [INF] Logging out access token "ID"
[2024-11-12 11:54:20.987 +01:00] [INF] Creating new access token for user

@viown
Copy link
Member

viown commented Nov 12, 2024

That is odd. Do you still have issues with duplicate media? Do you see duplicate logs like in #6302? These could be related issues, and if we can figure out what's causing it, we can open an issue in https://github.com/jellyfin/jellyfin/issues

@spirillen
Copy link
Author

That is odd. Do you still have issues with duplicate media? Do you see duplicate logs like in #6302? These could be related issues, and if we can figure out what's causing it, we can open an issue in https://github.com/jellyfin/jellyfin/issues

Nicely remembered @viown, but no, and here you are welcome to point a finger at me, yes literally, because I got the doubles to disappears, by changing one setting but which... and where.
Now that I think about it, that was one of chose things I would return to, to find the right ✅ that solved my issue in #6302. Most get back on that one.

I have just tested this search once again, after restarting the browser (only the browser), and now the search is fine, however, I have also been making a Refresh Metadata => Scan for new and updated files

Image

@DunklerPhoenix
Copy link

DunklerPhoenix commented Dec 31, 2024

I often have the same problem with my large library and it seems that a new search is triggered with any new entered letter in the search field. If you type too fast or delete a letter the server cpu spikes up and the search doesn't show any results. I ignored this because I thought sqlite could be overwhelmed with the amount of data and I wait for the support of other db types, but it would be great if we can get an optional option to switch from instant search to a "trigger on search icon" search as server-wide option :)

Edit: if i force it by entering and remove many many letters really fast I can even manage to crash or extremely slow down the jellyfin server xD

@spirillen
Copy link
Author

spirillen commented Dec 31, 2024

I doubt this is to be put on the SQLite alone, but sure, I would vote for an upgrade to PGSql or MariaDB.

But this is happening on both HP ML 350G6 8 core/20GB & HP DL380G8 32 core/100GB hardware with SSD drives in hardware raid

I'm leaning more to the answer, where this is related to the JS scripts

@viown
Copy link
Member

viown commented Jan 2, 2025

I often have the same problem with my large library and it seems that a new search is triggered with any new entered letter in the search field. If you type too fast or delete a letter the server cpu spikes up and the search doesn't show any results. I ignored this because I thought sqlite could be overwhelmed with the amount of data and I wait for the support of other db types, but it would be great if we can get an optional option to switch from instant search to a "trigger on search icon" search as server-wide option :)

Searches should be debounced, but you seem to be correct, I'm seeing a lot of search requests per keystroke which I don't remember was there before 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants