Oh, now I understand why you were having this problem.

You were launching the agent (/usr/sbin/openwisp_config) directly
because you were calling "openwisp_config" on the command line.

You have to use the init.d script:
/etc/init.d/openwisp_config start

As documented in the openwisp-config README
<https://github.com/openwisp/openwisp-config/#install-precompiled-package>.

Anyway, glad you found out the issue.

Federico

On Mon, Mar 27, 2017 at 3:31 PM henriqsc <[email protected]> wrote:

> Hi Frederico
>
> that worked for me now, the only different thing I did was using "./".
> Something I should have figured out long before :|.
>
>  ./openwisp_config start
>
> Thank you for your help!
>
> Em sexta-feira, 24 de março de 2017 14:52:30 UTC-3, Federico Capoano
> escreveu:
>
> I've installed the nossl package, pasted the config you provided and the
> deamon started successfully.
>
> I cannot reproduce your problem.
>
> Federico
>
>
> On Friday, March 24, 2017 at 4:41:40 PM UTC+1, henriqsc wrote:
>
> Hello Fred
>
>
> http://downloads.openwisp.org/openwisp-config/latest/openwisp-config-nossl_0.4.6a-1_all.ipk
>
> My openwisp file:
>
> config controller 'http'
> option url 'http://myserver'
> option interval '120'
> option_verify_ssl '0'
> option shared_secret '1234567'
> #option consistent_key '1'
> #option mac_interface 'eth0'
> #option merge_config '1'
> #option test_config '1'
> #option test_script '/usr/sbin/mytest'
> option uuid ''
> option key ''
> list unmanaged 'system.@led'
> list unmanaged 'network.loopback'
> list unmanaged 'netwok.@switch'
> list unmanaged 'network.@switch_vlan'
> # curl options
> #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'
>
>
>
> Em sexta-feira, 24 de março de 2017 10:39:58 UTC-3, Federico Capoano
> escreveu:
>
> Hi Enrique,
>
> so, I haven't understood well how to replicate your issue.
>
> You installed a precompiled package?
>
> Which one? Could you send me the full URL?
>
> What's the contents of /etc/config/openwrt?
>
> Federico
>
>
> Il ven 24 mar 2017, 12:35 henriqsc <[email protected]> ha scritto:
>
> No really, some admin might have deleted it.
>
> I still have the same problem. I know i have to have a server to manage it
> I just havent had the time to install it yet so I was just testing the
> client side.
>
>
> Em sexta-feira, 24 de março de 2017 07:39:08 UTC-3, Federico Capoano
> escreveu:
>
> Hi,
>
>
>
> On Thu, Mar 23, 2017 at 9:49 PM henriqsc <[email protected]> wrote:
>
> Hello I've just installed th e client openwisp-config for openwisp2 on a
> virtual machine with openwrt for test. I followed the instructions to
> install the nossl version of the client, everything went ok until I tried
> to start the client using "openwisp_config start" which returns me the
> message "sh:bad number" and "openwisp: missing required --url option". I
> checked \etc\config\openwisp and uncommented and set option url, interval
> and shared secret but with no effect. I don't have the server installed yet
> do I need it to run the client? If not why am I getting this message since
> the url is already configured?
>
>
> I noticed this message was deleted on the forum web interface, so I guess
> you resolved the issue and found out was a misconfiguration, am I correct?
>
> Federico
>
> PS: thank you Alexandre for trying to help
>
> --
> 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].
> 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].
> 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to