Error: file_exists(): open_basedir restriction in effect

The following error output doesn’t stop.

Error: file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/ROOT-DIR/:/tmp/:/dev/urandom:/proc/meminfo:/NC-DIR) at /NC-DIR/lib/private/Template/Base.php#68

Error: file_exists(): open_basedir restriction in effect. File(/NC-DIR/data/USER-NAME/files/DATA-FILE-NAME/desktop.ini) is not within the allowed path(s): (/ROOT-DIR/:/tmp/:/dev/urandom:/proc/meminfo:/NC-DIR) at /NC-DIR/lib/private/Files/Storage/Local.php#239

Is there a missing directory that should be specified in open_basedir?


Nextcloud 21.0.3, CentOS 7.8, Nginx 1.20.1, PHP 7.4.22