Skip to content
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

Automatic image upload broken #800

Closed
nazco opened this issue Apr 7, 2019 · 57 comments
Closed

Automatic image upload broken #800

nazco opened this issue Apr 7, 2019 · 57 comments

Comments

@nazco
Copy link

@nazco nazco commented Apr 7, 2019

The automatic image upload isn't working anymore. I used the feature a few years now but in the last months it got more and more broken. In the beginning the upload was delayed up to a day, but now the automatic upload dosn't work anymore for me. I use an android 8.0 phone with the latest version 2.2.14 from f-droid but the problem persist also with the version from the play store.

I've tried to fix it by reinstalling the app multiple times but that doesn't help.

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Apr 7, 2019

How many photos do you have?

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Apr 8, 2019

Currently about 2.5k

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Apr 17, 2019

Maybe this problem is related to the changes introduced with this commit: e1d67ae

@sosnicki

This comment has been minimized.

Copy link

@sosnicki sosnicki commented May 9, 2019

Hi, I confirm that the automatic upload is not working. The synchronization starts when the application is opened.

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented May 9, 2019

@sosnicki I don't understand what do you mean by "not working".

From the description, "the synchronization starts when the application is opened", it means the feature can work.

@sosnicki

This comment has been minimized.

Copy link

@sosnicki sosnicki commented May 9, 2019

Ok, I'm sory, I'll try to explain. When I take a photo, it isn't sent to the server right away. It is uploaded only when I open Seafile application. It seems like, the start of the application triggers synchronization process.

@sosnicki

This comment has been minimized.

Copy link

@sosnicki sosnicki commented May 9, 2019

I've installed the latest version 2.2.15. I've took two photos and I've waited for a 5 minutes and the photos weren't sent to the server. I've checked last synchronization time in Settings->Synchronization->Seafile and the time is older then the time of taking photos. I think it means that taking a photos doesn't start synchronization. I've set 3 folders for synchronization (Camera, Hangout, WhatApp) in the Seafile settings, maybe it's an issue?

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented May 9, 2019

We use Android system's synchronization framework to schedule the photo upload. The default interval is 10 minutes. If you want to start synchronization soon, you can click the syncing now in "Settings->Synchronization->Seafile"

@sosnicki

This comment has been minimized.

Copy link

@sosnicki sosnicki commented May 9, 2019

Thank you very much for the tip!

I have Xiaomi with MIUI and it didn't synchronize this app for days because of energy saving settings. I've changed battery save mode to 'No limit' and enabled the 'Autostart' and it works like a charm. A few seconds after the photo is taken, it is sent to the server.

Maybe @nazco has the same problem.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented May 9, 2019

Nope, seems to be another issue. But I debugged it a little more after your suggestions. There is no sync of images at all, even if I trigger a manual sync like @freeplant suggested. But, if I chose a new album, the folder of this album is synced but without any containing images.

@sosnicki

This comment has been minimized.

Copy link

@sosnicki sosnicki commented May 9, 2019

Maybe something is wrong with the image format/extension? If you attach some example photo, I can check it with my app and server.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented May 9, 2019

I'm quite sure it isn't the format or extension. Why should the default camera app change the format? I'll add images later if still needed.

@TT-SWP13

This comment has been minimized.

Copy link

@TT-SWP13 TT-SWP13 commented May 10, 2019

@sosnicki I also have a Xiaomi wit MIUI 10. I tested also with MUIU 9 and all Versions of Seadroid from 2.2.8 to 2.2.15. With Server-Version 6.3.4 and App-Version 2.2.8 it works for me on my phone. But not with newer versions. I do not know why. I have enabled android sync, disabled all energy savings, give the app all permissions (WiFi, mobile Data, files, ...) and try manually sync. But nothing works. It could be my nginx security settings. But the clients on Linux and Windows worked great.
Manually upload of a taken picture worked.

On local network (with server-IP): it doesn't work either. But the manually upload of a taken picture worked.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented May 10, 2019

Maybe this was the version the problems started for me. But I'm not that sure. Could match the timing it started to be buggy.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented May 14, 2019

I've set the power options suggested by @sosnicki a few days ago. It didn't work directly, but now it seems to work again. I think maybe the app tried to index all the images but was interrupted before by the garbage collector. Now it isn't interrupted while running in the background and could finish the work. @freeplant could this be a explanation?

@arnstads

This comment has been minimized.

Copy link

@arnstads arnstads commented May 20, 2019

For me it's also not working.
Running version 2.2.14 on a Huawei P20 with Android 8.0.0 and EMUI user interface.
It seems that nothing happens if I activate the photo sync and take pictures. Neither waiting for a long time or sync manually. The transfer list is also empty.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented May 20, 2019

A day after my last comment I got an update to Android 9. Now it isn't working again. Same problem as before.

@cyrilEngelaere

This comment has been minimized.

Copy link

@cyrilEngelaere cyrilEngelaere commented Jun 6, 2019

+1

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Jun 22, 2019

I get this problem all the time. I just checked now and it hadn't synced since March. I'm on the latest version. I got it syncing again by disabling and reenabling syncing, but then of course as described in #815 it reuploads all deleted images. It's really quite weird and inconvenient that this works fine on Dropbox but not on Seafile, I switched to Seafile because I wanted to move away from proprietary commercial software like Dropbox but Seadroid is proving a struggle. The server and client are great though, love them :)

@framps

This comment has been minimized.

Copy link

@framps framps commented Aug 4, 2019

I use the auto sync feature on my mobile for a long time already. I had some trouble first but finally got it working.

I now have Android 8.0 (Orio) and also another new mobile with Android 9.0 (Pie). Autosync worked on Orio but stopped working a couple of weeks ago. On Pie I configured the autosync as on the Orio mobile but didin’t get it autostart. On both systems manual sync works fine.

Mobile running Orio is a Samsung S7 which got some Android updates recently. May be there was some update causing the automatic sync to stop and this update was already rolled in into Pie?

Seafile Android client version: 2.2.18
Seafile Server: 6.2.5

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Aug 5, 2019

The auto-back feature is working on my phone. Can you check "system -> accounts" to check whether sync feature of Seafile is turned on? Then can you open Seafile for 10 minutes, then check the transfer list to see if photos are being uploaded?

@framps

This comment has been minimized.

Copy link

@framps framps commented Aug 5, 2019

I attached a screenshot of my Samsung S7 running Orio (Android 8.0) when I selected system -> Cloud and accounts -> Accounts -> <seafile account> -> Sync account

Additional note: On the Accounts page there is a slider called Auto sync data at the bottom which is turned on.

Screenshot_20190805-111113_Settings_red

Note: The sync time you see on the screenshot was initiated by manually triggering the sync. There is no automatic sync triggered when I wait for > 10 mins.

Frankly I think this may be an issue with power saving on Android.
But power monitoring for Seafile is disabled with system -> Device management -> Battery -> Unmonitored Apps

Screenshot_20190805-113559_Device maintenance

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Aug 5, 2019

Same here, the sync doesn't start and if I start it manually it doesn't work too. Battery saving is also disabled for seafile.

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Aug 5, 2019

I did some experiments. When I trigger a "Sync Now" in the settings menu it used to sometimes succeed. Nowadays it doesn't at all (no fully succesful sync since March). I've found that when I deleted a lot of older images and videos from my phone, it started working again (not full succesful sync, but some images came through). It seems that Android's sync function has difficulty with large amounts of images or videos (or is that already passed on to the Seafile code and does it fail there)? To be clear, I'm talking about old images that have already been synced. The amount of new images was actually rather limited.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Aug 5, 2019

@bertvandepoel that fits my obervations too. It seems to get worse with more images on the phone.

@framps

This comment has been minimized.

Copy link

@framps framps commented Aug 5, 2019

Same here, the sync doesn't start and if I start it manually it doesn't work too. Battery saving is also disabled for seafile.

That's different to my observations: Manual sync works fine. It's just autosync isn't triggered.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Aug 5, 2019

That's different to my observations: Manual sync works fine. It's just autosync isn't triggered

Oh ok... How many Images do you have on your phone that should get synced?

@framps

This comment has been minimized.

Copy link

@framps framps commented Aug 5, 2019

For my tests it was one image only all the time but worked with > 10 files before. Total size of images is 3.9G (1216 files). They are stored on an external SD card.

@framps

This comment has been minimized.

Copy link

@framps framps commented Aug 8, 2019

@freeplant Are there any plans to work on this issue or is somebody working on this issue already? This issue is >= 4 months old 😉 I understand it's not an easy issue because of the huge number of Android Releases and possible settings.
Just let me know which debug information I should provide to make progress.

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Aug 9, 2019

We are working on the issue.

Actually we had already added a fix to the problem a few months ago. But it seems not fix the problem.

@framps

This comment has been minimized.

Copy link

@framps framps commented Aug 9, 2019

Great. 👍 Please let me know If I can help testing with my Samsung S7 running Android 8.0 and Samsung A20 running Android 9.0

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Aug 27, 2019

We have prepared a package with logs: https://download.seafile.com/f/694c97bec5a94b45bb8f/?dl=1 . The log is in /storage/emulated/0/seafile/seafileLog.txt . Please send us the log when you have the problem.

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Sep 14, 2019

@freeplant I just found some time to give it a shot. I think however that the log might not be too useful in this case (it's just the same message over and over again).

I've installed the new app version. Opened it, closed it, then left it open. Then several times forced the "sync now" feature under the synchronisation settings in Android. I always got the message "Sync is currently experiencing problems. It will be back shortly" and I haven't been able to do a full sync since March. In July I deleted a bunch of photos and forced sync now for a long time and then got some photos syncet, but it remains a problem, probably because of the size of my gallery. After trying for some time, I collected this log file:

seafileLog.txt

@maxiaoping

This comment has been minimized.

Copy link
Contributor

@maxiaoping maxiaoping commented Sep 23, 2019

Great. 👍 Please let me know If I can help testing with my Samsung S7 running Android 8.0 and Samsung A20 running Android 9.0
Samsung

Great. 👍 Please let me know If I can help testing with my Samsung S7 running Android 8.0 and Samsung A20 running Android 9.0

You need to turn on the auto-start switch

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Sep 23, 2019

@maxiaoping Is this a response to me or to @framps ?

@maxiaoping

This comment has been minimized.

Copy link
Contributor

@maxiaoping maxiaoping commented Sep 23, 2019

WechatIMG217
The phone needs to open an app auto-start switch

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Sep 23, 2019

@maxiaoping If this is a response to me: the auto-start switch is on. I specifically went into that menu to force a sync now. As you can see in the thread above, people are quite aware of this fact. We're quite sure this has something to do with the size of the gallery.

@maxiaoping

This comment has been minimized.

Copy link
Contributor

@maxiaoping maxiaoping commented Sep 23, 2019

WX20190924

@maxiaoping

This comment has been minimized.

Copy link
Contributor

@maxiaoping maxiaoping commented Sep 23, 2019

@maxiaoping If this is a response to me: the auto-start switch is on. I specifically went into that menu to force a sync now. As you can see in the thread above, people are quite aware of this fact. We're quite sure this has something to do with the size of the gallery.

I tried to test the problem

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Sep 23, 2019

I see, so you also have the problem? Could you learn something from the log?

@maxiaoping

This comment has been minimized.

Copy link
Contributor

@maxiaoping maxiaoping commented Sep 23, 2019

I see, so you also have the problem? Could you learn something from the log?

My gallery photo is limited, so I can't test this problem temporarily,but I tried to test the problem

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Sep 23, 2019

@maxiaoping
We've found that the problem has to do with the size of the gallery. I was able to sync a few months ago when I deleted a load of picture (but like, hundreds) and forced "sync now" a lot of times. Since then I've not been able to do a decent sync though, which is problematic. I was hoping to help with the logs, but the contents don't seem to help.

I can verify that automatic synchronization is on by the way, if that's a question you have.

To give you an idea of size, I have 5800 pictures and 49 videos on my phone. Not all of those are synced through Seafile, but most are. So maybe it's worth taking 2000+ pictures or something, and then see if the problem starts happening to you. @framps had 1216 pictures by the way.

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Sep 23, 2019

I've 3408 pictures in the gallery that should be synced, but the problems started way earlier.

@c3rebro

This comment has been minimized.

Copy link

@c3rebro c3rebro commented Oct 6, 2019

Hello together. Iam facing issues on that topic too.
I updated to seafile server 7.0.5 recently and have Android 9.0 running. Seadroid is 2.2.18.

It seems that i have that issue since my old Galaxy has been broken and i changed to my new Galaxy S8 but iam not sure.

To be more specifically about that issue: I ONLY facing issues when trying to upload videos or larger Files. Pictures are uploaded fine. I guess that video sizes above apr. 30MiB causes the auto upload feature to fail. I just tested the following: If i cancel all auto-uploads and re-setup them. i have 52 Files with 22GB in my Upload queue. The first two with apr. 73MB each fails as soon as they reach about 90%.

BUT: When i switch off the auto-upload feature and select all of the files manually they got uploaded fine. Even the 2GB Videos. It also does not matter if the phone goes to sleep and turns the display off. It just doesnt stop uploading if startet manually.

Any ideas? Where can i find the logs btw? Andoid 9 does not seem to have a /emulated/0/ directory does it?

@yhtang

This comment has been minimized.

Copy link

@yhtang yhtang commented Dec 4, 2019

I get this problem all the time. I just checked now and it hadn't synced since March. I'm on the latest version. I got it syncing again by disabling and reenabling syncing, but then of course as described in #815 it reuploads all deleted images. It's really quite weird and inconvenient that this works fine on Dropbox but not on Seafile, I switched to Seafile because I wanted to move away from proprietary commercial software like Dropbox but Seadroid is proving a struggle. The server and client are great though, love them :)

I have exactly the same situation here 😢
I'm using the latest Seafile app on a Huawei P30 pro with Android 9.

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Dec 4, 2019

The next release will contain a fix. And the status of syncing will be shown in the UI.

@yhtang

This comment has been minimized.

Copy link

@yhtang yhtang commented Dec 7, 2019

The next release will contain a fix. And the status of syncing will be shown in the UI.

Oh. That's great news! Thanks!

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Dec 16, 2019

The new version 2.2.22 can be download in https://github.com/haiwen/seadroid/releases

@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Dec 16, 2019

Will it release on the play store as well, or is this a beta release for testing?

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Dec 17, 2019

This is beta release for testing.

@freeplant

This comment has been minimized.

Copy link
Member

@freeplant freeplant commented Jan 8, 2020

The problem should have been fixed.

@freeplant freeplant closed this Jan 8, 2020
@bertvandepoel

This comment has been minimized.

Copy link

@bertvandepoel bertvandepoel commented Jan 8, 2020

Just wanted to quickly let you know I just tried out 2.2.25 from the play store and it managed my backlog of about 1000 images and videos. This is great news. Thank you very much for fixing this issue 😃

@nazco

This comment has been minimized.

Copy link
Author

@nazco nazco commented Jan 8, 2020

Works here too! Thanks for the fix!

@framps

This comment has been minimized.

Copy link

@framps framps commented Jan 8, 2020

Works perfect for me too. Great work 👍

@sosnicki

This comment has been minimized.

Copy link

@sosnicki sosnicki commented Jan 9, 2020

Thank you very much! It works like a charm.

@yhtang

This comment has been minimized.

Copy link

@yhtang yhtang commented Jan 9, 2020

I can confirm that the problem is gone on Huawei P30 Pro with EMUI 9. Thanks!

@toasterking

This comment has been minimized.

Copy link

@toasterking toasterking commented Jan 9, 2020

I've been having both problems (automatic sync does not trigger; manual sync fails) for many months on BlackBerry PRIV running Android 6. I've played around with battery and data saver settings and nginx on my server. I just looked into troubleshooting it again and was amazed to find I just barely missed the bugfixed version when I updated apps a couple of days ago. Both problems are fixed for me now with 2.2.25. Thank you very much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.