Thank you very much, A Stanley, I'll do all you say and give you feedback.

El El jue, 9 may 2019 a las 18:13, A Stanley <[email protected]> escribió:

> I'm pretty sure the container doesn't have '/etc/config/openwisp'.  It
> does look like an issue with the auto registration if you have configured
> your APs /etc/config/openwisp correctly.  You could try manually setting
> the UUID and Key in your AP config using what is shown in your Openwisp
> controller.  For what it's worth you can launch a shell in the controller
> container with;
>
> >docker exec -it <container_name> sh
>
> If nothing else you can watch the logs there;
>
> >tail -f log/error.log
>
>
> On Thu, May 9, 2019 at 11:58 AM Oscar Esteve <[email protected]> wrote:
>
>> Hello,
>>
>> After going to "Organization", in OpenWisp controller, and copy the
>> shared_key into /etc/config/openwisp of my OpenWrt device, I try to start
>> the config utility:
>> root@OpenWrt1043Main:~# /etc/init.d/openwisp_config start
>> *openwisp: you must either set uuid and key, or shared_secret in
>> /etc/config/openwisp*
>>
>> Yes, I'm in the OpenWrt AP ssh shell: it's where I run the command and
>> where I get the message.
>>
>> I'm following the process described in
>> https://github.com/openwisp/openwisp-config#automatic-registration, as
>> Israel Surio states.
>>
>> My /etc/config/openwisp file is:
>> config controller 'http'
>>         option url 'https://openwisp2.myself.com'
>>         #option interval '120'
>>         option verify_ssl '1' # I've used the '0' option with the same
>> results
>>         option shared secret 'dxxxJ4cbibDgvQRkQmQJpAwaErTyetc'
>>         #option shared_secret 'myself_secretkey' #the same shared secret
>> I used in .env file, but it seems it's not used?
>>         #option consistent_key '1'
>>         option mac_interface 'eth0'
>>         #option management_interface 'tun0'
>>         #option merge_config '1'
>>         #option test_config '1'
>>         #option test_script '/usr/sbin/mytest'
>>         #option hardware_id_script '/usr/sbin/read_hw_id'
>>         #option hardware_id_key '1'
>>         option uuid ''
>>         option key ''
>>         list unmanaged 'system.@led'
>>         list unmanaged 'network.loopback'
>>         list unmanaged 'network.@switch'
>>         list unmanaged 'network.@switch_vlan'
>>         # curl options
>>         #option connect_timeout '15'
>>         #option max_time '30'
>>         #option capath '/etc/ssl/certs'
>>         #option cacert '/etc/ssl/certs/ca-certificates.crt'
>>         # hooks
>>         #option pre_reload_hook '/usr/sbin/my_pre_reload_hook'
>>         #option post_reload_hook '/usr/sbin/my_post_reload_hook'
>>
>> If there is a way to get into the container's /etc/config/openwisp, I'll
>> set the shared_secret there, as my AP says I have to do.
>>
>> This is what I have in
>> https://openwisp2.myself.com/admin/openwisp_users/organization/.
>> [image: image.png]
>> As you can see, auto-registration is enabled.
>>
>> Maybe... and it's a guess... is the /etc/config/openwisp file mounted
>> inside the container as read-only?
>>
>> Please, if you clearly see what I'm doing wrong... maybe it's a newbie
>> error.
>>
>> Thank you very much for your help,
>> Oscar
>>
>> Missatge de A Stanley <[email protected]> del dia dj., 9 de maig 2019
>> a les 16:56:
>>
>>> Is this error from your Openwisp container or your OpenWRT AP "openwisp:
>>> you must either set uuid and key, or shared_secret in /etc/config/openwisp"?
>>>
>>> On Thu, May 9, 2019 at 7:22 AM Oscar Esteve <[email protected]> wrote:
>>>
>>>> UPDATE
>>>> Going to
>>>> https://openwisp2.myself.com/admin/openwisp_users/organization/, as
>>>> stated here: http://openwisp.io/docs/user/configure-device.html
>>>>
>>>> I get a new shared secret, for default organization, and when I use it
>>>> on my OpenWrt AP and I type
>>>> /etc/init.d/openwisp_config start,
>>>> I get:
>>>> openwisp: you must either set uuid and key, or shared_secret in
>>>> /etc/config/openwisp
>>>>
>>>> How can I do that? In docker-compose.yml I cannot see any reference to
>>>> this folder, it seems not to be declared as bind mount, maybe inside of
>>>> some volume?
>>>> I thought the devices would auto register with the openwisp_config
>>>> start command, and they would get an uuid and key automatically.
>>>>
>>>> Thank you again,
>>>> Oscar
>>>>
>>>>
>>>> Missatge de Ajay Tripathi <[email protected]> del dia dj., 9 de maig
>>>> 2019 a les 0:46:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am still working on the SSL part. Yet to merge it to master branch.
>>>>> If all goes well, I should be able to upload a testable version by
>>>>> tomorrow. :-)
>>>>> (Lookout for the next commit in the branch: sslmode.)
>>>>>
>>>>> Also, It looks like you are trying to deploy this code with your
>>>>> devices.
>>>>> Please remember that this project has only started and we are still
>>>>> changing a lot of things. That means it's possible that you may add your
>>>>> devices and configure everything and the next update may change something
>>>>> and you may lose your configuration!
>>>>>
>>>>>
>>>>> Best,
>>>>> Ajay Tripathi
>>>>>
>>>>> --
>>>>> 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/CAPxBCYa4ZDRyFGauu4Qh8ZvofVNKMU4kqNqNLdQqBNQrHxQ8tQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/openwisp/CAPxBCYa4ZDRyFGauu4Qh8ZvofVNKMU4kqNqNLdQqBNQrHxQ8tQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> 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/CAMeGni6XXp3ynK_8x7bjvzqzbtsnVnqSoO0b3oic-9%2Bo47ss3A%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/openwisp/CAMeGni6XXp3ynK_8x7bjvzqzbtsnVnqSoO0b3oic-9%2Bo47ss3A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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/CAP6YPdqXjZ%2BbRb5qcM1tsYx7GGimwdb7F-w96C53Hz_%3Dde-cqw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/openwisp/CAP6YPdqXjZ%2BbRb5qcM1tsYx7GGimwdb7F-w96C53Hz_%3Dde-cqw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/CAMeGni5Gu-Z4BK5ASC%3DSvt%3DeZreQ2x%3DjEMqLo1xg0Y-a4bnQnw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/openwisp/CAMeGni5Gu-Z4BK5ASC%3DSvt%3DeZreQ2x%3DjEMqLo1xg0Y-a4bnQnw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/CAP6YPdoAhomTgoCxAiHzgRUR41sz20SDHJw0LC1RH1uNcdA%2BsQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/openwisp/CAP6YPdoAhomTgoCxAiHzgRUR41sz20SDHJw0LC1RH1uNcdA%2BsQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMeGni7VQa8pMBqo6JYbf5G7eGX2_82TS53cj8d5bQ5wwLbYRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to