Author Topic: Seems like this latest version has a problem (red exclamations)  (Read 12437 times)

davidmark

  • Newbie
  • *
  • Posts: 11
Don't remember ever having this problem before about a month ago. Could coincide with the new version and maybe its optimizations are an issue. No idea, but have been looking at the debug log. Don't see anything at a glance that indicates a failure of any kind. See lots of subject lines floating by, but these messages never end up in the synchronized folders and Tasker events never fire. There was something about "*** Sync state NOT reset ***".

The thing seemed okay for a day or two. Then noticed it was bogged down with a red exclamation. Have seen it say "Network Error" once or twice, but there are no network problems as other apps are connected the whole time. GMail continues to update the shade while AquaMail sits there complaining of sync errors. Have started up streaming videos, music, etc. without issues while AquaMail fails to deliver messages. Network connection is Fiber and WiFi is not an issue.

Uninstalled. reinstalled. tried stock settings, *many* other settings combinations, verified I'm nowhere near out of space. Changed to the IMAP option (as opposed to the GMail/Google Apps option). Didn't set it up manually, but can't imagine I would use different settings. Have several other IMAP clients running here and none of them just dry up like this. I can't even remember a brief outage with any of them, including those running on the HTC One devices in question.

It's pretty much unusable at this point. It will sputter and get a few messages and then comes the dreaded red exclamation mark. After that it rarely does anything until I reinstall it. Then it might get 15 minutes more.

Turned off the Network settings for "buggy" devices. Turned on debug. It's just generating a huge log file, which includes many message subjects, but never gets any new messages.

I really can't understand how a basic IMAP client could fail like this. Google, OAuth, etc. I could see (though don't recall any other apps having problems). But IMAP?! Something is horribly wrong here. Where do I send the log file?

Edited to note that I sent the log file. It should have some errors followed by an inexplicable string of successes. Ever since I sent this, it's decided to start working again. Would be great if that stuck, but I doubt it, unless due to the latest tweaks to the settings.

Thanks!

PS. I glanced again and see several cases of "Read Timeout", followed by "Aborting the Connection". When those stopped happening, all was well again. Can't imagine how it is timing out on GMail, but I know there are various ways to connect to them (e.g. different servers, ports, etc.) Can I set this timeout somewhere as I'd just as soon it wait longer than give up for the next n minutes.
« Last Edit: March 30, 2016, 09:40:26 am by davidmark »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Seems like this latest version has a problem (red exclamations)
« Reply #1 on: March 30, 2016, 03:02:40 pm »
Can you please clarify "this recent version" with a specific version number?

---

In general, the red exclamations do mean network errors, and they're genuine.

In addition to what @Paris Geek linked to (those are mostly for MIUI, although other devices too have various "battery optimizers" which may block the app's access to the network, built-in or third party apps) --

Is your mail account @Gmail?

Are you seeing these errors on a mobile network (and everything works on WiFi)?

---

And as far as "basic" (or not) -- if the app's access to the network is blocked, then yep, that's pretty basic and the mail sync code just can't possibly work (if that's what it is).

« Last Edit: March 30, 2016, 05:10:48 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Seems like this latest version has a problem (red exclamations)
« Reply #2 on: March 30, 2016, 03:04:59 pm »
Oh and I would like to see your debug log (or a new, shorter one if you like) so I actually *see* what's going on.

Feel free to email it to kmansoft / gmail.

Don't post it on the forum please -- the log does not record the passwords, but it can contain bits and pieces of your messages.
« Last Edit: March 30, 2016, 03:32:50 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

davidmark

  • Newbie
  • *
  • Posts: 11
Re: Seems like this latest version has a problem (red exclamations)
« Reply #3 on: April 23, 2016, 04:30:46 pm »
Can you please clarify "this recent version" with a specific version number?

---

In general, the red exclamations do mean network errors, and they're genuine.

In addition to what @Paris Geek linked to (those are mostly for MIUI, although other devices too have various "battery optimizers" which may block the app's access to the network, built-in or third party apps) --

Is your mail account @Gmail?

Are you seeing these errors on a mobile network (and everything works on WiFi)?

---

And as far as "basic" (or not) -- if the app's access to the network is blocked, then yep, that's pretty basic and the mail sync code just can't possibly work (if that's what it is).

I know they are "genuine", but that's down to the behavior of this app. GMail and other apps go right on about their business while this one gets one red exclamation after another.

Yes GMail. Don't know if it is better on the Mobile Network as don't often pay attention to it when I am gone. I'll try to look out for that.

Don't have any sort of general WiFi or network issues, else every other app in the house, on the phones, etc. would have outages when the Red Menace is present (and they definitely don't). I stream video all day here, and use WiFi for many things, so there's no reason that a *determined* app can't get through to download 50 lousy emails.

I've watched it long enough to figure out what it is doing. Have it set to poll every two minutes (out of desperation) and it takes so long to download the new messages that it times out and gives up entirely until the next two minutes are up. Previously it was set to 15 minutes, which could see it try and fail for hours before finally getting the latest 50 messages. Think it's obvious what has to happen: either make the timeout configurable or create a configuration that allows me to force a retry on errors (rather than sitting around waiting another two minutes). I just want to be able to get the freshest 50 messages without a lot of hassle (not much to ask from an email client). Seems like it should happen faster as well as the GMail client pushes messages almost instantly, while this one sits and spins and flies the red flag.

Six months ago, I had none of these problems with it (or at least they weren't bad enough to notice). Maybe that's because the messages are more numerous now, but can't imagine that matters. I just want the last 50 messages off the top and want them faster than ten minutes ago. Should work whether there are intermittent "network errors" or not. Those happen and email clients have to work around them (and much better than this one does).

Here's a Real World example: It'[s 9:30AM, yet this email client shows the last email from 9:06AM, which is definitely wrong (emails fly around here constantly). And it's spinning... And spinning... And no telling what it is trying to do, but... there's the red exclamation. Now it will give up and sit until the next cycle. So clearly the behavior is failing me and can hardly be blamed on my network (which is streaming video as usual). This is the sort of situation that shows how the app behaves when conditions aren't *exactly* as the developer expected (and tested). It's a complete failure in this context.

Will send another log when I get a chance, but am moving away from relying on this app for anything. It's a shame, but nobody (and don't think I'm the only one with a similar setup and issues) will wait around a half hour for a lousy few dozen emails. Not in 2016 and can't imagine anybody would have put up with such delays out of email clients in 1996. They were/are generally written to be more nimble.

Work on it. Thanks! :)
« Last Edit: April 23, 2016, 04:37:21 pm by davidmark »

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: Seems like this latest version has a problem (red exclamations)
« Reply #4 on: April 23, 2016, 06:46:36 pm »
Oh and I would like to see your debug log (or a new, shorter one if you like) so I actually *see* what's going on.

Feel free to email it to kmansoft / gmail.

Don't post it on the forum please -- the log does not record the passwords, but it can contain bits and pieces of your messages.
Hi davidmark,
In your response you mentioned nothing about "sending a debug log to kmansoft / gmail".

Without knowing what's really going on, it's obviously not possible to work on "something".

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Seems like this latest version has a problem (red exclamations)
« Reply #5 on: April 23, 2016, 10:06:25 pm »
@davidmark:

I understand that you are frustrated that something is not working right on your phone.
But just in case you haven't noticed, people here, including the Aquamail developer are trying to help you. However, that would work only if you want the issue to be resolved.
If your main goal is to vent your emotions, that's completely different. -- And I understand your frustration, but I doubt anybody here can help you much with that part here.

So, if you still want to have your problem resolved, a good step would be to send the debug log, as suggested above, and to answer the questions that the developer asked you (including the app version) Without that information from you, it is hard to guess what is happening on your device.

Also, - a few additional thoughts based on a few scattered facts and symptoms you described in your last post:

1. Could you please describe your imap configuration: how many messages do you have configured: (a) to sync and (b) to cache  (Under Settings -> Mail receiving -> Messages to sync and Messages to cache)?
If either of those two settings is too big, you may have the timeout on the connection that you are describing.

2. Not sure if it's true, but I've read somewhere if the sync is done too frequently (whatever that means), Gmail can lock your connection and require a manual web login:
 <i> ERR [AUTH] Web login required: https://support.google.com/mail/bin/answer.py?answer=78754 </i>
So, setting sync interval with Gmail to 2 minutes can be counterproductive.


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Seems like this latest version has a problem (red exclamations)
« Reply #6 on: April 24, 2016, 04:08:17 pm »
Never got any debug log(s) from this user.

Got an interesting one from someone else, also about "Gmail account spinning and spinning".

Turned out to be OAUTH2, for which AquaMail uses Google Play Services if it's a Gmail account present in the system.

Just like it's supposed to. And it's literally a one liner, one function, "I need that access token please".

And in this other user's log, this function (which I'll say it again, is actually implemented inside Google Play Services) would get stuck, never to return.

So far I've only seen it happen on "mobile data", not WiFi (as per user reports).

---

Workaround:

Removing the account from AquaMail

Adding it again as an "internet mail" account type, *not* upgrading to OAUTH later (when prompted), to make sure the app will use the good old "login + password" to authenticate

It may be necessary to enable "access for less secure apps":

https://support.google.com/a/answer/6260879

( despite the scary wording, it just means "allow apps to log in by sending the password"... the network connections are encrypted, of course )
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: Seems like this latest version has a problem (red exclamations)
« Reply #7 on: April 24, 2016, 04:39:39 pm »
Never got any debug log(s) from this user.
Unsurprisingly

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Seems like this latest version has a problem (red exclamations)
« Reply #8 on: April 24, 2016, 07:42:45 pm »
Got an interesting one from someone else, also about "Gmail account spinning and spinning".

Turned out to be OAUTH2, for which AquaMail uses Google Play Services if it's a Gmail account present in the system.

Just like it's supposed to. And it's literally a one liner, one function, "I need that access token please".

And in this other user's log, this function (which I'll say it again, is actually implemented inside Google Play Services) would get stuck, never to return.

So far I've only seen it happen on "mobile data", not WiFi (as per user reports).

Could this be caused by what had been discussed here at some point, - when Google Play services are disabled on mobile network?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Seems like this latest version has a problem (red exclamations)
« Reply #9 on: April 24, 2016, 07:47:31 pm »
Re: Could this be caused by what had been discussed here at some point, - when Google Play services are disabled on mobile network?

Don't think this was the case:

Only one user ever reported the "endless spinning", but there are more who get "oauth network error".

For the latter, Google Play Services reports an IOException, and then my code waits a few seconds and retries, but that doesn't help either.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Old Faithful

  • Newbie
  • *
  • Posts: 1
Re: Seems like this latest version has a problem (red exclamations)
« Reply #10 on: May 16, 2016, 05:40:43 am »
So far I've only seen it happen on "mobile data", not WiFi (as per user reports).

---

Workaround:

Removing the account from AquaMail

Adding it again as an "internet mail" account type, *not* upgrading to OAUTH later (when prompted), to make sure the app will use the good old "login + password" to authenticate

It may be necessary to enable "access for less secure apps":

support.google.com/a/answer/6260879

( despite the scary wording, it just means "allow apps to log in by sending the password"... the network connections are encrypted, of course )

THANKS A MILLION, I registered here simply to say a BIG THANK YOU!!! The issue was driving me nuts and setting my accounts to allow access to less secure apps (look for it in security settings) finally resolved this issue. I can now use Aquamail as my only email client on android, it now works on the mobile network, YEAH!!!

This should be a sticky for everyone having issues with setting up Aquamail with gmail :-)

[PS - removed the link in YOUR quote as requested by the forum software ;) ]

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Seems like this latest version has a problem (red exclamations)
« Reply #11 on: May 17, 2016, 11:13:19 pm »
Since 1.6.2-dev6, it's no longer necessary to switch to "Internet Mail" or enable "Less secure".

( I will update the FAQ when 1.6.2 ships )

There is a fairly detailed explanation here, but the steps are actually quite simple:

http://www.aqua-mail.com/forum/index.php?topic=4662.0
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

davidmark2

  • Newbie
  • *
  • Posts: 9
Re: Seems like this latest version has a problem (red exclamations)
« Reply #12 on: November 01, 2016, 03:22:53 am »
Just an update. I haven't updated the app for at least six months and the problem did go away for a while, but now it's back as bad as ever. I have no network problems, either wireless or wired and get email from various clients (both through wireless and wired) all day long (and usually instantly via IMAP push), stream HD videos, etc. No issues, ever. It's also an extremely high-speed connection.

The other day I noticed the red exclamation and that the inbox was behind by hours. I have it set to check every 2 minutes, but that shouldn't matter with push enabled (though suspect it never quite worked right on my phone). It's an older HTC One, but don't have this sort of trouble with any other apps (including GMail).

I checked my Kindle, which is obviously also wireless and on the same network and it had the latest emails up to the minute. I suspect that after AquaMail has a timeout it waits n minutes to try again, but would think that with the delay set to 2 minutes (lowest allowed), it would catch up quickly. Seems impossible that it would get hours behind like this, but it does. :(

If I go through the hassle of clearing space to update (my phone has atrocious storage management) are there any fixes in the last six months that might address this problem (e.g. like trying again immediately on a timeout?)

Just checked it side by side with the Kindle (which runs its own email client) and the Kindle is up to date to the minute. Aqua Mail on my phone is behind by 2 hours (and just saw a "Network Error" pop up). Can't understand what could cause this or why it would settle down for six months and start up again. Clearly, whatever problem it is detecting (timeout?), the Kindle email client (among several others) is able to negotiate its way around it without issue.

As we discussed before, there are tons of unread emails in the monitored folder, but I can't imagine that would make a difference as it is set to only download 50 at a time. GMail doesn't allow me to mark them all read at once (and never had any luck doing it with Aqua Mail either), but will take some time and mark them read and see if that makes any difference. ISTM I did do this last time I had this problem, but never came close to marking them all read.

Thanks in advance for any thoughts or more nimble versions.
« Last Edit: November 01, 2016, 03:32:15 am by davidmark2 »

davidmark2

  • Newbie
  • *
  • Posts: 9
Re: Seems like this latest version has a problem (red exclamations)
« Reply #13 on: November 01, 2016, 04:02:56 am »
Got an interesting one from someone else, also about "Gmail account spinning and spinning".

Turned out to be OAUTH2, for which AquaMail uses Google Play Services if it's a Gmail account present in the system.

Just like it's supposed to. And it's literally a one liner, one function, "I need that access token please".

And in this other user's log, this function (which I'll say it again, is actually implemented inside Google Play Services) would get stuck, never to return.

So far I've only seen it happen on "mobile data", not WiFi (as per user reports).

Could this be caused by what had been discussed here at some point, - when Google Play services are disabled on mobile network?

I posted the original and definitely did not have Google Play services disabled on the mobile network. Also, it's something I check on WiFi only; never bothered to see what it was doing when using the 4G network.

davidmark2

  • Newbie
  • *
  • Posts: 9
Re: Seems like this latest version has a problem (red exclamations)
« Reply #14 on: November 01, 2016, 04:06:44 am »
Oh and I would like to see your debug log (or a new, shorter one if you like) so I actually *see* what's going on.

Feel free to email it to kmansoft / gmail.

Don't post it on the forum please -- the log does not record the passwords, but it can contain bits and pieces of your messages.
Hi davidmark,
In your response you mentioned nothing about "sending a debug log to kmansoft / gmail".

Without knowing what's really going on, it's obviously not possible to work on "something".

There are two threads and the debug log was sent and definitely discussed. I recall kmansoft commenting on the size of it (which he alluded to here). It stated there was a "network error", yet I have no problem with a dozen other IMAP clients on the same network, including a couple more on wireless devices. This is the only email client that does the endless spinning, followed by a "network error" and gets behind by hours at times. But thanks for your concern. :)