Drakkar-Software / OctoBot

Open source crypto trading bot
https://www.octobot.cloud
GNU General Public License v3.0
3.09k stars 726 forks source link

Docker when spining up the ./docker-entrypoint.sh is killed #2611

Open alexmazaltov opened 2 months ago

alexmazaltov commented 2 months ago

Step 1: Have you search for this issue before posting it?

I tried to search the issue on github by word :killed

Step 2: Describe your environment

Step 3: Describe the problem:

I am faced with an issue with docker. When I execute start command: docker run -itd --name OctoBot -p 80:5001 -v $(pwd)/user:/octobot/user -v $(pwd)/tentacles:/octobot/tentacles -v $(pwd)/logs:/octobot/logs drakkarsoftware/octobot:stable in portainer installed on the same server i see the logs in container:

image

Expected behavior After the docker run command I able to open Octobot UI in the browser via my-server-static-ip:5001

2024-04-26 20:40:15,392 INFO     OctoBot Launcher     Version : 1.0.10
 2024-04-26 20:40:15,399 INFO     OctoBot Launcher     Running self-hosted OctoBot on Linux:5.15.0-1030-aws:x86_64 with binary [Python 3.10.12]
 2024-04-26 20:40:15,399 INFO     OctoBot Launcher     Loading config files...
 2024-04-26 20:40:15,423 INFO     Configuration        Using Non-Trading profile.
 2024-04-26 20:40:15,483 INFO     OctoBot Launcher     *** Disclaimer ***
 2024-04-26 20:40:15,483 INFO     OctoBot Launcher     Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.
 2024-04-26 20:40:15,484 INFO     OctoBot Launcher     Always start by running a trading bot in simulation mode and do not engage money before you understand how it works and what profit/loss you should expect.
 2024-04-26 20:40:15,484 INFO     OctoBot Launcher     Do not hesitate to read the source code and understand the mechanism of this bot.
 2024-04-26 20:40:15,484 INFO     OctoBot Launcher     ... Disclaimer ...
 2024-04-26 20:40:16,835 INFO     telethon.crypto.aes  libssl detected, it will be used for encryption
 2024-04-26 20:40:18,136 INFO     OctoBot              Starting OctoBot with simulated trader on binance[spot] trading BTC/USDT and using bot_id: 76ff60e1-f728-4db3-a96b-7f3c2ea7ef27
 2024-04-26 20:40:18,608 INFO     CCXTConnector[binance] Creating binance SPOT exchange with ccxt in version 4.2.95
 2024-04-26 20:40:18,628 INFO     CCXTConnector[binance] Loading binance exchange markets
 2024-04-26 20:40:18,633 INFO     WebService           Interface successfully initialized and accessible at: http://172.17.0.3:5001.
./docker-entrypoint.sh: line 27:    11 Killed                  ./OctoBot
Herklos commented 2 months ago

Hi @alexmazaltov.

I can see in your logs that it's not the inital run, are you sure tentacles (stored in /octobot/tentacles) are not corrupted ?

alexmazaltov commented 2 months ago

Thank you for replying. I change os to ubuntu 20.04 and this issue is not reproducable