Flood crashes on startup (FreeBSD 13.1)
Type: Bug Report
- [] Try to follow the update procedure described in the README and try again before opening this issue.
Your Environment
- Version used:
- Version 4.7.0
- Environment name and version:
- Node.js version
node --version:v18.13.0 - npm version
npm --version:9.4.2
- Node.js version
- Operating system and version: FreeBSD 13.1-RELEASE
- Torrent client and version: rtorrent 0.9.8
Summary
Flood exits on startup
Expected Behavior
Flood starts
Current Behavior
Flood returns this error:
Flood server 4.7.0 starting on http://127.0.0.1:3000
(node:19248) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
FATAL internal error. Please open an issue.
Uncaught exception: RangeError: File size (2171966202) is greater than 2 GiB
Possible Solution
Steps to Reproduce
- npx flood
Context
I updated from FreeBSD 13.0-RELEASE to 13.1-RELEASE, and it was working on 13.0. I have some files in rtorrent already. It's hard to determine what node/npm combination I was on at the time, since I am using the ports collection (so whatever the version was when I installed the port)
Nevermind, different error. It's got nothing to do with the process bind on http_parser being depcrecated.
FATAL internal error. Please open an issue. Unhandled rejection: undefined
Same error here, directly on startup.
FATAL internal error. Please open an issue. Unhandled rejection: undefined
I couldn't be bothered to investigate the root cause of this, upgrading to @jesec/flood fixes this for me.
Please try latest flood again and paste stack trace
Hello, I found out it is the db causing the crash, the file fiveMinSnapshot.db was indeed larger than 2 gb located in ~/.local/share/flood/db/[db_id]/history, deleted the .db file and crash was gone at startup.