Troubleshoot a Python application that fails to start or crashes on your imbra hosting.
Steps
-
In iPanel, navigate to your website management page and click the Log Viewer tab.
[screenshot: log viewer tab]
-
Check the Output Log and App Error Log tabs for error messages.
[screenshot: output and error logs]
-
Common issues: missing dependencies — install them from the Python tab or upload a
requirements.txt.[screenshot: installing Python dependencies]
-
Check that the correct Python version is selected in the website settings.
[screenshot: checking Python version]
-
Verify your WSGI entry point or application file is correctly configured.
[screenshot: checking WSGI configuration]
-
Check for syntax errors in your Python code by reviewing the error log messages.
[screenshot: checking for syntax errors]
-
Try restarting the application from the website management page.
[screenshot: restarting application]
pip freeze > requirements.txt to ensure consistent deployments.