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

Fatal ajax error on main page #42

Open
RGM36 opened this issue Jul 8, 2024 · 2 comments
Open

Fatal ajax error on main page #42

RGM36 opened this issue Jul 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@RGM36
Copy link

RGM36 commented Jul 8, 2024

When connecting to the main page, the error "DataTables warning: table id=CVEs - Ajax error. For more information about this error, please see http://datatables.net/tn/7" is returned.

Steps to reproduce the behavior:

  1. Simply check the web page of CVE-Search for the latest version
  2. A pop-up appears ; and CVE raws are empty

Specifications from my host:

  • CPU architecture : x86_64
  • OS : Debian

By monitoring the main container's logs, it seems to be an error related to flask :

2024-07-08 15:30:04,828 - web.run - ERROR - Exception on /fetch_cve_data [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/site-packages/flask_restx/api.py", line 674, in error_router
return original_handler(e)
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/app/web/../web/home/views.py", line 383, in fetch_cvedata
ssd = ServerSideDataTable(request=request, backend=app.dbh.connection)
File "/app/web/../web/helpers/server_side_datatables.py", line 40, in init
self._pre_fetch_processing()
File "/app/web/../web/helpers/server_side_datatables.py", line 80, in pre_fetch_processing
self.total = self.backend.count(self.request_values["retrieve"])
File "/app/web/../lib/DatabasePlugins/mongodb.py", line 81, in count
return getattr(self, "store
{}".format(retrieve)).count_documents(
AttributeError: 'MongoPlugin' object has no attribute 'store_cves'

@RGM36 RGM36 added the bug Something isn't working label Jul 8, 2024
@BernardesPedro
Copy link

image
image

I also came across the same error here, I've already searched and couldn't solve it

@P-T-I
Copy link
Member

P-T-I commented Sep 25, 2024

@RGM36 @BernardesPedro; just looked into this issue and cannot reproduce; I believe something has went wrong with the database restore on initial setup;
please
remove the .cve_search_data folder;
rebuild the docker images completely.
and see if that fixes your issue!

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