Permission denied indicates a linux permission issue, do not change things manually, use the playbook: https://github.com/openwisp/ansible-openwisp-wifi-login-pages
Or alternatively, I use this script to rebuild after changes if I need to operate manually without the ansible playbook: #!/bin/bash set -e yarn # everything owned by www-data chown -R www-data:www-data . # remove any world permission chmod -R o-rwx . sudo -u www-data yarn build --mode production supervisorctl restart wifi_login_pages Set this in the same directory of the WiFI login pages app. Best regards Federico Capoano On Sun, May 15, 2022 at 6:45 AM Michele Salerno <[email protected]> wrote: > Hi, > > In a new installation I have the blank page. > > I copy default organization ed i modify only this vars: > --- > name: "Basilicata" > slug: "default" > > settings: > mobile_phone_verification: false > subscriptions: false > > # configuration variables for the server app > server: > # put the URL of openwisp-radius here > host: "http://127.0.0.1:8000" > uuid: "UID-OF-MY-ORG" > secret_key: "TOKEN-MY-ORG-RADIUS-SETTINGS" > > I looked in the logs and: cat > /opt/openwisp2/wifi-login-pages/log/server.log > > yarn run v1.22.19 > $ node config/setup.js && node config/build-translations.js > node:internal/fs/utils:345 > throw err; > ^ > > Error: EACCES: permission denied, open > '/opt/openwisp2/wifi-login-pages/client/configs/default.json' > at Object.openSync (node:fs:585:3) > at Object.writeFileSync (node:fs:2170:35) > at /opt/openwisp2/wifi-login-pages/config/setup.js:238:8 > at Array.forEach (<anonymous>) > at writeConfigurations > (/opt/openwisp2/wifi-login-pages/config/setup.js:236:17) > at Object.<anonymous> > (/opt/openwisp2/wifi-login-pages/config/setup.js:275:1) > at Module._compile (node:internal/modules/cjs/loader:1105:14) > at Object.Module._extensions..js > (node:internal/modules/cjs/loader:1159:10) > at Module.load (node:internal/modules/cjs/loader:981:32) > at Function.Module._load (node:internal/modules/cjs/loader:822:12) { > errno: -13, > syscall: 'open', > code: 'EACCES', > path: '/opt/openwisp2/wifi-login-pages/client/configs/default.json' > } > error Command failed with exit code 1. > info Visit https://yarnpkg.com/en/docs/cli/run for documentation about > this command. > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/openwisp/99b5e849-393d-c06b-baff-20781cd86732%40gmail.com > . > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6JOKH%3DpXLhKVufr3DZDiZc_qt_D_hcYFAtGTi-CL4eiRg%40mail.gmail.com.
