libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

LY: Print error (No such file or directory) during edit config RPC

Open kr234 opened this issue 5 years ago • 3 comments

Sending edit config rpc fails with LY: Print error (No such file or directory). This happens in flow nc_send_rpc->nc_write_msg_io->lyd_print_clb(). Can you provide info on how to resolve this isssue.

lnc2_print_clb():nc VERBOSE: Session[3], sending message:

#209

lnc2_print_clb():nc VERBOSE:Session[3], sending message: merge

lnc2_print_clb():nc VERBOSE:Session[3], sending message:

#5128

lnc2_print_clb():nc VERBOSE:Session[3], sending message:

//all the sent contents gets printed here.

Dec:20:19:20:39:389813|error|5418|ncClient.cpp|806|ly_print_clb():ly ERROR: Print error (No such file or directory).

kr234 avatar Dec 20 '20 19:12 kr234

What exactly are you running? What is ncClient.cpp?

michalvasko avatar Jan 04 '21 07:01 michalvasko

Hello,

ncClient.cpp is the client that issues rpcs to the server and the edit-config rpc is failing with below error

ERROR: Print error (No such file or directory).] msg: failed to send the rpc[3].]

This issue got resolved by increasing the buffer size in io.c . Previously it was #define WRITE_BUFSIZE (2 * BUFFERSIZE) and it was changed to 12 kb #define WRITE_BUFSIZE (25 * BUFFERSIZE) .

Wanted to understand more on this issue. should netconf client need to take care of limiting the data that is sent out to netconf server.

kr234 avatar Mar 22 '21 09:03 kr234

should netconf client need to take care of limiting the data that is sent out to netconf server.

No, this seems like a bug. Could you provide more information on the use-case? Best a way to simply reproduce the error.

michalvasko avatar Mar 22 '21 10:03 michalvasko