Jump to content

Recommended Posts

Posted

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.

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...