Results 1 to 9 of 9

Thread: [SOLVED] Unison-gtk error

  1. #1
    Join Date
    Mar 2005
    Location
    Cape Town, South Africa
    Beans
    133
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    [SOLVED] Unison-gtk error

    Everytime I try to start Unison-gtk I get the following error:

    "Fatal error: Preference file PenDriveLinux not found."

    PenDriveLinux was a folder I had but not anymore. I tried to completely remove Unison, and even searched for Unison files and deleted it. Reinstalled it then, but still i get the same error. What can I do?

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unison-gtk error

    This might be your problem: I read your post and thought about doing a universal search for a PenDriveLinux file but since you said you already did a search I decided to proceed along another avenue.

    I use a shortcut to open unison, but as an experiment, I tried typing 'unison' and got an error message similar to yours. In fact, it said it couldn't find a file I haven't used in years. I'm thinking the information is somewhere in my home folder, which has existed for many versions of ubuntu.

    Solution: I checked my shortcut, and instead of just 'unison', it was 'unison-2.27.57-gtk', which opens just fine. I'm guessing just typing 'unison' reverts to an old package. Check synaptic or in terminal 'unison -version' to see what version you have installed. Then type that version in terminal and I think it will work.
    Here is how I now open unison:
    Code:
    unison-2.27.57-gtk
    As to why or where the old information still exists, I don't have a clue but I'm going to look around.

    Later: The offending file is probably located somewhere in your .unison folder or wherever your .prf files are stored, even though you uninstalled it at some point. When I renamed my .unison folder (where I keep my .prf files) to something else and then tried to open with 'unison', the file error message was not there, just information about how I need to include more switches to open and run unison.

    Good luck.
    Last edited by drs305; May 11th, 2008 at 07:33 PM.

  3. #3
    Join Date
    Mar 2005
    Location
    Cape Town, South Africa
    Beans
    133
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Unison-gtk error

    Thanks drs305, but here is what happens:

    Code:
    ~$ unison -version
    unison version 2.13.16
    ~$ unison-gtk-2.13.16-9
    bash: unison-gtk-2.13.16-9: command not found
    ~$ unison-2.13.16-9-gtk
    bash: unison-2.13.16-9-gtk: command not found
    I usually open unison by going to app-acc-unison

  4. #4
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unison-gtk error

    I did some more digging and on my machine I found the offending file was just 'default.prf'

    It has been so long since I had used that file that I forgot it existed. When I deleted that file it got rid of the offending warnings and simply created a new default.prf It still asks for parameters, but doesn't reference the non-existent file any longer.

    If you delete the default.prf file you can probably go back to just typing 'unison' or whatever you used previously.
    Last edited by drs305; May 11th, 2008 at 07:54 PM.

  5. #5
    Join Date
    Mar 2005
    Location
    Cape Town, South Africa
    Beans
    133
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Unison-gtk error

    Quote Originally Posted by drs305 View Post
    I did some more digging and on my machine I found the offending file was just 'default.prf'

    It has been so long since I had used that file that I forgot it existed. When I deleted that file it got rid of the offending warnings and simply created a new default.prf It still asks for parameters, but doesn't reference the non-existent file any longer.

    If you delete the default.prf file you can probably go back to just typing 'unison' or whatever you used previously.
    Where did you find that file? I can't find it.

  6. #6
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unison-gtk error

    Quote Originally Posted by LonelyTraveler View Post
    Where did you find that file? I can't find it.
    I installed unison in my home directory under .unison . I don't know if that was the default selection. The easiest way to find it if you have everything in one drive would be:
    Code:
    sudo find / | grep default.prf
    If you are searching around in nautilus, make sure you can view hidden folders as the unison file may be in a .folder (hidden by default). (View, Show Hidden Files)
    Last edited by drs305; May 11th, 2008 at 09:50 PM.

  7. #7
    Join Date
    Mar 2005
    Location
    Cape Town, South Africa
    Beans
    133
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Unison-gtk error

    Quote Originally Posted by drs305 View Post
    I installed unison in my home directory under .unison . I don't know if that was the default selection. The easiest way to find it if you have everything in one drive would be:
    Code:
    sudo find / | grep default.prf
    If you are searching around in nautilus, make sure you can view hidden folders as the unison file may be in a .folder (hidden by default). (View, Show Hidden Files)
    Turns out I didn't need to find the default file, but the PenDriveLinux files. Found that. Deleted it and now its perfect. Thanks a lot!

  8. #8
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Unison-gtk error

    Guess I should have stuck with the first 2 lines of post #2. Glad you solved your problem.

    Note: The capability to mark a thread as solved has returned. You can select it from the thread tools at the top right of the original post.

  9. #9
    Join Date
    Feb 2009
    Beans
    1
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: [SOLVED] Unison-gtk error

    Just in case it helps someone with the same issue, I came across another scenario which produces the error 'Fatal error: Preference file Default not found'. It happens if you end up with a .prf file in the ~/.unison folder that is not writeable. The solution is to change the permissions (or delete the offending file) so that it is writeable.

    It happened to me because I needed to use Unison to sync some directories that contained files that my normal user didn't have read permission to. So I started Unison using sudo:

    Code:
    sudo unison-gtk
    Then I created a couple of profiles using the Unison GUI and did the syncing (which worked fine). But then Unison wouldn't work any more when not running it as a superuser. The reason was that it had put the .prf profiles, that I set up as root, under my normal user's ~/.unison directory, but with the owner and group set as root. The read permission was set for everyone but only the owner could write to it.

    So I used sudo to chmod and chgrp the .prf preferences files back to being owned by my normal userid. This fixed the problem.

    Code:
    sudo chown david /home/david/.unison/file_name.pfr
    sudo chgrp david /home/david/.unison/file_name.pfr

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •