Reply
Thread Tools
Posts: 67 | Thanked: 36 times | Joined on Feb 2010
#11
Eeek, sorry.

Okay so I told my friend my conversations were acting funny, we did a little research and it's an sqlite3 database file. Databases being databases they can get fragmented and corrupted, this being no exception.

My friend isn't a SQL expert but a little trick they use when he works on databases in a similar situation is to use the SQL tools to read out the entire contents of the database and write it to a new file.

So we tried it and it worked in so much that the database seems to be stable now although certain texts/messages show as unsent and also one text conversation (admittedly one that was getting heavily corrupted) has a red exclamation on it in the conversations window (I have no idea what that means).

Anyway, here is what we did, note that these instructions may not be 100% accurate which you should not do unless you know what you are doing and if they are wrong could well make you loose all your data! DO NOT BLAME ME, YOU PERFORM THE BELOW AT YOUR OWN RISK! IF YOU GET STUCK AT ANY STAGE, IF ANY OF THE COMMANDS ARE WRONG, IF YOU LOOSE ALL YOUR DATA OR YOU COMPLETELY BRICK YOUR PHONE I CANNOT BE HELD RESPONSIBLE!

1. First of all make sure ALL conversations are closed including the Conversations window itself and then preferably go into Offline/Airplane/Tablet mode so it's not possible you'll receive any new messages of any kind.


2. Open a terminal and change to root:

Code:
sudo gainroot

3. Change to the directory where the database is stored:

Code:
cd /home/user/.rtcomm-eventlogger

4. Read the contents out the database and write it to a new file (NOTE: The filename is for the newer version of the database file introduced in PR1.2 I believe!!):

Code:
echo .dump | sqlite3 el-v1.db | sqlite3 el-v1-new.db

5. Move the existing file to another file to back it up:

Code:
mv el-v1.db el-v1-old.db

6. Move the newly created file to the proper name:

Code:
mv el-v1-new.db el-v1.db

7. You might need change the permissions on the file:

Code:
chown user el-v1.db
chgrp users el-v1.db

8. For completeness, why not reboot the phone:

Code:
init 6

9. Whilst it's rebooting it should ask 'Exit offline mode?', select 'Yes' and you should be back up and running, open Conversations and check to see if everything is there and if it is now more stable.


I think this post is doing the same thing but in a slightly different way.

Hope this helps.

Benji
 

The Following 17 Users Say Thank You to LondonBenji For This Useful Post:
shallimus's Avatar
Posts: 568 | Thanked: 969 times | Joined on Dec 2009 @ Toronto
#12
A console-based solution to a very irritating issue! Definitely appreciate the time you took to write this up. Worked for me.
__________________
tinfoilhat.dll: Trojan horse detected
Sailfish want list: calendar bugfixes, glanceable agenda, Swype or similar
Evolution continues (but we're still pre-Cambrian)

 
bandora's Avatar
Posts: 1,338 | Thanked: 1,055 times | Joined on Oct 2009 @ California, USA / Jordan
#13
Btw for me I typed this in the beginning (small help for noobs like me).

Code:
cd /home/user/.rtcom-eventlogger
Because typing
Code:
cd /home/user/.rtcomm-eventlogger
resulted in no such directory error.
__________________
FarahFa.com
 
Posts: 10 | Thanked: 1 time | Joined on Apr 2011
#14
Originally Posted by LondonBenji View Post
Eeek, sorry.

Okay so I told my friend my conversations were acting funny, we did a little research and it's an sqlite3 database file. Databases being databases they can get fragmented and corrupted, this being no exception.

My friend isn't a SQL expert but a little trick they use when he works on databases in a similar situation is to use the SQL tools to read out the entire contents of the database and write it to a new file.

So we tried it and it worked in so much that the database seems to be stable now although certain texts/messages show as unsent and also one text conversation (admittedly one that was getting heavily corrupted) has a red exclamation on it in the conversations window (I have no idea what that means).

Anyway, here is what we did, note that these instructions may not be 100% accurate which you should not do unless you know what you are doing and if they are wrong could well make you loose all your data! DO NOT BLAME ME, YOU PERFORM THE BELOW AT YOUR OWN RISK! IF YOU GET STUCK AT ANY STAGE, IF ANY OF THE COMMANDS ARE WRONG, IF YOU LOOSE ALL YOUR DATA OR YOU COMPLETELY BRICK YOUR PHONE I CANNOT BE HELD RESPONSIBLE!

1. First of all make sure ALL conversations are closed including the Conversations window itself and then preferably go into Offline/Airplane/Tablet mode so it's not possible you'll receive any new messages of any kind.


2. Open a terminal and change to root:

Code:
sudo gainroot

3. Change to the directory where the database is stored:

Code:
cd /home/user/.rtcomm-eventlogger

4. Read the contents out the database and write it to a new file (NOTE: The filename is for the newer version of the database file introduced in PR1.2 I believe!!):

Code:
echo .dump | sqlite3 el-v1.db | sqlite3 el-v1-new.db

5. Move the existing file to another file to back it up:

Code:
mv el-v1.db el-v1-old.db

6. Move the newly created file to the proper name:

Code:
mv el-v1-new.db el-v1.db

7. You might need change the permissions on the file:

Code:
chown user el-v1.db
chgrp users el-v1.db

8. For completeness, why not reboot the phone:

Code:
init 6

9. Whilst it's rebooting it should ask 'Exit offline mode?', select 'Yes' and you should be back up and running, open Conversations and check to see if everything is there and if it is now more stable.


I think this post is doing the same thing but in a slightly different way.

Hope this helps.

Benji
what do i do if i havent got PR1.2?? I just tried this and i got an error saying "al-vl.db no such file or directory
 

The Following User Says Thank You to goonercraig For This Useful Post:
Posts: 235 | Thanked: 86 times | Joined on Dec 2010
#15
Originally Posted by goonercraig View Post
what do i do if i havent got PR1.2?? I just tried this and i got an error saying "al-vl.db no such file or directory
actually it's el-v1.db (it's digit 1, not letter l) not al-vl.db
for PR pre-1.2 it's simply el.db
 

The Following User Says Thank You to figaro For This Useful Post:
Posts: 10 | Thanked: 1 time | Joined on Apr 2011
#16
Originally Posted by figaro View Post
actually it's el-v1.db (it's digit 1, not letter l) not al-vl.db
for PR pre-1.2 it's simply el.db
Thankyou for reply. Yes typo. I have been typing el-v1.db but if its not recognising the file it must mean i am PR pre 1.2 and therefore i type
el.db instead of el-v1.db?
 
Posts: 10 | Thanked: 1 time | Joined on Apr 2011
#17
echo .dump | sqlite3 el-v1.db | sqlite3 el-v1-new.db
how do i type this bit in to xterm? I havent got them symbols on my keypad
 
Posts: 235 | Thanked: 86 times | Joined on Dec 2010
#18
yes, that's right
if you're a little unsure, just try backup your phone using the stock Backup apps, and if anything goes wrong you can just simply restore it (it will make a backup of el.db and el-v1.db as well if exists)
 

The Following User Says Thank You to figaro For This Useful Post:
Posts: 16 | Thanked: 1 time | Joined on Nov 2010
#19
hello. sorry i dont understand. my phone is giving me the same problem. i don want to delete my messages. so is there other way? pls reply asap.
 
Posts: 284 | Thanked: 75 times | Joined on Nov 2009
#20
Originally Posted by bandora View Post
Btw for me I typed this in the beginning (small help for noobs like me).

Code:
cd /home/user/.rtcom-eventlogger
Because typing
Code:
cd /home/user/.rtcomm-eventlogger
resulted in no such directory error.
I was following the instructions blindly... I had similar problems under PR1.1 and 1.2 and can't recall if there was an eventlogger directory, but the files you need on 1.3 are just in /home/user/

The rest of the commands worked perfectly and I'm back up and running again. Lost loads of conversations with one person but restored those via a backup I made last night (which was lucky!)
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:09.