After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 500524 - Sync tries to load fuse as a module when fuse is built in to the kernel.
Sync tries to load fuse as a module when fuse is built in to the kernel.
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other All
: High minor
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
: 577172 582600 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-11-29 22:00 UTC by Kai Groner
Modified: 2009-10-04 00:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
fuse check: look at /proc/filesystems before running lsmod (1.28 KB, patch)
2009-04-05 21:10 UTC, alonlevy1
rejected Details | Review
smaller patch, uses regex instead of running grep in a subprocess. (919 bytes, patch)
2009-04-05 21:45 UTC, alonlevy1
none Details | Review

Description Kai Groner 2007-11-29 22:00:05 UTC
Please describe the problem:
Syncing using the ssh addin checks for the fuse module by looking at the output from lsmod.  If fuse is built into the kernel, tomboy does not recognize it.
Tomboy will then try to load the fuse module.  Syncing does work even if the modprobe command fails.

I am using the linux kernel 2.6.23

Steps to reproduce:
1. Obtain a kernel with fuse built in (CONFIG_FUSE_FS=y), and run it.  Run tomboy on this kernel.
2. Try to configure syncing over ssh (I didn't try any other methods)
3. 


Actual results:

[DEBUG]: Could not find 'fuse' in lsmod output
Dialog

Enable FUSE?  .... No Yes

click no: Error connecting :(
click yes: su/sudo modprobe runs, fails, but tomboy is satisfied and will now sync

Expected results:
Tomboy recognizes the fuse filesystem is available and doesn't try to load the fuse module.

Does this happen every time?
Yes

Other information:
Comment 1 Sandy Armstrong 2007-11-29 22:17:22 UTC
Wow, this sucks, thanks for reporting it.
Comment 2 Priit Laes (IRC: plaes) 2007-12-20 16:03:56 UTC
It should check whether fuse is present in /proc/filesystems instead of checking for module.
Comment 3 Boyd Timothy 2008-02-26 19:16:02 UTC
Setting the default assignee and QA Contact to "tomboy-maint@gnome.bugs".
Comment 4 Philipp Riegger 2008-04-10 14:00:46 UTC
Any news on this one? I would love to see this fixed.

One remark? Is /proc/filesystems always visible? Wouldn't it be better to just do the sync and then check some things if that failed?
Comment 5 John Reese 2009-03-19 03:18:05 UTC
This has been reported downstream in Ubuntu; Jaunty now ships the kernel with FUSE integrated by default, and Tomboy will no longer sync over SSH because it fails to load the FUSE module.

Could this please get taken care of, or can someone give me some direction on how/where to fix it myself?

Cheers
Comment 6 John Reese 2009-03-19 03:19:11 UTC
Sorry, forgot to include the link to the downstream bug report: https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/345166
Comment 7 Sandy Armstrong 2009-03-19 13:52:36 UTC
Thanks for the ping on this, maybe we can get it fixed for 0.14.1.
Comment 8 Sandy Armstrong 2009-03-29 15:35:16 UTC
*** Bug 577172 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Sorg 2009-03-29 16:30:40 UTC
I'm using Jaunty and agree with one of the comments in the downstream report: The original submitter here said syncing still works, but that is not true for me. Syncing does *not* work. The server settings are not saved.

Here is the contents of my .tomboy.log.
3/29/2009 10:22:18 AM [DEBUG]: Could not find 'fuse' in lsmod output
3/29/2009 10:22:18 AM [DEBUG]: Could not find 'fuse' in lsmod output
3/29/2009 10:22:19 AM [DEBUG]: User canceled or something went wrong enabling FUSE
Comment 10 alonlevy1 2009-04-05 21:09:36 UTC
The attached patch works for me, against svn tomboy revision 2458. Allows me to use fuse with tomboy on recent ubuntu (beta jaunty 9.04), 32 bit (untested on anything else).
Comment 11 alonlevy1 2009-04-05 21:10:44 UTC
Created attachment 132150 [details] [review]
fuse check: look at /proc/filesystems before running lsmod
Comment 12 alonlevy1 2009-04-05 21:45:07 UTC
Created attachment 132154 [details] [review]
smaller patch, uses regex instead of running grep in a subprocess.

better patch, smaller and not dependant on grep.
Comment 13 alonlevy1 2009-04-05 22:06:13 UTC
Comment on attachment 132154 [details] [review]
smaller patch, uses regex instead of running grep in a subprocess.

could change the regular expression to be stricter - instead of "fuse" use "nodev[ \t]+fuse" (didn't want to create yet another patch for this)
Comment 14 Sandy Armstrong 2009-05-08 01:04:46 UTC
Thanks guys, sorry for the delay in getting this in.  I committed a patch based on alonlevy1@gmail.com's regex patch in bafbfc3 on master.

This fix will be in 0.15.1 and 0.14.2.
Comment 15 Sandy Armstrong 2009-05-14 11:30:19 UTC
*** Bug 582600 has been marked as a duplicate of this bug. ***