Troubleshooting

Solutions to common issues when using Rebuttr.

Installation Issues

SQLite compilation errors on install

Cause: Missing build tools required for native module compilation.

Solution: Install platform-specific build tools:

macOS
$ xcode-select --install
Ubuntu/Debian
$ sudo apt-get install build-essential python3
Windows (PowerShell Admin)
> npm install -g windows-build-tools

Permission denied errors

Cause: npm global packages require elevated permissions.

Solution: Fix npm permissions or use a node version manager:

Option 1: Fix npm permissions
$ mkdir ~/.npm-global $ npm config set prefix '~/.npm-global' # Add to ~/.bashrc or ~/.zshrc: export PATH=~/.npm-global/bin:$PATH
Option 2: Use nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash $ nvm install 20 $ nvm use 20

Runtime Issues

Port 3001 already in use

Cause: Another process is using port 3001, or a previous Rebuttr instance didn't shut down properly.

Solution:

Find and kill the process
# Find process using port 3001 $ lsof -i :3001 # Kill the process $ kill -9 <PID> # Or use a different port $ REBUTTR_PORT=3002 rebuttr

Browser doesn't open automatically

Cause: The open command isn't available or the browser can't be detected.

Solution: Manually navigate to http://localhost:3001 in your browser.

Changes not saved between sessions

Cause: Database connection issue or file permissions problem.

Solution:

  1. Check that the data directory exists and is writable:
    Terminal
    $ ls -la ~/Rebuttr/data/
  2. Check the server logs for database errors:
    Terminal
    $ cat /tmp/server.log
  3. Try resetting the database (backup first!):
    Terminal
    $ rm ~/Rebuttr/data/review_platform.db
Warning

Deleting the database file will remove all your saved papers and responses. Export your data first!

AI features Issues

"OpenCode not ready" error

Cause: OpenCode CLI isn't installed or configured properly.

Solution:

  1. Install OpenCode: npm i -g opencode-ai
  2. Configure API key: Run opencode and follow the setup prompts
  3. Restart Rebuttr

Expert discussions not generating

Cause: AI skills not installed or context not loaded.

Solution:

  1. Verify skills are installed:
    Terminal
    $ ls ~/.config/opencode/skill/
  2. Reinstall skills:
    Terminal
    $ npm i -g github:genomewalker/rebuttr
  3. Click "Update Context" in the AI Knowledge panel

"No draft responses found" when exporting

Cause: Comments don't have responses saved yet.

Solution: You need to either:

File Processing Issues

PDF not parsing correctly

Cause: PDF has complex formatting, images, or is a scanned document.

Solution:

Getting Help

Need More Help?

If you can't find a solution here, try the resources below.

Reset Everything

If all else fails, you can completely reset Rebuttr:

Warning

This will delete all your data. Make sure to export and backup your papers first!

Complete Reset (backup data first!)
# Uninstall $ npm uninstall -g rebuttr # Remove data (BACKUP FIRST!) $ rm -rf ~/Rebuttr # Remove skills $ rm -rf ~/.config/opencode/skill/reviewer $ rm -rf ~/.config/opencode/skill/dna_auth $ rm -rf ~/.config/opencode/skill/ecology $ rm -rf ~/.config/opencode/skill/evolution $ rm -rf ~/.config/opencode/skill/virome $ rm -rf ~/.config/opencode/skill/methods # Reinstall $ npm i -g github:genomewalker/rebuttr
Still Having Issues?

Open an issue on GitHub with details about your system and the error messages you're seeing.