Skip to content

Common Issues

In this section, you will find solutions to common problems you may encounter when self-hosting iHorizon, as well as detailed instructions for resolving them. Whether you are a beginner or an experienced user, these explanations will help you correct your configuration.

If your problem is not listed here, feel free to reach out on our support community or submit a ticket on our GitLab repository.


Could not find Chrome

Affects: Linux, Windows, macOS (old installs only)

iHorizon no longer needs Chrome or Chromium. Every image (captchas, rank and welcome cards, statistics, music cards...) is an SVG template rendered with resvg, bundled with the bot's dependencies: there is no browser to install and no PUPPETEER_EXECUTABLE_PATH to set.

"Could not find Chrome" error in the terminal

If you still see this error, your install is older than the November 2026 update. Update it from the bot's folder:

git pull
bun install

Then restart the bot. You can remove any PUPPETEER_EXECUTABLE_PATH line from your .env file, and uninstall the Chrome or Chromium you added only for iHorizon.

Puppeteer is still listed in package.json

It is only a development dependency, used by the maintainers to export the changelog PDFs. The bot never starts a browser at runtime.


ConfigError at startup

Affects: every install configured with .env

The bot stops right away with a message such as:

ConfigError: BOT_TOKEN is not set: copy .env.example to .env and fill it in
ConfigError: DEV_MODE must be true or false, got "ture"
ConfigError: LAVALINK_URL lavalink.example.com has no password (ws://password@host:port)
ConfigError: DATABASE_URL must be sqlite, json, memory, postgres://... or ws://... (HorizonDB)

A value in .env is missing or mistyped: iHorizon refuses it instead of guessing. The message names the variable; fix it in .env (see Configuration) and start the bot again. Make sure the bot is started from the root of the project, where .env lives.


src/files/config.ts is deprecated

Affects: installs from before the move to .env

The bot still reads your old src/files/config.ts, and warns at every start. Move it into .env once, from the root of the project:

bun run config:env

See Migrating from config.ts for what the command does.


Stale exports (...)

Affects: installs with added, renamed or deleted commands, events or SVG templates

The list of files the shards load (src/exports/) no longer matches the source folders, so the new files are not loaded. Regenerate it, then restart the bot:

bun run gen:exports

If you keep your own changes in Git, commit src/exports/ with them. See Adding or removing commands, events or SVG templates.


database is locked (SQLITE_BUSY)

Affects: SQLite installs from before the November 2026 update

Every shard opens the SQLite database in its own process, and their writes used to collide. The database now runs in WAL mode with a wait on busy writes: update the bot (git pull, then bun install) and restart it. Two new files, db.sqlite-wal and db.sqlite-shm, appear next to db.sqlite: they are normal, see Backing up a SQLite database.


The bot answers every command twice

Affects: every install

Two copies of the bot are running with the same token, for example a bun . left open in a terminal next to the pm2 process, or two pm2 processes. Check with pm2 list and ps aux | grep bun, stop the extra copy, and keep a single pm2 process started with pm2 start pm2.config.cjs: on every start it stops the copies left over from a previous run of the same folder.