StamusNetworks / SELKS

A Suricata based IDS/IPS/NSM distro
https://www.stamus-networks.com/open-source/#selks
GNU General Public License v3.0
1.48k stars 285 forks source link

🐞🐋 /etc/suricata/new_entrypoint.sh: no such file or directory #434

Open luisccosta opened 1 year ago

luisccosta commented 1 year ago

Is there an existing issue for this?

Current Behavior

Suricata docker container wont start. Error from docker-compose:

Expected Behavior

No response

Steps To Reproduce

  1. Debian 6.1.12-1
  2. Default config

Docker version

Docker version 20.10.23+dfsg1, build 7155243

Docker version

docker-compose version 1.29.2, build unknown

OS Version

Debian GNU/Linux bookworm/sid

Content of the environnement File

COMPOSE_PROJECT_NAME=SELKS INTERFACES= -i eth0 RESTART_MODE=on-failure SCIRIUS_SECRET_KEY=RzZuxIzeR-QBPCRkkbzYIegmbG1ZfyiUOeqVZ0F5NWE

Version of SELKS

Latest version

Anything else?

No response

pevma commented 1 year ago

What are your exact running commands?

luisccosta commented 1 year ago

docker-compose up

pevma commented 1 year ago

Did the first time set up finish ok ?
https://github.com/StamusNetworks/SELKS/wiki/Docker#installation

luisccosta commented 1 year ago

I think so. i got the last message saying do run docker compose to start

luisccosta commented 1 year ago

I think i figured out the problem. The ./easy-setup.sh script is not running correctly. I ran the commands listed in the documentation in the wiki/Manual-Docker-install and i don't have the error anymore. No i got another one:

ERROR: for suricata Cannot create container for service suricata: failed to mount local volume: mount /SELKS/docker/containers-data/suricata/logrotate:/var/lib/docker/volumes/selks_suricata-logrotate/_data, flags: 0x1000: no such file or directory

Dont now if something is still missing from the first time setup

luisccosta commented 1 year ago

Regarding the easy-setuo.sh script, i get the message below: Do you want to use debug mode? [y/N] y ./easy-setup.sh: line 823: break: only meaningful in a for',while', or `until' loop

pevma commented 1 year ago

@luisccosta - can you please do

cd SELKS/docker/ 
docker compose down 
cd ../
git pull 
cd docker/  
./easy_setup.sh..................

and rerun the setup again - we just merged some fixes today that addresses that error.

BaiHLiu commented 10 months ago

Do you install it by downloading the zip archive via Github?

I have encountered the same problem, and use git clone instead of zip archive, then it works! Anyone know the reason?

maxdd commented 7 months ago

I think i figured out the problem. The ./easy-setup.sh script is not running correctly. I ran the commands listed in the documentation in the wiki/Manual-Docker-install and i don't have the error anymore. No i got another one:

ERROR: for suricata Cannot create container for service suricata: failed to mount local volume: mount /SELKS/docker/containers-data/suricata/logrotate:/var/lib/docker/volumes/selks_suricata-logrotate/_data, flags: 0x1000: no such file or directory

Dont now if something is still missing from the first time setup

got the same problem

sudo -E docker compose up -d
[sudo] password for ****: 
WARN[0000] /home/******/docker/SELKS/docker/docker-compose.yml: `version` is obsolete 
[+] Running 7/7
 ✔ Container scirius        Recreated                                                                                                                                                                                                                                                                                                                                                   0.1s 
 ✔ Container evebox         Recreated                                                                                                                                                                                                                                                                                                                                                   0.1s 
 ✔ Container nginx          Recreated                                                                                                                                                                                                                                                                                                                                             0.1s 
 ✔ Container arkime         Recreated                                                                                                                                                                                                                                                                                                                                                   0.1s 
 ✔ Container cron           Recreated                                                                                                                                                                                                                                                                                                                                                   0.1s 
 ✔ Container kibana         Recreated                                                                                                                                                                                                                                                                                                                                                   0.1s 
 ✔ Container elasticsearch  Recreated                                                                                                                                                                                                                                                                                                                                                   0.1s 
 ⠋ Container suricata       Creating                                                                                                                                                                                                                                                                                                                                                    0.1s 
 ⠋ Container logstash       Recreate                                                                                                                                                                                                                                                                                                                                                    0.1s 
Error response from daemon: failed to populate volume: error while mounting volume '/var/lib/docker/volumes/selks_suricata-logrotate/_data': failed to mount local volume: mount /home/*****/docker/SELKS/containers-data/suricata/logrotate:/var/lib/docker/volumes/selks_suricata-logrotate/_data, flags: 0x1000: no such file or directory
DanishIbrar12 commented 2 months ago

@maxdd did you manage to fix the issue somehow??? as I'm having the same issue... it was working then all of a sudden I started getting this error

pevma commented 1 month ago

I think this should help:

cd /opt/selksd/SELKS/ && \
git pull 
./easy-setup.sh (putany custom options if needed here)
sudo -E docker compose up -d

ref: https://github.com/StamusNetworks/SELKS/wiki/Docker#basic-installation