Nextcloud client for Linux can be set up but does not connect to cloud.disroot.org

I can configure the Nextcloud client on Ubuntu 18.04 (official PPA), but when I start the client, it does not connect. It says “No connection to Nextcloud”. I do get some error messages in the log:

[OCC::SignPublicKeyApiJob::start 	Sending the CSR "csr=-----BEGIN%20CERTIFICATE%20REQUEST-----%0AMIICqzCCAZMCAQEwZjELMAkGA1UEBhMCREUxGzAZBgNVBAgMEkJhZGVuLVd1ZXJ0%0AdGVtYmVyZzESMBAGA1UEBwwJU3R1dHRnYXJ0MRIwEAYDVQQKDAlOZXh0Y2xvdWQx%0AEjAQBgNVBAMMCWJsdWViaXJjaDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC%0AggEBANEwBT2LQlmts9omwJmE9%2Fw0792NoXzIVFGsMrzRcFq2%2FNdIgpaIKNTWuQv5%0AMJOT%2BqmboQ43cGPSaL5Un6g2Jzg%2F7btbnYLYraBuAJdmrnjrTTzvHgBrwPcAkdJ6%0AbTMmLXDB6KiNZ2CH8YU57uLDtgNCGUSShsOCHDgPrPfqhQjyPPJpLW3acN4U7azU%0Ahule3jYg2vtNg0CfDDSr0I%2BWmXXREyDud45RGQI4z%2BJXSFS9ZWLp2N%2FueJCm8mof%0A5QBfFKo63o0xH3%2BulF9B%2BnkyuRII8n7ZjPK65Kk0%2BOjE8xUB2yVFizDhdl81Q8sZ%0AU7a6spDOg2RqHYXOsOJKKqnUqo0CAwEAAaAAMA0GCSqGSIb3DQEBBQUAA4IBAQAc%0ApNJFoJnCHB8qouWFvWGCtgy5irFND14BKpPgyKPJFm%2FKy8hE4OZU1AhtAOjQB9SD%0AEUal8MU%2BqTS%2Bv5lSlrUf6zIBb22KSOK5zN0Pga7Nr0E9Ic4PYSWHPJbzG2s2YZ5u%0ApqOUOVz4cd9iI3T9qOf8zfJ4rR%2Fr49rPYnbB0u607xdDzWi%2BmWFSz9bwR0zLDC1k%0AVM2%2FdEdbq8Pwrg4icphk5tJLVZPpZNyuiR1SbKgFoY9u1mRj61oGZwlxsdwb6ZLo%0APzRjNwdcw8LwY2rAletEwNU5jEPOznO1NZTgL3%2FRduWzPPF0Qr4argkpJ9MQYnwp%0Ac3KEnH2%2FWvMyJp34mTon%0A-----END%20CERTIFICATE%20REQUEST-----%0A"
[OCC::AccessManager::createRequest 	4 "" "https://cloud.disroot.org/ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key?format=json" has X-Request-ID "4ba37d2f-2075-4f6a-a3a6-554dd8b44f5f"
[OCC::AbstractNetworkJob::start 	OCC::SignPublicKeyApiJob created for "https://cloud.disroot.org" + "ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key" "OCC::ClientSideEncryption"
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::AbstractNetworkJob::slotFinished 	QNetworkReply::NetworkError(ProtocolInvalidOperationError) "Error transferring https://cloud.disroot.org/ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key?format=json - server replied: " QVariant(int, 400)
[OCC::WebFlowCredentials::stillValid 	Still valid?
[OCC::WebFlowCredentials::stillValid 	QNetworkReply::NetworkError(ProtocolInvalidOperationError)
[OCC::WebFlowCredentials::stillValid 	"Error transferring https://cloud.disroot.org/ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key?format=json - server replied: "
[OCC::SignPublicKeyApiJob::finished 	Sending CSR ended with "ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key" "Error transferring https://cloud.disroot.org/ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key?format=json - server replied: " QVariant(int, 400)

It seems the client does not receive a public key from the server?

Thanks for report. I’m investigating.

I see in the logs it mentions end to end encryption. Did you happen to set it up? I could be its a bug related to that. Seem to have similar issue with a test account with e2e enabled. Just want to make sure my line of troubleshooting is correct.

To my (somewhat limited) knowledge, I haven’t set up any e2e encryption…

I have looked through all settings at both client and in web interface. Can’t find anything about e2e encryption. But I do have a menu option to show E2E mnemonic, which is empty.

Thanks. So you are certain you have no folders with the lock like this one:
Is the user name u are using here the same as on the cloud? Also perhaps moving it to support (not public) will make more sense as we could exchange more private data while troubleshooting. Please send email to support_at_disroot.org so we can pick it up from there.

Done.

Hi there. It seems like you issue might be related to

There is github issue at nextcloud about it aswell. We are going to do some tests and try to help out troubleshot the problem with nextcloud devs.