galexrt / docker-sinusbot

Docker container for the famous TeamSpeak 3 SinusBot by Michael Friese.
MIT License
25 stars 13 forks source link

Error spawning instancefork/exec #43

Open lusu007 opened 6 years ago

lusu007 commented 6 years ago

Hey,

im trying to install a sinusbot instance via your docker image on my server.

But I get the following error when I lookup the latest logs with docker logs [id]: 2018/09/03 08:02:45 ac917f7c 3c8a7ee0 ERROR Error spawning instancefork/exec /sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64: cannot allocate memory

YouTubeDL also reported: 2018/09/03 08:02:45 fork/exec /usr/local/bin/youtube-dl-speedpatched: cannot allocate memory youtube-dl not found

The whole log can you find here.

I followed your installation instructions.

What do I have to do to fix this error?

galexrt commented 6 years ago

Please provide more info on your environment/server (e.g. OS, kernel, VM or bare metal, how much memory, architecture). Also post the docker info output.

lusu007 commented 6 years ago

Distributor ID: Debian Description: Debian GNU/Linux 9.5 (stretch) Release: 9.5 Codename: stretch Architecture: amd64

Its an VPS from OVH located in Limburg. 1 vCore (2% load average) 2 GB RAM 50 GB HDD

docker info: Here

galexrt commented 6 years ago

@lusu007 I'm unable to reproduce this on a Hetzner 1vCPU and 2GB, and 2vCPU 4GB.

Are you able to reproduce the issue on another VM and/or with another provider?

lusu007 commented 6 years ago

@galexrt Sorry but this is my only server at the moment. Do you have any other ideas?

lusu007 commented 6 years ago

I tried testwise the official sinusbot image and reinstalled yours. On both installations I get this error message:

Attaching to sinusbot sinusbot | Copied original scripts to the volume sinusbot | Updating youtube-dl... sinusbot | Updating to version 2018.09.01 ... sinusbot | Updated youtube-dl. Restart youtube-dl to use the new version. sinusbot | youtube-dl updated sinusbot | Starting SinusBot... sinusbot | PID: 12 sinusbot | fatal error: runtime: out of memory

galexrt commented 6 years ago

@lusu007 Try checking if this issue occurs in a VM with more RAM at OVH.

If this also doesn't work, search the Sinusbot forums for the error and ask for help.

lusu007 commented 6 years ago

@galexrt I did not have the opportunity to test this on an other OVH VM.

I installed Sinusbot on this server a few times but without Docker. The installation only works without Docker. Regarding to this, its a problem with you Docker image and not with my server.

lusu007 commented 6 years ago

@galexrt I just tested it on my development machine.

Specs: Windows 10 Pro 64bit, i7 6700k, 16GB RAM, EVGA GTX 980

Sinusbot runs without problems.

Horstexplorer commented 6 years ago

For me it doesn't seem to be a problem with the docker image itself. Are you sure you are using the latest version of Docker and have enough free Ram? This error just seems that the TS Client and the YT-dl can't start because of not enough free memory. For me my bot is using between 600 and 800mb of free Ram, so you should make sure not to set up limits below that.

lusu007 commented 6 years ago

@Horstexplorer I have 1.2GB free RAM on my server and my Docker version is: Docker version 18.06.1-ce, build e68fc7a

Is it possible that docker is limited to a specified amount of RAM?

Horstexplorer commented 6 years ago

I'm not sure but I don't think so. It is possible to limit the memory of a docker with something like "docker run -m size ...." but I don't think that docker itself is limited.

lusu007 commented 6 years ago

@Horstexplorer Okay.

I really dont know what the problem is. I have no idea.