MISP / x_old_misp_docker

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

Web server failed on Misp Installation #167

Open nikgreg99 opened 1 year ago

nikgreg99 commented 1 year ago

I am trying to dockerize MISP on an Ubuntu Server 22.04 using this prepared docker file, but at the end of the procedure the web server failed to build. Anyone can help me?

netops2devops commented 1 year ago

can you please share any logs, errors or output of docker logs misp_web?

cryxnet commented 1 year ago

Same problem, web doesn't work:

misp_web exited with code 127
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
misp_web  | /usr/bin/env: ‘bash\r’: No such file or directory
nikgreg99 commented 1 year ago

Yeah this is stop there

cryxnet commented 1 year ago

Is the problem still relevant or did you find a fix?

nikgreg99 commented 1 year ago

it would we better if the fix will be solved, but i can't find a fix for this. I'm stuck about it

cryxnet commented 1 year ago

I think "/usr/bin/env: ‘bash\r’: No such file or directory" occurs because the script has wrong line endings (carriage returns + line feeds) instead of Unix-style line endings (line feeds only). The problem is that I had to change the line endings from CRLF to LF for the install.sh because else I can't run it on my windows.

So I think the line endings needs to be fixed.

I saw that theres already a pull request that didn't got merged: https://github.com/MISP/misp-docker/pull/125

nikgreg99 commented 1 year ago

Thank you very much. I will try to modify it and I will see. Are you referring to Docher File and which line of the script?

cryxnet commented 1 year ago

I'm not sure, try changing all files that are used in the installation. You can also add a .gitattributes with the content .sh text eol=lf

cryxnet commented 1 year ago

Did it work with windows? If you would use linux it works, i tested it

nikgreg99 commented 1 year ago

I don't know if it works with windows, but with Linux I haven't tried anymore.