Question

Python script gets killed

I am a newbie to digitalocean.

I have just created the smallest VPS and then install python, pip and all required python modules in order to move my scripts which work fine on local server.

Right now, my script starts without any problem but suddenly gets killed. How can I understand the reason and solve this problem?

Do you have any idea under which circumstances digitalocean VPS kills any running script?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

If this is smallest Droplet it could that script run out of memory. You should check syslog for Out Of Memory killer. syslog is located at /var/log/syslog and you can opet it with your favourite text editor:

  1. nano /var/log/syslog

Here you can try to find Out of Memory (OOM) killer signal. If there are for your script, it means you ran out of memory. If you need help with logs, post part of it here, but make sure you redact sensitive informations if they are any.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.