[SOLVED] docker-compose installation of TriliumNext fails with trilium-py #1434
-
DescriptionI'm new to the Trilium ecosystem but pretty familiar with Docker. I used a docker-compose.yml to start a Trilium server but then I recognized that project was in maintenance mode, and modified the file (Example 1 below) to use the current TriliumNext Dockerhub container. This worked fine: I could connect via the web GUI and the macOS client. (Trilium server running on Raspberry Pi 5, Ubuntu 24.04. Other Docker containers work fine on that host.) I wanted to export my notes from Joplin, so I dumped them to a folder of *.md files, then used trilium-py to import (Example 2 below). But that failed, as described in Nriver/trilium-py#49. I ultimately found a workaround (let the Python script ask the macOS client to import the files). My requests/questions:
Even though I'm happy (I was able to import my notes), I would like to improve the documentation for future folks. What other troubleshooting information could I provide? Many thanks. Example 1 - docker-compose.yml
Example 2 - trilium-py script
TriliumNext Version0.91.6 What operating system are you using?Other (specify below) What is your setup?Local + server sync Operating System VersionUbuntu 24.04 for server; macOS 15.3 and Firefox web browser Error logsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
PS I am willing to test any new docker-compose.yml or other suggestions. I won't be adding any new notes in Trilium for a week or so, and can easily blow away the installation and restart the Docker container and re-import the notes. Thanks! |
Beta Was this translation helpful? Give feedback.
-
You can find an example file here: |
Beta Was this translation helpful? Give feedback.
-
Do you think this docker-compose.yml file will solve the |
Beta Was this translation helpful? Give feedback.
-
@pano9000 Interim report - I no longer believe this is a docker-compose/trilium-py problem, but it's being caused by my Python IDE. I will report a final result soon. |
Beta Was this translation helpful? Give feedback.
-
Thanks for reminding me. I had to track down two potential failure points to learn which was biting me. The problem turned out to be that PyCharm IDE (PyCharm 2024.3.3 (Community Edition)) does not seem to permit an outbound connection to the TriliumNext server on the local network. (I still don't know why - I have asked over on their support forum.) Running the script with I conclude that the |
Beta Was this translation helpful? Give feedback.
Thanks for reminding me. I had to track down two potential failure points to learn which was biting me.
The problem turned out to be that PyCharm IDE (PyCharm 2024.3.3 (Community Edition)) does not seem to permit an outbound connection to the TriliumNext server on the local network. (I still don't know why - I have asked over on their support forum.)
Running the script with
python3 trilium.py
from the command line works fine. (Both the web GUI and the Trilium macOS app continue to work fine, as well.)I conclude that the
docker-compose
file (listed above in the original post) works as desired. I am marking this as closed and solved. Thanks.