[GH-ISSUE #1087] network I/O error #869

Closed
opened 2026-02-26 01:32:10 +03:00 by kerem · 6 comments
Owner

Originally created by @ghost on GitHub (Sep 17, 2022).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/1087

Hello. I am adding a Gmail account to SMS Backup+ using the IMAP way. I meet a I/O error and cannot sync messages. What's I/O error and how to fix it?

The IMAP setting on Gmail is on. I see the app password of Google is in using. The IMAP address is imap.gmail.com:993. Everything looks good. What's the problem?

IMG_20220917_223103

IMG_20220917_224750

Originally created by @ghost on GitHub (Sep 17, 2022). Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/1087 Hello. I am adding a Gmail account to SMS Backup+ using the IMAP way. I meet a I/O error and cannot sync messages. What's I/O error and how to fix it? The IMAP setting on Gmail is on. I see the app password of Google is in using. The IMAP address is imap.gmail.com:993. Everything looks good. What's the problem? ![IMG_20220917_223103](https://user-images.githubusercontent.com/113283945/190862598-992e07dd-9558-4871-8a47-db8c0e85034c.jpg) ![IMG_20220917_224750](https://user-images.githubusercontent.com/113283945/190862847-84ee65f4-5a4f-4cbe-a61a-b45c8b0eb4c4.jpg)
kerem closed this issue 2026-02-26 01:32:10 +03:00
Author
Owner

@kurahaupo commented on GitHub (Sep 24, 2022):

Thanks for the report.

"IO Error" simply means that the program received an unexpected response from Android when it asked to send or receive data, either from a local file or over the network.

"Unable to connect" and "end of stream reached" indicate that a network connection rather than a local file was a fault, but don't really help to narrow the problem down any further.

Does this happen every time, some of the time, or just once?

Was your WiFi working correctly at the time?
Does your device have a recent release of Android?

<!-- gh-comment-id:1256928131 --> @kurahaupo commented on GitHub (Sep 24, 2022): Thanks for the report. "IO Error" simply means that the program received an unexpected response from Android when it asked to send or receive data, either from a local file or over the network. "Unable to connect" and "end of stream reached" indicate that a network connection rather than a local file was a fault, but don't really help to narrow the problem down any further. Does this happen every time, some of the time, or just once? Was your WiFi working correctly at the time? Does your device have a recent release of Android?
Author
Owner

@ghost commented on GitHub (Sep 26, 2022):

@kurahaupo I am living in a country where Google, Twitter, Facebook are blocked. I have to use a VPN service to visit the internet on my phone. This app may not be able to detect VPN. Other apps work well on my phone. I don't know how to fix it.

<!-- gh-comment-id:1257359011 --> @ghost commented on GitHub (Sep 26, 2022): @kurahaupo I am living in a country where Google, Twitter, Facebook are blocked. I have to use a VPN service to visit the internet on my phone. This app may not be able to detect VPN. Other apps work well on my phone. I don't know how to fix it.
Author
Owner

@kurahaupo commented on GitHub (Sep 26, 2022):

That definitely could cause those symptoms.
I'm afraid I'm not entirely sure how an in-phone VPN normally works.

Perhaps the VPN only diverts HTTPS & DNS traffic, which would miss the IMAP connections.

Is there anything in the configuration of the VPN about choosing "ports" or "traffic types" or "protocols?

<!-- gh-comment-id:1258536538 --> @kurahaupo commented on GitHub (Sep 26, 2022): That definitely could cause those symptoms. I'm afraid I'm not entirely sure how an in-phone VPN normally works. Perhaps the VPN only diverts HTTPS & DNS traffic, which would miss the IMAP connections. Is there anything in the configuration of the VPN about choosing "ports" or "traffic types" or "protocols?
Author
Owner

@ghost commented on GitHub (Sep 27, 2022):

@kurahaupo The default settings is good. All apps work well and be able to visit the internet. Only this one has a error. I am afraid it want to connect to the internet directly and be stopped by the firewall.

<!-- gh-comment-id:1258826264 --> @ghost commented on GitHub (Sep 27, 2022): @kurahaupo The default settings is good. All apps work well and be able to visit the internet. Only this one has a error. I am afraid it want to connect to the internet directly and be stopped by the firewall.
Author
Owner

@kurahaupo commented on GitHub (Sep 28, 2022):

A properly-working VPN should not require any changes to client programs.

The majority of apps only need web access, if anything, but SMS Backup+ uses IMAP, which is a separate protocol, not part of HTTP or HTTPS.

So "only this one has an error" is not proof that it's at fault.

We also need to consider:

  • the VPN client may not be diverting email ports such as IMAP
  • the VPN client may be blocking email ports such as IMAP
  • the VPN server may be blocking email ports such as IMAP
  • the IMAP server (Gmail, if that's what you're using) may have blacklisted the exit address of your VPN provider

Although we are looking for "blocking IMAP", this might be phrased as "blocking TCP ports 143 and/or 993", or "blocking email", or "blocking everything except" (some list of other ports or services). Please confirm that you've checked what the "default settings" for your VPN actually provide, at this level of detail. If you find it difficult to confirm these, can you at least say which VPN client you're using (and its version)?

Have you confirmed that your VPN provider isn't blocking "email"? You might need to email them and ask them to unblock email. (Such blocking is commonly done to prevent blacklisting, since their customers' devices get compromised by spammers.)

Personally I would test end-to-end functionality by installing a telnet client and trying to connect to imap.gmail.com:143; if it fails to connect then at least the error message will be a little more informative.

Even the timing of the response will be informative: if it takes less than 0.01 seconds that indicates that the problem is almost certainly on your device; if it takes longer than 0.1 seconds, then it's being blocked out on the internet somewhere. (Visually that's the difference between "apparently simultaneous" and "the tiniest perceptible delay".)

<!-- gh-comment-id:1261552177 --> @kurahaupo commented on GitHub (Sep 28, 2022): A properly-working VPN should not require any changes to client programs. The majority of apps only need _web_ access, if anything, but SMS Backup+ uses IMAP, which is a separate protocol, not part of HTTP or HTTPS. So "only this one has an error" is _not_ proof that it's at fault. We also need to consider: * the VPN client may not be diverting email ports such as IMAP * the VPN client may be blocking email ports such as IMAP * the VPN server may be blocking email ports such as IMAP * the IMAP server (Gmail, if that's what you're using) may have blacklisted the exit address of your VPN provider Although we are looking for "blocking IMAP", this might be phrased as "blocking TCP ports 143 and/or 993", or "blocking email", or "blocking everything except" (some list of other ports or services). Please confirm that you've checked what the "default settings" for your VPN _actually_ provide, at this level of detail. If you find it difficult to confirm these, can you at least say which VPN client you're using (and its version)? Have you confirmed that your VPN _provider_ isn't blocking "email"? You might need to email them and ask them to unblock email. (Such blocking is commonly done to prevent blacklisting, since their customers' devices get compromised by spammers.) Personally I would test end-to-end functionality by installing a telnet client and trying to connect to imap.gmail.com:143; if it fails to connect then at least the error message will be a little more informative. Even the _timing_ of the response will be informative: if it takes less than 0.01 seconds that indicates that the problem is almost certainly on your device; if it takes longer than 0.1 seconds, then it's being blocked out on the internet somewhere. (Visually that's the difference between "apparently simultaneous" and "the tiniest perceptible delay".)
Author
Owner

@ghost commented on GitHub (Sep 29, 2022):

Hello, @kurahaupo, thank your for your reply all the time. I may fix it.

I have over 1000 messages and call logs on my phone. Maybe there are too many items to backup at one time. I choose to backup 100 items each time in the Settings. It works. It's not perfect. At least it works for me right now.

I am using a proxy client which called Shadowsocks R. I don't know if you hear it.
photo_2022-09-29_09-12-14
photo_2022-09-29_09-12-11

<!-- gh-comment-id:1261630983 --> @ghost commented on GitHub (Sep 29, 2022): Hello, @kurahaupo, thank your for your reply all the time. I may fix it. I have over 1000 messages and call logs on my phone. Maybe there are too many items to backup at one time. I choose to backup 100 items each time in the Settings. It works. It's not perfect. At least it works for me right now. I am using a proxy client which called Shadowsocks R. I don't know if you hear it. ![photo_2022-09-29_09-12-14](https://user-images.githubusercontent.com/113283945/192917350-c0b9c94e-3236-475d-8daf-7fd78465bfaf.jpg) ![photo_2022-09-29_09-12-11](https://user-images.githubusercontent.com/113283945/192917353-23b874d3-2a52-44d0-9f24-13872652bca2.jpg)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sms-backup-plus-jberkel#869
No description provided.