Install Joplin server without docker

Hello,

Are there steps I can take to install Joplin server on an lxc container or virtual machine instead of using docker?

You can manually go through the steps in the Docker file. I think there are people who have done this before.

But there's no guide for it. The reason is because it's not a supported setup. But maybe someone who is using such a manual setup has a note they can share on their Joplin server. :wink: Fingers crossed.

When running npm run build, where is tsc expecting to find the tsconfig.json file?

joplin@joplin-server:~$ npm run build

> build
> lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna success run No packages found with the lifecycle script 'build'

> tsc
> lerna run tsc --stream --parallel

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "npm run tsc"
@joplin/lib: > @joplin/lib@2.3.1 tsc
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/tools: > @joplin/tools@2.3.1 tsc
@joplin/tools: > tsc --project tsconfig.json
@joplin/renderer: > @joplin/renderer@2.3.1 tsc
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: > @joplin/server@2.3.7 tsc
@joplin/server: > tsc --project tsconfig.json
@joplin/lib: error TS5058: The specified path does not exist: 'tsconfig.json'.
lerna ERR! npm run tsc exited 1 in '@joplin/lib'
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
joplin@joplin-server:~$ ls -la tsconfig.json
-rw-r--r-- 1 joplin joplin 775 Aug 19 19:18 tsconfig.json
joplin@joplin-server:~$

Did you run npm install first?

Yes, I ran 'npm install --ignore-scripts'

joplin@joplin-server:~$ npm install --ignore-scripts

up to date, audited 1586 packages in 2s

90 packages are looking for funding
  run `npm fund` for details

36 vulnerabilities (26 moderate, 10 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
joplin@joplin-server:~$

Running 'npm install' fails with an error indicating the tsconfig.json file could not be found.

joplin@joplin-server:~$ npm install

> postinstall
> npm run bootstrap --no-ci && npm run build


> bootstrap
> lerna bootstrap --force-local --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 5 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna success Bootstrapped 5 packages

> build
> lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna success run No packages found with the lifecycle script 'build'

> tsc
> lerna run tsc --stream --parallel

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "npm run tsc"
@joplin/lib: > @joplin/lib@2.3.1 tsc
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/renderer: > @joplin/renderer@2.3.1 tsc
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: > @joplin/server@2.3.7 tsc
@joplin/server: > tsc --project tsconfig.json
@joplin/tools: > @joplin/tools@2.3.1 tsc
@joplin/tools: > tsc --project tsconfig.json
@joplin/lib: error TS5058: The specified path does not exist: 'tsconfig.json'.
lerna ERR! npm run tsc exited 1 in '@joplin/lib'
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
npm ERR! code 1
npm ERR! path /home/joplin
npm ERR! command failed
npm ERR! command sh -c npm run bootstrap --no-ci && npm run build

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/joplin/.npm/_logs/2021-08-19T20_21_43_335Z-debug.log
joplin@joplin-server:~$

I have gotten past this error by copying the package directories from the git repo to the home directory of the Joplin user.

I am not able to share notes with another user I created on the server. When attempting to share the notebook, I get a "Forbidden" message in the desktop app and the following error on the console:

2021-08-20 17:37:22: [error] App: 403: GET /api/share_users : Forbidden

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.