kokofixcomputers Posted February 23, 2024 Posted February 23, 2024 I was trying to follow: https://wiki.helionet.org/tutorials/discord-bot but i noticed that my cgi-bin folder is not there (maybe because of wordpress) so i created it and then did the steps when i went to the start.py it says internal server error Quote
MoneyBroz Posted February 23, 2024 Posted February 23, 2024 Are the permissions set to 755 for your start.py file? Quote
wolstech Posted February 24, 2024 Posted February 24, 2024 I fixed the cgi-bin folder so Python is working on the account now: https://kokofixcomputers.helioho.st/cgi-bin/test.py That discord bot has so many issues though (a few are because that guide is ancient...) Path to kokobot.py was wrong in start.py (guide inaccurate, home folders are now your main domain, not username). Shebang lines in all scripts specified a python version that does not exist (guide inaccurate, Johnny has 3.6 and 3.10), Permissions/owner were hosed on the cgi-bin folder because you deleted and recreated it (not sure if Plesk did this or you accidentally deleted it) Permissions on kokobot.py were 757 when they should have been 755 (user error) Line endings were not of type unix (common issue for Windows users, use Notepad++ if developing on a Windows box) After fixing all of the above (some of them twice since I tried doing 2 things at once and accidentally set cgi-bin's owner to another user the first time), the start.py now works, but the bot itself (kokobot.py) seems to have an issue as it doesn't stay running. You'll need to troubleshoot that. I'd bet that's going to be an issue with the code/module versions/etc. as I don't see anything obviously wrong at this point. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.