Authentication failure in ansible-openwisp-wifi-login-pages

32 views
Skip to first unread message

Pablo Ramos

unread,
Dec 21, 2023, 8:02:41 AM12/21/23
to OpenWISP
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

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

Reply all
Reply to author
Forward
0 new messages