Page 1 of 1

Tomboy crashes - won't start up

Posted: Thu Aug 07, 2008 2:23 pm
by triwave
I've been using Tomboy for a while now - really like it. I run it on a server that I never shut down. Yesterday I shut it down to move it and when I re-booted it an error came up that the panel applet couldn't start. OK, strange, so i tried to start from command line and it crashes and won't start up. mintUpdate runs and may have installed some updates since I last used it successfully but I have no idea what ... anybody know why it might be crashing and how to fix it?

I see an error about not being able to access path /home/user1/.tomboy but checking the permissions everything is RWX for user1 , not sure what would have changed there.

Code: Select all

user1@mintserver:~$ [DEBUG]: NoteManager created with note path "/home/user1/.tomboy".
[INFO]: Initializing Mono.Addins
ERROR: Add-in cache directory could not be created (Access to the path "/home/user1/.tomboy/addin-db-001/addin-data/1511545540" is denied.)
[DEBUG]: AddinManager.OnAddinLoaded: Tomboy.Tomboy
[DEBUG]:               Name: Tomboy.Tomboy,0.10
[DEBUG]:        Description:
[DEBUG]:          Namespace: Tomboy
[DEBUG]:            Enabled: True
[DEBUG]:               File: /usr/lib/tomboy/Tomboy.exe

Unhandled Exception: System.NullReferenceException: Object reference not set to                   an instance of an object
  at Mono.Addins.Database.AddinDatabase.Repair (IProgressStatus monitor, System.                  String domain) [0x00000]
  at Mono.Addins.AddinRegistry.Rebuild (IProgressStatus monitor) [0x00000]
  at Tomboy.AddinManager.InitializeMonoAddins () [0x00000]
  at Tomboy.AddinManager..ctor (System.String tomboy_conf_dir) [0x00000]
  at Tomboy.NoteManager.CreateAddinManager () [0x00000]
  at Tomboy.NoteManager..ctor (System.String directory, System.String backup_dir                  ectory) [0x00000]
  at Tomboy.NoteManager..ctor (System.String directory) [0x00000]
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000]

Re: Tomboy crashes - won't start up

Posted: Sat Aug 09, 2008 12:30 pm
by chattr
What are the permissions and user/group settings on the directory

/home/user1/.tomboy/addin-db-001/addin-data/1511545540 ?

Re: Tomboy crashes - won't start up

Posted: Sat Aug 09, 2008 2:54 pm
by triwave
That's one of the puzzling things ... that file or directory doesn't exist if I list the contents, but everything else in it is RW for user1. Is the program trying to create that file in this directory??

Code: Select all

user1@mintserver:~/.tomboy/addin-db-000/addin-data$ ls -l
total 48K
-rw-r--r-- 1 user1 user1  963 2008-08-07 11:36 Tomboy.BacklinksAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 1240 2008-08-07 11:36 Tomboy.BugzillaAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 1052 2008-08-07 11:36 Tomboy.EvolutionAddin,0.1.maddin
-rw-r--r-- 1 user1 user1  959 2008-08-07 11:36 Tomboy.ExportToHtmlAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 1047 2008-08-07 11:36 Tomboy.FileSystemSyncServiceAddin,0.1.maddin
-rw-r--r-- 1 user1 user1  946 2008-08-07 11:36 Tomboy.FixedWidthAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 1200 2008-08-07 11:36 Tomboy.NoteOfTheDayAddin,0.1.maddin
-rw-r--r-- 1 user1 user1  959 2008-08-07 11:36 Tomboy.PrintNotesAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 1004 2008-08-07 11:36 Tomboy.SshSyncServiceAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 1000 2008-08-07 11:36 Tomboy.StickyNoteImportAddin,0.1.maddin
-rw-r--r-- 1 user1 user1 3453 2008-08-07 11:36 Tomboy.Tomboy,0.7_ff7b1edf.mroot
-rw-r--r-- 1 user1 user1 1010 2008-08-07 11:36 Tomboy.WebDavSyncServiceAddin,0.1.maddin
user1@mintserver:~/.tomboy/addin-db-000/addin-data$
If I got up a level to check the permissions the directory above it is

Code: Select all

drwxr-xr-x 2 user1 user1 4096 2008-07-06 17:26 addin-data
So if Tomboy is trying to create a new file or directory it shouldn't have a problem :?:

Re: Tomboy crashes - won't start up

Posted: Sat Aug 09, 2008 4:19 pm
by chattr
Try doing in a terminal

Code: Select all

mkdir /home/user1/.tomboy/addin-db-001/addin-data/1511545540
and then in the same terminal do

Code: Select all

tomboy
and if it won't run, post what is outputted.

Re: Tomboy crashes - won't start up

Posted: Sat Aug 09, 2008 9:50 pm
by triwave
logged in as user1 it does the following:

Code: Select all

mkdir: cannot create directory `/home/user1/.tomboy/addin-db-001/addin-data/1511545540': Permission denied
I did not do sudo which I assume would create the directory. Why doesn't user1 have permission to create that directory?? I seems like user1 should

Re: Tomboy crashes - won't start up

Posted: Sun Aug 10, 2008 6:37 am
by chattr
triwave wrote:logged in as user1 it does the following:

Code: Select all

mkdir: cannot create directory `/home/user1/.tomboy/addin-db-001/addin-data/1511545540': Permission denied
I did not do sudo which I assume would create the directory. Why doesn't user1 have permission to create that directory?? I seems like user1 should
user1 has rwx privileges in the addin-data/ directory, so it has the authority to create a directory there.

Is your system using etx2 or ext3 filesystems? If yes, post here the output of doing in a terminal

Code: Select all

lsattr /home/user1/.tomboy/addin-db-001/addin-data/

Re: Tomboy crashes - won't start up

Posted: Sun Aug 10, 2008 12:42 pm
by triwave
Yes I use ext3 filesystem for the /home partition. If it's relevant, /home is it's own partition but that isn't a recent change or anything ... I set it up like that a long time ago.

In the home directory I used the lsattr command:

Code: Select all

user1@mintserver:~$ lsattr .tomboy/addin-db-001/addin-data/
------------------ .tomboy/addin-db-001/addin-data/1511545540
------------------ .tomboy/addin-db-001/addin-data/1
------------------ .tomboy/addin-db-001/addin-data/global
user1@mintserver:~$ 
I'm not familiar with this command ... but I guess we should see some attributes there? I used the command on some other directories (that are working properly!) and I still don't see any attributes listed so not sure the expected behavior of that command. What does it mean?

Re: Tomboy crashes - won't start up

Posted: Sun Aug 10, 2008 2:00 pm
by chattr
triwave wrote:Yes I use ext3 filesystem for the /home partition. If it's relevant, /home is it's own partition but that isn't a recent change or anything ... I set it up like that a long time ago.

In the home directory I used the lsattr command:

Code: Select all

user1@mintserver:~$ lsattr .tomboy/addin-db-001/addin-data/
------------------ .tomboy/addin-db-001/addin-data/1511545540
------------------ .tomboy/addin-db-001/addin-data/1
------------------ .tomboy/addin-db-001/addin-data/global
user1@mintserver:~$ 
I'm not familiar with this command ... but I guess we should see some attributes there? I used the command on some other directories (that are working properly!) and I still don't see any attributes listed so not sure the expected behavior of that command. What does it mean?
lsattr lists file attributes on ext2 and ext3 filesystems. The listing you posted shows that the immutable flag's not set. If the immutable flag was set, the flag would prevent changes to the file even if the user had privileges to make changes.

It was a shot in the dark guess for what might be preventing tomboy from creating a directory.

You can learn more about lsattr by typing ' man lsattr ' in a terminal.