StreisandEffect / streisand

Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.
https://twitter.com/streisandvpn
Other
23.16k stars 1.99k forks source link

Nginx Service Failed. #1699

Open atulsian89 opened 4 years ago

atulsian89 commented 4 years ago

Expected behavior:

Streisand should install on a clean KVM based VPS (16.04 Ubuntu)

Actual Behavior:

It fails while restarting Nginx with the following error code

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

Result of journalctl -xe

Dec 26 01:59:10 localhost systemd[1]: nginx.service: Unit entered failed state. Dec 26 01:59:10 localhost systemd[1]: nginx.service: Failed with result 'exit-code'. Dec 26 01:59:15 localhost systemd[1]: nginx.service: Service hold-off time over, scheduling restart. Dec 26 01:59:15 localhost systemd[1]: Stopped A high performance web server and a reverse proxy server. -- Subject: Unit nginx.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit nginx.service has finished shutting down. Dec 26 01:59:15 localhost systemd[1]: Starting A high performance web server and a reverse proxy server... -- Subject: Unit nginx.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit nginx.service has begun starting up. Dec 26 01:59:15 localhost nginx[32506]: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/streisand:21 Dec 26 01:59:15 localhost nginx[32506]: nginx: configuration file /etc/nginx/nginx.conf test failed Dec 26 01:59:15 localhost systemd[1]: nginx.service: Control process exited, code=exited status=1 Dec 26 01:59:15 localhost systemd[1]: Failed to start A high performance web server and a reverse proxy server. -- Subject: Unit nginx.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit nginx.service has failed.

-- The result is failed. Dec 26 01:59:15 localhost systemd[1]: nginx.service: Unit entered failed state. Dec 26 01:59:15 localhost systemd[1]: nginx.service: Failed with result 'exit-code'.

Steps to Reproduce:

  1. Reinstalled a new server on a new KVM VPS (16.04 Ubuntu)

  2. Let Streisand configure the System with custom settings.

Ansible Information

Streisand Information

Enabled Roles