No, i try bat not working.
I try yarn check on direcotry of wifi-login-pages and i have this error:
I installed wifi-login-pages with role ansible.
root@controller:wifi-login-pages # yarn check
yarn check v1.22.19
warning"@babel/helper-create-class-features-plugin#@babel/helper-annotate-as-pure@^7.14.5" could
be deduped from "7.15.4" to"@babel/helper-annotate-as-pure@7.15.4"
warning"@babel/helper-create-class-features-plugin#@babel/helper-replace-supers@^7.14.5" could be
deduped from "7.15.4" to"@babel/helper-replace-supers@7.15.4"
warning"@babel/helper-create-class-features-plugin#@babel/helper-split-export-declaration@^7.14.5"
could be deduped from "7.15.4" to"@babel/helper-split-export-declaration@7.15.4"
warning"@babel/helper-module-transforms#@babel/helper-replace-supers@^7.15.0" could be deduped
from "7.15.4" to"@babel/helper-replace-supers@7.15.4"
warning"@babel/helper-module-transforms#@babel/helper-simple-access@^7.14.8" could be deduped from
"7.15.4" to"@babel/helper-simple-access@7.15.4"
warning"@babel/helper-module-transforms#@babel/helper-split-export-declaration@^7.14.5" could be
deduped from "7.15.4" to"@babel/helper-split-export-declaration@7.15.4"
warning"@babel/traverse#@babel/helper-hoist-variables@^7.14.5" could be deduped from
"7.15.4" to"@babel/helper-hoist-variables@7.15.4"
warning"@babel/traverse#@babel/helper-split-export-declaration@^7.14.5" could be deduped from
"7.15.4" to"@babel/helper-split-export-declaration@7.15.4"
error "acorn" is wrong version: expected "8.4.1", got "7.4.1"
warning"autoprefixer#browserslist@^4.12.0" could be deduped from "4.16.7"
to"browserslist@4.16.7"
warning"@babel/polyfill#regenerator-runtime@^0.13.4" could be deduped from "0.13.9"
to"regenerator-runtime@0.13.9"
warning"@babel/preset-env#@babel/plugin-transform-spread@^7.14.6" could be deduped from
"7.15.8" to"@babel/plugin-transform-spread@7.15.8"
warning"@babel/runtime#regenerator-runtime@^0.13.4" could be deduped from "0.13.9"
to"regenerator-runtime@0.13.9"
warning"copy-webpack-plugin#fast-glob@^3.2.4" could be deduped from "3.2.11"
to"fast-glob@3.2.11"
warning"eslint#@babel/code-frame#@babel/highlight@^7.10.4" could be deduped from
"7.14.5" to"@babel/highlight@7.14.5"
warning"@babel/code-frame#@babel/highlight#@babel/helper-validator-identifier@^7.14.5" could be
deduped from "7.14.9" to"@babel/helper-validator-identifier@7.14.9"
warning"autoprefixer#browserslist#electron-to-chromium@^1.3.723" could be deduped from
"1.3.808" to"electron-to-chromium@1.3.808"
warning"autoprefixer#browserslist#node-releases@^1.1.71" could be deduped from "1.1.74"
to"node-releases@1.1.74"
warning"enzyme#cheerio#tslib@^2.2.0" could be deduped from "2.3.0"
to"tslib@2.3.0"
warning"ttag-cli#koa-router#http-errors@^1.7.3" could be deduped from "1.8.1"
to"http-errors@1.8.1"
warning"ttag-cli#koa#http-errors@^1.6.3" could be deduped from "1.8.1"
to"http-errors@1.8.1"
warning"@babel/core#@babel/helper-compilation-targets#browserslist@^4.16.6" could be deduped from
"4.16.7" to"browserslist@4.16.7"
warning"@babel/preset-env#@babel/plugin-transform-object-super#@babel/helper-replace-supers@^7.14.5"
could be deduped from "7.15.4" to"@babel/helper-replace-supers@7.15.4"
warning"@babel/plugin-transform-async-to-generator#@babel/helper-remap-async-to-generator#@babel/helper-annotate-as-pure@^7.14.5"
could be deduped from "7.15.4" to"@babel/helper-annotate-as-pure@7.15.4"
warning"eslint#@babel/code-frame#@babel/highlight#@babel/helper-validator-identifier@^7.14.0"
could be deduped from "7.14.9" to"@babel/helper-validator-identifier@7.14.9"
warning"aria-query#@babel/runtime-corejs3#regenerator-runtime@^0.13.4" could be deduped from
"0.13.9" to"regenerator-runtime@0.13.9"
error "acorn-globals#acorn" not installed
error "espree#acorn" not installed
warning"@babel/helper-compilation-targets#browserslist#electron-to-chromium@^1.3.723" could be
deduped from "1.3.808" to"electron-to-chromium@1.3.808"
warning"@babel/helper-compilation-targets#browserslist#node-releases@^1.1.71" could be deduped
from "1.1.74" to"node-releases@1.1.74"
warning"koa-body#co-body#raw-body@^2.2.0" could be deduped from "2.4.2"
to"raw-body@2.4.2"
warning"@babel/plugin-proposal-unicode-property-regex#@babel/helper-create-regexp-features-plugin#@babel/helper-annotate-as-pure@^7.14.5"
could be deduped from "7.15.4" to"@babel/helper-annotate-as-pure@7.15.4"
error "espree#acorn-jsx" not installed
warning"cssnano-preset-default#postcss-colormin#browserslist@^4.16.6" could be deduped from
"4.16.7" to"browserslist@4.16.7"
warning"cssnano-preset-default#postcss-merge-rules#browserslist@^4.16.6" could be deduped from
"4.16.7" to"browserslist@4.16.7"
warning"postcss-colormin#browserslist#electron-to-chromium@^1.3.723" could be deduped from
"1.3.808" to"electron-to-chromium@1.3.808"
warning"postcss-colormin#browserslist#node-releases@^1.1.71" could be deduped from
"1.1.74" to"node-releases@1.1.74"
warning"postcss-merge-rules#browserslist#electron-to-chromium@^1.3.723" could be deduped from
"1.3.808" to"electron-to-chromium@1.3.808"
warning"postcss-merge-rules#browserslist#node-releases@^1.1.71" could be deduped from
"1.1.74" to"node-releases@1.1.74"
warning"babel-preset-jest#babel-plugin-jest-hoist#@types/babel__core@^7.0.0" could be deduped from
"7.1.15" to"@types/babel__core@7.1.15"
info Found 36 warnings.
error Found 4 errors.
info Visithttps://yarnpkg.com/en/docs/cli/check for documentation about this
command.
Il 16/05/22 14:00, Federico Capoano ha scritto:
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 <mikysa...@gmail.com>
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 openwisp+unsubscr...@googlegroups.com
<mailto:openwisp%2bunsubscr...@googlegroups.com>.
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 openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/CAAGgX6JOKH%3DpXLhKVufr3DZDiZc_qt_D_hcYFAtGTi-CL4eiRg%40mail.gmail.com
<https://groups.google.com/d/msgid/openwisp/CAAGgX6JOKH%3DpXLhKVufr3DZDiZc_qt_D_hcYFAtGTi-CL4eiRg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si
precisa che le informazioni contenute in questo messaggio sono riservate e ad
uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse
pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non
inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy Code),
may contain confidential and/or privileged information. If you are not the
addressee or authorized to receive this for the addressee, you must not use,
copy, disclose or take any action based on this message or any information
herein. If you have received this message in error, please advise the sender
immediately by reply e-mail and delete this message. Thank you for your
cooperation.
--
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 openwisp+unsubscr...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/7c981f64-7413-f02f-c0e3-6a668f300121%40gmail.com.