Repository navigation
[Bug]: There are some warnings regarding your setup (v29) #44114
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
TEST Uprade from NC 28.0.3 to 29.0.0. BETA:
There are some warnings regarding your setup.
Could not check that the data directory is protected. Please check manually that your server does not allow access to the data directory. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its trusted_domains or the overwrite.cli.url.
Your webserver is not set up to serve .js.map files. Without these files, JavaScript Source Maps won't function properly, making it more challenging to troubleshoot and debug any issues that may arise.
Could not check for JavaScript support. Please check manually if your webserver serves .mjs files using the JavaScript MIME type. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its trusted_domains or the overwrite.cli.url.
Could not check if your web server properly resolves the OCM and OCS provider URLs. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its trusted_domains or the overwrite.cli.url.
Could not check that your web server serves .well-known correctly. Please check manually. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its trusted_domains or the overwrite.cli.url. For more details see the documentation ↗.
Could not check for WOFF2 loading support. Please check manually if your webserver serves .woff2 files. To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its trusted_domains or the overwrite.cli.url. For more details see the documentation ↗.
Please double check the installation guides ↗, and check for any errors or warnings in the log.
Steps to reproduce
- run GUI "OVERVIEW
Expected behavior
no warnings or errors
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
RHEL/CentOS
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
no errors has been foundNextcloud Logs
No response
using self singed cert. (Nextcloud vm test instance)
No response
Activity
[-][Bug]: [/-][+][Bug]: There are some warnings regarding your setup (v29)[/+]rchaconmolero commentedon Mar 12, 2024
We also have the same problem after updating to Nextcloud Hub 8 version (29.0.0 beta 1) from version 28.0.3. The same messages after update vía GUI web interface.
Githopp192 commentedon Mar 13, 2024
Well done :-)
Security & setup warnings
It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.
All checks passed.
Check the security of your Nextcloud over our security scan ↗.
Version
Nextcloud Hub 8 (29.0.0 beta 2)
Update
Your version is up to date.
Githopp192 commentedon Mar 13, 2024
btw - what did you do with 29.x - it runs much faster than ever - wough - what a difference !
joshtrichards commentedon Apr 2, 2024
Thanks for the report @Githopp192. Going to close this out since it seems fixed. :)
rubo77 commentedon Apr 30, 2024
should be
e.g. line
server/apps/settings/l10n/en_GB.json
Line 131 in cb27fbc
rubo77 commentedon Apr 30, 2024
I still have this issue, after updating to NC 29.0.0 yesterday:
I am running NC in a docker-container in a VM behind a proxy on another VM on th same host. I installed with this docker-compose:
maybe, because I linked the volume to another partition?
mountpoint
I tried
but the messages are still there
t-h-e commentedon May 14, 2024
I have the same issue after upgrading. Nextcloud 29.0.0 is installed directly on arch linux. No docker is involved.
Also the check takes a long time to complete. I had to increase the timeout as it takes over 1 minute.
Where does nextcloud take the domain from for checking?
I just realized that the link behind "Nextcloud 8 (29.0.0)" in the version section below the security warnings points to an old domain that I do not use anymore. This domain is also in none of the config files.
4 remaining items
t-h-e commentedon May 14, 2024
@joshtrichards Yes, for me the issue was that the server was not able to reach itself via the domain name. I added an entry in
/etc/hoststo use127.0.0.1. Now it works. Thanks for your help.Ikestev commentedon May 14, 2024
Can you please show your hosts file?
I already have 127.0.0.1 in the file but it still do not work
t-h-e commentedon May 14, 2024
Replace
my.nextcloud.domainwith your domainAfterwards, if you ping the domain from your server, it should ping
127.0.0.1pravi commentedon Jun 7, 2024
With the recommended nginx configuration.
w3m https://cloud.mydomainresults in "Redirect loop detected (w3m https://cloud.mydomain/login). I think this is the root cause. NextCloud version is 28.0.6. Tried suggested/etc/hostschanges, but it is always going to redirect loop.w3m https://cloud.mydomain/loginworks (though with JavaScript disabled)SomeGuyInSandy commentedon Jun 20, 2024
I'm not a GitHub user, so please have patience!
I looked through this thread and it indicates that this "bug" is fixed. I just upgraded my NC to Hub 8 and I get all of the indicated error messages at the head of this, yet a scan of the headers from the system shows that all is well with an A+ rating.
I took each error one by one, and my configuration files seem to be fine!
Any clues where I should start? TIA
bj-github commentedon Jun 27, 2024
As someone also seeing this, I'm hoping to add a useful "data point".
If I try
wget https://<hostname>/from the command line on the server, I get:The same command from my desktop succeeds (with the <IPv6#> and <IPv4#> here matching those shown in the above):
So I assume I have some other server configuration problem here, and its not a NextCloud problem itself. But not obvious to me what I need to do to fix it. (My server is cPanel-based for what it's worth.)
SomeGuyInSandy commentedon Jun 27, 2024
Update: The https server couldn't communicate properly because... of a slight misconfiguration in my hosts file. Yeah. Please disregard my posts, thx.
bj-github commentedon Jul 9, 2024
Perhaps as an "on the other hand", I looked at the apache logs after a check, and found the following:
In the
access_log, the initial PROPFIND lacked the<dir>subdirectory in which my NextCloud instance is installed:Also, fwiw, is the following in Apache's
error_log:joshtrichards commentedon Jul 10, 2024
If you land here, please take troubleshooting queries to the help forum: https://help.nextcloud.com
EDIT: Some clarifications added to the Release Notes which some may find helpful: https://docs.nextcloud.com/server/latest/admin_manual/release_notes/upgrade_to_28.html#setup-checks
arioberek commentedon Jul 22, 2024
What did you do to solve the warnings?
bj-github commentedon Jul 23, 2024
In my case, based on the comment by SomeGuyInSandy above, I checked my
/etc/hostsfile. In my case, it had a mapping for the correct IPv4 address, but the IPv6 address mapping was wrong. So I fixed it.My VPS is managed by cPanel. I don't recall having looked at my
/etc/hostsbefore, although I'm sure I did when I was setting it up a decade ago. My best memory is that the errors started appearing with the previous NextCloud Hub release ... or perhaps the one before? I don't know if a cPanel update had made that/etc/hostschange to trigger the issue. Or it was a "sleeping" problem that surfaced when a change to NextCloud or some other system component made IPv6 usage more likely. Or it was actually wrong from Day One. Or some combination ...My entries map to the public IP#s, not
127.0.0.1/::1. My NextCloudconfig.phprefers only to the hostname in itstrusted_domainssetting.Hope this helps.
arioberek commentedon Jul 30, 2024
I have my Nextcloud instance running on Docker. Recently, after a sudden server restart (hosted on-premise), the application is not resolving to the correct internal IP address.
Steps Taken:
resolvectl flush-caches.Despite these efforts, the issue persists. When pinging the Nextcloud domain from inside the server, it resolves to an incorrect external IP address.
Question: Could the incorrect resolution to the external IP address instead of the internal IP be causing the issue?
Additional Information:
Environment:
Nextcloud version: 29.0.3 (Nextcloud Hub 8)
Operating system: Ubuntu Server 22.04
Docker version: 27.0.3
Any assistance in resolving this issue would be greatly appreciated.
Thank you.
joshtrichards commentedon Jul 30, 2024
@arioberek Please post your query on the help forum - https://help.nextcloud.com
This channel is for bug reports. Every time someone posts here it notifies all the developers, which isn't a good use for everyone's limited time and energy. :-) The Community Help Forum is a good spot for this sort of thing. Thanks!
Turbulentarius commentedon Aug 19, 2024
I think this is related to server configuration, and not necessarily a bug. But it is a bit complex.
Since Docker was mentioned, I know these warnings can be caused by running Nextcloud inside a container without internet access — or, if you have specifically configured your container with a non-standard port, maybe because you have a proxy like Treafik handle actual 80 and 443 traffic externally. That is, if you get to see them at all, because
ProxyTimeout(Apache) orproxy_read_timeout(Nginx) might kick in beforePHP-FPMgets to even process all the checks! Probably due to silent HTTP timeouts, which the code might not check for or show an error message for.I noticed the problem by manually requesting
/.well-known/caldavin my browser, resulting in the request getting redirected to the non-standard port in the URI. e.g.:4000/remote.php/dav/which is only used for internal communication between services. No wonder it was unable to resolve.well-known, because only port 80 and 443 is actually exposed to the internet via Traefik.So, if that is a problem for you as well, then simply use the standard ports internally. It is perfectly possible to run your web server on the standard ports, if they are only exposed on the internal network, and still have another service like Traefik handle 443 and 80 traffic on the WAN.
For Docker, I think it is a good idea to have two networks configured in
docker-compose.yml. E.g. One that is exposed to the internet, and another that's marked "internal". The internal one is only used for services that do not need internet access. Alternatively you could useexposeinstead ofportswhen configuring the service, as that would only expose the port internally. Or, maybe even a combination?Instead of:
Long story short. Nextcloud needs internet for updates and to perform its checks. This means that your PHP-FPM container should at least have internet access, still while carefully making sure not to accidentally expose port 9000 directly to the internet. E.g. use
exposeinstead ofportsindocker-compose.ymlafaik.