-
Trilium Version0.63.3 What operating system are you using?Ubuntu What is your setup?Local (no sync) Operating System VersionUbuntu 18.04 DescriptionToday I can't open Trilium. Here's what I get after I try to run it: trilium No another Trilium process is running. Please help me, cause the data in Trilium is important Error logsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Some other program is using the port, usually a reboot can solve this. Otherwise you need to find which process is using the port and kill it. |
Beta Was this translation helpful? Give feedback.
-
The port is occupied |
Beta Was this translation helpful? Give feedback.
-
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 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 If you haven’t already, a reboot can sometimes clear up stuck ports. Let me know if you need help interpreting the output or editing the config! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
37840 is an ephemeral client port on Linux (as it lies within the range 32768–60999) and should preferably not be used by server applications. Otherwise, clients on the same machine could receive this port randomly by the kernel and cause this conflict. A possible solution would be to select a port based on the platform, and outside the ranges listed here. My |
Beta Was this translation helpful? Give feedback.
-
@eat-correctly , you are absolutely correct about that. Let's track that in #5298. |
Beta Was this translation helpful? Give feedback.
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:
or
sudo netstat -peanut | grep 37840
Look for the PID (process ID) in the output, then you can stop it with:
(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:
Or edit the
config.ini
in your Trilium data directory and set a differentport=
value. …