Сломано обновление списка подписчиков для пользователей.
Issue #21
resolved
Ошибка происходит во время обхода списка подписанных юзеров.
$ php app/console --env=prod point:update:subscriptions
Processing @Alico
Processing @Alinaki
Processing @anymore
Processing @ap-Codkelden
Error while getting subscribers. Skipping.
[2015-10-01 20:28:24] app.ERROR: Error while getting subscribers. {"user_login":"ap-Codkelden","user_id":155,"message":"An exception occurred while executing 'INSERT INTO users.users (id, login, name, created_at) VALUES (?, ?, ?, ?)' with params [1731, \"0xd43df00d\", \"0xd32df00d\", \"2015-10-01 20:28:24\"]:\n\nSQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint \"uniq_338adfc4aa08cb10\"\nDETAIL: Key (login)=(0xd43df00d) already exists.","file":"/home/skobkin/www/point.skobk.in/point-tools/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php","line":91}
Processing @biohazardmonkey
Error while getting subscribers. Skipping.
[2015-10-01 20:28:24] app.ERROR: Error while getting subscribers. {"user_login":"biohazardmonkey","user_id":159,"message":"The EntityManager is closed.","file":"/home/skobkin/www/point.skobk.in/point-tools/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php","line":129}
Processing @dora
Error while getting subscribers. Skipping.
[2015-10-01 20:28:24] app.ERROR: Error while getting subscribers. {"user_login":"dora","user_id":49,"message":"The EntityManager is closed.","file":"/home/skobkin/www/point.skobk.in/point-tools/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php","line":129}
Processing @E23
Error while getting subscribers. Skipping.
[2015-10-01 20:28:24] app.ERROR: Error while getting subscribers. {"user_login":"E23","user_id":810,"message":"The EntityManager is closed.","file":"/home/skobkin/www/point.skobk.in/point-tools/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php","line":129}
...
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment
Закрыто временным фиксом в f7bbe3e и dfc7fb7. Надо будет вернуть индекс обратно и сделать проверку на наличие юзера с таким же логином и обновление его инфы.