Skip to content
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

visit:locate --retry seems broken #1576

Closed
mikafouenski opened this issue Oct 18, 2022 · 3 comments
Closed

visit:locate --retry seems broken #1576

mikafouenski opened this issue Oct 18, 2022 · 3 comments
Labels
Milestone

Comments

@mikafouenski
Copy link
Contributor

Hello everyone, 👋

It seems the command to retry to locate old visits doesn't work anymore.
I'm currently using a docker compose setup with image shlinkio/shlink:3.3.1.

Here is what I get when issuing bin/cli visit:locate -r -vvv after doing docker exec -it shlink-shlink-1 sh (shlink-shlink-1 is the name of my shlink container)

/etc/shlink # bin/cli visit:locate -r -vvv

                                                                                                                        
 [INFO] GeoLite2 db file is up to date.                                                                                 
                                                                                                                        

                                                                                                                        
 [ERROR] Shlinkio\Shlink\Core\Visit\Model\VisitType::from(): Argument #1 ($value) must be of type string,               
         Shlinkio\Shlink\Core\Visit\Model\VisitType given                                                               
                                                                                                                        


In ReflectionEnumProperty.php line 93:
                                                                                                                                       
  [TypeError]                                                                                                                          
  Shlinkio\Shlink\Core\Visit\Model\VisitType::from(): Argument #1 ($value) must be of type string, Shlinkio\Shlink\Core\Visit\Model\V  
  isitType given                                                                                                                       
                                                                                                                                       

Exception trace:
  at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php:93
 Shlinkio\Shlink\Core\Visit\Model\VisitType::from() at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php:93
 Doctrine\ORM\Mapping\ReflectionEnumProperty->initializeEnumValue() at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ReflectionEnumProperty.php:77
 Doctrine\ORM\Mapping\ReflectionEnumProperty->setValue() at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2745
 Doctrine\ORM\UnitOfWork->createEntity() at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:266
 Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity() at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php:492
 Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData() at /etc/shlink/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:196
 Doctrine\ORM\Internal\Hydration\AbstractHydrator->toIterable() at /etc/shlink/module/Core/src/Visit/Repository/VisitRepository.php:73
 Shlinkio\Shlink\Core\Visit\Repository\VisitRepository->visitsIterableForQuery() at /etc/shlink/module/Core/src/Visit/Geolocation/VisitLocator.php:48
 Shlinkio\Shlink\Core\Visit\Geolocation\VisitLocator->locateVisits() at /etc/shlink/module/Core/src/Visit/Geolocation/VisitLocator.php:32
 Shlinkio\Shlink\Core\Visit\Geolocation\VisitLocator->locateVisitsWithEmptyLocation() at /etc/shlink/module/CLI/src/Command/Visit/LocateVisitsCommand.php:114
 Shlinkio\Shlink\CLI\Command\Visit\LocateVisitsCommand->lockedExecute() at /etc/shlink/module/CLI/src/Command/Util/AbstractLockedCommand.php:35
 Shlinkio\Shlink\CLI\Command\Util\AbstractLockedCommand->execute() at /etc/shlink/vendor/symfony/console/Command/Command.php:308
 Symfony\Component\Console\Command\Command->run() at /etc/shlink/vendor/symfony/console/Application.php:1002
 Symfony\Component\Console\Application->doRunCommand() at /etc/shlink/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /etc/shlink/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /etc/shlink/bin/cli:10

visit:locate [-r|--retry] [-a|--all]

I'm not sure how to debug this. I can provide additional data if you'd like.

Can you reproduce this bug ?

Thanks for having a look,
Mickael

@acelaya
Copy link
Member

acelaya commented Oct 18, 2022

It seems to be a bug on the ORM doctrine/orm#10058

They have already fixed it and it cannot be reproduced with the last one. I will bump the dependency version and publish v3.3.2

@acelaya acelaya added this to Shlink Oct 18, 2022
@acelaya acelaya added this to the 3.3.2 milestone Oct 18, 2022
@acelaya acelaya moved this to In review 👀 in Shlink Oct 18, 2022
@acelaya
Copy link
Member

acelaya commented Oct 18, 2022

I have just released v3.3.2, which fixes this. The docker image will be available once this is finished: https://github.com/shlinkio/shlink/actions/runs/3275449409

@acelaya acelaya closed this as completed Oct 18, 2022
Repository owner moved this from In review 👀 to Done ✅ in Shlink Oct 18, 2022
@mikafouenski
Copy link
Contributor Author

Hey @acelaya,

I confirm this works with v3.3.2 ! 🎉

Thanks for taking the time,
Mickael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants