Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

500 Internal Server Error #65

Open
stylarene opened this issue Apr 2, 2023 · 4 comments
Open

500 Internal Server Error #65

stylarene opened this issue Apr 2, 2023 · 4 comments

Comments

@stylarene
Copy link

How can I fix it so that this error no longer occurs after a long period of inactivity?

@NicerDicerPlus15
Copy link

You can create a bash script that restarts server.py every hour or so with:

#!/usr/bin/bash


while true
do

	# Launch Script
	python3 server.py &

	# Get PID
	PID=$!

	# Wait 1 hour
	sleep 1h

	# Kill it
	kill $PID

done

Thus, the error no longer occurred for me.

@Huskynarr
Copy link

Huskynarr commented Apr 12, 2023

Alternativ as Python script to unify the codebase:

import subprocess
import time

while True:
    # Launch Script
    subprocess.Popen(["python3", "server.py"])

    # Wait 1 hour
    time.sleep(3600)

    # Kill it
    subprocess.call(["pkill", "-f", "server.py"])

@tony6012
Copy link

@tony6012
Copy link

having this issue multiple times, please help if you can

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants