Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

import failing (?)

Open
#343 10 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
backend

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.

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!

Dominant language
JavaScript
Stars
31
Forks
11
Avg merge
5h 21m
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/user_migration

All issues in nextcloud/user_migration

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.