[vpp-dev] Facing Failed: vppctl show cpu: clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection refused.
Hi All, I am trying to integrate echo_server.c with some changes in my box.After deployment of this plugin i am getting below error. *Failed: vppctl show cpu: clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection refused* *what i have done is earlier i got an error message that file does not exist for /run/vpp/cli.sock').* *To fix this i created a file and after that i am getting the error.* *Typically when we use socket api's provided by VPP what config we should consider which will be part of startup.conf?* *For e.g. i added below changes in my startup.conf.* *unix { nodaemon log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock### gid vpp}* *session { evt_qs_memfd_seg }socksvr { default}* Thanks in advance. Regards, Nikhil -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18744): https://lists.fd.io/g/vpp-dev/message/18744 Mute This Topic: https://lists.fd.io/mt/80615043/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] Facing Failed: vppctl show cpu: clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection refused #vpp #vpp-dev #vnet #vppcom
Hi All, I am trying to integrate echo_server.c with some changes in my box.After deployment of this plugin i am getting below error. *Failed: vppctl show cpu: clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection refused* ** *what i have done is earlier i got an error message that file does not exist for /run/vpp/cli.sock').* *To fix this i created a file and after that i am getting the error.* *Typically when we use socket api's provided by VPP what config we should consider which will be part of startup.conf?* ** *For e.g. i added below changes in my startup.conf.* ** *unix { nodaemon log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock ### gid vpp } * ** *session { evt_qs_memfd_seg } socksvr { default } Regards, Nikhil * -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18745): https://lists.fd.io/g/vpp-dev/message/18745 Mute This Topic: https://lists.fd.io/mt/80615104/21656 Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp Mute #vpp-dev:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp-dev Mute #vnet:https://lists.fd.io/g/vpp-dev/mutehashtag/vnet Mute #vppcom:https://lists.fd.io/g/vpp-dev/mutehashtag/vppcom Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] Facing Failed: vppctl show cpu: clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): Connection refused.
Hi Nikhil, There are a couple of things conflated here. First, the cli is vpp’s cli which can be connected to through a socket. That’s the “/run/vpp/cli.sock” and it’s created by vpp at startup so remove the one you’ve created. The binary api also exposes a socket and you’ve configured it to use the default socket name (in the socksvr stanza). If gid is set to vpp (although you have it commented out) it should be "/run/vpp/api.sock”. If vcl is configured to use the binary api to attach to vpp, that’s the socket it should be configured to use. To avoid surprises, instead of using default, use an explicit path instead of default, i.e., “socksvr { sock-name /path/to/file” }" Regards, Florin > On Feb 13, 2021, at 10:36 AM, nikhil subhedar > wrote: > > Hi All, > > > I am trying to integrate echo_server.c with some changes in my box.After > deployment of this plugin i am getting below error. > Failed: vppctl show cpu: clib_socket_init: connect (fd 3, > '/run/vpp/cli.sock'): Connection refused > > what i have done is earlier i got an error message that file does not exist > for /run/vpp/cli.sock'). > To fix this i created a file and after that i am getting the error. > Typically when we use socket api's provided by VPP what config we should > consider which will be part of startup.conf? > > For e.g. i added below changes in my startup.conf. > > unix { > nodaemon > log /var/log/vpp/vpp.log > full-coredump > cli-listen /run/vpp/cli.sock > > ### gid vpp > } > > session { evt_qs_memfd_seg } > socksvr { > default > } > > > Thanks in advance. > > Regards, > Nikhil > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18746): https://lists.fd.io/g/vpp-dev/message/18746 Mute This Topic: https://lists.fd.io/mt/80615043/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-