MISP / x_old_misp_docker

MISP Docker (XME edition)
284 stars 172 forks source link

/run.sh: no such file or directory": unknown #90

Open SteveSav opened 4 years ago

SteveSav commented 4 years ago

We are having issues since the recent code changes. Bringing up a new box to deploy this on to, we are getting the following error when it tries to start up misp_web.

Recreating misp_web ... error Recreating misp_db ... done Recreating proxy ... done

ERROR: for misp_web Cannot start service web: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/run.sh\": stat /run.sh: no such file or directory": unknown

ERROR: for web Cannot start service web: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/run.sh\": stat /run.sh: no such file or directory": unknown ERROR: Encountered errors while bringing up the project.

shacthulu commented 4 years ago

I'm encountering the same issue, Ubuntu 18.04, docker-compose 1.17.1

RaulSokolova commented 3 years ago

Having the same issue.

kdeltared commented 3 years ago

Same here.

root@MISP2:/home/misp/misp-docker# sudo docker-compose -f docker-compose-nginx.yml up -d
Creating network "misp-docker_default" with the default driver
Building proxy
Step 1/5 : FROM nginx:1.9
1.9: Pulling from library/nginx
Image docker.io/library/nginx:1.9 uses outdated schema1 manifest format. Please upgrade to a schema2 image for better future compatibility. More information at https://docs.docker.com/registry/spec/deprecated-schema-v1/
51f5c6a04d83: Pull complete
a3ed95caeb02: Pull complete
640c8f3d0eb2: Pull complete
a4335300aa89: Pull complete
Digest: sha256:54313b5c376892d55205f13d620bc3dcccc8e70e596d083953f95e94f071f6db
Status: Downloaded newer image for nginx:1.9
 ---> c8c29d842c09
Step 2/5 : COPY ./default.conf /etc/nginx/conf.d/default.conf
 ---> 004e35c2f8a2
Step 3/5 : COPY ./backend-not-found.html /var/www/html/backend-not-found.html
 ---> 00849f14972b
Step 4/5 : COPY ./includes/ /etc/nginx/includes/
 ---> a19bc983fd35
Step 5/5 : COPY ./ssl/ /etc/ssl/certs/nginx/
 ---> 6eee5b9ad0aa
Successfully built 6eee5b9ad0aa
Successfully tagged misp-proxy:latest
WARNING: Image for service proxy was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building web
Step 1/11 : FROM ubuntu:focal
focal: Pulling from library/ubuntu
692c352adcf2: Pull complete
97058a342707: Pull complete
2821b8e766f4: Pull complete
4e643cc37772: Pull complete
Digest: sha256:c844b5fee673cd976732dda6860e09b8f2ae5b324777b6f9d25fd70a0904c2e0
Status: Downloaded newer image for ubuntu:focal
 ---> adafef2e596e
Step 2/11 : ENV DEBIAN_FRONTEND noninteractive
 ---> Running in 30da8c40226b
Removing intermediate container 30da8c40226b
 ---> b30133bafbe6
Step 3/11 : RUN apt update -y && apt install wget sudo -y
 ---> Running in 7e258d65d618

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [44.5 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [33.9 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [1077 B]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [164 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [310 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [33.9 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [157 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [4224 B]
Get:17 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [3209 B]
Fetched 14.2 MB in 2s (5986 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates libpsl5 libssl1.1 openssl publicsuffix
The following NEW packages will be installed:
  ca-certificates libpsl5 libssl1.1 openssl publicsuffix sudo wget
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 3108 kB of archives.
After this operation, 9479 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2 [1318 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 openssl amd64 1.1.1f-1ubuntu2 [621 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20190110ubuntu1.1 [145 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 sudo amd64 1.8.31-1ubuntu1 [513 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 libpsl5 amd64 0.21.0-1ubuntu1 [51.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 publicsuffix all 20200303.0012-1 [111 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 wget amd64 1.20.3-1ubuntu1 [349 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3108 kB in 1s (4071 kB/s)
Selecting previously unselected package libssl1.1:amd64.
(Reading database ... 4122 files and directories currently installed.)
Preparing to unpack .../0-libssl1.1_1.1.1f-1ubuntu2_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2) ...
Selecting previously unselected package openssl.
Preparing to unpack .../1-openssl_1.1.1f-1ubuntu2_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../2-ca-certificates_20190110ubuntu1.1_all.deb ...
Unpacking ca-certificates (20190110ubuntu1.1) ...
Selecting previously unselected package sudo.
Preparing to unpack .../3-sudo_1.8.31-1ubuntu1_amd64.deb ...
Unpacking sudo (1.8.31-1ubuntu1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../4-libpsl5_0.21.0-1ubuntu1_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1ubuntu1) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../5-publicsuffix_20200303.0012-1_all.deb ...
Unpacking publicsuffix (20200303.0012-1) ...
Selecting previously unselected package wget.
Preparing to unpack .../6-wget_1.20.3-1ubuntu1_amd64.deb ...
Unpacking wget (1.20.3-1ubuntu1) ...
Setting up libpsl5:amd64 (0.21.0-1ubuntu1) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2) ...
Setting up sudo (1.8.31-1ubuntu1) ...
Setting up openssl (1.1.1f-1ubuntu2) ...
Setting up publicsuffix (20200303.0012-1) ...
Setting up wget (1.20.3-1ubuntu1) ...
Setting up ca-certificates (20190110ubuntu1.1) ...
Updating certificates in /etc/ssl/certs...
127 added, 0 removed; done.
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for ca-certificates (20190110ubuntu1.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 7e258d65d618
 ---> ae0ccf3bac6d
Step 4/11 : RUN wget -O /tmp/INSTALL.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.sh
 ---> Running in ec6fdf02b4fe
--2020-07-14 19:41:13--  https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.208.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.208.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133908 (131K) [text/plain]
Saving to: '/tmp/INSTALL.sh'

     0K .......... .......... .......... .......... .......... 38% 13.6M 0s
    50K .......... .......... .......... .......... .......... 76% 19.6M 0s
   100K .......... .......... ..........                      100% 17.1M=0.008s

2020-07-14 19:41:13 (16.3 MB/s) - '/tmp/INSTALL.sh' saved [133908/133908]

Removing intermediate container ec6fdf02b4fe
 ---> b549c2a27c44
Step 5/11 : RUN sed -i 's/> \/dev\/tty//' /tmp/INSTALL.sh
 ---> Running in f8ebb50a9311
Removing intermediate container f8ebb50a9311
 ---> a3c768202a20
Step 6/11 : RUN sed -i 's/> \/dev\/null//' /tmp/INSTALL.sh
 ---> Running in 16c10d948852
Removing intermediate container 16c10d948852
 ---> ab982bd2b9ba
Step 7/11 : RUN sed -i 's/checkInstaller$/#checkInstaller/' /tmp/INSTALL.sh
 ---> Running in 5d68b31dcc3c
Removing intermediate container 5d68b31dcc3c
 ---> e52323a066a1
Step 8/11 : RUN bash /tmp/INSTALL.sh -c
 ---> Running in a55d562d1d8b
Next step: Checking if we are run as the installer template
Next step: Checking Linux distribution and flavour...
/tmp/INSTALL.sh: line 332: lsb_release: command not found
Next step: We detected the following Linux flavour: Ubuntu 
Next step: Checking if we are uptodate and checksums match
tput: No value for $TERM and no -T specified
-
Next step: Setting MISP variables
Next step: Setting generic MISP variables shared by all flavours
groups: 'misp': no such user
The following DB Passwords were generated...
Admin (root) DB Password: 0a51c5ce44fbc70a23d1fdc4ccd8c7e4d2483f9a6fa6e2dc64384beb7788bd3d
User  (misp) DB Password: dd15155ca63bc7a62128cb0f466633866d6d4396faabe06c25aa97086e3c0702
Next step: Checking for parameters or Unattended Kali Install
Next step: Setting install options with given parameters.
core
/tmp/INSTALL.sh: line 3299: lsb_release: command not found
Installation done!
Removing intermediate container a55d562d1d8b
 ---> b478f35546cf
Step 9/11 : VOLUME /var/www/MISP
 ---> Running in d534974dd73b
Removing intermediate container d534974dd73b
 ---> 1437d44b4833
Step 10/11 : EXPOSE 80 443
 ---> Running in 2a8686e30f6d
Removing intermediate container 2a8686e30f6d
 ---> ee2044b05959
Step 11/11 : ENTRYPOINT ["/run.sh"]
 ---> Running in 5293e84904d8
Removing intermediate container 5293e84904d8
 ---> b3a222825f97
Successfully built b3a222825f97
Successfully tagged stevengoossens/misp:latest
WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Pulling db (mysql/mysql-server:5.7)...
5.7: Pulling from mysql/mysql-server
e945e9180309: Pull complete
bda404c4d2e2: Pull complete
858855003112: Pull complete
d92ed785684c: Pull complete
Digest: sha256:6d6fdd5bd31256a484e887c96c41abfc9ee3e3deb989de83ebdb8694fcc83485
Status: Downloaded newer image for mysql/mysql-server:5.7
Creating misp_db ... 
Creating misp_web ... error
Creating proxy    ... 
Creating misp_db  ... done
ERROR: for misp_web  Cannot start service web: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/run.sh\": stat /run.sh: no such file or dCreating proxy    ... done

ERROR: for web  Cannot start service web: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/run.sh\": stat /run.sh: no such file or directory": unknown
ERROR: Encountered errors while bringing up the project.
damien3221 commented 3 years ago

This image seems to have been broken around a week ago, you may want to try https://misp.github.io/misp-modules/install/

myasn1k commented 3 years ago

Same issue

marian-craciunescu commented 3 years ago

same here:d

XVanilor commented 3 years ago

Same issue

vwvvw commented 3 years ago

How to solve?

waterponey commented 3 years ago

Same here...

saikrishnans commented 3 years ago

Same Issue....

MrBrownBob commented 3 years ago

Same issue. Any fixes?

helinko commented 3 years ago

I think PR #79 should be reverted and put into a separate branch, as its author @stevengoossensB says there. I can test later today whether the reverted version works as-is and make a new PR.

helinko commented 3 years ago

Looks like Steven just opened #93, let's see if that works

EmilJasinski commented 3 years ago

hi all,

Unfortunately, I have the same issue:

obraz

Could you please tell me if there is any update about how to solve it? Thank you in advance.

HugeekMcGill commented 3 years ago

same here

helinko commented 3 years ago

Well the branch from #93 with the change I proposed there works. You can use it and also comment to the PR if you have problems (or not). I guess someone will merge it after it gets enough thumbs up, or not :shrug: