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

Today new error - r4590 - ERROR ConnServer GetFile exception: AttributeError: __enter__ in FileRequest.py line 227 #174

Closed
slrslr opened this issue May 26, 2022 · 3 comments

Comments

@slrslr
Copy link

slrslr commented May 26, 2022

Step 1: Please describe your environment

  • ZeroNet version: 0.8.0 (rev4590)
  • Operating system: Linux
  • Web browser: Firefox

Step 2: Describe the problem:

@canewsin You have made a typo during today revision release?
I am having tens of thousands errors of this kind:

ERROR Site:1ADQAH..g6aA File Access error: FileNotFoundError: [Errno 2] No such file or directory: './data/1ADQAHsqsie5PBeQhQgjcKmUu3qdPFg6aA/data/users/userhere/src/imagehere.jpg' in SiteStorage.py line 259
ERROR ConnServer GetFile exception: AttributeError: __enter__ in FileRequest.py line 227

ERROR Site:1DdPHe..Vi9D File Access error: FileNotFoundError: [Errno 2] No such file or directory: './data/1DdPHedr5Tz55EtQWxqvsbEXPdc4uCVi9D/data/users/userhere/filehere.png' in SiteStorage.py line 259
[2022-05-26 21:51:42,809] ERROR ConnServer GetFile exception: AttributeError: __enter__ in FileRequest.py line 227

or files was somehow deleted from my data folder?

@canewsin
Copy link
Collaborator

This is because of missing file errors. Till now those are treated as unhandled exceptions. Could you confirm that, this is the case of missing files!

@slrslr
Copy link
Author

slrslr commented May 26, 2022

I have checked a few files that was reported that way and are indeed missing.
Today i have supplied the ZN data folder to zeronet-conservancy by @caryoscelus
Maybe it invalidated content.db or something that ZN was rechecking sites and reporting errors (not enabled verbose log to tell what happened during startup). I have long time not seen such high count of errors.
If files was not deleted by zeronet and never existed, then ZN should not flood the log by such errors i think.

@canewsin
Copy link
Collaborator

Fixed in #174

marek22k pushed a commit to marek22k/ZeroNet that referenced this issue Oct 30, 2023
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