New install pops up an error 'Manager connection problem'

  1. 13 years ago

    We've just installed FOP 2.21 on a Debian system running Asterisk 1.8.5. After successfully logging in with a user defined in /usr/local/fop2/fop2.cfg, I get a popup window with the error "Manager connection problem".

    Besides being a vague error message, I'm really not sure where to go from here. I've followed the directions for installation at http://www.fop2.com/documentation-insta ... arball.php and gleaned the user configuration from http://www.fop2.com/documentation-userm ... gin-in.php. Not only is there no mention of this error, it appears to be the assumption that everything should be working fine from here.

    I've also found a few details about how to debug FOP2 from other forum messages, so here's the output from /usr/local/fop2/fop2_server -X 15:

    Flash Operator Panel 2 - No valid license found. Demo Mode
    
    ** MANAGER CONNECTION Connecting to localhost:5038 (Server 0)
    ** MANAGER CONNECTION Connected to localhost:5038 (Server 0)
    
    127.0.0.1       -> Action: Challenge
    127.0.0.1       -> AuthType: MD5
    
    127.0.0.1       <- Asterisk Call Manager/1.1
    127.0.0.1       <- Response: Success
    127.0.0.1       <- Challenge: 203534767
    127.0.0.1       <- Server: 0
    
    127.0.0.1       -> Action: Login
    127.0.0.1       -> Username: admin
    127.0.0.1       -> AuthType: MD5
    127.0.0.1       -> Key: e20d04d7ee18b5238ce0ff9afa7de443
    
    127.0.0.1       <- Response: Error
    127.0.0.1       <- Message: Authentication failed
    127.0.0.1       <- Server: 0
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xba20dbc)
    ** CLEAN SOCKET  Connection lost to server 0
    
    CLEAN activity for buttons for server 0 as the connection was lost
    
    ** MANAGER CONNECTION Connecting to localhost:5038 (Server 0)
    ** MANAGER CONNECTION Connected to localhost:5038 (Server 0)
    
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xbcd9300) (unauthenticated or connection failed)
    
    127.0.0.1       -> Action: Challenge
    127.0.0.1       -> AuthType: MD5
    
    65.110.29.154   => HTTP/1.1 101 WebSocket Protocol Handshake
    Upgrade: WebSocket
    Connection: Upgrade
    Sec-WebSocket-Origin: http://voip.lightspeed.ca
    Sec-WebSocket-Location: ws://voip.lightspeed.ca:4445/
    
    
    -ŠÍ¸dè1ÏF†"õgI
    
    127.0.0.1       <- Asterisk Call Manager/1.1
    127.0.0.1       <- Response: Success
    127.0.0.1       <- Challenge: 146891476
    127.0.0.1       <- Server: 0
    
    127.0.0.1       -> Action: Login
    127.0.0.1       -> Username: admin
    127.0.0.1       -> AuthType: MD5
    127.0.0.1       -> Key: 8e32099bd3eac31e7e619731386ad094
    
    65.110.29.154   <= <msg data="GENERAL|contexto|1|" />
    65.110.29.154   => { "btn": "0", "cmd": "key", "data": "vXjnM8208zvsdSzMN4foxA1CmbKqzejnMZSJ5", "slot": "" }
    
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "version", "data": "2.21!!1", "slot": "" }
    
    65.110.29.154   <= <msg data="1|auth|ernied|dfd99345766202202283790218fe1470" />
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "preferences", "data": "e30=", "slot": "" }
    
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "vmailpath", "data": "/var/spool/asterisk/voicemail", "slot": "" }
    
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "permit", "data": "YWxs", "slot": "" }
    
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "permitbtn", "data": "YWxsITA=", "slot": "" }
    
    65.110.29.154   => { "btn": "1@GENERAL", "cmd": "zbuttons", "data": "AwA=", "slot": "" }
    
    65.110.29.154   <= <msg data="1|initState||dfd99345766202202283790218fe1470" />
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "demo", "data": "2", "slot": "0" }
    
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "managerproblem", "data": "2", "slot": "0" }
    
    65.110.29.154   => { "btn": "0@GENERAL", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
    
    127.0.0.1       <- Response: Error
    127.0.0.1       <- Message: Authentication failed
    127.0.0.1       <- Server: 0
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xbcd9300)
    ** CLEAN SOCKET  Connection lost to server 0
    
    CLEAN activity for buttons for server 0 as the connection was lost
    
    65.110.29.154   <= <msg data="1|ping||" />
    
    Cannot send command to  (unauthenticated or connection failed)
    
    65.110.29.154   => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
    
    ** MANAGER CONNECTION Connecting to localhost:5038 (Server 0)
    ** MANAGER CONNECTION Connected to localhost:5038 (Server 0)
    
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xb1e550c) (unauthenticated or connection failed)
    
    127.0.0.1       -> Action: Challenge
    127.0.0.1       -> AuthType: MD5
    
    127.0.0.1       <- Asterisk Call Manager/1.1
    127.0.0.1       <- Response: Success
    127.0.0.1       <- Challenge: 447284182
    127.0.0.1       <- Server: 0
    
    127.0.0.1       -> Action: Login
    127.0.0.1       -> Username: admin
    127.0.0.1       -> AuthType: MD5
    127.0.0.1       -> Key: 6d834ed839621075235bbec0036c89a2
    
    127.0.0.1       <- Response: Error
    127.0.0.1       <- Message: Authentication failed
    127.0.0.1       <- Server: 0
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xb1e550c)
    ** CLEAN SOCKET  Connection lost to server 0
    
    CLEAN activity for buttons for server 0 as the connection was lost
    
    65.110.29.154   <= <msg data="1|ping||" />
    
    Cannot send command to  (unauthenticated or connection failed)
    
    65.110.29.154   => { "btn": "0", "cmd": "pong", "data": "PGRpdiBpZD0iI3tpZH0iPjxhIGhyZWY9Imh0dHA6Ly93d3cuZm9wMi5jb20iPkZPUDI8L2E+IC0gVmVyc2lvbiA8c3BhbiBpZD0iZm9wdmVyc2lvbiI+I3t2ZXJzaW9ufTwvc3Bhbj4gLSBMaXRlIFZlcnNpb24gLSBMaW1pdGVkIHRvIDE1IGV4dGVuc2lvbnMgLiBCdXkgaXQgPGEgaHJlZj0iaHR0cDovL3d3dy5mb3AyLmNvbS9idXkucGhwIj5ub3c8L2E+IGZvciB1bmxpbWl0ZWQgZXh0ZW5zaW9ucy4gSWYgeW91IGFscmVhZHkgaGF2ZSBhIGNvZGUgZW50ZXIgaXQgPGEgaHJlZj0iIyIgb25DbGljaz0icmVnaXN0ZXIoKTsgcmV0dXJuIGZhbHNlOyI+aGVyZTwvYT48L2Rpdj4=", "slot": "" }
    
    ** MANAGER CONNECTION Connecting to localhost:5038 (Server 0)
    ** MANAGER CONNECTION Connected to localhost:5038 (Server 0)
    
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    Cannot send command to IO::Socket::INET=GLOB(0xa9af6f8) (unauthenticated or connection failed)
    
    127.0.0.1       -> Action: Challenge
    127.0.0.1       -> AuthType: MD5
    
    127.0.0.1       <- Asterisk Call Manager/1.1
    127.0.0.1       <- Response: Success
    127.0.0.1       <- Challenge: 174705327
    127.0.0.1       <- Server: 0
    
    127.0.0.1       -> Action: Login
    127.0.0.1       -> Username: admin
    127.0.0.1       -> AuthType: MD5
    127.0.0.1       -> Key: 56275ad14818f22e950284e58c46f95b
    
    127.0.0.1       <- Response: Error
    127.0.0.1       <- Message: Authentication failed
    127.0.0.1       <- Server: 0
    
    ** CLEAN SOCKET  connection lost removing socket IO::Socket::INET=GLOB(0xa9af6f8)
    ** CLEAN SOCKET  Connection lost to server 0
    
    CLEAN activity for buttons for server 0 as the connection was lost
  2. admin

    23 Aug 2011 Administrator

    Hi,

    You searched too hard, and missed the first chapter in the installation guide:

    http://www.fop2.com/documentation-insta ... arball.php

    Specifically. the manager credentials section, I will copy the relevant part here:

    Manager Credentials

    Before starting the service, some basic configuration is required in fop2.cfg and probably in /etc/asterisk/manager.conf, because the FOP2 daemon connects via TCP to the Asterisk Manager Interface (AMI) using a username and secret. The basic daemon config is covered [url=http://www.fop2.com/documentation-configuration-server.php:nii0nnwn]here[/url:nii0nnwn].

    [strip...]

    You can always check if the manager credentials are correctly configured, and also verify if your license is ok, by running the command:

    #> /usr/local/fop2/fop2_server --test

or Sign Up to reply!