nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.62k stars 3.99k forks source link

[Bug]: Caldav not working on osx #46662

Open e4242 opened 1 month ago

e4242 commented 1 month ago

⚠️ This issue respects the following points: ⚠️

Bug description

Constantly getting the same error: Your calendar couldn’t be refreshed. The request for account “ADDRESS” failed.

Steps to reproduce

Step up nextcloud with SSO Create an app password Navigate to the calendar app and click on "Copy iOS/macOS CalDAV address" Go to the default calendar app in OSX and choose add Caldav account Fill in the user, username and password from step 2

Expected behavior

Calendar events showing up on local computer

Installation method

Official All-in-One appliance

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

All steps from the guide were followed. Https, no self-signed certificates, .well-known/caldav, etc.

SebastianKrupinski commented 1 month ago

Hi @e4242

Is there any errors in your NC logs?

joshtrichards commented 1 month ago

What happens if you just your server URL rather than the generated URL? Basically as described in the User Manual: https://docs.nextcloud.com/server/latest/user_manual/en/groupware/sync_osx.html

e4242 commented 1 month ago

@SebastianKrupinski no logs of significance that I can see. Mostly debug stuff like: /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead and for the calendar specifically: Found and deleted 0 outdated booking confirmations.

@joshtrichards same thing. Followed the guide. Created an app password and entered those details. For url just https://cloud.ADDRESS.com. When I go the calendar app and click on settings and then account I can see the following error and when I inspect the server settings, it seems fine.

Screenshot 2024-07-22 at 9 48 14 Screenshot 2024-07-22 at 9 48 33
BernieO commented 1 month ago

Could you please post the webserver log when trying to add the account (delete the faulty accounts first from macOS)?

e4242 commented 3 weeks ago

That's the error: - "NotAuthenticatedNo public access to this resource., AppAPIAuth has not passed, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured"

I'm using SAML authentication. I created an app password for the account to use.