-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[NC 21 RC1] No info about webfinger and nodeinfo settings #6157
Comments
I stumbled accross the same problem after upgrading to NC21 using nginx.
|
I had the same problem on apache. I had to add these lines to htaccess make the warnings go away: RewriteRule ^.well-known/webfinger /YOURSUBFOLDER/index.php/.well-known/webfinger [R=301,L] The documentation only mentions carddav and caldav but not webfinger and nodeinfo. I dont know if this is the correct method, webfinger and nodeinfo are not in the standard htacess anymore that ships with NC21, however the error is still produced by the automatic checks and the link to the documentation does not mention them. |
I use the Truenas Nextcloud plugin. I have it sitting behind an nginx reverse-proxy. I tried changing the nginx config for the plugin/Freebsd Jail, but that did not work. I tweaked the Nextcloud config on my nginx reverse-proxy and that got rid of the warning messages. I added these two lines:
Hopefully this helps anyone else using a reverse-proxy. The default nginx config included with the Truenas plugin is just fine, all I needed to really change was |
Are you running Social? See these two open issues for possible context: using Webfinger Nodeinfo |
I wonder in which cases webfinger and nodeinfo are even required. It looks like they are only used by certain apps, so if these apps aren't installed, then not having them configured is fine? (Maybe also caldav only if calendar is installed and carddav if contacts are?) I'm also concerned about it maybe leaking privacy. Can anyone explain if there are any privacy/security consequences to having them enabled all the time? |
I'm not running Social. There could be the possibility of some other app(s) using webfinger and/or nodeinfo though. |
This did not get rid of the warnings for my instance. |
Same here, i also can't get rid of these two warnings. my config looks like
In my case also the Social App is NOT installed. But i use a reverse proxy (nginx 1.18) and here my config is
the two lines from above Never the less, all this does not solve my problem. |
I noticed that I had the following in my nextcloud.conf:
I modified it to:
I thought it might work, but no dice. |
I stumbled into the same Problem after upgrading to NC21. I don't use the social app, but i want to get rid of the error messages. |
So sorry i have to correct my post above... The settings to nginx (Nextcloud) and nginx (Reverse Proxy) seems to be correct. After having the same messages from one PC with chromium Browser i switched to a tablet device et voila, no messages any longer. So i cleared the whole browser cache and restartet my chromium - same here - a white tag on green spot appear :-) Thanks for the help above. |
I had to add the lines mentioned by @DerVerruckteFuchs in my ReverseProxy configuration after the carddav and caldav entries. Now the messages no longer appear. Thanks 😁
|
Very minor optimization of @obakuhl 's post - you don't need to use regular expressions or rewrite rules, just copying the
|
I edited my nextcloud.conf file with the above blocks, restarted nginx, cleared browser cache, and restarted browser, but still get the webfinger and nodeinfo warnings. |
Are you concerning the nextcloud.conf file on the nextcloud server or the reverse proxy server? I ask, because the two settings
are set on my proxy server. these two lines are set in my "nextcloud.conf" on my nextcloud server
otherwise you can try to set this into your .htaccess file in /var/www/nextcloud (if this is your nc root)
|
Ok, fair enough. I don't have a reverse proxy so I set my nextcloud.conf as you showed above, but no dice. Then I added the rewrite rules to my .htaccess and again no dice.
nextcloud.conf:
|
At first set this block
into this
and delete the two appended lines at the end |
Unfortunately this did not work either. |
I think you need to set the - RewriteRule ^\.well-known/webfinger /remote.php/dav/ [R=301,L]
- RewriteRule ^\.well-known/nodeinfo /remote.php/dav/ [R=301,L]
+ RewriteRule ^\.well-known/webfinger /index.php [R=301,L]
+ RewriteRule ^\.well-known/nodeinfo /index.php [R=301,L]
(The above is a guess as I'm not using Apache - I'm not sure if something special needs done for passing |
I am using nginx. So right there was my mistake. Just found out that nginx doesn't even use the .htaccess file. So back at square one? |
If the webfinger and nodeinfo well-known urls are only used by the social app, then the Security and setup warnings section should not warn the admin that they don't exist if the social app is not enabled. |
If it is true that they are only used by the social app, then for sure that should be the case. I for sure do not even have the social app installed, and still get these messages. I did have it installed at one point, though. Maybe there is something that needs to be purged from the server? |
I have never had the social app installed, and am getting the warning. |
Same as @mddvul22 here |
Hi 🙂 First, I will say thanks for the "nextcloud" script - Its a very good script, I use it a lot I also have the same problem as many others have! I get this warning in my control panel! I have tried to fix the problem as suggested in the post #6157 (comment) - No Luck :( You can see my nextcloud config here: https://pastebin.com/6JpqwGc0 I use: Nextcloud: 21.0.1 Please help. Regards Thomas |
The Error comes from an old entry in the NGINX configuration with handling error-pages. You just have to erease or uncomment these two lines and the error disapears:
No more else is to do! I'm using NGINX directly, so I can't say if these lines exist in the configuration for reverse proxy. |
Same here, had to include on the reverse proxy. And using Ctrl+Shift+I or rightclick Inspect, going to Network, disable Cache and reloading and they are gone. So it seems the check website doesn't delete the cache when reloading. A force cache reload, should be triggered or an info and a small guide, like I gave should be given. |
My apologies for spamming this issue with the same commit. Tried to conform to the contribution guidelines, so hopefully the resulting PR is more of less fine. |
…n a root and a subdirectory. This fixes nextcloud#6157. Your web server is not properly set up to resolve “/.well-known/webfinger”... Your web server is not properly set up to resolve “/.well-known/nodeinfo”...
Suggested Nginx default configuration seems to be the culprit! It says:
That causes Nginx to intercept HTTP error codes returned by the PHP script with the configured error page or nginx default error pages. See the documentation. Normally /.well-known/nodeinfo in NextCloud is supposed to return HTTP 404 with So to fix this, just set it to off:
Changing redirects to 301 and even redirecting these requests to remote.php/dav to "fix" this are IMO all wrong. |
on nginx, define
and
fix all the warnings. |
This worked for me. |
If you are using haproxy you can use this config to get the warnings disappear. Hopefully this will help someone.
|
Add Apache rewrite rules for webfinger and nodeinfo in case NC is installed in a subdirectory. This fixes #6157. Signed-off-by: stephang <288494+stephang@users.noreply.github.com>
Add Apache rewrite rules for webfinger and nodeinfo in case NC is installed in a subdirectory. This fixes #6157. Signed-off-by: stephang <288494+stephang@users.noreply.github.com>
Add Apache rewrite rules for webfinger and nodeinfo in case NC is installed in a subdirectory. This fixes #6157. Signed-off-by: stephang <288494+stephang@users.noreply.github.com>
Add Apache rewrite rules for webfinger and nodeinfo in case NC is installed in a subdirectory. This fixes #6157. Signed-off-by: stephang <288494+stephang@users.noreply.github.com>
After 2 hours, finally! Thanks! |
Awesome, this finally was the missing clue, works with nginx+haproxy on pfsense, thank you very much! |
Old issue but the haproxy configuratiom really needs to go into the documentation, it does mention caldav and carddav. But it still doesn't mention webfinger or nodeinfo. I used a slightly less complex approach than the one that was posted here, here's what i did:
|
I've added a PR #8007 for webfinger and nodeinfo. |
For me, using Just thought I'd share this in case it helps anyone or anyone knows a better solution. |
@fischer-felix Just dropping code-parts in such cases makes no sense. Have you checked, if your root and server_name is set and correct? Nor there is no reason allowing Error 300... |
I have been trying to resolve this issue with HAProxy where I can't get DAVx to connect. I have tried putting these lines in both the backend and frontend for http and https. Am I doing something wrong? |
This one worked fine for me. NC in Docker with selfbuild reverse nginx and nginx proxy manager. |
This issue is back for me after upgrading to nextcloud 29.0.1 using nginx. If I comment out
then I get a warning about caldav
and if I uncomment
I get the warning about webfinger
None of the solutions above helped. I did not change anything else in the config. It just occurred after the update to 29.0.1. Is anyone having a solution? Thanks |
After doing some research it turns out this can have multiple issues. Mine (nginx and nextcloud in subdirectory) was solved doing these steps:
/usr/share/webapps/nextcloud/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php add as new line 65
/usr/share/webapps/nextcloud/config/config.php
|
On the settings, I get these warnings:
The given link redirects me to https://docs.nextcloud.com/server/21/admin_manual/issues/general_troubleshooting.html#service-discovery, however there is only information about
.well-known/carddav
and.well-known/caldav
, nothing aboutwebfinger
andnodeinfo
.Since I am using nginx, I was also checking the example config: https://docs.nextcloud.com/server/21/admin_manual/installation/nginx.html?highlight=nginx But nothing about
webfinger
andnodeinfo
on a first sight. However, there were some changes: https://github.com/nextcloud/documentation/pull/5825/filesI suggest to change the landing page by mentioning the webfinger/nodeinfo being generally handled by an updated .htaccess and that nginx users might check their configuration.
NC version: NC21 RC1
webserver: nginx
The text was updated successfully, but these errors were encountered: