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

dnsmasq: setting capabilities failed: Operation not permitted #1

Open
BrunoGysin opened this issue Dec 22, 2013 · 14 comments
Open

dnsmasq: setting capabilities failed: Operation not permitted #1

BrunoGysin opened this issue Dec 22, 2013 · 14 comments

Comments

@BrunoGysin
Copy link

Hi

I did everything the tutorial,
I received this message

//------------------------------------------------------------------------

Reading state information... Done
dnsmasq is already the newest version.
nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx.

  • Restarting DNS forwarder and DHCP server dnsmasq
    dnsmasq: setting capabilities failed: Operation not permitted
    [fail]

eth0: error fetching interface information: Device not found
Your DNS servers public IP is $IP
echo Your DNS servers eth0 IP is:

//------------------------------------------------------------------------

what I did wrong

@gta-online-nginx
Copy link
Owner

apt-get purge apache2
service nginx restart

@BrunoGysin
Copy link
Author

now erro

dnsmasq is already the newest version.
nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.
Restarting nginx: nginx.

  • Restarting DNS forwarder and DHCP server dnsmasq
    dnsmasq: setting capabilities failed: Operation not permitted
    [fail]

eth0: error fetching interface information: Device not found
Your DNS servers public IP is $IP
echo Your DNS servers eth0 IP is:

error dnsmasq:

  • Restarting DNS forwarder and DHCP server dnsmasq
    dnsmasq: setting capabilities failed: Operation not permitted
    [fail]

@gta-online-nginx
Copy link
Owner

Redownload and extract the zip file, then rerun the installer.

@BrunoGysin
Copy link
Author

ok

I rebuild my vps, and added debian-6.0-x86_64 OS

after using the command:
bash /install
it appeared:

Configuration file `/etc/dnsmasq.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** dnsmasq.conf (Y/I/N/O/D/Z) [default=N] ?

@gta-online-nginx
Copy link
Owner

keep the current version

@BrunoGysin
Copy link
Author

after:

Restarting nginx: [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
nginx.
Restarting DNS forwarder and DHCP server: dnsmasq
dnsmasq: setting capabilities failed: Operation not permitted
failed!

Your DNS server's public IP is:
eth0: error fetching interface information: Device not found
Your DNS server's eth0 IP is:

@gta-online-nginx
Copy link
Owner

What does running ps aux show?

@BrunoGysin
Copy link
Author

I did not remove the IP of the message, it does not appear

Your DNS server's public IP is:
eth0: error fetching interface information: Device not found
Your DNS server's eth0 IP is:

@BrunoGysin
Copy link
Author

not show

root 1 0.0 0.5 8356 716 ? Ss 10:32 0:00 init [2]
root 2 0.0 0.0 0 0 ? S 10:32 0:00 [kthreadd/1294]
root 3 0.0 0.0 0 0 ? S 10:32 0:00 [khelper/12943]
root 428 0.0 0.4 5984 636 ? Ss 10:32 0:00 /sbin/syslogd
root 439 0.0 0.3 54568 468 ? Ss 10:32 0:00 /usr/sbin/sasla
root 440 0.0 0.0 54568 44 ? S 10:32 0:00 /usr/sbin/sasla
root 459 0.0 0.9 71120 1212 ? Ss 10:32 0:00 /usr/sbin/apach
www-data 462 0.0 0.4 71120 608 ? S 10:32 0:00 /usr/sbin/apach
root 487 0.0 0.6 20912 844 ? Ss 10:32 0:00 /usr/sbin/cron
root 538 0.0 0.5 19340 756 ? Ss 10:32 0:00 /usr/sbin/xinet
root 541 0.0 0.4 49180 588 ? Ss 10:32 0:00 /usr/sbin/sshd
root 656 0.0 2.2 79008 2928 ? Ss 10:33 0:00 sshd: root@pts/
root 658 0.0 1.2 17704 1656 pts/1 Ss 10:33 0:00 -bash
root 662 0.0 0.5 58132 712 ? Ss 10:34 0:00 sendmail: MTA:
root 1389 0.0 0.8 14824 1056 pts/1 R+ 10:45 0:00 ps aux

@gta-online-nginx
Copy link
Owner

run apt-get purge apache2
I'm not sure why dnsmasq is failing to start. Is this an OpenVZ VPS? if so, try adding no-dhcp-interface=venet0 to /etc/dnsmasq.conf

@BrunoGysin
Copy link
Author

i run apt-get purge apache2
and
I added

no-dhcp-interface=venet0 to /etc/dnsmasq.conf

i restart the vps

@BrunoGysin
Copy link
Author

no ps aux, dnsmasq não aparecer
in ps aux, dnsmasq does not appear

@ghost
Copy link

ghost commented Dec 24, 2013

sudo fuser -k 80/tcp

Will remove nginx restart error

@ghost
Copy link

ghost commented Dec 28, 2013

I have the same problem :( but i tryed "sudo fuser -k 80/tcp" and it says "-bash: fuser: command not found"

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

2 participants