Connection to remote server is very slow

Creating a bug report/issue

Required Information

  • DietPi version | 8.24.1
  • SBC model | Rpi4 4gig
  • SD card used | SanDisk

Steps to reproduce

Connect with Putty, run dietpi- command

Expected behaviour

fast execution of apps

Actual behaviour

loading anything dietpi-??? runs Very slow. over 1 minute to load dietpi-drive_manager, when running locally it would load instantly.

Both my desktop and the remote Rpi are on 1 gig networks. When i was at my brother house and connected things would be instant.

dietpi-drive_managercould need some time if it tries to contact a network share which is not available anymore. It tries until it reaches the timeout.
But you said it appears

  • within every dietpi tool
  • only via SSH
  • only in your LAN (because at your brothers house it’s working fast)

I would rule out a hardware problem, because it’s not always slow, only with special conditions.
Sounds like a problem with your network to me, and not with DietPi itself :thinking:

For example when you use dietpi-drive_manager do you see some lines after you hit enter (like:

dietpi-drive_manager [ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...

and then it stucks or does it need minutes to show anything?

maybe some IP address conflict, leading to a slow connection?

It looks like my dietpi still has a /mnt/MyBook which was the drive i was syncing from still listed, but its not listed in the dietpi-Drive_manager im wondering if its trying to reconnect to that and cant. how do i remove it?

Can you share

cat /etc/fstab
# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.
#---------------------------------------------------------------- /mnt/MyBook nfs nofail,noauto,x-systemd.automount

tmpfs /tmp tmpfs size=1922M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid

# MISC: ecryptfs, vboxsf, glusterfs, mergerfs, bind, Btrfs subvolume


PARTUUID=c06c5cdf-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=c06c5cdf-01 /boot vfat noatime,lazytime,rw 0 2
UUID=94962338-38f4-4eff-a4ee-df925537be67 /mnt/offsite ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount

does look like its trying to connect the network drive i had set up when it was at my house.

Try to remove that line if not needed

Removed the line but still runs slow.

Did you reboot afterwards?

no, now its back to normal!

thank you.