nextcloud / nextcloud/user_migration
import failing (?)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 30
- Forks
- 10
- Avg merge
- 6h 5m
- Merged PRs (30d)
- 12
Description
Hi,
I have successfully exported a user's files and transferred the archive over to a new instance of NC.
Importing is taking a couple of minutes. While it is still processing (wheel spinning in GUI), an error message pops up in the upper right corner saying (something like) "Error getting user's config". Some time later, the import dialogue tells me that the import was completed successfully.
However, this is not the case. The allegedly imported files are nowhere to be found.
The NC log (accessible through the GUI) does not contain any information on the failed import. But there is an entry from an earlier try (that failed the same way):
`OCA\Settings\UserMigration\AccountMigratorException: Failed to import profile config
/var/www/html/custom_apps/user_migration/lib/Service/UserMigrationService.php - line 250:
OCA\Settings\UserMigration\AccountMigrator->import(OC\User\User {}, OCA\UserMigr ... {}, Symfony\Comp ... {})
/var/www/html/custom_apps/user_migration/lib/BackgroundJob/UserImportJob.php - line 100:
OCA\UserMigration\Service\UserMigrationService->import(OCA\UserMigr ... {}, OC\User\User {})
/var/www/html/lib/public/BackgroundJob/Job.php - line 78:
OCA\UserMigration\BackgroundJob\UserImportJob->run([ 1])
/var/www/html/lib/public/BackgroundJob/QueuedJob.php - line 58:
OCP\BackgroundJob\Job->start(OC\BackgroundJob\JobList {})
/var/www/html/lib/public/BackgroundJob/QueuedJob.php - line 48:
OCP\BackgroundJob\QueuedJob->start(OC\BackgroundJob\JobList {})
/var/www/html/cron.php - line 152:
OCP\BackgroundJob\QueuedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})`
Is there something going on in the background and after a couple of hours the import will have gone through? Or is something amiss?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/Service/UserMigrationService.php around line 250 and follow the import from lib/BackgroundJob/UserImportJob.php line 100 through cron.php line 152. Reproduce an import and trace the profile-config failure; done means the import completes without the error and the user's files are present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100