Bug 1759075

Summary: Syncing process does not finish when using "Safely Remove Drive"
Product: Red Hat Enterprise Linux 8 Reporter: Ondrej Holy <oholy>
Component: gvfsAssignee: Ondrej Holy <oholy>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: alanm, amike, brclark, casantos, desktop-qa-list, jkoten, jwright, mbliss, mkolbas, tpelka
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gvfs-1.36.2-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1758237 Environment:
Last Closed: 2020-04-28 16:09:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1745633    

Description Ondrej Holy 2019-10-07 11:10:55 UTC
+++ This bug was initially created as a clone of Bug #1758237 +++

Description of problem:
When attempting to use the Safely Remove Device, the sync process does not complete though drive is ejected. In addition, a short time after the drive is removed, the warning "Unable to stop drive, Timeout was reached" is shown. User has to restart GNOME-session to get USB drive to appear after re-plugging.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 7.6
gvfs-1.36.2-1.el7.x86_64
gnome-shell-3.28.3-8.el7_6.x86_64

How reproducible:
Intermittent

Steps to Reproduce:
1.Plug USB drive in
2. Use "Safely Remove Drive" option when right clicking on drive. 
3.Wait a few seconds before removing drive.
4. Wait around 20-30 minutes for warning prompt to appear.

Actual results:
Drive ejects but does not complete sync process.

Expected results:
Drive to successfully sync and eject.

--- Additional comment from Ondrej Holy on 2019-10-04 10:53:21 CEST ---

Just a note that I see the following when I try to "Safely Remove Drive" in RHEL 7.6, which is most probably the culprit:
Oct 04 10:25:20 localhost.localdomain gvfs-udisks2-vo[10979]: gvfs_udisks2_drive_stop_finish: assertion 'g_async_result_is_tagged (result, gvfs_udisks2_drive_stop)' failed
Oct 04 10:25:20 localhost.localdomain gvfs-udisks2-vo[10979]: g_dbus_method_invocation_return_gerror: assertion 'error != NULL' failed
Oct 04 10:25:20 localhost.localdomain gvfs-udisks2-vo[10979]: g_error_free: assertion 'error != NULL' failed
Oct 04 10:25:20 localhost.localdomain udisksd[16416]: g_udev_device_get_sysfs_path: assertion 'G_UDEV_IS_DEVICE (device)' failed
Oct 04 10:25:20 localhost.localdomain udisksd[16416]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

--- Additional comment from Ondrej Holy on 2019-10-04 10:54:18 CEST ---

This has already been fixed upstream, see:
https://gitlab.gnome.org/GNOME/gvfs/commit/38831e4ea149a0b4731d123c63d8b493d30ad0be
https://gitlab.gnome.org/GNOME/gvfs/issues/1

However, the fix is not part of any RHEL release yet.

Comment 4 errata-xmlrpc 2020-04-28 16:09:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1766