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

Internal Server Error on Firmware Upload in Flask Application #50

Open
huntercu opened this issue Jul 24, 2024 · 0 comments
Open

Internal Server Error on Firmware Upload in Flask Application #50

huntercu opened this issue Jul 24, 2024 · 0 comments

Comments

@huntercu
Copy link

Hello,

I'm currently experiencing an issue with my Flask application and need some assistance. The application starts normally, and I can access the frontend via the browser on port 5000. However, when I try to upload firmware, I encounter an "Internal Server Error" in the browser.

Here is the error message displayed in the browser:

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.
Below is the relevant error log from the application:

[2024-07-24 02:43:10,661] ERROR in app: Exception on /upload [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/dist-packages/flask_restx/api.py", line 672, in error_router
return original_handler(e)
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/opt/FACT_core/src/./web_interface/security/decorator.py", line 11, in decorated_view
return fn(*args, **kwargs)
File "/opt/FACT_core/src/./web_interface/components/io_routes.py", line 43, in get_upload
analysis_plugins = sc.get_available_analysis_plugins()
File "/opt/FACT_core/src/./intercom/front_end_binding.py", line 34, in get_available_analysis_plugins
raise Exception('No available plug-ins found. FACT backend might be down!')
Exception: No available plug-ins found. FACT backend might be down!
[2024-07-24 02:43:10][app][ERROR]: Exception on /upload [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/dist-packages/flask_restx/api.py", line 672, in error_router
return original_handler(e)
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/opt/FACT_core/src/./web_interface/security/decorator.py", line 11, in decorated_view
return fn(*args, **kwargs)
File "/opt/FACT_core/src/./web_interface/components/io_routes.py", line 43, in get_upload
analysis_plugins = sc.get_available_analysis_plugins()
File "/opt/FACT_core/src/./intercom/front_end_binding.py", line 34, in get_available_analysis_plugins
raise Exception('No available plug-ins found. FACT backend might be down!')
Exception: No available plug-ins found. FACT backend might be down!
The error suggests that there are no available plugins and that the FACT backend might be down. Here is the portion of the code where the exception is raised:

def get_available_analysis_plugins():
raise Exception('No available plug-ins found. FACT backend might be down!')
I've checked and ensured that the backend service appears to be running, but the error persists.

Could you please provide guidance on how to resolve this issue? Any help or suggestions would be greatly appreciated!

Thank you in advance.

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

1 participant