TriliumNext Server install #396
-
Hi guys, I realized that my existing Trilium server (on a RaspBerryPi) wasn't using my mapped NAS volume to store data in. So seeing that the TriliumNext version is up and running, I've decided to try that. I've got a shared volume on my NAS at //192.168.10.10/trilium/. I can mount to it outside of docker easy peasy. I've tried this with and without a mount outside of Docker. Doesn't seem to make any difference. I'm using a docker compose file and it looks like this:
Running docker compose up, it all works without error. But it's not using the NAS volume for data storage. The compose stuff for the mount comes from here:
thanks chris |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 18 replies
-
Ok, This is kinda wierd It put the data files in the root of the drive: It it's obviously not mounting the drive |
Beta Was this translation helpful? Give feedback.
-
Ok. One step forward, one step sideways as they say. Did as you suggested. It didn't help that my password was incorrect in docker-compose.yml. Sort all that out and now Trilium is erroring out:
It's writing files to the shared volume as I can see that from the Synology DSM app. Thoughts? |
Beta Was this translation helpful? Give feedback.
-
This is my current docker-compose.yml
|
Beta Was this translation helpful? Give feedback.
-
Ok, Just for fun, I deleted all the Docker stuff, volumes, containers, etc. Mounted the shared folder on the NAS as /mnt/trilium docker-compose.yml looks like this:
It writes the files to /mnt/trilium, but I get the same error. |
Beta Was this translation helpful? Give feedback.
-
I've some other stuff to do right now. So I reset it to write locally so I can access the server in the interim. Let me know what you think. cheers, chris |
Beta Was this translation helpful? Give feedback.
-
It's working on my Raspberry Pi 4B: [perf3ct on homelab-monitor1] ~
» sudo docker run -p 8080:8080 triliumnext/notes:latest
No USER_UID specified, leaving 1000
No USER_GID specified, leaving 1000
(node:9) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Generated session secret
DB not initialized, please visit setup page - http://[your-server-host]:8080 to see instructions on how to initialize Trilium.
DB size: 4 KB
{
"appVersion": "0.90.6-beta",
"dbVersion": 228,
"nodeVersion": "v20.15.1",
"syncVersion": 32,
"buildDate": "2024-09-07T18:36:34Z",
"buildRevision": "7c0d6930fa8f20d269dcfbcbc8f636a25f6bb9a7",
"dataDirectory": "/home/node/trilium-data",
"clipperProtocolVersion": "1.0",
"utcDateTime": "2024-09-07T20:44:20.047Z"
}
CPU model: Cortex-A72, logical cores: 4, freq: 1500 Mhz
Trusted reverse proxy: false
App HTTP server starting up at port 8080
Listening on port 8080
Slow 200 GET /api/health-check with 15 bytes took 14ms
Creating database schema ...
Becca (note cache) load took 1ms
Creating root note ...
Created option "revisionSnapshotTimeInterval" with default value "600"
Created option "protectedSessionTimeout" with default value "600"
Created option "zoomFactor" with default value "1.0"
Created option "overrideThemeFonts" with default value "false"
Created option "mainFontFamily" with default value "theme"
.... Here's what my
|
Beta Was this translation helpful? Give feedback.
-
Okay, So I started this all from scratch. I've followed this guide line by line: https://triliumnext.github.io/Docs/Wiki/apache-proxy-setup.html I've got a domain I'm going to call trilium.yourdomain.com, that I've got certs for in /etc/letsencrypt/live/trilium.yourdomain.com/fullchain.pem When I get to: sudo systemctl restart apache2, I get
typing in: systemctl status apache2.service I get :
I've run into this before and was never able to make this work. This is the /etc/apache2/sites-enabled/trilium.yourdomain.com.conf:
Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Just as a summary, All is not well in Mudville. I cannot get Trilium to connect to either an NFS or CIFS mount, whether done outside of docker or inside. The CIFS mount is broken and the NFS mount has issues with permissions that I'm not able to rectify. Can y'all please fix the CIFS mount issues? Thank you |
Beta Was this translation helpful? Give feedback.
-
Just for laughs, I spun up a brand new RPi instance on a new Pi. This was the process, and results: pi@trilium1:~ $ sudo docker volume create --driver local Error: EACCES: permission denied, mkdir '/home/node/trilium-data/log' Whoever is saying a NFS mount works has some magic dust going. |
Beta Was this translation helpful? Give feedback.
-
@doobes try the SMB mount again, but specify the mount options My full command: mount -t cifs -o credentials=/root/nascreds.txt,nobrl,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,uid=1000,gid=1000 //192.168.2.155/testdataset /home/perf3ct/testmount/ |
Beta Was this translation helpful? Give feedback.
@doobes try the SMB mount again, but specify the mount options
noperm
andnobrl
. That's what made it work for me :)My full command: