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

Add an option to reset import #68

Open
plant7403 opened this issue Jul 12, 2021 · 7 comments
Open

Add an option to reset import #68

plant7403 opened this issue Jul 12, 2021 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@plant7403
Copy link

plant7403 commented Jul 12, 2021

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 plant7403 changed the title [Q] [Question] How to reset database? Jul 12, 2021
@julien-nc
Copy link
Member

julien-nc commented Aug 27, 2021

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?

@twomoses
Copy link

twomoses commented Sep 9, 2021

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.

@plant7403
Copy link
Author

@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 😃

@hacmieu
Copy link

hacmieu commented Sep 25, 2021

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.
18034b4?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.

@github-actions
Copy link

github-actions bot commented Jun 2, 2023

Hello 👋
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 💙

@github-actions github-actions bot added the Stale label Jun 2, 2023
@marcelklehr marcelklehr added enhancement New feature or request good first issue Good for newcomers and removed testing Stale labels Jun 2, 2023
@marcelklehr marcelklehr changed the title [Question] How to reset database? Add an option to reset import Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Sep 1, 2023

Hello 👋
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 💙

@github-actions github-actions bot added the Stale label Sep 1, 2023
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
@marcelklehr marcelklehr reopened this Mar 1, 2024
@marcelklehr marcelklehr removed the Stale label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants