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

Client will not connect unless E2E has previously been set up #560

Closed
tabp0le opened this issue Aug 14, 2018 · 27 comments
Closed

Client will not connect unless E2E has previously been set up #560

tabp0le opened this issue Aug 14, 2018 · 27 comments

Comments

@tabp0le
Copy link

tabp0le commented Aug 14, 2018

OK, so here's a weird one.

Expected Behavior

  • Add account to Nextcloud and have it start syncing immediately

Actual Behavior

  • Client initially authenticates, adds account, allows folder selection.
  • After wizard, it shows as disconnected.
    nc_no_connection

Logs
https://pastebin.com/N6DfdRsa

Affected Platforms
Linux, Windows, (probably macOS)

OpenSSL Version: 1.10h
QT Version: 5.11.1
Nextcloud Branch: master

To get it to actually work, and add the account, I had to:

  • Go into the Android app
  • Add encrypted folder
  • Set up initial encryption and get pneumonic
  • Go back to nc desktop client and remove, then add account again.
  • At this point, it popped up with the enter e2e pneumonic phrase prompt.
  • Enter e2e phrase, and hit ok
  • Client syncs successfully
@camilasan camilasan self-assigned this Aug 14, 2018
@camilasan
Copy link
Member

how did you build it? Is it Debug or Release?

@tabp0le
Copy link
Author

tabp0le commented Aug 14, 2018

My apologies, the issue exists in both Debug and Release @camilasan

@tabp0le
Copy link
Author

tabp0le commented Aug 14, 2018

So by random happy accident, I decided to try compiling with clang 6. I looked at my compiler right when the part that is giving the issue was being compiled. It so happens, that there is a build warning in regards to this. (when using clang) (not sure about gcc)

/mnt/ubuntu-home/tab/SpryDev/sprycloud-client-git/src/sprycloud-client/src/libsync/clientsideencryption.cpp:749:48: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
connect(job, &WritePasswordJob::finished, [this](Job *incoming) {
^
/mnt/ubuntu-home/tab/SpryDev/sprycloud-client-git/src/sprycloud-client/src/libsync/clientsideencryption.cpp:767:48: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
connect(job, &WritePasswordJob::finished, [this](Job *incoming) {
^
/mnt/ubuntu-home/tab/SpryDev/sprycloud-client-git/src/sprycloud-client/src/libsync/clientsideencryption.cpp:785:48: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
connect(job, &WritePasswordJob::finished, [this](Job *incoming) {

@tabp0le
Copy link
Author

tabp0le commented Aug 14, 2018

OpenSSL Version: 1.10h
QT Version: 5.11.1

@camilasan
Copy link
Member

camilasan commented Aug 16, 2018

I can't reproduce this error on Linux but I have a similar problem on Windows with Release built.

Update: after I updated to Qt 5.11.1 on Windows, I also have the issue with Debug and Release builds... but I still can't reproduce it on Linux.

@tabp0le
Copy link
Author

tabp0le commented Aug 17, 2018

I wonder, could having an OpenSSL version of <=1.02 on the server, have any effect on the client?

Edit: I Upgraded my OpenSSL on the server and still have the issue, so that's definitely not it.

@mannp
Copy link

mannp commented Aug 18, 2018

Getting the same issue myself.

@camilasan
Copy link
Member

Hi! Please try the build https://download.nextcloud.com/desktop/daily/Windows/Nextcloud-2.5.0.61352-daily-20180904.exe. This issues should be solved. Thanks!

@tabp0le
Copy link
Author

tabp0le commented Sep 4, 2018

I'm trying to test, but unfortunately because of #279 I can't :(

@tabp0le
Copy link
Author

tabp0le commented Sep 4, 2018

@camilasan Do you have commits i can cherry-pick so I can try my own build using old login method? I tried merging master, but I don't think your fixes are in there, as it didn't make a difference.

@camilasan
Copy link
Member

No, what changed is how we build it by passing openssl and qt5keychain paths to cmake:
https://github.com/nextcloud/client-building/blob/master/build.bat

@tabp0le
Copy link
Author

tabp0le commented Sep 13, 2018

No, what changed is how we build it by passing openssl and qt5keychain paths to cmake:
https://github.com/nextcloud/client-building/blob/master/build.bat

So yeah, this is still an issue. :(

@camilasan
Copy link
Member

camilasan commented Sep 13, 2018

@tabp0le Ok, I can't reproduce it anymore. Could you check for client logs?

@tabp0le
Copy link
Author

tabp0le commented Sep 13, 2018

@tabp0le Ok, I can't reproduce it anymore. Could you check for client logs?

I've attached a log using official nextcloud nightly. (windows)
nc-client-e2e-fail.log

@tabp0le
Copy link
Author

tabp0le commented Nov 5, 2018

@hoellen
Copy link

hoellen commented Nov 14, 2018

I had the same issue today, when I installed the new 2.5.0 release (from nextcloud.com) for one of my windows user. After setting up E2E on the iOS client it worked.

@rugk
Copy link

rugk commented Nov 20, 2018

Can confirm this issue still exists in v2.5.0 on Fedora 29.

@rugk
Copy link

rugk commented Nov 21, 2018

Indeed, this should be a high-prio issue and is totally blocking any productive use of e2e crypto yet. I think you know it really needs to be fixed. For alpha stage okay, but at least the client's e2e crypto implementation is said to be stable (v2.5.0 with that feature – and this bug – is released as stable).

@mickare
Copy link

mickare commented Dec 28, 2018

Hey, could there be a problem with the CSR generator in the desktop client?

@tabp0le wrote:

To get it to actually work, and add the account, I had to:

  • Go into the Android app
  • Add encrypted folder
  • Set up initial encryption and get pneumonic
  • Go back to nc desktop client and remove, then add account again.
  • At this point, it popped up with the enter e2e pneumonic phrase prompt.
  • Enter e2e phrase, and hit ok
  • Client syncs successfully

From #868:

Error | end_to_end_encryption | Can't create public key: could not sign the CSR, please make sure to submit a valid CSR | 2018-11-20T21:04:42+0100
-- | -- | -- | --
Error | PHP | openssl_csr_sign():  cannot get CSR from parameter 1 at  /var/www/nuee.schlueter.is/apps/end_to_end_encryption/lib/SignatureHandler.php#60 | 2018-11-20T21:04:42+0100
Debug | no app in context | No  cache entry found for  /appdata_ocjx58mjh67j/end_to_end_encryption/public-keys/arne.public.key  (storage: local::/mnt/nextcloud/, internalPath:  appdata_ocjx58mjh67j/end_to_end_encryption/public-keys/arne.public.key) | 2018-11-20T21:04:42+0100
Debug | no app in context | No  cache entry found for  /appdata_ocjx58mjh67j/end_to_end_encryption/public-keys/arne.public.key  (storage: local::/mnt/nextcloud/, internalPath:  appdata_ocjx58mjh67j/end_to_end_encryption/public-keys/arne.public.key) | 2018-11-20T21:04:42+0100

Code:

@mickare
Copy link

mickare commented Dec 28, 2018

I can confirm that the workaround proposed by @tabp0le works with:

  • Nextcloud 14.0.4
  • End-to-End Encryption 1.0.5
  • Desktop Client 2.5.1git
  • Android Client 3.4.1

Therefore it must be an desktop client issue...

@dirkhusemann
Copy link

Couldn’t get the workaround to work with iOS client.

@mickare
Copy link

mickare commented Dec 30, 2018

The workaround... now the desktop client refuses to sync files. 🙆‍♂️
https://gist.github.com/mickare/1e6d25beba436000d144b3ec23e694b1

GOAWAY received, cannot start a request

@Flozi95
Copy link

Flozi95 commented Jan 3, 2019

I'm also geting the Message "GOAWAY received, cannot start a request"

@schwukas
Copy link

I am experiencing the same problem. Is there any update on this? I'm really eager to try this out :)

@lars-becker
Copy link

lars-becker commented Mar 26, 2019

I have the same problem. Current Archlinux with Client Version 2.5.2git. Build with QT 5.12.2 and OpenSSL 1.1.1b.

@camilasan
Copy link
Member

Please, try the daily build from tonight, #1420 is merged and it might fix it :)

@DominiqueFuchs
Copy link
Contributor

Duplicate of original issue desktop/#830 and fixed by desktop/PR#1420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests