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

Are paving bricks differently sized for sand bedding vs mortar bedding?

Why is so much work done on numerical verification of the Riemann Hypothesis?

dpdt switch to spst switch

Is it better practice to read straight from sheet music rather than memorize it?

Biological Blimps: Propulsion

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

On a tidally locked planet, would time be quantized?

How could a planet have erratic days?

Loading commands from file

Why did the EU agree to delay the Brexit deadline?

Lowest total scrabble score

Yosemite Fire Rings - What to Expect?

Delivering sarcasm

What should you do if you miss a job interview (deliberately)?

is this legal and f i dont come up with extra money is the deal off

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

How can I block email signup overlays or javascript popups in Safari?

Should I outline or discovery write my stories?

Problem with TransformedDistribution

lightning-datatable row number error

Not using 's' for he/she/it

2.8 Why are collections grayed out? How can I open them?

What was this official D&D 3.5e Lovecraft-flavored rulebook?

How can "mimic phobia" be cured or prevented?



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 11 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

          List of shipwrecks in 1808...

          Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

          Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...