Ubuntu 14.04 server unreachable
My Ubuntu 14.04 server is not responding. Restarting the linode did not help.
Apache and SSH service are not running and I am unable to start them:
(error: * Starting Apache httpd web server apache2 m
/etc/init.d/apache2: 72: /etc/init.d/apache2: cannot create : Directory nonexist
*
- The apache2 configtest failed.
).
When I su I get the error
(bash: cannot set terminal process group (1946): Inappropriate ioctl for device
bash: no job control in this shell
)
And it appears to be unable to resolve host name.
I have read the troubleshooting guide on "Why I can't connect to my server" and tried the suggestions but none worked.
I ran the commands listed in the FAQs on the subject. Here are the outputs:
root@(none):/# ping -c 3 8.8.8.8
connect: Network is unreachableroot@(none):/# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State eroot@(none):/# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPTroot@(none):/# ip a
1: lo: <loopback> mtu 65536 qdisc noop state DOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: dummy0: <broadcast,noarp> mtu 1500 qdisc noop state DOWN group default qlen 0
link/ether 7a:c5:da:6a:82:54 brd ff:ff:ff:ff:ff:ff
3: eth0: <broadcast,multicast> mtu 1500 qdisc noop state DOWN group default qle0
link/ether f2:3c:91:91:81:32 brd ff:ff:ff:ff:ff:ff
4: teql0: <noarp> mtu 1500 qdisc noop state DOWN group default qlen 100
link/void
5: tunl0@NONE: <noarp> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
6: gre0@NONE: <noarp> mtu 1476 qdisc noop state DOWN group default qlen 1000
link/gre 0.0.0.0 brd 0.0.0.0
7: gretap0@NONE: <broadcast,multicast> mtu 1462 qdisc noop state DOWN group def0
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
8: erspan0@NONE: <broadcast,multicast> mtu 1450 qdisc noop state DOWN group def0
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
9: ipvti0@NONE: <noarp> mtu 1428 qdisc noop state DOWN group default qlen 1000 link/ipip 0.0.0.0 brd 0.0.0.0 10: ip6</noarp>vti0@NONE: <noarp> mtu 1500 qdisc noop state DOWN group default qlen 100
link/tunnel6 :: brd ::
11: sit0@NONE: <noarp> mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
12: ip6tnl0@NONE: <noarp> mtu 1452 qdisc noop state DOWN group default qlen 1000
link/tunnel6 :: brd ::
13: ip6gre0@NONE: <noarp> mtu 1448 qdisc noop state DOWN group default qlen 1000
link/gre6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00</noarp></noarp></noarp></noarp></broadcast,multicast></broadcast,multicast></noarp></noarp></noarp></broadcast,multicast></broadcast,noarp></loopback>sudo dmesg | grep -i 'network'
sudo cat /var/log/syslog | grep -i 'net'
cat /etc/network/interfaces
sudo ifdown -av && sudo ifup -avsudo: unable to resolve host (none): Connection refused
- Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces
- Reconfiguring network interfaces… ifdown: failed to open lockfile /run/net
work/.ifstate.lock: No such file or directory
ifup: failed to open lockfile /run/network/ifstate.lo: No such file or directory
[fail]
1 Reply
It sounds like you changed your Linode's runlevel, probably to init=/bin/bash
. If you click "Edit" next to your configuration profile, you should see something like:
https://i.imgur.com/EVQ6sIN.png
You want to change it back to "Default Run Level" and then save your settings and reboot.