Jake B.
Well-known member
- Affected version
- Latest
So far it's only happened once, and running the command has continued successfully, but I'm running the importer with 12 processes and ended up getting the following error:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '???529' for key 'username' src/XF/Db/AbstractStatement.php:228
Code:
INSERT INTO `xf_user` (`user_id`, `username`, `email`, `style_id`, `language_id`, `timezone`, `visible`, `activity_visible`, `user_group_id`, `secondary_group_ids`, `display_style_group_id`, `permission_combination_id`, `message_count`, `alerts_unread`, `conversations_unread`, `register_date`, `last_activity`, `trophy_points`, `avatar_date`, `avatar_width`, `avatar_height`, `avatar_highdpi`, `gravatar`, `user_state`, `is_moderator`, `is_admin`, `is_staff`, `is_banned`, `reaction_score`, `custom_title`, `warning_points`, `secret_key`, `privacy_policy_accepted`, `terms_accepted`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException()
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException()
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(218): XF\Db\AbstractAdapter->query()
#4 src/XF/Import/Data/EntityEmulator.php(326): XF\Db\AbstractAdapter->insert()
#5 src/XF/Import/Data/User.php(201): XF\Import\Data\EntityEmulator->insert()
#6 src/XF/Import/Data/AbstractData.php(127): XF\Import\Data\User->write()
#7 src/XF/Import/Helper.php(107): XF\Import\Data\AbstractData->save()
#8 src/XF/Import/Importer/AbstractCoreImporter.php(107): XF\Import\Helper->importUser()
#9 src/addons/XFI/Import/Importer/vBulletin.php(1001): XF\Import\Importer\AbstractCoreImporter->importUser()
#10 src/XF/Import/Runner.php(231): XFI\Import\Importer\vBulletin->stepUsers()
#11 src/XF/Import/ParallelRunner.php(212): XF\Import\Runner->runStep()
#12 src/XF/Cli/Command/ImportChildProcess.php(78): XF\Import\ParallelRunner->runChildProcess()
#13 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\ImportChildProcess->execute()
#14 src/vendor/symfony/console/Application.php(982): Symfony\Component\Console\Command\Command->run()
#15 src/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand()
#16 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun()
#17 src/XF/Cli/Runner.php(63): Symfony\Component\Console\Application->run()
#18 cmd.php(15): XF\Cli\Runner->run()
#19 {main}
Code:
array(1) {
["cli"] => string(95) "PATH/cmd.php xf:import-child-process users 4598576 4601576"
}