Update: I made a complete new setup on a newly installed target machine. 
The ansible-playbook passed without errors. Anyway, I get a blank page. 
There is o error in any log, except one warning on the target machine in 
/opt/openwisp2/wifi-login-pages/log/server.log:

yarn run v1.22.18
$ node config/setup.js && node config/build-translations.js
warning Cannot find a suitable global folder. Tried these: "/usr/local, 
/var/www/.yarn"

Could this be the reason? Thank you.




Hagen Muench schrieb am Freitag, 1. April 2022 um 09:38:34 UTC+2:

> Thank you for the hints. But actually I followed already the procedure as 
> described in Deploy organizations 
> <https://github.com/openwisp/ansible-openwisp-wifi-login-pages#deploy-organizations-configurations-and-assets>
> .
>
> On the server it is also available:
>
> /opt/openwisp2# ls ./wifi-login-pages/organizations
> default  js
>
>
> The default.yml has more or less the same content as the default.yml in 
> GIT. 
> <https://github.com/openwisp/openwisp-wifi-login-pages/blob/master/organizations/default/default.yml>
>
> May be I should mention that I made an ansible setup for openwisp2 on the 
> same server before (that works). Could there be any conflict?
>
> Thank you.
> Hagen 
>
> miky...@gmail.com schrieb am Dienstag, 22. März 2022 um 00:20:54 UTC+1:
>
>> Hi,
>> I also try to understand something ....
>> From 
>> https://github.com/openwisp/openwisp-wifi-login-pages/tree/master/organizations
>>  
>> copy default in your organization.
>> See 
>> https://github.com/openwisp/ansible-openwisp-wifi-login-pages#deploy-organizations-configurations-and-assets
>>
>> and change the file yml for your server.
>> try, if you can understand something let me know.
>> I managed not to have the blank page.
>> bye
>> Il giorno sabato 19 marzo 2022 alle 10:36:08 UTC+1 hagen.mu...@gmail.com 
>> ha scritto:
>>
>>> Hi,
>>>
>>> I was following the instructions of the  README 
>>> <https://github.com/openwisp/ansible-openwisp-wifi-login-pages/blob/master/README.md>.
>>>  
>>> The setup passed without errors. However, if I call the login-page I 
>>> receive a blank page (see screen shot).[image: loginpage.png]
>>>
>>> Is there a know trap where I stumbled in? Thank you.
>>>
>>> Regards,
>>> Hagen
>>>
>>>
>>> The playbook:
>>> - hosts: openwisp-wifi-login-pages
>>>   become: "{{ become | default('yes') }}"
>>>   roles:
>>>     - ansible-openwisp-wifi-login-pages
>>>   vars:
>>>     wifi_login_pages_domains: ["login.gordiancode.local"]
>>>
>>> The hosts file:
>>> [openwisp-wifi-login-pages]
>>> openwisp-wifi-login-pages.gordiancode.local
>>>
>>> The response payload:
>>> <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta 
>>> name="viewport" 
>>> content="width=device-width,initial-scale=1,shrink-to-fit=no"/><title></title></head><style>/*
>>>       The loading indicator needs to be loaded
>>>       right away, please do not remove this code
>>>     */
>>>     html,
>>>     body {
>>>       overflow: hidden;
>>>     }
>>>     .loader-container {
>>>       display: flex;
>>>       flex-direction: row;
>>>       justify-content: center;
>>>       align-items: center;
>>>     }
>>>     .loader-container.full {
>>>       width: 100%;
>>>       height: 100%;
>>>       position: fixed;
>>>       top: 0;
>>>       left: 0;
>>>       background: rgba(255, 255, 255, 1);
>>>       z-index: 9998;
>>>     }
>>>     .loader {
>>>       border: 8px solid #f3f3f3;
>>>       border-top: 8px solid #2b3a42;
>>>       border-radius: 50%;
>>>       width: 50px;
>>>       height: 50px;
>>>       animation: spin 0.8s linear infinite;
>>>     }
>>>     .small .loader {
>>>       width: 30px;
>>>       height: 30px;
>>>     }
>>>     @keyframes spin {
>>>       0% {
>>>         transform: rotate(0deg);
>>>       }
>>>       100% {
>>>         transform: rotate(360deg);
>>>       }
>>>     }</style><body><div id="preload" class="loader-container full"><div 
>>> class="loader"></div></div><div id="root"></div><script src="
>>> https://polyfill.io/v3/polyfill.js"; nomodule></script><script 
>>> src="/runtime.a676e5895708d5f59205.js"></script><script 
>>> src="/vendors~main.5f01e07dd9a4c8010365.chunk.js"></script><script 
>>> src="/main.2e659540698b6132bff2.chunk.js"></script></body></html>
>>>
>>>

-- 
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/b327bc39-7871-4040-8808-2545bdb477c8n%40googlegroups.com.

Reply via email to