Installation Issues

Node.js not found

Problem: Command not found error when running npm commands

Solution: Install Node.js 22.16 or newer from nodejs.org, or use a version manager like nvm

# Install using nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install --lts
nvm use --lts

Dependency installation fails

Problem: npm install fails with errors

Solution: Try clearing npm cache and reinstalling

npm cache clean --force
rm -rf node_modules package-lock.json
npm install

Electron installation fails

Problem: Electron binary download fails

Solution: Set Electron mirror or use proxy

# Set Electron mirror
export ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/

# Or use proxy
export ELECTRON_MIRROR=https://ghproxy.com/

Server Issues

Server won't start

Problem: Server fails to start on specified port

Solution: Check if port is already in use

# Check port usage (defaults: SFTP 2222, FTP 2121, web GUI 3000)
ss -tlnp | grep -E ':(2222|2121|3000)\b'

# Stop whatever holds the port, or pick another port with Listeners → Edit

Ports below 1024 (such as 21 and 22) need administrator rights on Linux and macOS; SLightSFTP uses 2121 and 2222 by default so it can run as a normal user.

Connection refused

Problem: Clients cannot connect to the server

Solution: Check firewall settings and binding address

# Check firewall status
sudo ufw status

# Allow ports
sudo ufw allow 2222/tcp   # SFTP
sudo ufw allow 2121/tcp   # FTP (plus the passive port range, if you use FTP)

# Ensure server is bound to correct IP
# Use 0.0.0.0 for all interfaces

Authentication fails

Problem: Users cannot authenticate

Solution: Verify user credentials and authentication method

  • Check username and password are correct
  • Verify user is subscribed to the correct listener
  • For SFTP, check public key format
  • Ensure authentication method is enabled

Performance Issues

Slow file transfers

Problem: File transfer speeds are slow

Solution: Check network and system resources

  • Check network bandwidth and latency
  • Verify disk I/O performance
  • Check system resources (CPU, memory)
  • Consider increasing buffer sizes

High memory usage

Problem: Application uses excessive memory

Solution: Monitor connections and database size

  • Check number of active connections
  • Review database size and optimize if needed
  • Restart application periodically
  • Check for memory leaks in logs

GUI Issues

GUI won't open

Problem: Electron window fails to open

Solution: Check display environment and dependencies

# Check display environment
echo $DISPLAY

# On Linux, ensure X11 is running
# On Windows, ensure no display scaling issues

# Try running in dev mode for error details
npm run dev

Database errors in GUI

Problem: GUI shows database connection errors

Solution: Verify database file and permissions

# Check database file exists
ls -la config.db

# Check file permissions
chmod 644 config.db

# Test database integrity
sqlite3 config.db "PRAGMA integrity_check;"

Permission Issues

Access denied errors

Problem: Users get access denied for files

Solution: Check virtual path mappings and permissions

  • Verify virtual path mapping is correct
  • Check real path exists and is accessible
  • Review user permissions for the path
  • Check filesystem permissions on real path

Path not found errors

Problem: Users cannot access configured paths

Solution: Verify path configuration and existence

  • Ensure real directory exists
  • Check virtual path format (should start with /)
  • Verify user is subscribed to correct listener
  • Check for typos in path configuration

Certificate Issues

Let's Encrypt: "Validation of … failed"

  • The domain must resolve (public DNS) to this server's public address.
  • Port 80 must reach SLightSFTP from the internet: open it in the firewall and forward it on the router.
  • "not listening on port 80 for challenges" in the log: another program uses port 80, or the process may not bind it. Forward port 80 to the web server port instead and set Challenge port to 0.
  • Too many failed attempts hit Let's Encrypt's rate limits: test with Let's Encrypt staging.

Browsers still show the old certificate

The web GUI uses it only with HTTPS on (Listeners → Web GUI Server). Renewed certificates apply to new connections; reload the page.

Single Sign-On and Email Issues

Single sign-on: "redirect URI mismatch" at the provider

Register exactly the Redirect URI shown under Security → Single Sign-On. Behind a proxy or on a different host name, first set Public address of this server so that the URI matches what browsers use.

Single sign-on: "… has no SLightSFTP account"

The name shown came from the chosen username claim. Create a user with that name, or tick Ignore the domain, or choose another claim. The user also needs GUI access (web GUI) or web file access (portal).

Single sign-on: "The ID token has expired" or "… from the future"

The server's clock is wrong. Synchronise it with NTP.

Email: "535 Authentication failed" or nothing arrives

  • Use Send test email on the card. It shows the mail server's answer.
  • Microsoft 365 needs SMTP AUTH enabled for the mailbox. Gmail needs an app password.
  • STARTTLS normally uses port 587 and TLS port 465. A certificate error with an internal relay: untick Verify, or use the relay's real name.
  • The last result is on the card, and failures are logged as EMAIL_FAILED.

WebDAV Issues

Windows cannot map the drive, or keeps asking for the password

  • Use https://: the Windows WebClient sends passwords only over HTTPS with a certificate it trusts.
  • Check Listeners → WebDAV is ticked and the user has web file access.
  • Two-factor accounts cannot use WebDAV; give a separate account to the device.
  • Make sure the WebClient service is running (sc query webclient).

Large files fail to copy from Windows

The WebClient service limits files to 50 MB by default. Raise HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\FileSizeLimitInBytes and restart the service.

Getting Help

Community Support

  • GitHub Issues: Report bugs and request features
  • Documentation: Check the documentation sections for detailed guides
  • Logs: Check application logs for detailed error information

Debug Mode

Enable debug logging with the LOG_LEVEL environment variable (error, warn, info (default), http, verbose, debug):

# desktop app from source
LOG_LEVEL=debug npm start

# headless server
LOG_LEVEL=debug node dist/web-only.js