Nginx Permission error

issue: js and css error for home page (website) localhost

OS: Debian 12

installed apt : using python3.11 (all latest stable version for Debian 12)
nvm --lst (version 18)
mariadb (latest stable version)

Frappe Version : 14.30.6
Erpnext Version : 14

all works fine when using bench start

but after sudo bench setup production [user]

the js and css can’t be loaded .

cat /var/log/nginx/error.log

p/sites/assets/erpnext/dist/js/erpnext-web.bundle.J5D7LDQM.js" failed (13: Permission denied), client:, server: testsite.test, request: “GET /assets/erpnext/dist/js/erpnext-web.bundle.J5D7LDQM.js HTTP/1.1”, host: “localhost”, referrer: “http://localhost/

sudo usermod -aG [user] www-data
bench build --production
bench build --force
bench migrate
bench update --reset
bench clear-cache
sudo chmod -R [user]:[user] [bench folder]

reload nginx

but still have same issue

no issue during all above commands except

when using

bench update --rest command

only error below

Building assets…
Assets for Release v14.40.3 don’t exist

any idea why this happens?