You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to follow the update procedure described in the README and try again before opening this issue.
Your Environment
Version used: v4.6.1
Also tried with source on commit dc17bfb. Proposed fix is also based on this revision.
Environment name and version:
Node.js version: v16.5.0
npm version 7.20.1
Operating system and version: ArchLinux
Torrent client and version: rtorrent 0.9.8 (from arch repo)
Summary
Migration from legacy flood immediately fails with exception:
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at destroyUserServices (/usr/local/share/.config/yarn/global/node_modules/flood/dist/index.js:452:201743)
at /usr/local/share/.config/yarn/global/node_modules/flood/dist/index.js:452:96461
at async /usr/local/share/.config/yarn/global/node_modules/flood/dist/index.js:452:61310
at async Promise.all (index 0)
at async Promise.all (index 0)
User.removeUser invokes destroyUserServices, which misses a check if services for that user is not bootstrapped yet.
Adding such check makes the migration run without errors. After one successful migration, running the prebuilt stable version of flood also works fine.
Type: Bug Report
Your Environment
Summary
Migration from legacy flood immediately fails with exception:
Possible Solution
It seems that the migration procedure (userV1 -> userV2) involves removing the old user and re-adding with the new format.
User.removeUser
invokesdestroyUserServices
, which misses a check if services for that user is not bootstrapped yet.Adding such check makes the migration run without errors. After one successful migration, running the prebuilt stable version of flood also works fine.
Steps to Reproduce
~/.local/share/flood/db
,users.db
The text was updated successfully, but these errors were encountered: