DFIRKuiper / Kuiper

Digital Forensics Investigation Platform
760 stars 111 forks source link

nginx fail to start after successful installation #36

Closed backherozzo closed 2 years ago

backherozzo commented 2 years ago

Hi, I'm trying to install Kuiper in a brand new Ubuntu 18.04 vm and after correctly installed all the requirements I receive the following nginx error:

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

Checking further with the command "journalctl -xe" it seems to be a certificate error:

Oct 18 11:01:08 kuiper nginx[11196]: nginx: [emerg] BIO_new_file("/home/kuiper/kuiper/cert/MyCertificate.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fop Oct 18 11:01:08 kuiper nginx[11196]: nginx: configuration file /etc/nginx/nginx.conf test failed Oct 18 11:01:08 kuiper systemd[1]: nginx.service: Control process exited, code=exited status=1 Oct 18 11:01:08 kuiper systemd[1]: nginx.service: Failed with result 'exit-code'. Oct 18 11:01:08 kuiper systemd[1]: Failed to start A high performance web server and a reverse proxy server.

The indicates certificates path: /home/kuiper/kuiper/cert/MyCertificate.crt isn't present for this reason I tried to modified this path in the nginx conf file "kuiper-nginx.conf" whithout success:

server { listen 443 ssl; ssl_certificate /home/kuiper/kuiper/cert/MyCertificate.crt; ssl_certificate_key /home/kuiper/kuiper/cert/MyKey.key;

Can you please help me to solve this issue?

salehmuhaysin commented 2 years ago

hi,

try to change the cert paths on the nginx configuration file, the installer will copy the kuiper-nginx.conf to "/etc/nginx/sites-available/kuiper-nginx.conf", so after the installation changing kuiper-ngin.conf will not make any changes try to change the file "/etc/nginx/sites-available/kuiper-nginx.conf" then restart the nginx service.

ensure the paths of the certificate are correct on the configuration

backherozzo commented 2 years ago

Thank you very much for the quick reply, I modified the path certificates and now nginx start without error but I can't understand why Kuiper site isn't loaded. How I need to modify proxy_pass socks? Thank

salehmuhaysin commented 2 years ago

you just need to change the path to the currect one

        proxy_pass              http://unix:/home/kuiper/kuiper/kuiper.sock;

change /home/kuiper/kuiper/kuiper.sock to the currect path

backherozzo commented 2 years ago

Hi, thank you very much for your reply I modified the proxy_pass path with the correct path but I'm not able to start the Kuiper application. Have you some other suggestions? Thanks

salehmuhaysin commented 2 years ago

what is the issue and the output of ./kuiper_install.sh -run

backherozzo commented 2 years ago

Kuiper

no error only this e nothing in listening from nginx

backherozzo commented 2 years ago

Hi, issue solved after reconfiguring nginx with correct server_name. Thank you for your help