rossocor Posted April 9, 2018 Posted April 9, 2018 Hello! I run my python script and got 500 Internal Server Error.http://rossocor.heliohost.org/cgi-bin/nbatg.py Probably it's a third-party library issue, I want to be able to check error logs. But I can't find where are these logs - 'Errors log' in cPanel doesn't have it, also I can't find it by sftp. Where can I find server error logs?
Luigi123 Posted April 9, 2018 Posted April 9, 2018 (edited) You sure? The "Errors log" should be inside the cPanel. EDIT: If you scroll down to "Metrics", you should see the "Errors log". Edited April 9, 2018 by Luigi123
wolstech Posted April 10, 2018 Posted April 10, 2018 To my knowledge, our instances of Python don't generate any error logs accessible by users. Usually though, it's not a Python issue anyway. Most issues are caused by incorrect shebang line, failure to use the cgi-bin folder (obviously not the issue here), permissions, or line endings (make sure your file has unix line endings)
Krydos Posted April 12, 2018 Posted April 12, 2018 You can debug your own cgi scripts using the method I posted here https://www.helionet.org/index/topic/29544-python-27-module-request500-error-troulbeshooting/?p=133824 Using a cron job the error message will get emailed to you. Here's your particular error:Traceback (most recent call last): File "nbatg.py", line 179, in <module> from telegram.ext import Updater ModuleNotFoundError: No module named 'telegram' Calling random modules that aren't already installed will result in a 500 error. You can check the modules that are installed on Johnny's python 3.6 by going to https://krydos2.heliohost.org/cgi-bin/modules36.py If you don't see a module listed there you won't be able to include it without causing a 500 error. We can install modules for you though. Just post and state username, server, python version, and module requested. Let me know if you'd like telegram or anything else installed.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now