integration_google icon indicating copy to clipboard operation
integration_google copied to clipboard

Add an option to reset import

Open plant7403 opened this issue 4 years ago • 7 comments

My downloading got stuck after machine reboot I deleted the folder to make it load again, but it still shows previous number of photos remaining How to tell the app to rescan again or just delete saved data? Thank you ✨

plant7403 avatar Jul 12 '21 09:07 plant7403

Hi, this should be handled more gracefully... Anyway, first make sure the import process is not running. Then set nb_imported_photos, nb_imported_files, photo_import_running, importing_photos, last_import_timestamp, importing_drive, drive_import_running and last_drive_import_timestamp to 0 in oc_preferences where appid=integration_google and userid=YOUR_USER_ID. Then you can launch the import process again.

Any better?

julien-nc avatar Aug 27 '21 12:08 julien-nc

This worked for me. I had a lot of photos not in an album (issue #41), and needed to restart the sync after moving all the non-album photos into albums.

twomoses avatar Sep 09 '21 02:09 twomoses

@eneiluj thanks a lot for your reply, as i see tons of people have issues with stuck import But i can't currently check the solution because i stopped using nextcloud 😅 Let's wait for some people done it to solve their problems and close the issue 😃

plant7403 avatar Sep 19 '21 21:09 plant7403

Hi, this should be handled more gracefully... Anyway, first make sure the import process is not running. Then set nb_imported_photos, nb_imported_files, photo_import_running, importing_photos, last_import_timestamp, importing_drive, drive_import_running and last_drive_import_timestamp to 0 in oc_preferences where appid=integration_google and userid=YOUR_USER_ID. Then you can launch the import process again.

Any better?

I follow your guide and I can resume syncing. But I can't sync all files because It got file locked And it stop.

Google Drive import error: Unknow job failure. "Google Drive/01-Giáo trình điện tử Phong Guitar/class_status.xlsx" is locked |  

Finally I use this modify and everything work like champ. https://github.com/nextcloud/integration_google/commit/18034b4c9560228ff9d42bd9094e4562a5400bec?branch=18034b4c9560228ff9d42bd9094e4562a5400bec&diff=split#diff-f542a6311727354748cca6021726f14d606376f114c6333759d52f6692a1f6a3L346 293 files imported (49%) Google Drive background import process will begin soon. You can close this page. You will be notified when it finishes.

hacmieu avatar Sep 25 '21 16:09 hacmieu

Hello :wave: This issue appears to have had no activity for 3 months. We cannot keep track of whether individual issues have resolved themselves or still require attention without user interaction. We're thus adding the stale label to this issue to schedule it for getting closed in 5 days time. If you believe this issue is still valid and should be fixed, you can add a comment or remove the label to avoid it getting closed.

Cheers :blue_heart:

github-actions[bot] avatar Jun 02 '23 02:06 github-actions[bot]

Hello :wave: This issue appears to have had no activity for 3 months. We cannot keep track of whether individual issues have resolved themselves or still require attention without user interaction. We're thus adding the stale label to this issue to schedule it for getting closed in 5 days time. If you believe this issue is still valid and should be fixed, you can add a comment or remove the label to avoid it getting closed.

Cheers :blue_heart:

github-actions[bot] avatar Sep 01 '23 02:09 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Sep 07 '23 01:09 github-actions[bot]