Nautilus File Manager Delayed Launch (5 Mins)

Recently updated Zorin and now having issues with opening Nautilus File Manager which usually takes around 5 mins. Text Editor also has about a 1 min delay.

Troubleshooting......

Re-install nautilus (Didn't Fix)
sudo killall nautilus
sudo apt-get install --reinstall nautilus nautilus-data gnome-system-monitor

Revert Kernel (Didn't Fix)
uname -rs
find /boot/vmli*
dpkg --list | grep linux-image
apt install linux-image-5.15.0-75-generic linux-headers-5.15.0-75-generic -y
apt install grub-customizer -y
# set kernel version in grub-customizer then reboot
uname -rs

Log Review
sudo killall nautilus
nautilus -c

running nautilus_self_check_file_utilities
running nautilus_self_check_file_operations
running nautilus_self_check_directory
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcuVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.AfcVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
....<Repeats....>

journalctl -f

Sep 02 12:17:45 device nautilus[3135]: Unexpected plugin response.  This probably indicates a bug in a Nautilus extension: handle=0x55847f92a6a0
Sep 02 12:17:45 device nautilus[3135]: Unexpected plugin response.  This probably indicates a bug in a Nautilus extension: handle=0x55847f7069d0
Sep 02 12:18:00 device org.gnome.Nautilus[3135]: running nautilus_self_check_file_utilities
Sep 02 12:18:00 device org.gnome.Nautilus[3135]: running nautilus_self_check_file_operations
Sep 02 12:18:00 device org.gnome.Nautilus[3135]: running nautilus_self_check_directory
Sep 02 12:18:00 device org.gnome.Nautilus[3135]: FAIL: check failed in ../src/nautilus-directory.c, line 1987
Sep 02 12:18:00 device org.gnome.Nautilus[3135]:       evaluated: g_hash_table_size (directories)
Sep 02 12:18:00 device org.gnome.Nautilus[3135]:        expected: 1
Sep 02 12:18:00 device org.gnome.Nautilus[3135]:             got: 17

Sep 02 12:19:56 device dbus-daemon[2415]: [session uid=1000 pid=2415] Activating via systemd: service name='org.gtk.vfs.AfcVolumeMonitor' unit='gvfs-afc-volume-monitor.service' requested by ':1.139' (uid=1000 pid=8206 comm="nautilus -c " label="unconfined")
Sep 02 12:19:56 device systemd[2330]: Starting Virtual filesystem service - Apple File Conduit monitor...
Sep 02 12:19:56 device gvfs-afc-volume-monitor[8217]: /usr/libexec/gvfs-afc-volume-monitor: error while loading shared libraries: libimobiledevice.so.6: cannot open shared object file: No such file or directory
Sep 02 12:19:56 device systemd[2330
Sep 02 12:19:56 device systemd[2330]: gvfs-afc-volume-monitor.service: Failed with result 'exit-code'.
Sep 02 12:19:56 device systemd[2330]: Failed to start Virtual filesystem service - Apple File Conduit monitor.

! Issue = Apple File Conduit monitor !

ls -lah /usr/libexec/gvfs-afc-volume-monitor

-rwxr-xr-x 1 root root 111K Mar  3  2023 /usr/libexec/gvfs-afc-volume-monitor

Any advice how to solve this issue would be appreciated.

This strongly suggests that something like a plugin or additional connection is interfering. It is likely not Nautilus itself, but something Nautilus is waiting on.
The first thing that comes to mind is ZorinConnect. ZorinConnect comes with Zorin and will communicate with Nautilus for File Sharing. Testing by disabling File sharing or checking the ZorinConnect connection may shed further light on it.

There is also the possibility of SMB or NTFS File sharing if you are using it.

Thanks for you thoughts, I don't use ZorinConnect and I've doesn't appear to be shared drives.

I've been through my history and the only thing I can think of that may link up to this is a package called UxPlay. I started to uninstall it just now:

Update: DO NOT RUN BELOW IT WILL RUIN YOUR ZORIN OS
apt remove libssl-dev libplist-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav gstreamer1.0-vaapi libimobiledevice-utils

Investigation
The package libimobiledevice6 was part of the install but i believe it was installed already. It should be noted this links with error:
error while loading shared libraries: libimobiledevice.so.6: cannot open shared object file: No such file or directory

It looks like UxPlay and Zorin and incompatible in case anyone searches for this error.

1 Like

Have you tested sudo apt install --reinstall libimobiledevice ?
Looking around, I found a similar report on Manjaro.

Not looking hopeful: user@device:~$ sudo apt install --reinstall libimobiledevice6

Building dependency tree       
Reading state information... Done
Reinstallation of libimobiledevice6 is not possible, it cannot be downloaded.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Also I ruined my install of Zorin by running those remove packages I listed in last reply. After reinstall brightness stuck at max. May have to re-install Zorin from scratch. Is there are repair zorin (missing/corrupt file integrity checker a bit like sfc /scannow on Windows?

Please note that I typed the command as it should be run.

Have you tried running the reverse to restore all packages?

sudo apt install libssl-dev libplist-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav gstreamer1.0-vaapi libimobiledevice-utils

There is fsck File System Check that must be run with the drive unmounted. You can do so by booting a Live Image of ZorinOS in ordder to run fsck.
You can also run fsck from the Recovery Mode prior to device mount. Boot into Advanced Options for Zorin OS and choose Zorin OS on-kernel number- (Recovery)

Thanks for your help.

Yes i tried a reinstall on both libimobiledevice and libimobiledevice6, the former just said 'Unable to locate package'.

I did try to re-install all those that I uninstalled, they all worked apart from ' libplist-dev, screen brightness still stuck at 100%.

I will try fsck as you suggested! Thank you.

You may need to refer to here for an outside repo:

As this relates to UXPlay.

Run also:

sudo apt install --reinstall zorin-os-desktop