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

Web server failed on Misp Installation #167

Open
nikgreg99 opened this issue Apr 13, 2023 · 10 comments
Open

Web server failed on Misp Installation #167

nikgreg99 opened this issue Apr 13, 2023 · 10 comments

Comments

@nikgreg99
Copy link

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

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

@cryxnet
Copy link

cryxnet commented Apr 28, 2023

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

Yeah this is stop there

@cryxnet
Copy link

cryxnet commented Apr 30, 2023

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

@nikgreg99
Copy link
Author

nikgreg99 commented Apr 30, 2023

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

cryxnet commented May 2, 2023

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: MISP/misp-docker#125

@nikgreg99
Copy link
Author

nikgreg99 commented May 2, 2023

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

cryxnet commented May 2, 2023

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

cryxnet commented May 5, 2023

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

@nikgreg99
Copy link
Author

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

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

No branches or pull requests

3 participants