Asterisk CLI exit without error

Dear all,

i have a PBX with version 14.0.2, if i do asterisk -rv appears:

Asterisk 14.0.2, Copyright © 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

After this the CLI exit and i’m unable to do nothing in the CLI.

In the log i found:
[Nov 4 10:53:54] WARNING[10257] pbx_dundi.c: Unable to create thread!

What can be the issue?

Thanks and regards,
Davide

I have just restarted Asterisk and has appeared this error:

[Nov 4 10:54:32] ERROR[10196] threadpool.c: Unable to start worker thread 26239. Destroying.
[Nov 4 10:54:32] ERROR[10196] threadpool.c: Unable to start worker thread 26240. Destroying.
[Nov 4 10:54:32] ERROR[10196] threadpool.c: Unable to start worker thread 26241. Destroying.
[Nov 4 10:54:35] ERROR[10202] asterisk.c: Unable to spawn thread to handle connection: Resource temporarily unavailable

This occurs when ast_pthread_create_detached fails:

	if (ast_pthread_create_detached(&lookupthread, NULL, dundi_query_thread, st)) {
		struct dundi_ie_data ied = { 0, };
		trans->thread = 0;
		ast_log(LOG_WARNING, "Unable to create thread!\n");
		ast_free(st);
		dundi_ie_append_cause(&ied, DUNDI_IE_CAUSE, DUNDI_CAUSE_GENERAL, "Out of threads");
		dundi_send(trans, DUNDI_COMMAND_EIDRESPONSE, 0, 1, &ied);
		return -1;
	}

The rest of your errors are similar: the inability for Asterisk to create threads.

As to why that’s the case, I’m not sure. I haven’t seen that occur on a standard Linux system… ever.

What kind of system are you running Asterisk on?