Major breaking change in coming Joplin Server 2.0

Yes, I have it working as my daily driver now. Only thing is, I'm a bit apprehensive about fail-safe not working/supported for Joplin server (@laurent mentioned it in this thread), so I tend to regularly backup everything.

I use it on desktop and mobile too and haven't had any problem so far.

Does the android client work with v2.0.1 of the server?

If not, how can I upgrade it so I can test it out if it's ready?

Yes the pre-release should be working: Releases · laurent22/joplin-android · GitHub

2 Likes

Just made the upgrade - seems to be working fine. Don't know if this is breaking but there's a db error when I click on items in the database web interface (currently in the middle of sync):

The markdown files are showing up fine and it appears to be syncing fine. Could be this goes away after the sync finishes.

@laurent couple of questions.

  1. If I do a manual sync with the desktop version, will the Android client just sync up, no need for a fresh sync?
  2. Is it best I wait for the stable release before attempting sync with the iOS version, or is this currently working?

Once the desktop version has uploaded the items it should work with Android without doing anything special. The client will have to reconcile its data with what's on the server though, so it means downloading everything from it.

  1. Is it best I wait for the stable release before attempting sync with the iOS version, or is this currently working?

Yes, you should wait for the stable version if you plan to use the iOS app. No ETA.

1 Like

Will have the server any ocr to scan the notes in background ?

Doubt it. Since the server supports E2EE, it might not have access to your images/notes at all.

Hello.

Will these types of warnings be posted on the Joplin homepage so we can pay attention when we'll update our joplin installs, or is this forum the right way to stay informed?

By the way, congratulations for your product. I started to use it as a substitute of one web giant note app (One of them ;-)). It has all I was looking for... it's a pity it doesn't appear more in the web pages that compare note apps. IMHO, you're the One :wink:

1 Like

It will be posted on the forum and sometimes GitHub (pinned issue), and possibly on Patreon.

I guess I'm running into errors?
Or maybe I'm doing something wrong?

I downloaded the Portable version of 2:

Joplin 2.0.4 (prod, win32)

Client ID: 276687899d36441eb46bd52726c649f1
Sync Version: 2
Profile Version: 38
Keychain Supported: No

Revision: 87a5f18c7

I set up Joplin Server 2 (the joplin/server:latest image) and put it behind a nginx reverse proxy, connected it to a new (empty) DB.
I've changed the admin pwd, created a new user.

Started the Portable app; deleted initial notes, imported my JEX file with notes (also copied over my plugins. Entered sync config into the desktop app.

When I click "Check sync config" in the Options, I get this error:

Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:

Not allowed: PUT (Code 400)
When I ignore it, I get similar errors.

At first I thought maybe my reverse proxy isn't doing what it should, but no - the requests do get into the container. These are the logs:

joplinserver_1  | 2021-06-06 20:07:52: [error] App: 404: GET /api/items/root:/locks/*:/children : Path n
ot found: api/items/root:/locks/*:/children
joplinserver_1  | 2021-06-06 20:07:52: App: DELETE /api/items/root:/locks/exclusive_desktop_276687899d36
441eb46bd52726c649f1.json:
joplinserver_1  | 2021-06-06 20:07:52: [error] App: 400: DELETE /api/items/root:/locks/exclusive_desktop
_276687899d36441eb46bd52726c649f1.json: : Not allowed: DELETE
joplinserver_1  | 2021-06-06 20:07:56: App: DELETE /api/items/root:/locks/exclusive_desktop_276687899d36
441eb46bd52726c649f1.json:
joplinserver_1  | 2021-06-06 20:07:56: [error] App: 400: DELETE /api/items/root:/locks/exclusive_desktop
_276687899d36441eb46bd52726c649f1.json: : Not allowed: DELETE
joplinserver_1  | 2021-06-06 20:08:03: App: DELETE /api/items/root:/locks/exclusive_desktop_276687899d36
441eb46bd52726c649f1.json:
joplinserver_1  | 2021-06-06 20:08:03: [error] App: 400: DELETE /api/items/root:/locks/exclusive_desktop
_276687899d36441eb46bd52726c649f1.json: : Not allowed: DELETE
joplinserver_1  | 2021-06-06 20:08:13: App: DELETE /api/items/root:/locks/exclusive_desktop_276687899d36
441eb46bd52726c649f1.json:
joplinserver_1  | 2021-06-06 20:08:13: [error] App: 400: DELETE /api/items/root:/locks/exclusive_desktop
_276687899d36441eb46bd52726c649f1.json: : Not allowed: DELETE
joplinserver_1  | 2021-06-06 20:08:13: App: GET /api/share_users
joplinserver_1  | 2021-06-06 20:08:13: [error] App: 404: GET /api/share_users : Path not found: api/shar
e_users

Sometimes, similar errors with the PUT verb show up.

Confused. What do?

I had the same error when I've accidentally installed Joplin Server v1 instead of v2. So make sure you get server/2.0.x-beta and not server/latest (which is still v1).

2 Likes

Aaah! Thanks. I went according to this:

and missed that it's the wrong one. :sweat_smile: Sorry.

Just made the switch from Nextcloud to the Joplin server. Everything seems to be working perfectly.

However, when first syncing three of my devices with the new sync target I forgot to select "Delete local data and re-download from sync target" on devices 2 and 3. Now when syncing new devices it has to fetch 3x the number of items. There are no duplicate notes or notebooks and everything is working as expected but syncing takes slightly longer now. Is this something to worry about?

Another thing I was wondering about is the "Items" and "Log" sites on the server web fronted which are empty on my instance (see image below).


Is the table supposed to be populated?

Weeelll, the 2.0 seem to work without major glitches... but now I kinda miss my Android app.
If I try copying over the 2.0 APK and installing it, will it replace the old one?
(That's what I'd like, so that I wouldn't have to re-download everything.)

I believe so, yes

Yes it will, it has the same signature as the Play Store app.

1 Like

Hello,
first of all, thanks for this very usefull software :slight_smile:
I've been used the server version 1 for few months without problems.
I decides to update to vers2 but I have an error 400.

I use desktop app vers 1.8.5 (linux)
and this is the docker conf i use (which work perfectly with server v1) :

docker run --detach \
    --name joplin-db2 \
    --restart unless-stopped \
    --volume joplin-db2:/var/lib/postgresql/data \
    --network nginx-proxy \
    -e POSTGRES_PASSWORD=xxxxxxxxxxxx \
    -e POSTGRES_USER=joplin \
    -e POSTGRES_DB=joplin \
    -e PGDATA=/var/lib/postgresql/data/pgdata \
    postgres:13.1

docker run -d  \
  --expose 22300  \
  --env "APP_PORT=22300" \
  --env "APP_BASE_URL=https://joplin.xxxxxx.com" \
  --volume joplin2_data:/data \
  --network nginx-proxy \
  --env "DB_CLIENT=pg" \
  --env "POSTGRES_PASSWORD=xxxxxxxxxxxx" \
  --env "POSTGRES_DATABASE=joplin" \
  --env "POSTGRES_USER=joplin" \
  --env "POSTGRES_PORT=5432" \
  --env "POSTGRES_HOST=joplin-db2" \
  --env "VIRTUAL_PORT=22300"  \
  --env "VIRTUAL_HOST=joplin.xxxxxx.com" \
  --env "LETSENCRYPT_HOST=joplin.xxxxxx.com" \
  --env "LETSENCRYPT_EMAIL=xxxx@xxxxxx.com" \
  --name joplin2 \
  --restart unless-stopped \
  joplin/server:2.0.6-beta

This is a client configuration and the error 400 :

In docker logs I see :

2021-06-11 08:07:40: App: POST /api/sessions (305ms)
2021-06-11 08:07:40: [error] App: 400: POST /api/files/root:/:/children : Not allowed: POST 
2021-06-11 08:07:40: App: POST /api/files/root:/:/children (1ms)

The curl test of API says ok, server is running...
Any idea ?
Thanks in advance

Joplin v1 clients won't be compatible with Joplin Server v2. You can use any of the v2 pre-releases from here: https://github.com/laurent22/joplin/releases