nextcloud / integration_google

🇬 Google integration into Nextcloud
GNU Affero General Public License v3.0
104 stars 33 forks source link

Import more than 100% #174

Open RobertHeim opened 3 months ago

RobertHeim commented 3 months ago

Which version of integration_google are you using?

2.2.0

Which version of Nextcloud are you using?

Nextcloud Hub 8 (29.0.3)

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Brave Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (64-bit)

Describe the Bug

During migration I see at https://nc.mydomain.de/settings/user/migration more than 100% of file migration and I am wondering, what it syncs above the 100%?

image

Makes me suspicious if the migration is working or not and I am afraid of data loss. How can I check it?

Expected Behavior

I expect the migration to be done at 100%.

To Reproduce

Maybe I messed up the cron because I called it multiple times but I would expect the cron.php to handle parallel executions. However, this is roughly what I remember I had done:

I had set up a fresh nextcloud installation via docker and no other apps, but the default ones (I disabled some that I don't need, like dashboard and user status). I setup the google integration (for files) and started the migration (for files only) and run the cron via docker exec -u www-data nextcloud php /var/www/html/cron.php. I stopped it, because I forgot to bring it in the background. I then tried to add -d with docker exec -u www-data -d nextcloud php /var/www/html/cron.php but found out several hour later, that the cron somehow did not continue running. I then added it to crontab:

# sudo crontab -e
*/5 *  *   *   *     docker exec -u www-data nextcloud php /var/www/html/cron.php
RobertHeim commented 3 months ago

It now completed at around 123%.

github-actions[bot] commented 3 months ago

Hello :wave:

Thank you for taking the time to open this issue with integration_google. I know it's frustrating when software causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at and if possible solved. We try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until we get to it. Until then, please be patient. If you are strugging to set up the app, have a look at this video: https://www.youtube.com/watch?v=h_teJPg2wEk Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can collaborate to make this software better. For everyone. Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and try to fix the odd bug yourself. Everyone will be thankful for extra helping hands! One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum, to twitter or somewhere else. But this is a technical issue tracker, so please make sure to focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue Cheers :blue_heart:

pnpninja commented 2 months ago

I noticed similar behavior for Google drive backup. 231%

RobertHeim commented 1 month ago

@marcelklehr you labeled the issue minor. Can you at least let us know if we can expect that the import was successful and we did not loose data? It is very cumbersome for us to check if all data was imported or not. Having a bug in that process makes us not trust that everything went fine?

marcelklehr commented 1 month ago

Can you at least let us know if we can expect that the import was successful and we did not loose data?

The import does not take into account the percentage, the percentage is calculated after the fact. I don't think that it finishes prematurely.