[GH-ISSUE #819] [BUG] EOFError: Ran out of input #512

Closed
opened 2026-02-25 20:35:56 +03:00 by kerem · 3 comments
Owner

Originally created by @ngosang on GitHub (Jul 25, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/819

Describe the bug

I have Whoogle deployed for several month and I see thousands of traces like this. The file is always the same so maybe it's corrupted. Maybe you can handle this exception and remove the file.

Update: I just checked the contents of the file and it's empty. If the only file in that folder that is empty.

EOFError: Ran out of input
WARNING:root:Exception raised while handling cache file '/config/session/771d0a8fb08365672886753afbfcc13b'
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/cachelib/file.py", line 99, in _remove_expired
    expires = pickle.load(f)
              ^^^^^^^^^^^^^^

EOFError: Ran out of input
WARNING:root:Exception raised while handling cache file '/config/session/771d0a8fb08365672886753afbfcc13b'
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/cachelib/file.py", line 117, in _remove_older
    exp_fname_tuples.append((pickle.load(f), fname))
                             ^^^^^^^^^^^^^^

Monitoring of last 15 days..
image

To Reproduce
I don't know how to reproduce, but maybe you can handle the exception better.

Version of Whoogle Search
Docker image 0.7.4

Originally created by @ngosang on GitHub (Jul 25, 2022). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/819 **Describe the bug** I have Whoogle deployed for several month and I see thousands of traces like this. The file is always the same so maybe it's corrupted. Maybe you can handle this exception and remove the file. Update: I just checked the contents of the file and it's empty. If the only file in that folder that is empty. ``` EOFError: Ran out of input WARNING:root:Exception raised while handling cache file '/config/session/771d0a8fb08365672886753afbfcc13b' Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/cachelib/file.py", line 99, in _remove_expired expires = pickle.load(f) ^^^^^^^^^^^^^^ EOFError: Ran out of input WARNING:root:Exception raised while handling cache file '/config/session/771d0a8fb08365672886753afbfcc13b' Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/cachelib/file.py", line 117, in _remove_older exp_fname_tuples.append((pickle.load(f), fname)) ^^^^^^^^^^^^^^ ``` Monitoring of last 15 days.. ![image](https://user-images.githubusercontent.com/10577978/180870544-7a805d66-719f-494d-8e54-d40aa6ab48c5.png) **To Reproduce** I don't know how to reproduce, but maybe you can handle the exception better. **Version of Whoogle Search** Docker image 0.7.4
kerem 2026-02-25 20:35:56 +03:00
  • closed this issue
  • added the
    bug
    Stale
    labels
Author
Owner

@kapiorr commented on GitHub (Aug 25, 2022):

same for me

<!-- gh-comment-id:1227725427 --> @kapiorr commented on GitHub (Aug 25, 2022): same for me
Author
Owner

@github-actions[bot] commented on GitHub (Sep 15, 2025):

This issue has been automatically marked as stale due to inactivity. If it is still valid please comment within 7 days or it will be auto-closed.

<!-- gh-comment-id:3292230405 --> @github-actions[bot] commented on GitHub (Sep 15, 2025): This issue has been automatically marked as stale due to inactivity. If it is still valid please comment within 7 days or it will be auto-closed.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 23, 2025):

Closing this issue due to prolonged inactivity.

<!-- gh-comment-id:3323439102 --> @github-actions[bot] commented on GitHub (Sep 23, 2025): Closing this issue due to prolonged inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#512
No description provided.