Server error [mariadb and nfs]

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
przemko
Posts: 172
Joined: Sun Mar 15, 2020 5:40 pm

Server error [mariadb and nfs]

Post by przemko »

Hello, today with no reason my nfs-server service and mariadb stop working. Yesterday everything was fine. I don't make anu upgrades or reboot.

Code: Select all

dietpi@DietPi:~$ sudo dietpi-services status

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: status 

[  OK  ] DietPi-Services | avahi-daemon		active (running) since Fri 2021-09-10 09:46:52 CEST; 25min ago
[  OK  ] DietPi-Services | proftpd		active (running) since Fri 2021-09-10 09:46:52 CEST; 25min ago
[FAILED] DietPi-Services | ● nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-09-10 09:52:53 CEST; 19min ago
  Process: 2683 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)
  Process: 5245 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 5246 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)

Sep 10 09:46:52 DietPi systemd[1]: Starting NFS server and services...
Sep 10 09:51:22 DietPi exportfs[2683]: exportfs: Failed to stat /mnt/Toshiba/dietpi_userdata: No such device
Sep 10 09:52:53 DietPi exportfs[2683]: exportfs: Failed to stat /mnt/dietpi_userdata: No such device
Sep 10 09:52:53 DietPi systemd[1]: nfs-server.service: Control process exited, code=exited, status=1/FAILURE
Sep 10 09:52:53 DietPi systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Sep 10 09:52:53 DietPi systemd[1]: Stopped NFS server and services.
[  OK  ] DietPi-Services | redis-server		active (running) since Fri 2021-09-10 09:52:53 CEST; 19min ago
[FAILED] DietPi-Services | ● mariadb.service - MariaDB 10.3.29 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-09-10 10:06:24 CEST; 6min ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 8126 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
  Process: 8127 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 8129 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
  Process: 8186 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
 Main PID: 8186 (code=exited, status=1/FAILURE)
   Status: "MariaDB server is down"

Sep 10 10:00:54 DietPi systemd[1]: Starting MariaDB 10.3.29 database server...
Sep 10 10:01:54 DietPi mysqld[8186]: 2021-09-10 10:01:54 0 [Note] /usr/sbin/mysqld (mysqld 10.3.29-MariaDB-0+deb10u1) starting as process 8186 ...
Sep 10 10:04:54 DietPi mysqld[8186]: 2021-09-10 10:04:54 0 [Warning] Can't create test file /var/lib/mysql/DietPi.lower-test
Sep 10 10:06:24 DietPi mysqld[8186]: [87B blob data]
Sep 10 10:06:24 DietPi mysqld[8186]: 2021-09-10 10:06:24 0 [ERROR] Aborting
Sep 10 10:06:24 DietPi systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Sep 10 10:06:24 DietPi systemd[1]: mariadb.service: Failed with result 'exit-code'.
Sep 10 10:06:24 DietPi systemd[1]: Failed to start MariaDB 10.3.29 database server.
[  OK  ] DietPi-Services | php7.3-fpm		active (running) since Fri 2021-09-10 09:58:54 CEST; 13min ago
[  OK  ] DietPi-Services | lighttpd		active (running) since Fri 2021-09-10 09:58:54 CEST; 13min ago
[  OK  ] DietPi-Services | emby-server		active (running) since Fri 2021-09-10 09:58:54 CEST; 13min ago
[  OK  ] DietPi-Services | noip2		active (running) since Fri 2021-09-10 09:58:56 CEST; 13min ago
[  OK  ] DietPi-Services | cron			active (running) since Fri 2021-09-10 09:58:56 CEST; 13min ago
[  OK  ] DietPi-Services | ssh			active (running) since Fri 2021-09-10 09:58:56 CEST; 13min ago
[  OK  ] DietPi-Services | fail2ban		active (running) since Fri 2021-09-10 09:58:56 CEST; 13min ago
[FAILED] DietPi-Services | ● dietpi-vpn.service - VPN Client (DietPi)
   Loaded: loaded (/etc/systemd/system/dietpi-vpn.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-09-10 09:58:56 CEST; 13min ago
  Process: 8017 ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config /etc/openvpn/client.ovpn (code=exited, status=203/EXEC)
 Main PID: 8017 (code=exited, status=203/EXEC)

Sep 10 09:58:56 DietPi systemd[1]: Starting VPN Client (DietPi)...
Sep 10 09:58:56 DietPi systemd[8017]: dietpi-vpn.service: Failed to execute command: No such file or directory
Sep 10 09:58:56 DietPi systemd[8017]: dietpi-vpn.service: Failed at step EXEC spawning /usr/sbin/openvpn: No such file or directory
Sep 10 09:58:56 DietPi systemd[1]: dietpi-vpn.service: Main process exited, code=exited, status=203/EXEC
Sep 10 09:58:56 DietPi systemd[1]: dietpi-vpn.service: Failed with result 'exit-code'.
Sep 10 09:58:56 DietPi systemd[1]: Failed to start VPN Client (DietPi).
[  OK  ] DietPi-Services | dietpi-ramlog	active (exited) since Fri 2021-09-10 09:18:00 CEST; 54min ago
[  OK  ] DietPi-Services | dietpi-preboot	active (exited) since Fri 2021-09-10 09:18:00 CEST; 54min ago
[  OK  ] DietPi-Services | dietpi-boot		active (exited) since Fri 2021-09-10 09:18:16 CEST; 54min ago
[  OK  ] DietPi-Services | dietpi-postboot	active (exited) since Fri 2021-09-10 09:18:16 CEST; 54min ago
[ INFO ] DietPi-Services | dietpi-wifi-monitor	inactive (dead)
Can somebody help me with that?
Regards.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Server error [mariadb and nfs]

Post by Joulinar »

Hi,

I guess you lost your attached USB disk

Code: Select all

Sep 10 09:51:22 DietPi exportfs[2683]: exportfs: Failed to stat /mnt/Toshiba/dietpi_userdata: No such device
Sep 10 09:52:53 DietPi exportfs[2683]: exportfs: Failed to stat /mnt/dietpi_userdata: No such device
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 172
Joined: Sun Mar 15, 2020 5:40 pm

Re: Server error [mariadb and nfs]

Post by przemko »

Yes, I went home now from work to just check it and try to recconect that usb drive but don't work. Maybe it's broken :/
I will check that drive and let You know.

Edit. but I noticed that my second USB drive [Seagate for dietpi-sync] also don't work. So mabe it's something wrong with system?
Regards.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Server error [mariadb and nfs]

Post by Joulinar »

do a reboot and have a look to kernel messages if the drives are recognized.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply