Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joplin-Server not allowed #4366

Closed
linuxbuh opened this issue Jan 15, 2021 · 0 comments
Closed

Joplin-Server not allowed #4366

linuxbuh opened this issue Jan 15, 2021 · 0 comments
Labels
bug It's a bug

Comments

@linuxbuh
Copy link

Good day.
I installed the server according to the instructions joplin/README.md at dev · laurent22/joplin · GitHub

.env
JOPLIN_BASE_URL https://192.168.1.7/joplin
JOPLIN_PORT 22300

build log
Step 11/31 : RUN npm install --ignore-scripts
---> Running in fdb2619911f3
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/f
sevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x6
4"})

added 1148 packages from 781 contributors and audited 1153 packages in 27.569s

59 packages are looking for funding
run npm fund for details

found 14 low severity vulnerabilities
run npm audit fix to fix them, or npm audit for details
Removing intermediate container fdb2619911f3
---> 5828f8366d27
Step 12/31 : COPY --chown=$user:$user packages/fork-sax/package*.json ./package
s/fork-sax/
---> 5dd72df4c696
Step 13/31 : COPY --chown=$user:$user packages/lib/package*.json ./packages/lib
/
---> 0d41f9d55730
Step 14/31 : COPY --chown=$user:$user packages/renderer/package*.json ./package
s/renderer/
---> 67fd22a58bc2
Step 15/31 : COPY --chown=$user:$user packages/tools/package*.json ./packages/t
ools/
---> 05bc4de6ac69
Step 16/31 : COPY --chown=$user:$user packages/server/package*.json ./packages/
server/
---> cc3716fb27a6
Step 17/31 : COPY --chown=$user:$user lerna.json .
---> ce44b927a694
Step 18/31 : COPY --chown=$user:$user tsconfig.json .
---> 9ae80aa1c890
Step 19/31 : COPY --chown=$user:$user packages/turndown ./packages/turndown
---> 1677cbcfc388
Step 20/31 : COPY --chown=$user:$user packages/turndown-plugin-gfm ./packages/t
urndown-plugin-gfm
---> 72d956732a65
Step 21/31 : COPY --chown=$user:$user packages/fork-htmlparser2 ./packages/fork
-htmlparser2
---> 3b45e4f060e8
Step 22/31 : RUN ls -la /home/$user
---> Running in 63c7350512ef
total 460
drwxr-xr-x 1 joplin joplin 4096 Jan 15 02:07 .
drwxr-xr-x 1 root root 4096 Jan 15 02:06 ..
-rw-r--r-- 1 joplin joplin 220 May 15 2017 .bash_logout
-rw-r--r-- 1 joplin joplin 3526 May 15 2017 .bashrc
drwx------ 3 joplin joplin 4096 Jan 15 02:06 .config
drwxr-xr-x 4 joplin joplin 4096 Jan 15 02:07 .npm
-rw-r--r-- 1 joplin joplin 675 May 15 2017 .profile
-rw-r--r-- 1 joplin joplin 69 Jan 15 02:02 lerna.json
drwxr-xr-x 2 joplin joplin 4096 Jan 15 02:06 logs
drwxr-xr-x 722 joplin joplin 20480 Jan 15 02:07 node_modules
-rw-r--r-- 1 joplin joplin 397762 Jan 15 02:02 package-lock.json
-rw-r--r-- 1 joplin joplin 3469 Jan 15 02:02 package.json
drwxr-xr-x 1 joplin joplin 4096 Jan 15 02:08 packages
-rw-r--r-- 1 joplin joplin 775 Jan 15 02:02 tsconfig.json
Removing intermediate container 63c7350512ef
---> 1920f4c5d292
Step 23/31 : RUN npm run bootstrap
---> Running in 000b9414b444

root@ bootstrap /home/joplin
lerna bootstrap --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 8 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna info lifecycle @joplin/[email protected]prepare: @joplin/fork-html
[email protected]
lerna info lifecycle @joplin/[email protected]
prepare: @joplin/turndo
[email protected]
lerna info lifecycle @joplin/[email protected]~prepare: @joplin/[email protected]

@joplin/[email protected] prepare /home/joplin/packages/fork-htmlparser
2
npm run build

@joplin/[email protected] build /home/joplin/packages/fork-htmlparser2
tsc

@joplin/[email protected] prepare /home/joplin/packages/turndown-plu
gin-gfm
npm run build

@joplin/[email protected] build /home/joplin/packages/turndown-plugi
n-gfm
rollup -c config/rollup.config.cjs.js

src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
created lib/turndown-plugin-gfm.cjs.js in 68ms

@joplin/[email protected] prepare /home/joplin/packages/turndown
npm run build

@joplin/[email protected] build /home/joplin/packages/turndown
rollup -c config/rollup.config.cjs.js

src/turndown.js → lib/turndown.cjs.js...
created lib/turndown.cjs.js in 305ms
lerna success Bootstrapped 8 packages
Removing intermediate container 000b9414b444
---> a02f88cb7c11
Step 24/31 : COPY --chown=$user:$user packages/fork-sax ./packages/fork-sax
---> f5012bb779eb
Step 25/31 : COPY --chown=$user:$user packages/lib ./packages/lib
---> 003a4d567b73
Step 26/31 : COPY --chown=$user:$user packages/renderer ./packages/renderer
---> af3b7c308f6a
Step 27/31 : COPY --chown=$user:$user packages/tools ./packages/tools
---> 969832c33e3c
Step 28/31 : COPY --chown=$user:$user packages/server ./packages/server
---> 1d698c95882e
Step 29/31 : RUN npm run build
---> Running in e8a324f7f576

root@ build /home/joplin
lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 3 packages: "npm run build"
lerna info run Ran npm script 'build' in '@joplin/turndown-plugin-gfm' in 0.6s:

@joplin/[email protected] build /home/joplin/packages/turndown-plugi
n-gfm
rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/turndown' in 1.0s:

@joplin/[email protected] build /home/joplin/packages/turndown
rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/fork-htmlparser2' in 5.1s:

@joplin/[email protected] build /home/joplin/packages/fork-htmlparser2
tsc

lerna success run Ran npm script 'build' in 3 packages in 5.1s:
lerna success - @joplin/fork-htmlparser2
lerna success - @joplin/turndown-plugin-gfm
lerna success - @joplin/turndown

root@ tsc /home/joplin
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/[email protected] tsc /home/joplin/packages/lib
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: > @joplin/[email protected] tsc /home/joplin/packages/server
@joplin/server: > tsc --project tsconfig.json
@joplin/tools: > @joplin/[email protected] tsc /home/joplin/packages/tools
@joplin/tools: > tsc --project tsconfig.json
@joplin/renderer: > @joplin/[email protected] tsc /home/joplin/packages/renderer
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.jso
n
lerna success run Ran npm script 'tsc' in 4 packages in 8.3s:
lerna success - @joplin/lib
lerna success - @joplin/renderer
lerna success - @joplin/server
lerna success - @joplin/tools
Removing intermediate container e8a324f7f576
---> b7e6e107b262
Step 30/31 : EXPOSE ${JOPLIN_PORT}
---> Running in 9afa2e156aaa
Removing intermediate container 9afa2e156aaa
---> 1979b322f284
Step 31/31 : CMD [ "npm", "--prefix", "packages/server", "start" ]
---> Running in d25ddf03ade7
Removing intermediate container d25ddf03ade7
---> f2d65f24fc9d

Successfully built f2d65f24fc9d
Successfully tagged joplin_app:latest
WARNING: Image for service app was built because it did not already exist. To r
ebuild this image you must use docker-compose build or docker-compose up --b uild.
Building db
Step 1/2 : FROM postgres:13.1
13.1: Pulling from library/postgres
a076a628af6f: Pull complete
d54fa0e0eb76: Pull complete
8950a7ea6876: Pull complete
1cc02b1df09e: Pull complete
06f548e51228: Pull complete
74665692d4ea: Pull complete
235e34eb13ab: Pull complete
4ad7ef5e2e79: Pull complete
76670339b0f8: Pull complete
496fa0539f99: Pull complete
f32ecbdf3b52: Pull complete
7536b8fe81ac: Pull complete
71dfc17927aa: Pull complete
fd48bac409bb: Pull complete
Digest: sha256:ec74afc9fa969a235462c27017a3fe73a05c9d4725d7e4afbe2ba6eb82fdfc87
Status: Downloaded newer image for postgres:13.1
---> acf5fb8bfd76
Step 2/2 : EXPOSE 5432
---> Running in 4d5ff6ba79ee
Removing intermediate container 4d5ff6ba79ee
---> 9151db4f1e83

Successfully built 9151db4f1e83
Successfully tagged joplin_db:latest
WARNING: Image for service db was built because it did not already exist. To re
build this image you must use docker-compose build or docker-compose up --bu ild.
Creating joplin_db_1 ... done
Creating joplin_app_1 ... done

RUNING LOG
docker-compose --file docker-compose.server.yml logs
Attaching to joplin_app_1, joplin_db_1
app_1 |
app_1 | > @joplin/[email protected] start /home/joplin/packages/server
app_1 | > node dist/app.js
app_1 |
app_1 | 2021-01-15 02:13:14: App: Starting server (prod) on port 22300 and PID19...
app_1 | 2021-01-15 02:13:14: App: Public base URL: https://192.168.1.7/joplin
app_1 | 2021-01-15 02:13:14: App: DB Config: {
app_1 | client: 'pg',
app_1 | name: 'joplin',
app_1 | user: 'joplin',
app_1 | host: 'db',
app_1 | port: 5432,
app_1 | password: 'joplin'
app_1 | }
app_1 | 2021-01-15 02:13:14: App: Trying to connect to database...
app_1 | 2021-01-15 02:13:14: db: Could not connect. Will try again. connect ECONNREFUSED 172.18.0.2:5432
app_1 | 2021-01-15 02:13:15: db: Could not connect. Will try again. connect ECONNREFUSED 172.18.0.2:5432
app_1 | 2021-01-15 02:13:16: App: Connection check: { latestMigration: null, isCreated: false, error: null }
app_1 | 2021-01-15 02:13:16: App: Migrating database...
app_1 | 2021-01-15 02:13:19: App: Call this for testing: curl https://192.168.1.7/joplin/api/ping
app_1 | 2021-01-15 02:13:25: App: GET /
app_1 | 2021-01-15 02:13:25: [error] App: 403: GET / : Directory listing not allowed:
app_1 | 2021-01-15 02:20:45: App: GET /
app_1 | 2021-01-15 02:20:45: [error] App: 403: GET / : Directory listing not allowed:
app_1 |
app_1 | > @joplin/[email protected] start /home/joplin/packages/server
app_1 | > node dist/app.js
app_1 |
app_1 | 2021-01-15 02:25:43: App: Starting server (prod) on port 22300 and PID18...
app_1 | 2021-01-15 02:25:43: App: Public base URL: https://192.168.1.7/joplin
app_1 | 2021-01-15 02:25:43: App: DB Config: {
app_1 | client: 'pg',
app_1 | name: 'joplin',
app_1 | user: 'joplin',
app_1 | host: 'db',
app_1 | port: 5432,
app_1 | password: 'joplin'
app_1 | }
app_1 | 2021-01-15 02:25:43: App: Trying to connect to database...
app_1 | 2021-01-15 02:25:43: App: Connection check: {
app_1 | latestMigration: { name: '20190913171451_create.js' },
app_1 | isCreated: true,
app_1 | error: null
app_1 | }
app_1 | 2021-01-15 02:25:43: App: Migrating database...
app_1 | 2021-01-15 02:25:43: App: Call this for testing: curl https://192.168.1.7/joplin/api/ping
app_1 | 2021-01-15 02:39:49: App: GET /
app_1 | 2021-01-15 02:39:49: [error] App: 403: GET / : Directory listing not allowed:
db_1 | The files belonging to this database system will be owned by user "postgres".
db_1 | This user must also own the server process.
db_1 |
db_1 | The database cluster will be initialized with locale "en_US.utf8".
db_1 | The default database encoding has accordingly been set to "UTF8".
db_1 | The default text search configuration will be set to "english".
db_1 |
db_1 | Data page checksums are disabled.
db_1 |
db_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1 | creating subdirectories ... ok
db_1 | selecting dynamic shared memory implementation ... posix
db_1 | selecting default max_connections ... 100
db_1 | selecting default shared_buffers ... 128MB
db_1 | selecting default time zone ... Etc/UTC
db_1 | creating configuration files ... ok
db_1 | running bootstrap script ... ok
db_1 | performing post-bootstrap initialization ... ok
db_1 | syncing data to disk ... ok
db_1 |
db_1 |
db_1 | Success. You can now start the database server using:
db_1 |
db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1 |
db_1 | initdb: warning: enabling "trust" authentication for local connections
db_1 | You can change this by editing pg_hba.conf or using the option -A, or
db_1 | --auth-local and --auth-host, the next time you run initdb.
db_1 | waiting for server to start....2021-01-15 02:13:14.378 UTC [46] LOG: starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-01-15 02:13:14.527 UTC [46] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-01-15 02:13:14.779 UTC [47] LOG: database system was shut down at 2021-01-15 02:13:12 UTC
db_1 | 2021-01-15 02:13:14.806 UTC [46] LOG: database system is ready to accept connections
db_1 | done
db_1 | server started
db_1 | CREATE DATABASE
db_1 |
db_1 |
db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1 |
db_1 | waiting for server to shut down...2021-01-15 02:13:15.577 UTC [46] LOG: received fast shutdown request
db_1 | .2021-01-15 02:13:15.603 UTC [46] LOG: aborting any active transactions
db_1 | 2021-01-15 02:13:15.604 UTC [46] LOG: background worker "logical replication launcher" (PID 53) exited with exit code 1
db_1 | 2021-01-15 02:13:15.605 UTC [48] LOG: shutting down
db_1 | 2021-01-15 02:13:15.744 UTC [46] LOG: database system is shut down
db_1 | done
db_1 | server stopped
db_1 |
db_1 | PostgreSQL init process complete; ready for start up.
db_1 |
db_1 | 2021-01-15 02:13:15.847 UTC [1] LOG: starting PostgreSQL 13.1 (Debian13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-01-15 02:13:15.848 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2021-01-15 02:13:15.848 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2021-01-15 02:13:16.081 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-01-15 02:13:16.131 UTC [74] LOG: database system was shut down at 2021-01-15 02:13:15 UTC
db_1 | 2021-01-15 02:13:16.158 UTC [1] LOG: database system is ready to accept connections
db_1 | 2021-01-15 02:13:16.415 UTC [81] ERROR: relation "knex_migrations" does not exist at character 20
db_1 | 2021-01-15 02:13:16.415 UTC [81] STATEMENT: select "name" from "knex_migrations" order by "id" asc limit $1
db_1 | 2021-01-15 02:25:36.943 UTC [1] LOG: received fast shutdown request
db_1 | 2021-01-15 02:25:36.993 UTC [1] LOG: aborting any active transactions
db_1 | 2021-01-15 02:25:36.995 UTC [1] LOG: background worker "logical replication launcher" (PID 80) exited with exit code 1
db_1 | 2021-01-15 02:25:36.996 UTC [75] LOG: shutting down
db_1 | 2021-01-15 02:25:37.107 UTC [1] LOG: database system is shut down
db_1 |
db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1 |
db_1 | 2021-01-15 02:25:43.009 UTC [1] LOG: starting PostgreSQL 13.1 (Debian13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2021-01-15 02:25:43.009 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_1 | 2021-01-15 02:25:43.009 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_1 | 2021-01-15 02:25:43.099 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1 | 2021-01-15 02:25:43.166 UTC [26] LOG: database system was shut down at 2021-01-15 02:25:37 UTC
db_1 | 2021-01-15 02:25:43.195 UTC [1] LOG: database system is ready to accept connections

I go to the server http://192.168.1.7:22300/
in response to me
Directory listing not allowed:
Back to the login page

I follow the link Back to the login page
in response to me
Unable to access site Site 192.168.1.7 does not allow connection.
Try the following:

Check your internet connection.
Check your proxy and firewall settings.

I`m Running NGINX

in response to me
Page unavailable Site 192.168.1.7 did not send data.

Tell me what I'm doing wrong. How to start the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

2 participants