Startup errors: Missing privilege separation directory: /var/run/sshd and network unreachable resolvingNo network after upgrade to 16.04SSH Commandline - Ubuntu x64 dedicated server raid-0 array creation LOG [ After reboot : Disk /dev/md127 doesn't contain a valid partition table ]Can I run a Ubuntu and Windows DHCP / DNS Server together in the same network?SSH not workingUbuntu 16.04 LTS sshd restart problemFailed to start raise network interface on Ubuntu 16.04ping: unknown host google.com and host unreachableping 8.8.8.8SSH Server stops working after reboot, caused by missing /var/run/sshdSSH failed to start - Missing privilege separation directory: /var/run/sshdNo working network after some errors on startup & a fsckUnattended upgrade on arm64 NanoPi system failed for openssh-server

Aragorn's "guise" in the Orthanc Stone

It grows, but water kills it

Must Legal Documents Be Siged In Standard Pen Colors?

Travelling outside the UK without a passport

copy and scale one figure (wheel)

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?

Drawing ramified coverings with tikz

Why can Carol Danvers change her suit colours in the first place?

What does routing an IP address mean?

dpdt switch to spst switch

Which one is correct as adjective “protruding” or “protruded”?

Is it safe to use olive oil to clean the ear wax?

If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?

Redundant comparison & "if" before assignment

What if a revenant (monster) gains fire resistance?

Problem with TransformedDistribution

Count the occurrence of each unique word in the file

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

What are the purposes of autoencoders?

250 Floor Tower

What is this called? Old film camera viewer?

Symbol used to indicate indivisibility

Yosemite Fire Rings - What to Expect?

How to indicate a cut out for a product window



Startup errors: Missing privilege separation directory: /var/run/sshd and network unreachable resolving


No network after upgrade to 16.04SSH Commandline - Ubuntu x64 dedicated server raid-0 array creation LOG [ After reboot : Disk /dev/md127 doesn't contain a valid partition table ]Can I run a Ubuntu and Windows DHCP / DNS Server together in the same network?SSH not workingUbuntu 16.04 LTS sshd restart problemFailed to start raise network interface on Ubuntu 16.04ping: unknown host google.com and host unreachableping 8.8.8.8SSH Server stops working after reboot, caused by missing /var/run/sshdSSH failed to start - Missing privilege separation directory: /var/run/sshdNo working network after some errors on startup & a fsckUnattended upgrade on arm64 NanoPi system failed for openssh-server













0















Getting a lot of error messages trying to fix my ubuntu server not having any internet. In the end, I found out it was due to the gateway pointing to wrong IP. Had to switch gateway to xxx.xxx.x.193 in /etc/network/interfaces



But prior to that, I was reading answer here and followed its commands to see if it would resolve my internet on server.



https://askubuntu.com/questions/767574/no-network-after-upgrade-to-16-04/767944#767944

$ sudo systemctl enable systemd-networkd
$ sudo systemctl enable systemd-resolved
$ sudo systemctl start systemd-resolved
$ sudo rm /etc/resolv.conf
$ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
$ sudo vi /etc/systemd/network/20-dhcp.network


After I did that and rebooted, got all sorts of error messages. I am thinking might be related to DHCP being set to auto. But not sure. Any suggestions on fix? Here's errors I am getting in startup messages.



Mar 22 20:04:42 ubuntu sshd[1413]: Missing privilege separation directory: /var/run/sshd
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Mar 22 20:04:42 ubuntu sshd[1528]: Missing privilege separation directory: /var/run/sshd
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
Mar 22 20:04:42 ubuntu dovecot: master: Dovecot v2.2.22 (fe789d2) starting up for imap, pop3 (core dumps disabled)
Mar 22 20:04:42 ubuntu systemd[1]: dovecot.service: PID file /var/run/dovecot/master.pid not readable (yet?) after start: No such file or directory
Mar 22 20:04:42 ubuntu systemd[1]: Started Dovecot IMAP/POP3 email server.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Mar 22 20:04:43 ubuntu sshd[1537]: Missing privilege separation directory: /var/run/sshd
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Mar 22 20:04:43 ubuntu sshd[1541]: Missing privilege separation directory: /var/run/sshd
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Start request repeated too quickly.
Mar 22 20:04:44 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Unit entered failed state.
Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Failed with result 'start-limit-hit'.
Mar 22 20:04:45 ubuntu fail2ban-client[1415]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
Mar 22 20:04:45 ubuntu named[1441]: using built-in root key for view _default
Mar 22 20:04:45 ubuntu named[1441]: set up managed keys zone for view _default, file 'managed-keys.bind'
Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
Mar 22 20:04:45 ubuntu named[1441]: command channel listening on 127.0.0.1#953
Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
Mar 22 20:04:45 ubuntu named[1441]: command channel listening on ::1#953
Mar 22 20:04:45 ubuntu named[1441]: the working directory is not writable
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: journal file is out of date: removing journal file
Mar 22 20:04:45 ubuntu named[1441]: unable to remove journal 'managed-keys.bind.jnl': 'Permission denied'
Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: loaded serial 5
Mar 22 20:04:45 ubuntu named[1441]: zone 0.in-addr.arpa/IN: loaded serial 1
Mar 22 20:04:45 ubuntu named[1441]: zone localhost/IN: loaded serial 2
Mar 22 20:04:45 ubuntu named[1441]: zone 127.in-addr.arpa/IN: loaded serial 1
Mar 22 20:04:45 ubuntu named[1441]: zone 255.in-addr.arpa/IN: loaded serial 1
Mar 22 20:04:45 ubuntu named[1441]: all zones loaded
Mar 22 20:04:45 ubuntu named[1441]: running
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:503:ba3e::2:30#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'E.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:503:ba3e::2:30#53
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
Mar 22 20:04:45 ubuntu fail2ban-client[1551]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Mar 22 20:04:45 ubuntu systemd[1]: Failed to start Fail2Ban Service.
Mar 22 20:04:45 ubuntu kernel: [ 23.839071] audit: type=1400 audit(1553310285.596:10): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
Mar 22 20:04:46 ubuntu systemd[1]: Started A high performance web server and a reverse proxy server.
Mar 22 20:04:46 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:dc3::35#53
Mar 22 20:04:46 ubuntu fail2ban-client[1559]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Mar 22 20:04:46 ubuntu php-fpm7.2[1435]: [22-Mar-2019 20:04:46] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'php_com_do$
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
Mar 22 20:04:46 ubuntu mysql[1446]: * Starting MySQL (Percona Server) database server mysqld
Mar 22 20:04:46 ubuntu fail2ban-client[1569]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Mar 22 20:04:46 ubuntu kernel: [ 24.800151] audit: type=1400 audit(1553310286.560:11): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
Mar 22 20:04:46 ubuntu fail2ban-client[1880]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Mar 22 20:04:47 ubuntu kernel: [ 25.398516] audit: type=1400 audit(1553310287.156:12): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Mar 22 20:04:47 ubuntu systemd[1]: Stopped Fail2Ban Service.
Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Start request repeated too quickly.
Mar 22 20:04:47 ubuntu systemd[1]: Failed to start Fail2Ban Service.
Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Failed with result 'start-limit-hit'.









share|improve this question


























    0















    Getting a lot of error messages trying to fix my ubuntu server not having any internet. In the end, I found out it was due to the gateway pointing to wrong IP. Had to switch gateway to xxx.xxx.x.193 in /etc/network/interfaces



    But prior to that, I was reading answer here and followed its commands to see if it would resolve my internet on server.



    https://askubuntu.com/questions/767574/no-network-after-upgrade-to-16-04/767944#767944

    $ sudo systemctl enable systemd-networkd
    $ sudo systemctl enable systemd-resolved
    $ sudo systemctl start systemd-resolved
    $ sudo rm /etc/resolv.conf
    $ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
    $ sudo vi /etc/systemd/network/20-dhcp.network


    After I did that and rebooted, got all sorts of error messages. I am thinking might be related to DHCP being set to auto. But not sure. Any suggestions on fix? Here's errors I am getting in startup messages.



    Mar 22 20:04:42 ubuntu sshd[1413]: Missing privilege separation directory: /var/run/sshd
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
    Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
    Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
    Mar 22 20:04:42 ubuntu sshd[1528]: Missing privilege separation directory: /var/run/sshd
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
    Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
    Mar 22 20:04:42 ubuntu dovecot: master: Dovecot v2.2.22 (fe789d2) starting up for imap, pop3 (core dumps disabled)
    Mar 22 20:04:42 ubuntu systemd[1]: dovecot.service: PID file /var/run/dovecot/master.pid not readable (yet?) after start: No such file or directory
    Mar 22 20:04:42 ubuntu systemd[1]: Started Dovecot IMAP/POP3 email server.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
    Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
    Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
    Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
    Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
    Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
    Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
    Mar 22 20:04:43 ubuntu sshd[1537]: Missing privilege separation directory: /var/run/sshd
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
    Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
    Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
    Mar 22 20:04:43 ubuntu sshd[1541]: Missing privilege separation directory: /var/run/sshd
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
    Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
    Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
    Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
    Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
    Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Start request repeated too quickly.
    Mar 22 20:04:44 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
    Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Unit entered failed state.
    Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Failed with result 'start-limit-hit'.
    Mar 22 20:04:45 ubuntu fail2ban-client[1415]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
    Mar 22 20:04:45 ubuntu named[1441]: using built-in root key for view _default
    Mar 22 20:04:45 ubuntu named[1441]: set up managed keys zone for view _default, file 'managed-keys.bind'
    Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
    Mar 22 20:04:45 ubuntu named[1441]: command channel listening on 127.0.0.1#953
    Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
    Mar 22 20:04:45 ubuntu named[1441]: command channel listening on ::1#953
    Mar 22 20:04:45 ubuntu named[1441]: the working directory is not writable
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
    Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: journal file is out of date: removing journal file
    Mar 22 20:04:45 ubuntu named[1441]: unable to remove journal 'managed-keys.bind.jnl': 'Permission denied'
    Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: loaded serial 5
    Mar 22 20:04:45 ubuntu named[1441]: zone 0.in-addr.arpa/IN: loaded serial 1
    Mar 22 20:04:45 ubuntu named[1441]: zone localhost/IN: loaded serial 2
    Mar 22 20:04:45 ubuntu named[1441]: zone 127.in-addr.arpa/IN: loaded serial 1
    Mar 22 20:04:45 ubuntu named[1441]: zone 255.in-addr.arpa/IN: loaded serial 1
    Mar 22 20:04:45 ubuntu named[1441]: all zones loaded
    Mar 22 20:04:45 ubuntu named[1441]: running
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:503:ba3e::2:30#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'E.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
    Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:503:ba3e::2:30#53
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
    Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
    Mar 22 20:04:45 ubuntu fail2ban-client[1551]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
    Mar 22 20:04:45 ubuntu systemd[1]: Failed to start Fail2Ban Service.
    Mar 22 20:04:45 ubuntu kernel: [ 23.839071] audit: type=1400 audit(1553310285.596:10): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
    Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
    Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
    Mar 22 20:04:46 ubuntu systemd[1]: Started A high performance web server and a reverse proxy server.
    Mar 22 20:04:46 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:dc3::35#53
    Mar 22 20:04:46 ubuntu fail2ban-client[1559]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
    Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
    Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
    Mar 22 20:04:46 ubuntu php-fpm7.2[1435]: [22-Mar-2019 20:04:46] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'php_com_do$
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
    Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
    Mar 22 20:04:46 ubuntu mysql[1446]: * Starting MySQL (Percona Server) database server mysqld
    Mar 22 20:04:46 ubuntu fail2ban-client[1569]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
    Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
    Mar 22 20:04:46 ubuntu kernel: [ 24.800151] audit: type=1400 audit(1553310286.560:11): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
    Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
    Mar 22 20:04:46 ubuntu fail2ban-client[1880]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
    Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
    Mar 22 20:04:47 ubuntu kernel: [ 25.398516] audit: type=1400 audit(1553310287.156:12): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
    Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
    Mar 22 20:04:47 ubuntu systemd[1]: Stopped Fail2Ban Service.
    Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Start request repeated too quickly.
    Mar 22 20:04:47 ubuntu systemd[1]: Failed to start Fail2Ban Service.
    Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
    Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Failed with result 'start-limit-hit'.









    share|improve this question
























      0












      0








      0








      Getting a lot of error messages trying to fix my ubuntu server not having any internet. In the end, I found out it was due to the gateway pointing to wrong IP. Had to switch gateway to xxx.xxx.x.193 in /etc/network/interfaces



      But prior to that, I was reading answer here and followed its commands to see if it would resolve my internet on server.



      https://askubuntu.com/questions/767574/no-network-after-upgrade-to-16-04/767944#767944

      $ sudo systemctl enable systemd-networkd
      $ sudo systemctl enable systemd-resolved
      $ sudo systemctl start systemd-resolved
      $ sudo rm /etc/resolv.conf
      $ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
      $ sudo vi /etc/systemd/network/20-dhcp.network


      After I did that and rebooted, got all sorts of error messages. I am thinking might be related to DHCP being set to auto. But not sure. Any suggestions on fix? Here's errors I am getting in startup messages.



      Mar 22 20:04:42 ubuntu sshd[1413]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:42 ubuntu sshd[1528]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:42 ubuntu dovecot: master: Dovecot v2.2.22 (fe789d2) starting up for imap, pop3 (core dumps disabled)
      Mar 22 20:04:42 ubuntu systemd[1]: dovecot.service: PID file /var/run/dovecot/master.pid not readable (yet?) after start: No such file or directory
      Mar 22 20:04:42 ubuntu systemd[1]: Started Dovecot IMAP/POP3 email server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:43 ubuntu sshd[1537]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:43 ubuntu sshd[1541]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Start request repeated too quickly.
      Mar 22 20:04:44 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Failed with result 'start-limit-hit'.
      Mar 22 20:04:45 ubuntu fail2ban-client[1415]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:45 ubuntu named[1441]: using built-in root key for view _default
      Mar 22 20:04:45 ubuntu named[1441]: set up managed keys zone for view _default, file 'managed-keys.bind'
      Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
      Mar 22 20:04:45 ubuntu named[1441]: command channel listening on 127.0.0.1#953
      Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
      Mar 22 20:04:45 ubuntu named[1441]: command channel listening on ::1#953
      Mar 22 20:04:45 ubuntu named[1441]: the working directory is not writable
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: journal file is out of date: removing journal file
      Mar 22 20:04:45 ubuntu named[1441]: unable to remove journal 'managed-keys.bind.jnl': 'Permission denied'
      Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: loaded serial 5
      Mar 22 20:04:45 ubuntu named[1441]: zone 0.in-addr.arpa/IN: loaded serial 1
      Mar 22 20:04:45 ubuntu named[1441]: zone localhost/IN: loaded serial 2
      Mar 22 20:04:45 ubuntu named[1441]: zone 127.in-addr.arpa/IN: loaded serial 1
      Mar 22 20:04:45 ubuntu named[1441]: zone 255.in-addr.arpa/IN: loaded serial 1
      Mar 22 20:04:45 ubuntu named[1441]: all zones loaded
      Mar 22 20:04:45 ubuntu named[1441]: running
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'E.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:45 ubuntu fail2ban-client[1551]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:45 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:45 ubuntu kernel: [ 23.839071] audit: type=1400 audit(1553310285.596:10): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:46 ubuntu systemd[1]: Started A high performance web server and a reverse proxy server.
      Mar 22 20:04:46 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:dc3::35#53
      Mar 22 20:04:46 ubuntu fail2ban-client[1559]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:46 ubuntu php-fpm7.2[1435]: [22-Mar-2019 20:04:46] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'php_com_do$
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:46 ubuntu mysql[1446]: * Starting MySQL (Percona Server) database server mysqld
      Mar 22 20:04:46 ubuntu fail2ban-client[1569]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:46 ubuntu kernel: [ 24.800151] audit: type=1400 audit(1553310286.560:11): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:46 ubuntu fail2ban-client[1880]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:47 ubuntu kernel: [ 25.398516] audit: type=1400 audit(1553310287.156:12): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:47 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Start request repeated too quickly.
      Mar 22 20:04:47 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Failed with result 'start-limit-hit'.









      share|improve this question














      Getting a lot of error messages trying to fix my ubuntu server not having any internet. In the end, I found out it was due to the gateway pointing to wrong IP. Had to switch gateway to xxx.xxx.x.193 in /etc/network/interfaces



      But prior to that, I was reading answer here and followed its commands to see if it would resolve my internet on server.



      https://askubuntu.com/questions/767574/no-network-after-upgrade-to-16-04/767944#767944

      $ sudo systemctl enable systemd-networkd
      $ sudo systemctl enable systemd-resolved
      $ sudo systemctl start systemd-resolved
      $ sudo rm /etc/resolv.conf
      $ sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
      $ sudo vi /etc/systemd/network/20-dhcp.network


      After I did that and rebooted, got all sorts of error messages. I am thinking might be related to DHCP being set to auto. But not sure. Any suggestions on fix? Here's errors I am getting in startup messages.



      Mar 22 20:04:42 ubuntu sshd[1413]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:42 ubuntu sshd[1528]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:42 ubuntu dovecot: master: Dovecot v2.2.22 (fe789d2) starting up for imap, pop3 (core dumps disabled)
      Mar 22 20:04:42 ubuntu systemd[1]: dovecot.service: PID file /var/run/dovecot/master.pid not readable (yet?) after start: No such file or directory
      Mar 22 20:04:42 ubuntu systemd[1]: Started Dovecot IMAP/POP3 email server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:42 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu sshd[1533]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:42 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:42 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:43 ubuntu sshd[1537]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:43 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
      Mar 22 20:04:43 ubuntu sshd[1541]: Missing privilege separation directory: /var/run/sshd
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Control process exited, code=exited status=255
      Mar 22 20:04:43 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:43 ubuntu systemd[1]: ssh.service: Failed with result 'exit-code'.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:44 ubuntu systemd[1]: Stopped OpenBSD Secure Shell server.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Start request repeated too quickly.
      Mar 22 20:04:44 ubuntu systemd[1]: Failed to start OpenBSD Secure Shell server.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Unit entered failed state.
      Mar 22 20:04:44 ubuntu systemd[1]: ssh.service: Failed with result 'start-limit-hit'.
      Mar 22 20:04:45 ubuntu fail2ban-client[1415]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:45 ubuntu named[1441]: using built-in root key for view _default
      Mar 22 20:04:45 ubuntu named[1441]: set up managed keys zone for view _default, file 'managed-keys.bind'
      Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
      Mar 22 20:04:45 ubuntu named[1441]: command channel listening on 127.0.0.1#953
      Mar 22 20:04:45 ubuntu named[1441]: configuring command channel from '/etc/bind/rndc.key'
      Mar 22 20:04:45 ubuntu named[1441]: command channel listening on ::1#953
      Mar 22 20:04:45 ubuntu named[1441]: the working directory is not writable
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: journal file is out of date: removing journal file
      Mar 22 20:04:45 ubuntu named[1441]: unable to remove journal 'managed-keys.bind.jnl': 'Permission denied'
      Mar 22 20:04:45 ubuntu named[1441]: managed-keys-zone: loaded serial 5
      Mar 22 20:04:45 ubuntu named[1441]: zone 0.in-addr.arpa/IN: loaded serial 1
      Mar 22 20:04:45 ubuntu named[1441]: zone localhost/IN: loaded serial 2
      Mar 22 20:04:45 ubuntu named[1441]: zone 127.in-addr.arpa/IN: loaded serial 1
      Mar 22 20:04:45 ubuntu named[1441]: zone 255.in-addr.arpa/IN: loaded serial 1
      Mar 22 20:04:45 ubuntu named[1441]: all zones loaded
      Mar 22 20:04:45 ubuntu named[1441]: running
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:500:84::b#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './DNSKEY/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving 'E.ROOT-SERVERS.NET/AAAA/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu named[1441]: network unreachable resolving './NS/IN': 2001:503:ba3e::2:30#53
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:45 ubuntu fail2ban-client[1551]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:45 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:45 ubuntu kernel: [ 23.839071] audit: type=1400 audit(1553310285.596:10): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:45 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:45 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:45 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:46 ubuntu systemd[1]: Started A high performance web server and a reverse proxy server.
      Mar 22 20:04:46 ubuntu named[1441]: network unreachable resolving 'G.ROOT-SERVERS.NET/AAAA/IN': 2001:dc3::35#53
      Mar 22 20:04:46 ubuntu fail2ban-client[1559]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:46 ubuntu php-fpm7.2[1435]: [22-Mar-2019 20:04:46] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'php_com_do$
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:46 ubuntu mysql[1446]: * Starting MySQL (Percona Server) database server mysqld
      Mar 22 20:04:46 ubuntu fail2ban-client[1569]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:46 ubuntu kernel: [ 24.800151] audit: type=1400 audit(1553310286.560:11): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:46 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: Starting Fail2Ban Service...
      Mar 22 20:04:46 ubuntu fail2ban-client[1880]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 146]: option 'port' $
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Control process exited, code=exited status=255
      Mar 22 20:04:46 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:46 ubuntu systemd[1]: fail2ban.service: Failed with result 'exit-code'.
      Mar 22 20:04:47 ubuntu kernel: [ 25.398516] audit: type=1400 audit(1553310287.156:12): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" nam$
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
      Mar 22 20:04:47 ubuntu systemd[1]: Stopped Fail2Ban Service.
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Start request repeated too quickly.
      Mar 22 20:04:47 ubuntu systemd[1]: Failed to start Fail2Ban Service.
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Unit entered failed state.
      Mar 22 20:04:47 ubuntu systemd[1]: fail2ban.service: Failed with result 'start-limit-hit'.






      ssh lubuntu dns






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 43 mins ago









      Scott Yu - Front-End UXScott Yu - Front-End UX

      1013




      1013




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128167%2fstartup-errors-missing-privilege-separation-directory-var-run-sshd-and-networ%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128167%2fstartup-errors-missing-privilege-separation-directory-var-run-sshd-and-networ%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org