Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
1 task done
luisccosta opened this issue Mar 15, 2023 · 9 comments
Open
1 task done
Labels
Docker SELKS on Docker

Comments

@luisccosta
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

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

  • suricata | exec /etc/suricata/new_entrypoint.sh: no such file or directory

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

@luisccosta luisccosta added the Docker SELKS on Docker label Mar 15, 2023
@pevma
Copy link
Member

pevma commented Mar 15, 2023

What are your exact running commands?

@luisccosta
Copy link
Author

docker-compose up

@pevma
Copy link
Member

pevma commented Mar 15, 2023

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

@luisccosta
Copy link
Author

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

@luisccosta
Copy link
Author

luisccosta commented Mar 15, 2023

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
Copy link
Author

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
Copy link
Member

pevma commented Mar 16, 2023

@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
Copy link

BaiHLiu commented Jan 2, 2024

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
Copy link

maxdd commented Apr 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docker SELKS on Docker
Projects
None yet
Development

No branches or pull requests

4 participants