Skip to content
Discussion options

You must be logged in to vote

This error happens when something else on your system is using port 37840, not necessarily another Trilium process—apps like Thunderbird, Firefox, or system services (like goa-daemon) can grab it too. To find out what’s using the port, run:

sudo lsof -i :37840

or

sudo netstat -peanut | grep 37840

Look for the PID (process ID) in the output, then you can stop it with:

kill <PID>

(Replace <PID> with the actual number. Be careful not to kill critical system processes.)

If you can’t free up the port or don’t want to close the other app, you can start Trilium on a different port:

TRILIUM_PORT=37740 trilium

Or edit the config.ini in your Trilium data directory and set a different port= value. …

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by eliandoran
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #4695 on October 14, 2025 19:18.