After installation of pi-hole.net, I can not start nginx.
systemctl status -l nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Fri 2016-06-10 14:42:42 IST; 25s ago
Process: 2710 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 2709 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Jun 10 14:42:39 datamol nginx[2710]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 10 14:42:39 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:40 datamol nginx[2710]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 10 14:42:40 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:40 datamol nginx[2710]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 10 14:42:40 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:42 datamol nginx[2710]: nginx: [emerg] still could not bind()
Jun 10 14:42:42 datamol systemd[1]: nginx.service: control process exited, code=exited status=1
Jun 10 14:42:42 datamol systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Jun 10 14:42:42 datamol systemd[1]: Unit nginx.service entered failed state.
And
journalctl -xn
-- Logs begin at Fri 2016-06-10 14:30:43 IST, end at Fri 2016-06-10 14:45:01 IST. --
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jun 10 14:42:41 datamol nginx[2710]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Jun 10 14:42:42 datamol nginx[2710]: nginx: [emerg] still could not bind()
Jun 10 14:42:42 datamol systemd[1]: nginx.service: control process exited, code=exited status=1
Jun 10 14:42:42 datamol 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.
Jun 10 14:42:42 datamol systemd[1]: Unit nginx.service entered failed state.
Jun 10 14:45:01 datamol CRON[2716]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 10 14:45:01 datamol CRON[2717]: (root) CMD (bash /etc/openvpn/yunohost.cron)
Jun 10 14:45:01 datamol CRON[2716]: pam_unix(cron:session): session closed for user root
@kanhu No, I don’t know how to uninstall it. You have to read the script to see what it does and undo it. I would start by uninstalling lighttpd and maybe reinstall the yunohost package to restore dependancies.
My point was to not install something like this in the first place unless you know exactly what it does (or on a development environnement). I’m sorry if you break your yunohost but please be careful about what you install.
I admit, in general it’s a bad idea to install something from the Internet
but CURL or WGET still the same, even I PPA or whatever none official source and Yunohost and Debian are clear on that.
After all I did’nt force people to execute the line.
Before executing something I’m doing snapshot and evaluating the source (this one is on GitHub).
So if you want to do the same principe you could look at https://github.com/pi-hole/pi-hole/blob/master/adlists.default
and inject those text file into your host file.
and with a cronjob update it.
But BEWARE, don’t forget to verify the 1.6M line you will put into your host file (sic)
I made a install without the automated script, so without ligthttpd.
For the moment, the web interface works fine, behind the sso. dnsmasq is quite ok (just a small conflict with the ynh dnsmasq config, nothing really bad). And the pihole service works fine too.
I have to try to use it as a dns to know if it really works.
For the moment, I have no big issue, but playing with the dns is such a hazardous game. So maybe it’s not going to work. We will see…
If all is ok, I plan to make a package for YunoHost
Hi @Maniack_Crudelis
Can you please tell how the pi-hole app works? I have installed it and changed the dns of my devices to the ip of the YunoHost server, but I don’t see any activity in pi-hole admin panel. . Neither do I see adds being blocked.
this package is in progress, you should not use it now ! It’s not safe !
But…
We have try it yesterday and it seems to work.
First, to see any activities on the panel, you have to activate the query log. In settings, if you didn’t agree when you had install the package.
Second, to see who resolv your dns queries, you can try an dig or nslookup on a domain.
For the usage, I think you have to change your main dns ip, that’s all.
But I have allready installed it.
I have enabled the pi-hole query log, now I can see the logs both in command-line and web-interface.
Is there any security issue as you mentioned its not safe?
No, not any security issues.
But as we play with the dns, it needs to be fully tested because we can have some problems.
Yesterday, we had find that if your /etc/hosts contains an entry with 127.0.0.1 on your main domain, obviously, you can’t reach your server anymore.
And an another error with the blacklist and ipv6.
Some fix are on the road, but not pushed yet.
So, be carreful, and if you have any problem, please report here.