Hello,
I have a server with Ubuntu 22.04 and I am trying to configure
*ansible-openwisp-wifi-login-pages*.
I configured the playbook.yml as in the documentation:
- hosts: openwisp-wifi-login-pages become: "{{ become | default('yes') }}"
roles: - openwisp.wifi_login_pages vars: wifi_login_pages_domains:
["wifi.openwisp.org"]
also the hosts file:
[openwisp-wifi-login-pages] openwisp-wifi-login-pages.mydomain.com
when I try to run the playbook in my server, I face the following error in
the yarn build task:
TASK [openwisp.wifi_login_pages : yarn build]
*********************************************************************************************************************************************************************
fatal: [openwisp-wifi-login-pages.mydomain.com]: FAILED! => {"msg": "Failed
to set permissions on the temporary files Ansible needs to create when
becoming an unprivileged user (rc: 1, err: chmod: invalid mode:
'A+user:www-data:rx:allow'\nTry 'chmod --help' for more information.\n}).
For information on working around this, see
https://docs.ansible.com/ansible-core/2.13/user_guide/become.html#risks-of-becoming-an-unprivileged-user"}
PLAY RECAP
********************************************************************************************************************************************************************************************************
openwisp-wifi-login-pages.mydomain.com : ok=17 changed=4 unreachable=0
failed=1 skipped=0 rescued=0 ignored=0
[image: image]
<https://private-user-images.githubusercontent.com/60689893/288145979-1bf534b6-76fa-4b05-9584-a4a41610c944.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDMwODg2MTEsIm5iZiI6MTcwMzA4ODMxMSwicGF0aCI6Ii82MDY4OTg5My8yODgxNDU5NzktMWJmNTM0YjYtNzZmYS00YjA1LTk1ODQtYTRhNDE2MTBjOTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzEyMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMxMjIwVDE2MDUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjZjI2MGViNTdiMWY5YjA4YmE1YzY0YWQwMWMxOTA3YTQzNTQ3OGM0NzQxZWRhMGVhYjhkNGZmNDgwOTA3MWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.p8V8xFKZrUcF5HF0XWt4bPtY0rfZYy4_m5XX0EInJZo>
seems that the www-data user dont have permissions to do all yarn build
task.
When I check the wifi-login-pages folder, seems that everything is okay.
www-data is the owner and the group.
Do you know how to solve it?
Also, I tried in differents machines and I always have the same error.
Thanks,
Pablo
--
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/7e60a97d-45fa-4edf-8634-488be0e9966en%40googlegroups.com.