SSL Problem with Sync Server

18 views
Skip to first unread message

info.sim...@googlemail.com

unread,
Nov 7, 2023, 3:10:21 PM11/7/23
to Notecase Pro
After some time I tried to use NcSyncServer again.
Environment is
Server Ubuntu 20.04 - NCP Version 4.7.6
only accessible with SSL / HTTPS

Client Ubuntu 22.04 - NCP Version 4.76

I can start NcSyncServer without any error in the terminal.

When I test the connection in the client I get a "SSL Handshake Error" with the first attempt and a "Read error" when I try again. The pattern continues with any further attempt.

Anyone any Idea? I am not a security expert and usually I sync using Nextcloud but for one of my clients I canÄt install Nextcloud - hence trying to reactivate NcSyncServer ;-)

Thanks
Raimund

info.sim...@googlemail.com

unread,
Nov 7, 2023, 3:13:16 PM11/7/23
to Notecase Pro
here's the terminal info when starting NcSyncAdmin on the client and trying to connect
21:10:59.265 Closing file descriptor 11 [/home/raimund/.notecase/userdb.ini]
21:11:17.103 Sync::Login
21:11:17.135 Error: SSL handshake error: error:0A000102:SSL routines::unsupported protocol
21:11:17.135 SSL handshake failed
21:11:17.135 Sync: connection failed
^C21:11:32.009 VERSION INFO: NcSyncAdmin 4.7.6
21:11:32.009 Crashed on: 2023.11.07 21:11:32 (signal: 2, SIGINT)
21:11:32.009 Build INFO: Linux (64-bit) [Built on: Nov  3 2023 15:25:19]
21:11:32.009 OS: Ubuntu 22.04.3 LTS
21:11:32.009 GTK version used: 3.24.33, compiled: 3.24.33
21:11:32.009 Crash backtrace:
------------------

21:11:32.017 NcSyncAdmin(signal_handler+0x1d) [0x5636f5e15bcd] (signal_handler())[unknown:0]
21:11:32.025 /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f2bf3683520] ()[unknown:0]
21:11:32.033 /lib/x86_64-linux-gnu/libc.so.6(__poll+0x4f) [0x7f2bf3759dbf] (__poll())[unknown:0]
21:11:32.037 /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xab1f6) [0x7f2bf3c491f6] ()[unknown:0]
21:11:32.045 /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x73) [0x7f2bf3bf32b3] (g_main_loop_run())[unknown:0]
21:11:32.049 /lib/x86_64-linux-gnu/libgtk-3.so.0(gtk_main+0x9d) [0x7f2bf42f9cfd] (gtk_main())[unknown:0]
21:11:32.053 NcSyncAdmin(main+0x28d) [0x5636f5d5530d] (main())[unknown:0]
21:11:32.061 /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f2bf366ad90] ()[unknown:0]
21:11:32.065 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f2bf366ae40] (__libc_start_main())[unknown:0]
21:11:32.073 NcSyncAdmin(_start+0x25) [0x5636f5d55d65] (_start())[unknown:0]
21:11:32.073
------------------
21:11:32.073 Closing file descriptor 15 [/home/raimund/.notecase/notecasepro_crash_231107_211059.log]

Miroslav Rajcic

unread,
Nov 8, 2023, 6:56:31 AM11/8/23
to Notecase Pro
Hi Raimund,

thanks for the report.
It could be that server and admin use different versions of OpenSSL or some protocol version is not supported anymore, would need to check.
Are both sync server and sync admin started from the same PC?

Regards,
  Miro


From: 'info.sim...@googlemail.com' via Notecase Pro <noteca...@googlegroups.com>
Sent: Tuesday, November 7, 2023 9:13 PM
To: Notecase Pro <noteca...@googlegroups.com>
Subject: Re: SSL Problem with Sync Server
 
--
You received this message because you are subscribed to the Google Groups "Notecase Pro" group.
To unsubscribe from this group and stop receiving emails from it, send an email to notecase-pro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/notecase-pro/8718fd8c-8329-4a3e-b0be-4e1df5e4e85dn%40googlegroups.com.

Miroslav Rajcic

unread,
Nov 9, 2023, 11:41:56 AM11/9/23
to Notecase Pro
I've tested on Fedora 39 and things work fine here:
  • started both sync server and sync admin within the same VM, each in its own terminal
  • used default admin password ("notecase")
  • connection succeeded, no crash
I plan to download, install and test with Ubuntu 22.04, but I still need the answers to my previous email.
The more details I have, the better.

Regards,
  Miro


From: noteca...@googlegroups.com <noteca...@googlegroups.com> on behalf of Miroslav Rajcic <mra...@hotmail.com>
Sent: Wednesday, November 8, 2023 12:56 PM

Miroslav Rajcic

unread,
Nov 9, 2023, 2:00:35 PM11/9/23
to Notecase Pro
Tested on Ubuntu 22.04.03 as well, both server and admin running in the same VM, all works OK here (logs from both terminals below, SSL read is due to closing admin app).

Regards,
  Miro

miro@miro-VirtualBox:~/notecase_pro$ NcSyncServer
19:46:11.252 Success decrypting the license file (read 190)
19:46:11.252 > Loaded license: /home/miro/.notecase/notecase.nckey
19:46:11.252 > No certificate found at: /home/miro/.notecase/server.pem!
19:46:11.252 > Generating new certificate(2048-bit RSA key) ...
19:46:11.472 > NcSyncServer (TLS) started on port: 57201 (API v2)
19:46:11.472 > Certificate fingerprint (SHA1):
                64:20:5b:9c:dc:4d:ed:56:26:b8:bd:62:4e:c7:0d:f5:e6:16:fb:17
19:46:11.472 > Start serving on following network interfaces:
19:46:11.472    127.0.0.1
19:46:11.472    10.0.2.15
19:46:11.472 > Hostname: miro-VirtualBox
19:49:01.974 POST /login
19:49:01.974 200 OK
19:49:02.026 GET /user/list (admin)
19:49:02.026 200 OK
19:49:02.026 GET /document/list (admin)
19:49:02.026 200 OK
19:49:17.031 GET /document/list (admin)
19:49:17.031 200 OK
19:49:32.043 GET /document/list (admin)
19:49:32.047 200 OK
19:49:37.996 SSL read error: 1 (error:00000001:lib(0)::reason(1))

_______________________

miro@miro-VirtualBox:~/notecase_pro$ NcSyncAdmin
19:49:01.962 Sync::Login
19:49:01.970 Sync: Connected over new socket
19:49:01.970 Sync::Login send request
19:49:01.974 Write 336 bytes to socket: 13 (really sent: 336)
19:49:01.974 Read up to 16383 bytes, socket: 13
19:49:02.018 Read 142 bytes (142 total, socket: 13)
19:49:02.018 Read 142 bytes total, got full HTTP header (142), socket: 13
19:49:02.018 No body exists, done reading
19:49:02.018 Done reading HTTP data
19:49:02.018 Sync: got 142 bytes reply
19:49:02.018 HTTP response code: 200
19:49:02.022 Sync::ListUsers
19:49:02.022 Sync: Keep existing socket
19:49:02.026 Write 186 bytes to socket: 13 (really sent: 186)
19:49:02.026 Read up to 16383 bytes, socket: 13
19:49:02.026 Read 186 bytes (186 total, socket: 13)
19:49:02.026 Read 186 bytes total, got full HTTP header (119), socket: 13
19:49:02.026 Detected body size 67 bytes, to read 0 bytes, chunked=0
19:49:02.026 Done reading HTTP data
19:49:02.026 Sync: got 186 bytes reply
19:49:02.026 HTTP response code: 200

(NcSyncAdmin:21622): Gtk-WARNING **: 19:49:02.029: ../../../../gtk/gtkliststore.c:1031: Invalid column number 2 added to iter (remember to end your list of columns with a -1)
19:49:02.026 Sync::ListDocuments
19:49:02.026 Sync: Keep existing socket
19:49:02.026 Write 190 bytes to socket: 13 (really sent: 190)
19:49:02.026 Read up to 16383 bytes, socket: 13
19:49:02.026 Read 155 bytes (155 total, socket: 13)
19:49:02.026 Read 155 bytes total, got full HTTP header (119), socket: 13
19:49:02.026 Detected body size 36 bytes, to read 0 bytes, chunked=0
19:49:02.026 Done reading HTTP data
19:49:02.026 Sync: got 155 bytes reply
19:49:02.026 HTTP response code: 200
19:49:17.031 Sync::ListDocuments
19:49:17.031 Sync: Keep existing socket
19:49:17.031 Write 190 bytes to socket: 13 (really sent: 190)
19:49:17.031 Read up to 16383 bytes, socket: 13
19:49:17.031 Read 155 bytes (155 total, socket: 13)
19:49:17.031 Read 155 bytes total, got full HTTP header (119), socket: 13
19:49:17.031 Detected body size 36 bytes, to read 0 bytes, chunked=0
19:49:17.031 Done reading HTTP data
19:49:17.031 Sync: got 155 bytes reply
19:49:17.031 HTTP response code: 200
19:49:32.043 Sync::ListDocuments
19:49:32.043 Sync: Keep existing socket
19:49:32.043 Write 190 bytes to socket: 13 (really sent: 190)
19:49:32.043 Read up to 16383 bytes, socket: 13
19:49:32.047 Read 155 bytes (155 total, socket: 13)
19:49:32.047 Read 155 bytes total, got full HTTP header (119), socket: 13
19:49:32.047 Detected body size 36 bytes, to read 0 bytes, chunked=0
19:49:32.047 Done reading HTTP data
19:49:32.047 Sync: got 155 bytes reply
19:49:32.047 HTTP response code: 200
19:49:37.992 Closing file descriptor 14 [/home/miro/.notecase/userdb.ini.part]





Sent: Thursday, November 9, 2023 5:41 PM

info.sim...@googlemail.com

unread,
Nov 10, 2023, 3:10:08 AM11/10/23
to Notecase Pro
I deleted the server installation of NoteCase Pro and re-installed it on the server - what can I say - now it works again.
No idea what happened.

Thanks all for your feedback!

best regards
Raimund

Miroslav Rajcic

unread,
Nov 12, 2023, 2:46:59 AM11/12/23
to Notecase Pro
Great news, thanks for the feedback!

Regards,
  Miro


Sent: Friday, November 10, 2023 9:10 AM
Reply all
Reply to author
Forward
0 new messages