Regarding klishd error - Can't create KTPd session (Alpine 3.23.2 os)

11 views
Skip to first unread message

Sivaram Naik

unread,
Mar 25, 2026, 10:14:20 AM (8 days ago) Mar 25
to klish
Hi All,

I am new to Klish and working on to bring-up Klish CLI environment with client and Klishd daemon by sysrepo as DB (with help of klish-plugin-sysrepo plugin).
In spite of debugging for more than a day along with usage of M365 Copilot help,  not able to narrow down on issue or resolution where Copilot ended up suggesting for clean install after initial XML formats and .conf files correction though I might have missed to  explain all context to Copilot. 

Error:
 klishd-listen: Service process for client was forked: 2350
 klishd[2350]: Can't create KTPd session
 klishd[2350]: Close connection 6
 klishd-listen: Service process 2350 was terminated: 255

Environment/context:
  Linux OS: Alpine-3.23.2
  Klish : https://src.libcode.org/download/klish/klish-3.1
  libfaux 2.2.0
  klish‑plugin‑sysrepo 3.1.0
  libyang

NOTE: In same host and same sysrepo DB libraries, netopeer2 client and server setup works all for Netconf setup.

Checked similar errors on this group and followed below mentioned steps as well, however issue remain persists.

some config files corrected from Copilot.
localhost:/etc/klish# ls -l
total 16
-rw-r--r--    1 root     root            68 Mar 25 12:08 klish.conf
-rw-r--r--    1 root     root           138 Mar 25 11:59 klishd.conf
drwxr-xr-x    2 root     root          4096 Mar 25 11:57 scheme
drwxr-xr-x    2 root     root          4096 Jan 16 18:10 xml.bak
localhost:/etc/klish# cat klish.conf klishd.conf scheme/main.xml
[client]
scheme = default
unix-socket-path = /tmp/klish-unix-socket
[server]
dbs = libxml2
unix-socket-path = /tmp/klish-unix-socket
fork-mode = reuse
max-clients = 10

[scheme]
xml-dir = /etc/klish/scheme
<?xml version="1.0" encoding="UTF-8"?>
<KLISH
  name="default"
  xmlns="https://src.libcode.org/pkun/klish/xml/klish"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <STARTUP view="main"/>

  <VIEW name="main">
    <PROMPT>
      <ACTION builtin="prompt">%u@%h> </ACTION>
    </PROMPT>

    <COMMAND name="echo" help="Print text">
      <PARAM name="text" ptype="STRING"/>
      <ACTION builtin="echo">
        <ARG name="text"/>
      </ACTION>
    </COMMAND>
  </VIEW>

</KLISH>
localhost:/etc/klish#

Any light on this about what I am missing or steps to narrow down this issue is highly appreciated.

Thank you very much.

Regards,
Sivaram

Serj Kalichev

unread,
Mar 26, 2026, 4:49:45 AM (7 days ago) Mar 26
to kl...@googlegroups.com
Hi

Probably it can't find XML configs.
It searchs for the schema in /etc/klish and ~/.klish dirs.
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klish+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/klish/d278537d-acc6-4f8d-9148-86135f2e3184n%40googlegroups.com.


Serj Kalichev

unread,
Mar 26, 2026, 5:13:44 AM (7 days ago) Mar 26
to kl...@googlegroups.com
Your klish.conf and klishd.conf is totally wrong. The sourcecode tree contains examples for that files. Don't rely on Copilot etc. May be it works for well-known and widely used software but not for specific ones.

On 3/25/26 17:14, Sivaram Naik wrote:
Reply all
Reply to author
Forward
0 new messages