-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App remains blocked in cleaning up deleted items mode #909
Comments
What does the notification say? You listed two Android devices: are you experiencing the same problem on more than one device? Also, let me clarify: the sync you're talking about happens automatically after deletion, not invoked manually, right? |
In French, it says something like "cleaning up deleted articles".
Yes.
I would need to check next time it happens, but I relatively am sure of myself, so yes. |
Ok, that's a bit unusual - I don't remember "article sweeping" ever getting stuck. We'll need logs (logcat output) collected since the start of an update to the moment the app gets stuck. Unfortunately, we still don't have any feature to facilitate logs gathering through the app, so you'll have to use any generic tool for that. Not yet necessary, but server logs may also be needed: the access log of the web server to see which requests the server received from the app and wallabag log needs to be checked for errors during sync. |
I'm seeing this again, so I'd be happy to help diagnose the error a bit better. First of all, steps to reproduce consist in erasing something on the web app, then doing a sync locally on the android app. It seems the sync may happen automatically, but the android app gets stuck no matter what. Server logs show only one single error repeated many times, but all the requests somehow still return a 200 http code, so its probably not a blocking error.
What generic tool for capturing log output would be appropriate? |
You can try this. |
You can also use "Settings -> Miscellaneous -> Save logcat output to a file" in our latest beta (available in releases or opt-in in google play). |
I also have this problem that the "Sweeping deleting articles" seem to hang. It actually is just extremely slow: I have gotten used to the app just being permanently in a notification, as the sweep takes about 10-20 minutes every time. So whenever I open the app, it just sits there doing essentially nothing (from a user's perspective of course!) for a long time... I wonder if that is what might be happening to this user? |
That's quite possible. BTW, "sweeping after sync" is a somewhat niche option: if you don't delete articles from different devices all the time, you probable don't need it enabled (you can run the sweeping manually once in a while). |
Hi there! I retried with the new beta, and at least now it fails quickly with an error. Backtrace
Full logcat is here, shared for a week. Just to make sure we're on the same page: I'm not using the sync mode that automatically sweeps during sync; I'm doing a manual sweep here. |
Yeah, I do use multiple devices and somewhat frequently delete articles. But I guess I could trigger the sweep manually... how is that done, is that the "Full update" button? |
Yeah, i did this: the php app server's logs didn't show anything wrong, and the nginx reverse proxy just showed that the first request ended correctly (with 200), and then the next ones were incorrect. It seems there's a streaming request sent from the app, and the server considers it done after the first result is streamed back from the server to the android app, while the android app expects other results to come... |
Do you mean the initial sync? Can you disable "auto-sync on application start" (Settings - Synchronization), completely kill the app, launch the app and start sweeping? I'd like to make sure that's not an issue with connection pooling. |
Oops, no sorry, I meant that i saw in the logs that there were requests sent to ask the server whether each article exists on the server, based on the URL. The app seems to ask this information in batches, and the request for the first batch did succeed, and then subsequent requests were the one failing. |
That's weird, considering that the very first These |
I tried bumping At this point, my best guess is that it's either a bug in Nginx or in the HTTP library OkHttp, or an Nginx misconfiguration (missing If that's not too much trouble, would it be possible to bump the version of okhttp in the beta version? Or just build it and provide me with an APK i could try? Thanks for all the work and taking the time to investigate! This is really a minor issue, and as far as I can tell, the beta version allows me to do a full sync without any issues now, resulting in the same effect but slower. The non-beta version had the same bug with the full sync, for what it's worth. |
@bnjbvr any change with the latest release/beta ( |
Nope, this is still happening on both my devices. |
wallabag app version: 2.4.2, master. Reproducible with query length >= 5653, fine with 5594 (didn't test values in-between). |
It seems that when I'm deleting an article locally, and then runs a sync, the app enters the "clean up deleted articles" mode, and then never leaves it. The android notification stays open, with a loading bar that remains filled at around 20%. This prevents subsequent synchronizations, including fetching new articles stored on the server, read markers sync, and then the only way to escape this mode seems to require disconnecting and reconnecting to the instance and account.
Duplicate?
Have you searched the issues of this repository if your issue is already known? Only first page
Environment details
Logs
wallabag server
Please paste relevant wallabag server logs here (from file
<wallabag>/var/logs/prod.log
):Web server
Please paste relevant web server logs (e.g. from nginx, Apache, …) here:
NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here!
Your experience with wallabag Android app
Have you had any luck using wallabag Android app before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
It's been wonderful so far, happily replaced pocket with wallabag three years ago and still not a single regret.
The text was updated successfully, but these errors were encountered: