Occ setupchecks -> remote address could not be determined

Hello,

I get the following error-Messages after a check with:

sudo -u www-data php /var/www/html/occ setupchecks


System: Brute force throttling: Your remote address could not be determined.

Security: Forwarded for headers: Your remote address could not be determined.

Nextcloud is accessed behind a reverse proxy (Apache) and works completely in my opinion.

Unfortunately, I don’t really have an idea where to start when looking for the solution. Does anyone here have a tip for me?

Regards Tony

Review 101: reverse proxy
topics tagged setup_warning likely help

This is because there is no remote address when you run the setup checks from the command line.

Check from the Web UI if you want that check to run.

How can I access occ without a command line? I found the OCC Web App via Google. However, this does not work with Nextcloud 31.

The Setup Checks are accessed directly in the Web UI via Admin settings->Overview.

I guess it doesn’t make much sense to run the Brute-force Throttle and Forward for headers checks from CLI then. Maybe they should be skipped when running setupchecks via occ commad, just like the PHP opcache check:

✓ PHP opcache: Checking from CLI, OPcache checks have been skipped.