jberkel / sms-backup-plus

Backup Android SMS, MMS and call log to Gmail / Gcal / IMAP
https://play.google.com/store/apps/details?id=com.zegoggles.smssync
Apache License 2.0
1.79k stars 497 forks source link

Error during restoration : IO Error #1018

Open Aelyth opened 4 years ago

Aelyth commented 4 years ago

Expected behaviour : Restoration of SMSs

Actual behaviour : Unable to restore any SMSs

Steps to reproduce the behaviour : Click on "Restore" and change Message app to SMS Backup+

Please specify the following:

The application does not seem to be able to restore the SMSs it has saved previously. When I launch the restoration, and Message app to SMS Backup+, it starts to run, then to calculate, but stays suck at this step, then switches back the Message app to the phone default message app, and display "IO Error". I've tried with 100 SMS also, the result is the same. Can you please help me ?

Thank you by advance, Have a nice day !

kurahaupo commented 4 years ago

@Aelyth approximately how long does is spend "calculating" before showing "IO Error"?

Please attach the debug log to this issue #1018 on Github?

Aelyth commented 4 years ago

@kurahaupo About 5 minuts.

How can I find the debug log ?

kurahaupo commented 4 years ago

From the menu choose "view log". Note the file path at the top, if it is not the default /storage/emulated/0/Android/data/com.zegoggles.smssync/files/sms_backup_plus.log Come back to this web page and tap on "attach files" at the bottom of the reply pane. Choose "files" and use "file manager" (details of this step depend on your phone) and follow the path you noted above. Depending on your file manager you will start with either storage or Android.

Aelyth commented 4 years ago

Hello,

Sorry for the delay ! Here is my debug log. I did à save that I canceled before trying to restore. sms_backup_plus.log

kurahaupo commented 4 years ago

Sorry for my delay too. The log seems to show 4 manual attempts, and indicates a problem with your login credentials (ça dit Erreur d'authentification et informations d'identification non valides (échec)). Is this a new installation on a new device (or one that has been factory-reset)? I suggest re-entering your IMAP credentials. If it still has a problem restoring, it might be helpful to confirm or refute whether it can back up at least one message.

Aelyth commented 4 years ago

It is not actually new. It's a kinda new device because it is not the one from which I started to save messages, but I have since two years now, and I save my messages using SMS backup ever since. I just reauthentified before trying, and I am able to save my messages in my Gmail mailbox without any trouble. How can I try to backup only 1 message ? I tried with 100, because it is the minimum, but it still does not work.

Aelyth commented 3 years ago

I am commenting the subject again as it seems a bit forgotten

Aelyth commented 3 years ago

I am commenting the subject again as it seems a bit forgotten

Aelyth commented 3 years ago

I am commenting the subject again as it seems a bit forgotten

kurahaupo commented 3 years ago

salut @Aelyth

Depuis que vous avez mis à jour vos informations d'identification, est-ce que les « Erreur d'authentification » figurent dans le journal? Since you updated your credentials, do the « Erreur d'authentification » messages still appear in the log?

The point is to check that at least one message can be backed up; if you can back up more that's no problem, but restricting to just one makes the test repeatable.

When you're testing restoration, it may be helpful to move all the messages except one out of your backup folder in Gmail, so you can control exactly which message gets restored.

Aelyth commented 3 years ago

salut @Aelyth

Depuis que vous avez mis à jour vos informations d'identification, est-ce que les « Erreur d'authentification » figurent dans le journal? Since you updated your credentials, do the « Erreur d'authentification » messages still appear in the log?

The point is to check that at least one message can be backed up; if you can back up more that's no problem, but restricting to just one makes the test repeatable.

When you're testing restoration, it may be helpful to move all the messages except one out of your backup folder in Gmail, so you can control exactly which message gets restored.

Hello @kurahaupo

No, the identification error are not in the debug log, and when I tried with only one message, it seemed that it was working, but I tried with my oldest message, and it doesn't show up after the restoration in my default message app. To summarize, the app told me that the message has been backed up, but nothing seems to appear in my message app on my phone.

Aelyth commented 3 years ago

I comment again to revive the subject !

kurahaupo commented 3 years ago

@Aelyth Hi.

Just checking that I understand: you can't restore your older messages, but I'm not quite clear on whether you have successfully restored at least one other message; is that the case?

If the problem is triggered by the age of the messages, then we need to consider the behaviour of the other messaging app.

SMS Backup+ works by reading messages from and writing messages to the SIM card. It's assumed that other messaging apps will read from there too.

Some messaging apps, such as Google Hangouts, don't follow that convention: they remove all messages from the SIM and store them elsewhere (Hangouts own storage, for example). They may also have their own idea of what messages in the SIM should be ignored as "duplicates". (It's also possible that SMS Backup+ is inadvertently tagging the messages in a way that induces the other app to ignore them; but we can't fix that until we find out how it works.)

I don't have a Moto G6+, so I don't know what the default messaging app is on such a phone. Do you know if it leaves messages in the SIM or moves them elsewhere?

Aelyth commented 3 years ago

@kurahaupo Hi,

No, I didn't manage to successfully restore even one message. When I tried with one, the application said that it has been restored, but the message didn't show up in my messages in my default application.

My default application is "Messages". I don't know at all, how can I check ?

Aelyth commented 3 years ago

After a quick search, this is my default message application : https://play.google.com/store/apps/details?id=com.google.android.apps.messaging&hl=en_US&gl=US

kurahaupo commented 3 years ago

@Aelyth thanks

Aelyth commented 3 years ago

@Aelyth thanks

@kurahaupo Hello ! Any idea of what I can do ?

Thank you, have a good day !

kurahaupo commented 3 years ago

Are you still using Android version 9, or has your phone software been updated?

As I found from another bug report, there was an update to Android recently that causes SMS Backup+ to fail when a limit is set on the number of messages to be processed, causing the app to abort and/or all messages to be skipped.

Now it will only work if "all messages" is selected.

Aelyth commented 3 years ago

I'm still using Android 9, I just checked to be sure.

Aelyth commented 3 years ago

@kurahaupo Any idea/news on this subject, please ?

Aelyth commented 2 years ago

@kurahaupo Hello again, is there any possibility to look this issue again please ?

kurahaupo commented 2 years ago

This may be resolved by PR #1049. If you can build and install, please check on your device.

Aelyth commented 2 years ago

Hello @kurahaupo, I'm not sure to understand how I should proceed to build and install, can you explain to me please ?