maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Backup fuction hangs with N800/OS2008 (https://talk.maemo.org/showthread.php?t=16627)

peperoni 2008-02-14 15:21

Backup fuction hangs with N800/OS2008
 
I have problems with my backup app. I'm using the latest version of OS2008 and N800. After choosing where to place the backup files and choosing what to backup the app stops. It stops in the screen where you can choose what to include in the backup. I just push the OK button and the ok button turns white and the app freezes. If I choose not to update the settings, the backup works properly, but the backupfile is only 2,8MB. Previous backup was something like 20MB with settings included. Is there anyway to see what seems to be the problem?

Saturn 2008-02-15 16:26

Re: Backup fuction hangs with N800/OS2008
 
Are you using Claws and are you confortable with xterm and becomeroot?

If no please ignore the rest..
If yes could you do the following?

Open an xterm.

Quote:

sudo gainroot
cd /etc/osso-backup/applications/
mv claws-mail.conf claws-mail.conf.old
exit
try to backup again choosing only 'settings'
does it work now?

Note that you can revert back to your previous configuration by doing the following:

Quote:

sudo gainroot
cd /etc/osso-backup/applications/
mv claws-mail.conf.old claws-mail.conf
exit
It seems for me this is the root of the problem which makes my backup-osso nuts and I would like to double check with others before filling a bug.

Thanks.

peperoni 2008-02-15 19:34

Re: Backup fuction hangs with N800/OS2008
 
That seems to do the job. Backup works properly now after that command. Thank you very much!

Saturn 2008-02-15 23:36

Re: Backup fuction hangs with N800/OS2008
 
Thanks for verifying this for me.

I've filled a bug in claws.

hazmatte 2008-02-16 23:16

Re: Backup fuction hangs with N800/OS2008
 
Thanks Saturn, that works for me too. It was driving me insane and I never would have figured out the Claws configuration file was hosing it. Keep us up to date if the Claws team fixes this issue, please!

Saturn 2008-02-17 02:21

Re: Backup fuction hangs with N800/OS2008
 
Quote:

Originally Posted by hazmatte (Post 143373)
Thanks Saturn, that works for me too. It was driving me insane and I never would have figured out the Claws configuration file was hosing it. Keep us up to date if the Claws team fixes this issue, please!

It has been closed already! (note: didn't say fixed)

http://www.thewildbeast.co.uk/claws-...ug.cgi?id=1523

It's an osso-backup, i.e. maemo, bug.
In my case, it must be the @ in the name of my account, for ex. imap@blablabla.com, but other special characters could trigger this, or simply 'long' names (from what I read around).

So, 'claws' is right; if you are affected you have to remove it manually or go and file a bug to maemo. :)

Now, if anyone has got the time he could try by editing the file to find the culprit. Here how the file looks:
Code:

<backup-configuration>
  <locations>
    <location type="file" category="settings">/home/user/.claws-mail/accountrc</location>
    <location type="dir" category="settings">/home/user/.claws-mail/addrbook</location>
    <location type="dir" category="settings">/home/user/.claws-mail/certs</location>
    <location type="file" category="settings">/home/user/.claws-mail/clawsrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/folderitemrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/folderlist.xml</location>
    <location type="dir" category="emails">/home/user/.claws-mail/imapcache</location>
    <location type="file" category="settings">/home/user/.claws-mail/matcherrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/menurc</location>
    <location type="dir" category="emails">/home/user/.claws-mail/newscache</location>
    <location type="dir" category="settings">/home/user/.claws-mail/tagsdb</location>
    <location type="file" category="settings">/home/user/.claws-mail/tagsrc</location>
    <location type="file" category="settings">/home/user/.claws-mail/toolbar_*.xml</location>
    <location type="dir" category="emails">/home/user/Mail</location>
    <location type="file" category="settings">/home/user/.claws-mail/*_history</location>
    <location type="dir" category="emails">/home/user/.claws-mail/uidl</location>
  </locations>
</backup-configuration>

The structure is simple. Each line refers to something to be backed up.

For the moment, I choose to remove this file completely and make manually a zip of the /home/user/.claws-mail folder.

Saturn 2008-06-12 22:54

Re: Backup fuction hangs with N800/OS2008
 
Hi,

I've made this trivial script to backup/restore my claws folder.

Code:

#!/bin/sh

# Backup/Restore Claws settings

stamp=`date +%Y%m%d-%Hh%M`;
path=/media/mmc2/claws/backup;
 
if mount | grep -q mmc2;
  then echo Memory MMC2 is available. Cont..;
else echo Memory MMC2 is missing; exit;
fi;

selection=
until [ "$selection" = "0" ]; do
    echo ""
    echo "Backup/Restore Claws settings"
    echo ""
    echo "1 - BACKUP claws settings"
    echo "2 - DELETE claws settings"
    echo "3 - RESTORE claws settings (from last backup)" 
    echo "4 - Show backup files"
    echo ""
    echo "0 - exit program"
    echo ""
    echo -n "Enter selection: "
    read selection
    echo ""
    case $selection in
        0) exit ;;
        1) tar czvf $path/backup-$stamp.tgz .claws-mail && echo "Backup has been created succesfully";;
        2) rm -r /home/user/.claws-mail && echo "Claws folder has been deleted succesfully";;
        3) export latest=`ls -al $path| grep -i backup- | awk '{last = $8} END{print last}'`;
                tar xzvf $path/$latest && echo "Backup file $latest has been restored succesfully" ;;
        4) ls -al $path ;;
        *) echo "Please enter 1, 2, 3, 4 or 0"
    esac
done;

You can choose the appropriate path for storing the backups in the line: "path="

Apart from that you need to place it in a text file for example under /home/user/ with a name like claws_backup.sh and give it executable rights.
Code:

chmod +x claws_backup.sh
Then you run it with:
Code:

./claws_backup.sh
Hope someone finds it useful.

Saturn 2008-08-17 08:31

Re: Backup fuction hangs with N800/OS2008
 
Anyone interested on solving this problem please vote in bugzilla.
https://bugs.maemo.org/show_bug.cgi?id=3591

Rider 2008-08-17 22:17

Re: Backup fuction hangs with N800/OS2008
 
Just found that the backup problem is still there. Latest Diablo, latest Claws.

svrkprabhakar 2008-09-26 15:32

Re: Backup fuction hangs with N800/OS2008
 
Quote:

Originally Posted by Saturn (Post 142868)
Are you using Claws and are you confortable with xterm and becomeroot?

If no please ignore the rest..
If yes could you do the following?

Open an xterm.



try to backup again choosing only 'settings'
does it work now?

Note that you can revert back to your previous configuration by doing the following:



It seems for me this is the root of the problem which makes my backup-osso nuts and I would like to double check with others before filling a bug.

Thanks.

Thanks a lot, it worked even for me! I have diablo and I dont have claws mail installed (though I installed earlier and uninstalled it again since rss feeds were not that convenient for me). How come this solution worked for me when I dont have claws mail installed!:confused:


All times are GMT. The time now is 01:10.

vBulletin® Version 3.8.8