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

.well-known broken after update #503

Open
MCMic opened this issue Sep 2, 2022 · 6 comments
Open

.well-known broken after update #503

MCMic opened this issue Sep 2, 2022 · 6 comments
Labels

Comments

@MCMic
Copy link

MCMic commented Sep 2, 2022

Describe the bug

.well-known path are detected as handled by another app while there are not. So the app removes the well-known part from config.

Context

  • Hardware: Old laptop or computer
  • YunoHost version: 11.0.9
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: master
  • If upgrading, current package version: 24.0.4~ynh1

Steps to reproduce

When updating from 22 to the current one, I saw the warning saying another app is handling ./.well-known paths.
Because of this, the .well-known paths were removed from nginx config.
I think they were handled by nextcloud, looking at the log:

2022-09-02 13:46:24,807: DEBUG - ++ curl --insecure --silent --output /dev/null --write-out '%{http_code};%{redirect_url}' https://127.0.0.1/.well-known/caldav --header 'Host: ***MYDOMAIN***' --resolve ***MYDOMAIN***:443:127.0.0.1
2022-09-02 13:46:25,886: DEBUG - + local 'curl_output=301;https://***MYDOMAIN***/nextcloud/remote.php/dav/'
2022-09-02 13:46:25,887: DEBUG - + local http_code=301
2022-09-02 13:46:25,887: DEBUG - + local redirection=https://***MYDOMAIN***/nextcloud/remote.php/dav/
2022-09-02 13:46:25,888: DEBUG - + '[' 301 = 404 ']'
2022-09-02 13:46:25,888: DEBUG - + [[ https://***MYDOMAIN***/nextcloud/remote.php/dav/ =~ /yunohost/admin ]]
2022-09-02 13:46:25,889: DEBUG - + [[ https://***MYDOMAIN***/nextcloud/remote.php/dav/ =~ /yunohost/sso ]]
2022-09-02 13:46:25,889: DEBUG - + ynh_print_warn '--message=Another app already uses the domain ***MYDOMAIN*** to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.'
2022-09-02 13:46:25,889: DEBUG - + local legacy_args=m
2022-09-02 13:46:25,890: DEBUG - + args_array=(['m']='message=')
2022-09-02 13:46:25,890: DEBUG - + local -A args_array
2022-09-02 13:46:25,890: DEBUG - + local message
2022-09-02 13:46:25,891: DEBUG - + ynh_handle_getopts_args '--message=Another app already uses the domain ***MYDOMAIN*** to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.'
2022-09-02 13:46:25,891: DEBUG - + set +o xtrace
2022-09-02 13:46:25,910: DEBUG - + ynh_print_log 'Another app already uses the domain ***MYDOMAIN*** to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.'
2022-09-02 13:46:25,911: DEBUG - + echo -e 'Another app already uses the domain ***MYDOMAIN*** to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.'
2022-09-02 13:46:25,911: DEBUG - + sed --in-place --regexp-extended '/location = \/\.well\-known\/(caldav|carddav)/d' ../conf/nginx.conf
2022-09-02 13:46:25,913: WARNING - Another app already uses the domain ***MYDOMAIN*** to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book.

Expected behavior

.well-known redirections in the nginx configuration and no warning in Nextcloud admin page.

@OniriCorpe
Copy link
Member

I have a 404 on my .well-known, so I guess I have the same problem

@tituspijean
Copy link
Member

Can you both confirm no other app has a ./well-known path or permission?

@OniriCorpe
Copy link
Member

I confirm, I've only Nextcloud installed on this domain name

(Also this bug breaks the automatic CardDav/CalDav configuration for clients)

@OniriCorpe
Copy link
Member

always there in v28.0.1

@OniriCorpe OniriCorpe added the bug label Jan 27, 2024
@silverhook
Copy link

Just upgraded to 28.0.3 and this popped up in my Nextcloud:

Your web server is not properly set up to resolve "/.well-known/caldav". Further information can be found in the documentation ↗.
Your web server is not properly set up to resolve "/.well-known/carddav". Further information can be found in the documentation ↗.

It seemed to work fine in 28.0.2 though.

@tio-trom
Copy link

tio-trom commented Apr 18, 2024

Same here

Your web server is not properly set up to resolve "/.well-known/caldav". Further information can be found in the [documentation ↗](https://docs.nextcloud.com/server/28/go.php?to=admin-setup-well-known-URL).
Your web server is not properly set up to resolve "/.well-known/carddav". Further information can be found in the [documentation ↗](https://docs.nextcloud.com/server/28/go.php?to=admin-setup-well-known-URL).

It has been like this for a few versions for me.

https://files.trom.tf/index.php/.well-known/carddav

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

No branches or pull requests

5 participants