Failed to authenticate as 'admin'

[Jul 26 06:17:46] NOTICE[28370]: manager.c:1034 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
== Connect attempt from ‘127.0.0.1’ unable to authenticate

My manager.conf
[general]
displaysystemname=yes
enabled=yes
port=5038
bindaddr=127.0.0.1

[admin]
secret=mypassword
read=all,system,call,log,verbose,command,agent,user,config
write=all,system,call,log,verbose,command,agent,user,config

What I missing ?

Did you do a restart since editing manager.conf?

Also try removing any special characters in the password.

Hey thx for your answer, and yes i restarted the entery raspberry (not only Asterisk) and the password have not a special or extended chars

Have you port forwarded your ‘5038’ manager port to the ip of the server ?

Why ? (I ask to just be sure)
The authenticate is binding to 127.0.0.1, I think no need forwarding this port

So, you are running the web page on the asl server ? gui and all ? only ?
If not, the bind address is wrong.
Either make it 0.0.0.0 (any) or the ip of the machine looking to access it for high security.
127.0.0.1 is access on/from the same machine only (local).

If you are accessing manager from outside your NAT, you need it port forwarded.
You have not said, so I had to guess.

Ok, I forwarded, and I don’t know why still happen

== Manager ‘admin’ logged off from 127.0.0.1
== Manager ‘admin’ logged on from 127.0.0.1
– Hungup ‘DAHDI/pseudo-2029713817’
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
[Jul 27 17:40:13] NOTICE[14815]: manager.c:1034 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
== Connect attempt from ‘127.0.0.1’ unable to authenticate
andmin logged on of and again failed

I will ask again differently, I perhaps was not clear or direct.

Is the web server the same server as asterisk with the manager ?

What IP address are you using in allmon.ini.php for the node ?

What is the LAN address for the server on your network ?

The settings you need are dependent on your exact setup, which you have not stated what it is.
A bit hard to help without knowing any of it.

Your questions and my answers

Is the web server the same server as asterisk with the manager ?
Yes

What IP address are you using in allmon.ini.php for the node ?
host=127.0.0.1:5038

What is the LAN address for the server on your network ?
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.129 netmask 255.255.255.0 broadcast 192.168.1.255

bindaddr = 0.0.0.0 : any

[general]
displaysystemname=yes
enabled=yes
port=5038
bindaddr=0.0.0.0

no effect, same notice
[Jul 28 16:58:46] NOTICE[10784] manager.c: 127.0.0.1 failed to authenticate as ‘admin’
[Jul 28 16:59:17] NOTICE[11336] manager.c: 127.0.0.1 failed to authenticate as ‘admin’
[Jul 28 16:59:48] NOTICE[11806] manager.c: 127.0.0.1 failed to authenticate as ‘admin’

Use local lan IP in allmon not 127.0.0.1 keeping the bindaddr

[59201]
host=192.168.1.129:5038
user=admin

and no way Im almost surrender

Connected to Asterisk GIT d1e9a8b currently running on pi-asl (pid = 24198)
Verbosity was 0 and is now 4
– Message count requested for mailbox 200@device but voicemail not loaded.
– Hungup ‘DAHDI/pseudo-1272239122’
– Hungup ‘DAHDI/pseudo-1588710558’
[Jul 28 20:07:03] NOTICE[30947]: manager.c:1034 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
== Connect attempt from ‘127.0.0.1’ unable to authenticate

Well, why are you still using 127.0.0.1 ?

So, test this as well… general /manager.conf

permit=0.0.0.0/0.0.0.0

Did you setup a firewall on the system ?

Im not using 127.0.0.1, im already changed, and Im not using firewall too

My manager.conf
[general]
displaysystemname=yes
enabled=yes
port=5038
bindaddr=0.0.0.0
permit=0.0.0.0/0.0.0.0

[admin]
secret=mypassword
read=all,system,call,log,verbose,command,agent,user,config
write=all,system,call,log,verbose,command,agent,user,config

My allmon.ini.php

[Off-site Link]
url=http://allstarlink.org

[59201]
host=192.168.1.129:5038
user=admin
passwd=mypassword
nomenu=no
hideNodeURL=no

And it say over and over
root@pi-asl:~# tail -f /var/log/asterisk/messages
[Jul 29 08:16:10] NOTICE[30358] dnsmgr.c: host ‘register.allstarlink.org’ changed from 34.105.111.212 to 162.248.92.131
[Jul 29 08:16:31] NOTICE[8821] manager.c: 127.0.0.1 failed to authenticate as ‘admin’
[Jul 29 08:17:02] NOTICE[9128] manager.c: 127.0.0.1 failed to authenticate as ‘admin’
[Jul 29 08:17:33] NOTICE[9379] manager.c: 127.0.0.1 failed to authenticate as ‘admin’

Use a username other than admin.
change in both places and restart asterisk.

nodeadmin ?

What version of the software are you using ?

You should try a test with telnet access direct to the manager ?
similar to this,

You may have corruption. But we will see where you are and the version of software you are running.

With a afterthought,
what is the result of -

which fail2ban-client

root@pi-asl:~# which fail2ban-client
/usr/bin/fail2ban-client

root@pi-asl:~# telnet localhost 5038
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Asterisk Call Manager/1.0
Action: Login
ActionID: 1
Username: admin
Secret: mypassword

Response: Success
ActionID: 1
Message: Authentication accepted

I don’t think that I have a corruption, where ?,

You said no firewall

Well, you do have a firewall and appears is blocking tcp port 5038 from allmon
In what manor I can not be sure.
Which is a conclusion I would have had days ago.

You likely have iptables installed as well. The 2 work together to stop hacks.
which iptables

The config file if installed by the ASL set-up in the menu is /etc/iptables.conf
to restore a edited file for active load
iptables-restore /etc/iptables.conf

You will need to do some reading on this so you understand how it works.
fail2ban is to much for me to describe here.

If all this seems to complicated for you now, you might try to re-install both items from the asl menu and perhaps it will re-read the ports in current use and write the configs anew. Removing the jail data as well?

Let me know if you try this and it works.