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
Failed to import users: failed to validate user #600
Comments
Did you check the emails in the Kimai 1 database? You could add some debug comments around this code: The error is coming from the Symfony framework and says: |
Hi
I did but will re-check. Thanks for the hints I will try my best and in worst case I might just reset all mail addresses so that the user have to update them manually later to see if this helps.
Mit freundlichen Grüßen / Best regards
Richi
Von meinem iPhone gesendet
… Am 25.02.2019 um 19:31 schrieb Kevin Papst ***@***.***>:
Did you check the emails in the Kimai 1 database?
Kimai 1 was terrible when it comes to data integrity. I already added multiple workarounds for defect data, but that one is very likely on your end.
If you database is really okay, I would need a dump of at least the users table for debugging.
There is just var/logs/prod.log and I don't know if the import logs there.
You could add some debug comments around this code:
https://github.com/kevinpapst/kimai2/blob/master/src/Command/KimaiImporterCommand.php#L511
The error is coming from the Symfony framework and says:
const INVALID_FORMAT_ERROR = 'bd79c0ab-ddba-46cc-a703-a7a4b08de310';
but I don't know what that means.
What is the email adress of that user? Simply replace all chars with x to prevent abuse if you paste it here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi, |
Was everything successful, or did you find anything else? |
Hi
Thanks for the follow up - I did run into errors indeed. Not with users that’s fine but with actual data entries.
However since the import took forever I did get side tracked and forget to follow up.
I will post new logs next week or the weekend. But the user import works. I will close the ticket.
Mit freundlichen Grüßen / Best regards
Richi
Von meinem iPhone gesendet
… Am 01.03.2019 um 16:56 schrieb Kevin Papst ***@***.***>:
Was everything successful, or did you find anything else?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You already closed it. But I have had several issues with the import in the past, as Kimai 1 didn't use foreign keys and produced a lot of broken relationships/invalid data. |
Thanks, seems like the issues were cause due to endtime set to 0 (I expect at least that was the issue, will reimport everything now).
Mit freundlichen Grüßen / Best regards
Richi
Von meinem iPhone gesendet
… Am 01.03.2019 um 19:03 schrieb Kevin Papst ***@***.***>:
You already closed it. But I have had several issues with the import in the past, as Kimai 1 didn't use foreign keys and produced a lot of broken relationships/invalid data.
I'd be glad to fix these problems, just let me know what happened!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Had a look at the code and you might be correct. If it fails again, please add these lines here:
|
Hi |
You manipulated the data any our Kimai 1 database? Please share our insights with me, so I can improve the importer! |
Yeah; I just made a simple update statement to make the END=START time for those entries with end value 0. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Describe the bug
I try to migrate my data from Kimai V1 but I do get an error then I try to do so.
To Reproduce
Steps to reproduce the behavior:
Logfile
[ERROR] Failed to import users: Failed to validate user: xxx
#0 /var/www/kimai2/src/Command/KimaiImporterCommand.php(263):
App\Command\KimaiImporterCommand->importUsers(Object(Symfony\Component\Console\Style\SymfonyStyle), '.xxx',
Array, Array)
#1 /var/www/kimai2/vendor/symfony/console/Command/Command.php(255):
App\Command\KimaiImporterCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/kimai2/vendor/symfony/console/Application.php(911):
Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/kimai2/vendor/symfony/framework-bundle/Console/Application.php(89):
Symfony\Component\Console\Application->doRunCommand(Object(App\Command\KimaiImporterCommand),
Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/kimai2/vendor/symfony/console/Application.php(262):
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(App\Command\KimaiImporterCommand),
Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/kimai2/vendor/symfony/framework-bundle/Console/Application.php(75):
Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/kimai2/vendor/symfony/console/Application.php(145):
Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput),
Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/kimai2/bin/console(39):
Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput))
#8 {main}
Screenshots
Additional context
Add any other context about the problem here.
. - PHP version 7.3
If I could get more information on where to find logs etc. I would troubleshoot this myself.
I also do get:
[ERROR] Object(App\Entity\User).email:
This value is not a valid email address. (code bd79c0ab-ddba-46cc-a703-a7a4b08de310)
However I checked now all mail addresses and they are actually correct.
The text was updated successfully, but these errors were encountered: