Can't log in Asterisk GUI

Hello. I have a problem for Asterisk GUI log-in.

I can’t log in to Asterisk GUI. It shows 500 error when I try log in.

This is access configuration in manager.conf

secret = admin                                                                
read = system,call,log,verbose,command,agent,config,read,write,originate       
write = system,call,log,verbose,command,agent,config,read,write,originate 

Also I could test it through telnet.

~$ telnet 5038
Connected to
Escape character is '^]'.
Asterisk Call Manager/1.3
Action: Login
ActionID: 1
Username: admin
Secret: admin

Response: Success
ActionID: 1
Message: Authentication accepted

Event: FullyBooted
Privilege: system,all
Status: Fully Booted

But when I check manager user on CLI, it shows something different. like this.

localhost*CLI> manager show user admin
username: admin
secret: <Set>
ACL: no
read perm: system,call,log,verbose,command,agent,config,originate
write perm: system,call,log,verbose,command,agent,config,originate
displayconnects: yes

It is Asterisk 11.22.0 old version.

AsteriskGUI was retired long before Asterisk version 11. It is totally unsupported.

1 Like

Thanks for reply. But I already tested it using other system. It’s actually working.
And all the configuration files are correct. It happened in only one device.

This is GUI debug message, below.

* 16:06:58 ResponseText is "

# Server Error

Internal Server Error (mkstemp failed)

Asterisk Server

* 16:06:58 NO active session : show login page
* 16:06:58 AJAX Request : reading 'asterisk.conf'
* 16:06:58 calling onLogInFunctions.checkifLoggedIn()
* 16:06:58 Start localAjaxinit in Parent window

I’ve figured it out myself.

Debug message shows mkstemp error. that error is showed by asterisk/main/manager.c

Look this, below

static int generic_http_callback(struct ast_tcptls_session_instance *ser,

char template[] = "/tmp/ast-http-XXXXXX";

fd = mkstemp(template); /* create a temporary file for command output */
        if (fd <= -1) {
                ast_http_error(ser, 500, "Server Error", "Internal Server Error (mkstemp failed)");
                goto generic_callback_out;

mkstemp function uses /tmp directory in the system. But my system doesn’t have /tmp directory. That’s why it shows the error.

That’s a fundamental problem for any Unix like system

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.