<p></p>
<p dir="auto">I got same issue here, let me figure out wether can be fixed.</p>
<div class="highlight highlight-source-shell"><pre>root@evsio0nHK:<span class="pl-k">~</span><span class="pl-c"><span class="pl-c">#</span> kamctl add evsio0n 123</span>
Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py<span class="pl-pds">"</span></span>, line 1243, <span class="pl-k">in</span> <span class="pl-k"><</span>module<span class="pl-k">></span>
main(sys.argv)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py<span class="pl-pds">"</span></span>, line 1230, <span class="pl-k">in</span> main
dataset = conn.Execute(<span class="pl-s"><span class="pl-pds">'</span> <span class="pl-pds">'</span></span>.join(argv[1:]))
File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py<span class="pl-pds">"</span></span>, line 423, <span class="pl-k">in</span> Execute
<span class="pl-en">self.WriteTempTable</span>()
File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/x86_64-linux-gnu/kamailio//kamctl/dbtextdb/dbtextdb.py<span class="pl-pds">"</span></span>, line 1138, <span class="pl-k">in</span> WriteTempTable
<span class="pl-en">self.temp_file.write(header.strip</span>() + <span class="pl-s"><span class="pl-pds">'</span>\n<span class="pl-pds">'</span></span>)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.9/tempfile.py<span class="pl-pds">"</span></span>, line 613, <span class="pl-k">in</span> func_wrapper
<span class="pl-k">return</span> func(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
TypeError: a bytes-like object is required, not <span class="pl-s"><span class="pl-pds">'</span>str<span class="pl-pds">'</span></span>
ERROR: introducing the new user <span class="pl-s"><span class="pl-pds">'</span>evsio0n<span class="pl-pds">'</span></span> to the database failed
root@evsio0nHK:<span class="pl-k">~</span><span class="pl-c"><span class="pl-c">#</span></span></pre></div>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2469#issuecomment-1140153300">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMHJPTXUKQL7X7AAB3VMGFYJANCNFSM4QX3LL7Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZIJORH5LC2F6WLRO73VMGFYJA5CNFSM4QX3LL72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIP2VXVA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/2469/1140153300</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2469#issuecomment-1140153300",
"url": "https://github.com/kamailio/kamailio/issues/2469#issuecomment-1140153300",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>