Hi Satya, 

Why are you commenting out the group (gid) configuration? The complaint is that 
vcl cannot connect to vpp’s binary api, so that may be part of the problem, if 
the user running vcl cannot read the binary api shared memory segment. 

You could also try connecting using private connections, instead of using shm 
based binary api segments, by configuring vpp to use the sock transport of the 
binary api. For that, add to startup.conf socksvr { socket-name 
/run/vpp-api.sock} and session { evt_qs_memfd_seg }

And then in vcl.conf add "api-socket-name /run/vpp-api.sock”. See [1] for a 
simple config. 

Regards, 
Florin

[1] https://wiki.fd.io/view/VPP/HostStack/LDP/iperf

> On Feb 17, 2020, at 7:08 AM, Satya Murthy <satyamurthy1...@gmail.com> wrote:
> 
> Hi,
> 
> We are seeing following error when we try to connect to VPP via VCL test 
> client.
> Is this a known issue? 
> 
> startup file that we are using on VPP:
> ============================
> 
> unix {
>   nodaemon
>   log /tmp/vpp.log
>   full-coredump
>   cli-listen /run/vpp/cli.sock
> #  gid vpp
> } 
>
> #api-segment {
> #  gid vpp
> #}
> 
> Error:
> ======
> ./vcl_test_client 127.0.0.1 12344
> VCL<1273>: using default heapsize 268435456 (0x10000000)
> VCL<1273>: allocated VCL heap = 0x7fe8a141f010, size 268435456 (0x10000000)
> VCL<1273>: using default configuration.
> vppcom_connect_to_vpp:577: vcl<w0>: VCL<1273>: app (vcl_test_client) 
> connecting to VPP api (/vpe-api)...
> vl_map_shmem:637: region init fail
> connect_to_vlib_internal:410: vl_client_api map rv -2
> vppcom_connect_to_vpp:583: VCL<1273>: app (vcl_test_client) connect failed!
> vppcom_app_create:724: VCL<1273>: ERROR: couldn't connect to VPP!
> ERROR when calling vppcom_app_create(): Connection refused
>
>
> ERROR: vppcom_app_create() failed (errno = 111)!
> 
> Any inputs on this please ?
> 
> -- 
> Thanks & Regards,
> Murthy 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#15433): https://lists.fd.io/g/vpp-dev/message/15433
Mute This Topic: https://lists.fd.io/mt/71351013/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to