client icon indicating copy to clipboard operation
client copied to clipboard

Cannot connect securely to <server address>

Open beuker81 opened this issue 1 year ago • 22 comments

Pre-submission Checks

  • [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

When I try to login one of the two account I get the message: Cannot connect securely to

I have no issue with the Windows Desktop app or the iPhone app but the Mac app doesn't work. Also the webpage has no problem. Valid SSL Cert. Using Let's Encrypt.

Expected behavior

That the owncloud app just login.

Steps to reproduce the issue

  1. Open owncloud
  2. Click on the account you want to login
  3. Click on account and then login
  4. Error message

Screenshots

Screenshot 2024-05-01 at 00 24 30

Logs

No response

Client version number

ownCloud Mac Desktop app 5.2.1.13040

Desktop environment (Linux only)

MAC OSX Ventura 13.6.6 (22G630)

Client package version and origin (Linux only)

No response

Installation path (Windows only)

No response

Server information

ownCloud server 10.14.0.3

Additional context

No response

beuker81 avatar Apr 30 '24 22:04 beuker81

The dialog suggests that there is something wrong. As it only happens on that device.. have you checked the certificate in the browser on that system? Are you using some proxy software on that device, maybe installed by your employer?

TheOneRing avatar May 02 '24 08:05 TheOneRing

The dialog suggests that there is something wrong. As it only happens on that device.. have you checked the certificate in the browser on that system? Are you using some proxy software on that device, maybe installed by your employer?

Yes I have checked in a browser if there is something wrong with the certificate and no issue's. Just as how it should look like. I don't use any proxy software on the laptop. It's my private laptop.

beuker81 avatar May 02 '24 10:05 beuker81

Could you please upload some client logs with httplogging enabled (https://doc.owncloud.com/desktop/next/appendices/troubleshooting.html#log-files) to: https://infinite.owncloud.com/s/asdDIpEeRmoiFzT PW: 99^&VqTfy1r*

TheOneRing avatar May 02 '24 12:05 TheOneRing

Could you please upload some client logs with httplogging enabled (https://doc.owncloud.com/desktop/next/appendices/troubleshooting.html#log-files) to: https://infinite.owncloud.com/s/asdDIpEeRmoiFzT PW: 99^&VqTfy1r*

Done and thanks in advance!

beuker81 avatar May 02 '24 18:05 beuker81

I have the exact same issue since a few weeks, it's getting on my nerves ! The same message with the same fingerprints etc..

Capture du 2024-05-02 15-50-07

Sky3RN avatar May 03 '24 09:05 Sky3RN

With d41d8cd98f00b204e9800998ecf8427e we have the fingerprint of null. The error message we get in the log is: Error: SSL handshake failed: The issuer certificate could not be found

TheOneRing avatar May 03 '24 11:05 TheOneRing

Does the issue only occur when the application is started or randomly? If you decline the dialog and try it again, does it behave the same?

TheOneRing avatar May 03 '24 12:05 TheOneRing

Does the issue only occur when the application is started or randomly? If you decline the dialog and try it again, does it behave the same?

When the application starts it presents the issue. Also when you try again to manually login it also shows. When I decline the dialog the user does not login and when I click on login again the same message shows.

beuker81 avatar May 03 '24 12:05 beuker81

Does the issue only occur when the application is started or randomly? If you decline the dialog and try it again, does it behave the same?

When the application starts it presents the issue. Also when you try again to manually login it also shows. When I decline the dialog the user does not login and when I click on login again the same message shows.

Same behaviour here !

Sky3RN avatar May 03 '24 12:05 Sky3RN

I have the exact same issue since a few weeks, it's getting on my nerves ! The same message with the same fingerprints etc..

Capture du 2024-05-02 15-50-07

That Linux with the AppImage/our packages/system packages? Also what distro are you using?

TheOneRing avatar May 03 '24 13:05 TheOneRing

I have the exact same issue since a few weeks, it's getting on my nerves ! The same message with the same fingerprints etc.. Capture du 2024-05-02 15-50-07

That Linux with the AppImage/our packages/system packages?

If I remember well, it's from the official OwnCloud repo, not the AppImage.

Capture du 2024-05-03 15-28-42

Also what distro are you using?

Ubuntu 20.04

Sky3RN avatar May 03 '24 13:05 Sky3RN

I have remove the 5.2.1 version and installed the older version 5.1.2.

My issue is resolved. Seems like an issue in the 5.2.1 version. I haven't tested 5.2.0.

Maybe this helps?

beuker81 avatar May 03 '24 14:05 beuker81

I have remove the 5.2.1 version and installed the older version 5.1.2.

My issue is resolved. Seems like an issue in the 5.2.1 version. I haven't tested 5.2.0.

Maybe this helps?

I gotta try this !

I'd like to keep my ownCloud package from the official repo, because I like the simplicity of updating in command line.

Is there anyway to downgrade from sudo apt ?

Sky3RN avatar May 03 '24 14:05 Sky3RN

I have remove the 5.2.1 version and installed the older version 5.1.2. My issue is resolved. Seems like an issue in the 5.2.1 version. I haven't tested 5.2.0. Maybe this helps?

I gotta try this !

I'd like to keep my ownCloud package from the official repo, because I like the simplicity of updating in command line.

Is there anyway to downgrade from sudo apt ?

What you can do is: sudo apt-get install =

The version you need you can find here: https://download.owncloud.com/desktop/ownCloud/stable/5.1/linux/

Or search it with apt.

beuker81 avatar May 03 '24 14:05 beuker81

I have remove the 5.2.1 version and installed the older version 5.1.2. My issue is resolved. Seems like an issue in the 5.2.1 version. I haven't tested 5.2.0. Maybe this helps?

I gotta try this ! I'd like to keep my ownCloud package from the official repo, because I like the simplicity of updating in command line. Is there anyway to downgrade from sudo apt ?

What you can do is: sudo apt-get install =

The version you need you can find here: https://download.owncloud.com/desktop/ownCloud/stable/5.1/linux/

Or search it with apt.

Thanks, just found it after writing my post !

Unfortunately for me this didn't solve my issue. I've tried the 5.1.2.12600 and 5.2.0.12726 !

What's the exact build you tried ?

Sky3RN avatar May 03 '24 14:05 Sky3RN

What's the exact build you tried ?

5.1.2.12600

I think even before I updated I had a 5.0 version running. On a Mac you need to complete remove the client before using an older version. Seems to be a bug from many years ago.

beuker81 avatar May 03 '24 14:05 beuker81

Downgrading is not supported and downgrading to a version with known issues is not recommended at all!!

TheOneRing avatar May 03 '24 14:05 TheOneRing

On a Mac you need to complete remove the client before using an older version. Seems to be a bug from many years ago.

Tried to uninstall the client too here on Linux to install the 5.1.2 but still the same issue. :(

Sky3RN avatar May 03 '24 14:05 Sky3RN

Could you try updating back to 5.2.1 to validate that it's really the version?

For testing you could also try our coinstallable nightly https://download.owncloud.com/desktop/testpilotcloud/daily/6.0/

It will use a separate profile.

TheOneRing avatar May 03 '24 15:05 TheOneRing

Could you try updating back to 5.2.1 to validate that it's really the version?

Ok reinstalling 5.2.1 didn't fix it but deleting 5.2.1 and installing 5.1.2 and now updating to 5.2.1 it still seems to work. Let me test it out for a couple of days. Maybe something in the profile/settings?

beuker81 avatar May 03 '24 15:05 beuker81

Could affected users check their settings https://doc.owncloud.com/desktop/next/advanced_usage/configuration_file.html for a CaCertificates key? If you find such a key could you please upload your settings to the above url?

TheOneRing avatar May 03 '24 17:05 TheOneRing

Could affected users check their settings https://doc.owncloud.com/desktop/next/advanced_usage/configuration_file.html for a CaCertificates key? If you find such a key could you please upload your settings to the above url?

I won't be able to do this before Monday because I'm not home for the whole week-end, but I'll let you know as soon as possible ! For the moment I can only access to SSH to my computer to check the config file, and yes, there is a CaCertificate key in the owncloud.cfg !

For testing you could also try our coinstallable nightly https://download.owncloud.com/desktop/testpilotcloud/daily/6.0/

I'll try on Monday, what do I need to do ? Simply install this version and run it ? Will it use my config file or generate a new one ? Maybe the issue might come from my config file ? (I have more than 1 To of files to sync so I hate reinitializing the config file etc.. 😄) Maybe that's why @beuker81 succeed by fully deleting & reinstalling the app :

Could you try updating back to 5.2.1 to validate that it's really the version?

Ok reinstalling 5.2.1 didn't fix it but deleting 5.2.1 and installing 5.1.2 and now updating to 5.2.1 it still seems to work. Let me test it out for a couple of days. Maybe something in the profile/settings?

Sky3RN avatar May 04 '24 08:05 Sky3RN

Here's something interesting : I deleted the CaCertificate line from the .cfg file and the error message has gone ! :+1: So that's the solution, I guess an old key was in the file and ownCloud was looking for it.

By the way, I also tried to install the testpilot 6.0 version but couldn't do it. Capture du 2024-05-06 09-42-16

Sky3RN avatar May 06 '24 07:05 Sky3RN

I don't have any problems when I did a clean install of the client so it seems that my issue is also a CaCert in the config file. I checked old configs from my time machine backup and those have the CaCertificates key part in it. In the new config this does not exist so it seems this resolved the issue. Thanks!

beuker81 avatar May 06 '24 18:05 beuker81