ZeroNetX / ZeroNet

ZeroNetX - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.dev
Other
212 stars 32 forks source link

FileNotFoundError: [Errno 2] No such file or directory ... in <gevent>/threadpool.py line 167 > SiteStorage.py line 282 #139

Closed slrslr closed 1 year ago

slrslr commented 2 years ago

Similar but not same issues was already reported and closed when you search <gevent>/threadpool.py line

Now the error is referenced to different line in same file and seems to appear in both py3-internal and enhanced branch:

Unhandled exception: FileNotFoundError: [Errno 2] No such file or directory: './data/1ADQAHsqsie5PBeQhQgjcKmUu3qdPFg6aA/data/users/userhere-anonymized/src/imagename-anonymized.jpg' in <gevent>/threadpool.py line 167 > SiteStorage.py line 282
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/gevent/threadpool.py", line 167, in __run_task
    thread_result.set(func(*args, **kwargs))
  File "/home/user/zeronetx/src/Site/SiteStorage.py", line 282, in read
    return open(self.getPath(inner_path), mode).read()

it appear when zeronet attempts to open an image that was possibly not yet downloaded. To reproduce it, try to open this page scroll to the bottom wait several seconds. If no error happen to appear in debug.log, try to open the images on that page..