my8100 / scrapydweb

Web app for Scrapyd cluster management, Scrapy log analysis & visualization, Auto packaging, Timer tasks, Monitor & Alert, and Mobile UI. DEMO :point_right:
https://github.com/my8100/files
GNU General Public License v3.0
3.17k stars 565 forks source link

error #245

Open davinc123 opened 1 week ago

davinc123 commented 1 week ago

500 (INTERNAL SERVER ERROR): 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.


- **OS:** Linux-6.8.0-1018-aws-x86_64-with-glibc2.39
- **Python:** 3.10.14
- **ScrapydWeb:** 1.4.0
- **LogParser:** 0.8.2
- **Scrapyd servers amount:** 1
- **User-Agent:** Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
- **Request Method:** GET
- **Request Args:** ImmutableMultiDict([('job_finished', 'True')])
- **Form Data:** ImmutableMultiDict([])
- **Files Data:** ImmutableMultiDict([])
- **Request Referer:** http://localhost:15000/1/jobs/
my8100 commented 1 week ago

Looks like the json file is broken, please try to find out and rename the file.

logs/football_fotmob/fotmob_league/2024-11-13T12_10_31.json

https://github.com/my8100/scrapydweb/blob/19d807359e8833dbde1ccc1352700dfaf7fbf579/scrapydweb/default_settings.py#L66-L71

davinc123 commented 1 week ago

However, every spider has this kind of json file corruption. And my attempts to modify LOCAL_SCRAPYD_LOGS_DIR have not solved the problem. Is there any other way around this,scrapy version is 2.1.0

my8100 commented 1 week ago

scrapy 2.1.0 was released in 2020. Can you upgrade your scrapy?

https://pypi.org/project/Scrapy/#history

my8100 commented 1 week ago

What is the version of your scrapyd? Can you upgrade it and restart your spider?

https://pypi.org/project/scrapyd/#history

davinc123 commented 1 week ago

What is the version of your scrapyd? Can you upgrade it and restart your spider?

https://pypi.org/project/scrapyd/#history

What version of scrapyd do you use, please

my8100 commented 1 week ago

Try scrapyd v1.4.3 and the latest scrapydweb.

davinc123 commented 1 week ago

Try scrapyd v1.4.3 and the latest scrapydweb. aaa

my8100 commented 1 week ago

The log of scrapyd is not found. Run the spider again.

davinc123 commented 1 week ago

The log of scrapyd is not found. Run the spider again. I fixed it. The problem was that I set log to error in the scrapy settings file, which caused a series of errors. Thank you for your answer