Theming does not work, new install (nginx) Not loading any themes at all

When i go to the page for nc, theming does not work at all.

2023/02/26 15:07:28 [error] 34150#34150: *1 open() “/home/nextcloud/nextcloud/apps/theming/theme/dark-highcontrast.css” failed (2: No such file or directory), client: {ip}, server: c, request: “GET /apps/theming/theme/dark-highcontrast.css?plain=1&v=f63bb54e HTTP/2.0”, host: “c”

the /theme/ does not exist in the theming folder.
I use the latest nc in nginx on debian.

My nginx conf for the nc is:

upstream php-handler {

# server 127.0.0.1:9000;

server unix:/var/run/php/php7.4-fpm.sock;

}

server {

# Binds the TCP port 443

listen 443 ssl http2;

# Root directory used to search for a file

root /home/nextcloud/nextcloud/;

# Defines the file to use as index page

index index.php;

# Defines the domain or subdomain name.

# If no server_name is defined in a server block then

# Nginx uses the 'empty' name

server_name [my domain];

ssl_certificate /etc/letsencrypt/live/[my domain]/fullchain.pem;

ssl_certificate_key /etc/letsencrypt/live/[my domain]/privkey.pem;

# Add headers to serve security related headers

# Before enabling Strict-Transport-Security headers please read into this

# topic first.

# add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";

#

# WARNING: Only add the preload option once you read about

# the consequences in https://hstspreload.org/. This option

# will add the domain to a hardcoded list that is shipped

# in all major browsers and getting removed from this list

# could take several months.

add_header X-Content-Type-Options nosniff;

add_header X-XSS-Protection "1; mode=block";

add_header X-Robots-Tag none;

add_header X-Download-Options noopen;

add_header X-Permitted-Cross-Domain-Policies none;

add_header Referrer-Policy no-referrer;

# Remove X-Powered-By, which is an information leak

fastcgi_hide_header X-Powered-By;

location ~ \.css {

add_header Content-Type text/css;

}

location / {

rewrite ^ /index.php$request_uri;

}

location ~ ^\/(?:build|tests|config|lib|3rdparty|templates|data)\/ {

deny all;

}

location ~ ^\/(?:\.|autotest|occ|issue|indie|db_|console) {

deny all;

}

# Adding the cache control header for js, css and map files

# Make sure it is BELOW the PHP block

location ~ \.(?:css|js|woff2?|svg|gif|map)$ {

try_files $uri /index.php$request_uri;

add_header Cache-Control "public, max-age=15778463";

# Add headers to serve security related headers (It is intended to

# have those duplicated to the ones above)

# Before enabling Strict-Transport-Security headers please read into

# this topic first.

# add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";

#

# WARNING: Only add the preload option once you read about

# the consequences in https://hstspreload.org/. This option

# will add the domain to a hardcoded list that is shipped

# in all major browsers and getting removed from this list

# could take several months.

add_header X-Content-Type-Options nosniff;

add_header X-XSS-Protection "1; mode=block";

add_header X-Robots-Tag none;

add_header X-Download-Options noopen;

add_header X-Permitted-Cross-Domain-Policies none;

add_header Referrer-Policy no-referrer;

# Optional: Don't log access to assets

access_log off;

}

location ~ \.(?:png|html|ttf|ico|jpg|jpeg)$ {

try_files $uri /index.php$request_uri;

# Optional: Don't log access to other assets

access_log off;

}

# set max upload size

client_max_body_size 512M;

fastcgi_buffers 64 4K;

# Enable gzip but do not remove ETag headers

gzip on;

gzip_vary on;

gzip_comp_level 4;

gzip_min_length 256;

gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;

gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+js>

# Uncomment if your server is build with the ngx_pagespeed module

# This module is currently not supported.

#pagespeed off;

location ~ \.php(?:$|/) {

fastcgi_split_path_info ^(.+?\.php)(/.*)$;

set $path_info $fastcgi_path_info;

try_files $fastcgi_script_name =404;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_param PATH_INFO $path_info;

fastcgi_param HTTPS on;

fastcgi_param modHeadersAvailable true;

fastcgi_param front_controller_active true;

fastcgi_pass php-handler;

fastcgi_intercept_errors on;

fastcgi_request_buffering off;

}

}

Seeing the same issue, after installing a fresh install using the web installer method.
I’ve seen some suggestions about disabling the theming app, flushing caches, using different browsers, doing a maintenance theme update via occ. None of that’s worked for me.