diff --git a/Docker server installation.md b/Docker server installation.md index 0adb0f0..0e04823 100644 --- a/Docker server installation.md +++ b/Docker server installation.md @@ -1,4 +1,4 @@ -Trilium can be run as docker image. This is useful for server deployments. +Trilium can be run as docker image. This is recommended way to deploy Trilium on servers. Docker images are published on docker hub: https://hub.docker.com/r/zadam/trilium/ diff --git a/Packaged server installation.md b/Packaged server installation.md index 685a55e..383783d 100644 --- a/Packaged server installation.md +++ b/Packaged server installation.md @@ -1,4 +1,4 @@ -This is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file. This is the recommended method method on how to install Trilium on your server. +This is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file. ## Steps @@ -7,10 +7,24 @@ This is essentially Trilium sources + node modules + node.js runtime packaged in trilium-linux-x64-server-[VERSION].7z](https://github.com/zadam/trilium/releases/latest) (notice -server suffix) on your server * unpack the archive, e.g. using `p7zip -d trilium-linux-x64-server-[VERSION].7z` * `cd trilium-linux-x64-server` -* `nohup ./trilium.sh &` - * this will start the trilium application in background and keep it running even after your ssh connection disconnects +* `./trilium.sh` * you can open the browser and open http://[your-server-hostname]:8080 and you should see Trilium initialization page +The problem with above steps is that once you close the SSH connection, trilium process is terminated. To avoid that, kill it (with e.g. `CTRL-C`) and run again like this: `nohup ./trilium &` + +## Common issues + +### Outdated glibc + +``` +Error: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /var/www/virtual/.../node_modules/@mlink/scrypt/build/Release/scrypt.node) + at Object.Module._extensions..node (module.js:681:18) + at Module.load (module.js:565:32) + at tryModuleLoad (module.js:505:12) +``` + +If you get an error like this, you need to either upgrade your glibc (typically by upgrading to up to date distribution version) or use some other [[server installation]] method. + ## TLS Don't forget to [[configure TLS|TLS configuration]], which is required for secure usage! \ No newline at end of file diff --git a/Server installation.md b/Server installation.md index adee261..3421aad 100644 --- a/Server installation.md +++ b/Server installation.md @@ -2,8 +2,8 @@ This pages describes installing Trilium on your own server. You might want to do There are three options how to do this, each one with some advantage: -* Recommended: [[Packaged server installation]] -* [[Docker|Docker server installation]] +* Recommended: [[Docker|Docker server installation]] +* [[Packaged server installation]] * [[Manual installation|Manual server installation]] ## Configuration