Jump to content

Every couple of days my Ubuntu home server just stops replying to the services it hosts (piHole, SMB, TimeMachine, SSH, Webmin,...). Though for some reason I can still access the default Apache webpage?

Anyone have an idea on what to do, is this hardware or software related?

 

Yes I’m not on the LTS because I need SMB_fruit in Samba.

Link to comment
https://linustechtips.com/topic/1054817-ubuntu-1810-home-server-problems/
Share on other sites

Link to post
Share on other sites

1 hour ago, LK LAW said:

Anyone have an idea on what to do, is this hardware or software related?

You have not given literally ANY useful information, so there is no way of answering this. Go look at your logs first, in all likelihood your issue can be found there.

Hand, n. A singular instrument worn at the end of the human arm and commonly thrust into somebody’s pocket.

Link to post
Share on other sites

On 4/15/2019 at 9:32 AM, WereCatf said:

You have not given literally ANY useful information, so there is no way of answering this. Go look at your logs first, in all likelihood your issue can be found there.

Apr 15 07:09:01  systemd[1]: Starting Clean php session files...
Apr 15 07:09:01  sessionclean[930]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.0: not found
Apr 15 07:09:01  systemd[1]: Started Clean php session files.
Apr 15 07:10:01  CRON[1068]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)
Apr 15 07:10:31  systemd[1]: dev-sdb7.device: Job dev-sdb7.device/start timed out.
Apr 15 07:10:31  systemd[1]: Timed out waiting for device dev-sdb7.device.
Apr 15 07:10:31  systemd[1]: Dependency failed for /dev/sdb7.
Apr 15 07:10:31  systemd[1]: dev-sdb7.swap: Job dev-sdb7.swap/start failed with result 'dependency'.
Apr 15 07:10:31  systemd[1]: dev-sdb7.device: Job dev-sdb7.device/start failed with result 'timeout'.
Apr 15 07:17:01  CRON[1291]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 15 07:20:01  CRON[1356]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)
Apr 15 07:30:01  CRON[1582]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Apr 15 07:30:01  CRON[1583]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)
Apr 15 07:39:01  CRON[1797]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Apr 15 07:39:01  systemd[1]: Starting Clean php session files...
Apr 15 07:39:02  sessionclean[1798]: /usr/lib/php/sessionclean: 35: /usr/lib/php/sessionclean: php7.0: not found
Apr 15 07:39:02  systemd[1]: Started Clean php session files.
Apr 15 07:40:01  CRON[1921]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)
Apr 15 07:40:31  systemd[1]: dev-sdb7.device: Job dev-sdb7.device/start timed out.
Apr 15 07:40:31  systemd[1]: Timed out waiting for device dev-sdb7.device.
Apr 15 07:40:31  systemd[1]: Dependency failed for /dev/sdb7.
Apr 15 07:40:31  systemd[1]: dev-sdb7.swap: Job dev-sdb7.swap/start failed with result 'dependency'.
Apr 15 07:40:31  systemd[1]: dev-sdb7.device: Job dev-sdb7.device/start failed with result 'timeout'.
Apr 15 07:50:01  CRON[2916]: (root) CMD (   PATH="$PATH:/usr/local/bin/" pihole updatechecker local)

That's the last output it had before going down that day, though I keep getting this error without the server not responding.

Afaik the sever shouldn't have a swap partition as the os is loaded from an SSD

Link to post
Share on other sites

On 4/15/2019 at 6:28 PM, LK LAW said:

Every couple of days my Ubuntu home server just stops replying to the services it hosts (piHole, SMB, TimeMachine, SSH, Webmin,...). 

pick one service. Show us the log for it when it stalls.

13 hours ago, LK LAW said:

Afaik the sever shouldn't have a swap partition as the os is loaded from an SSD

im pretty sure ubuntu 18 by default uses a swap file. It's complaining it cant find sdb7. You should look into that. Also you can turn swap off with "sudo swapoff -a", if you have enough ram to run without swap.

 

Link to post
Share on other sites

Post the output of

 

sudo lsblk
sudo df -h
sudo cat /etc/fstab

 

PC: AMD Ryzen 9 5900X (12) @ 3.7Ghz, 32GB DDR4-3600 RAM, Gigabyte Aorus RTX 3080 XTREME Server #1: Ryzen 3 (4) 2200G @ 3.5GHz, 16GB Ram, 2x WD RED 6TB, 2x WD RED 3TB / Debian 10

Link to post
Share on other sites

On 4/19/2019 at 12:55 AM, arthoc said:

Post the output of

 


sudo lsblk
sudo df -h
sudo cat /etc/fstab

 

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda      8:0    0   2.7T  0 disk
└─md0    9:0    0   5.5T  0 raid0 /mnt/md0
sdb      8:16   0   2.7T  0 disk
└─md0    9:0    0   5.5T  0 raid0 /mnt/md0
sdg      8:96   0 111.8G  0 disk
└─sdg1   8:97   0 111.8G  0 part  /

df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            2.9G     0  2.9G   0% /dev
tmpfs           593M  9.2M  584M   2% /run
/dev/sdg1       110G   15G   90G  15% /
tmpfs           2.9G  8.0M  2.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.9G     0  2.9G   0% /sys/fs/cgroup
/dev/md0        5.5T  2.4T  2.8T  46% /mnt/md0
tmpfs           593M     0  593M   0% /run/user/999
tmpfs           593M     0  593M   0% /run/user/1000

fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdc1 during installation
UUID=627bd2fc-0d47-4a31-b6ea-da6e71325f27 /               ext4    errors=remount-ro 0       1
/dev/sdb7       none            swap    sw              0       0
/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0

 

Link to post
Share on other sites

A really good fix:
1. Delete Ubuntu Server

2. Get CentOS

 

I had this problem before too, and in short I never found a fix, ran into semi-similar problems on CentOS, but they do not break the server. However this is my experience your mileage may vary a lot.

Link to post
Share on other sites

20 hours ago, SafyreLyons-5LT said:

A really good fix:
1. Delete Ubuntu Server

2. Get CentOS

 

I had this problem before too, and in short I never found a fix, ran into semi-similar problems on CentOS, but they do not break the server. However this is my experience your mileage may vary a lot.

How hard is it to import the raid array? Main issue I need debian/ubuntu is because of the unifi controller (they only offer support on those 2 distro's).

Ideally I'd love to run freeNas with some Jails/VMs loaded onto them, but the server I have is not powerful enough to do that...

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×