-
Notifications
You must be signed in to change notification settings - Fork 165
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
No new photos #452
Comments
27/10/2023 The issue is back. 28/10/2023 New photos are synced now. So, the problem is the delay, it can takes one day or two to sync the new photos. The script run every hour through cron . |
@daboynb please send the command line that you are running in the cron. Thanks. |
Sure, this is the script. I saw the log this morning, the first account got synced with the new photos but not the other three.
Thank you. |
This looks fine to me. I wonder if you are subject to a timezone problem. Please could you temporarily set timezone to GMT and see if the issue goes away? We did have timezone issues with token generation as discussed here: #413 I just noticed that I have not made a release since the above fix was merged. However this won't help you as your issue would be to do with timezone info when choosing media search filters. |
I tried with :
Sadly, it still says no new photos. |
Hmmm. Well in that case its hard to pin the problem on gphotos-sync and it's back to blaming the Google API I'm afraid. However if you want to do more analysis please add --log-level trace to your command line and post the trace and log files that appear in your gphotos-sync root folder. Hopefully they won't be too big we are not finding any photos to download. |
This is the output.
|
Thanks. Did you also get a .trace file - that would show the actual calls to the Google API. What we want to do is verify that this line: So it would be good to be able to show that
Then we either pin it on Google - we would have a detailed report to give them. Or work out that there is perhaps a mismatch between timezones used by gphotos and the Google API (unfortunately I'm thinking this is unlikely now that you have tried using GMT) |
Here you go the file of the first account.
BTW the second account gets updated but sadly it not saved a trace file.
So, it synced November too... but only on this account. It synced 119 photos after some days.... EDIT: |
OK your trace file is helping. It looks like I only pass the date as a filter and not the time. Therefore I assume its using midnight of the day as the cutoff. Chances are that this is in the global timezone (same as GMT). On what date did you last upload a photo. Without getting heavily back into the code I'm guessing that I chose to use date only but picked the date before the last run. |
The last photo that the tool downloaded was from yesterday and was uploaded at 13:49. This was the last one of the day. (correct since I ran the tool today at 14.30) As for the last photos uploaded on gphoto today that haven't been downloaded, they were uploaded today around 16:00 . EDIT : I just ran the script at 17:59. It downloaded one photo out of the five taken today. However, I noticed something unusual: the synced photo is from the camera, while the other four are from WhatsApp. As you can see they were uploaded around 16:00 . The old WhatsApp photos instead were downloaded successfully. |
if you look at the trace file it says to search for files from start date 31st Oct 2023 to end date 3000. Therefore the Google API appears to be to blame. Unfortunately all bugs against the Google API that I have posted have not received any response for years. I'm not sure that reading through this issue that I'm clear on the detail. If you would like to write a concise description of the issue, including that trace output I will post it to Google. Or you could try it yourself at https://issuetracker.google.com/issues?q=status:open%20componentid:385336&s=created_time:desc |
Oh okay, thank you for your time. I will send a bug report through you link. |
Hello, I am experiencing the same problem. Does that mean the tool is not capable of making differential updates? Or is there a way to redo a sort of full scan? Edit: seems that with a |
Honestly, I think there is a lurking bug in the date conversion, probably in sqlite3. It's not serious as the incremental update just sometimes needs an extra half day or so to kick in. Indeed I have just tried updating this project to work with python 3.12 and it turns out date conversion in sqlite3 is being deprecated. I'm not that keen to write my own (which is the recommendation) because a change in behaviour that is hard to test is only going to create more issues. So for now I've skipped the deprecation warning and am deferring worrying about this until python 3.13 when a few more published workarounds will be available I hope. Closing for now as won't fix. Workarounds are:
|
Hi,
I have a problem.
I am running this app on a raspberry pi 4. When I run it the first time it downloads the photos but there is a problem :
I tested the issue on another account too.
How can I fix that? Thanks
Btw this tool is awesome 😎
Testing on 4 accounts.
I uploaded some photos but nothing....
The text was updated successfully, but these errors were encountered: