This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

Getting debug logs

  1. Terminate all gvfs daemons and the client application you use (e.g. Nautilus) at first:

    pkill gvfs; pkill nautilus

    (Be careful, this step will terminate also your pending file operations.)

  2. Start main daemon with enabled debug output:

    GVFS_DEBUG=1 $(find /usr/lib* -name gvfsd 2>/dev/null) --replace 2>&1 | tee gvfsd.log

    You can use additional environment variables in special cases, e.g.: GVFS_SMB_DEBUG=10 GVFS_DEBUG=1 $(find /usr/lib* -name gvfsd 2>/dev/null) --replace 2>&1 | tee gvfsd.log

  3. Reproduce your problem.
  4. Terminate gvfs daemons after that.

    pkill gvfs

    (GVfs will operate as usual after this step.)

  5. You can attach gvfsd.log to a bug report.

Testing custom build

It is a bit cumbersome given the fact that GVfs consist of multiple D-Bus services, shared libraries, and GIO modules. There are several options with different pros and cons:

Spawning backends manually

This is just for debugging purposes, use gio mount if you need mounting from commandline!

Before spawning a backend manually, you have just to be sure that potential credentials are already saved in the keyring, otherwise the backend fails without prompting. You can do this e.g. over Nautilus thanks to "Remember password until you logout", or "Remember forever" options. You can also use environment variables mentioned in #Getting_debug_logs section.

Default options:

[type=TYPE] [user=USER] [host=HOST] [port=PORT] [prefix=PREFIX]

Some backends has custom options:

./gvfsd-afp [volume=VOLUME] ...
./gvfsd-dav [ssl=true|false] ...
./gvfsd-http uri=[URI]
./gvfsd-smb [domain=DOMAIN] [user=USER] server=[SERVER] [port=PORT] share=[SHARE]

Examples:


2024-10-23 11:37