FreePBX | Register | Issues | Wiki | Portal | Support

Unable to connect to Asterisk after freepbx 13 to freepbx 14 upgrade


#1

Hi,

I recently upgrade my fpbx 13 machine to fpbx14 and after everything was done machine rebooted and webGUI shows “Can not connect to asterisk

When i try to run fwconsole restart i get following error:

Starting Asterisk…
[--------------->------------] 1 min
In Start.class.php line 187:

_ Unable to connect to Asterisk. Did it start?_

restart [-i|–immediate] [–] []…

but i can run ‘asterisk -r’ command and it takes me to asterisk console where i see following errors :

[2019-05-11 05:09:25] NOTICE[10585]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
[2019-05-11 05:09:27] NOTICE[10596]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
[2019-05-11 05:09:28] NOTICE[10603]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
[2019-05-11 05:09:29] NOTICE[10610]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
[2019-05-11 05:09:30] NOTICE[10616]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
[2019-05-11 05:09:32] NOTICE[10622]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’
[2019-05-11 05:09:33] NOTICE[10628]: manager.c:3456 authenticate: 127.0.0.1 failed to authenticate as ‘admin’

Kindly help here.


(Lorne Gaetz) #2

Check the file /etc/asterisk/manager.conf and ensure the admin secret matches what is showing for manager credentials in Advanced Settings.


#3

Tried to change the secret in advanced settings and apply, but get this error when i try to apply now:

exit: 1
Unable to continue. Illegal string offset ‘target’ in /var/www/html/admin/modules/customappsreg/functions.inc.php on line 59 #0 /var/www/html/admin/modules/customappsreg/functions.inc.php(59): Whoops\Run->handleError(2, ‘Illegal string …’, ‘/var/www/html/a…’, 59, Array) #1 /var/www/html/admin/libraries/usage_registry.functions.php(300): customappsreg_getdestinfo(‘app-blackhole,h…’) #2 /var/www/html/admin/libraries/usage_registry.functions.php(351): framework_identify_destinations(Array, Array) #3 /var/lib/asterisk/bin/retrieve_conf(818): framework_list_problem_destinations(Array, false) #4 {main}

Edit:
I disabled ‘customappsreg’ module and restarted server and apply worked. Now it shows all my queues, IVR etc as Bad destinations:

There are 27 bad destinations
DEST STATUS: EMPTY
Inbound Fax Detection: FAX GOLDR (130xxx4455/)
Queue: HOLD (001)
DEST STATUS: ORPHAN
Follow-Me: 101 (Sales)
Follow-Me: 700 (SGCELL)
Follow-Me: 702 (702)
IVR: IxM After Hrs (Invalid Destination)
IVR: OxxI After Hours (Invalid Destination)
IVR: IxM After Hrs (Timeout Destination)
IVR: OxxI After Hours (Timeout Destination)
Queue: OxxIQueue (1)
Queue: QxxxumQueue (2)
Queue: AxxQueue (3)
Queue: TxxQueue (4)


(Lorne Gaetz) #4

Are those modules installed?


(Bobf At Duxsys) #5

In my experience the correct secret is in the Advanced Settings, and manager.conf should be edited to match.


#6

yes:

_# amportal a ma list

Please wait…

!!!amportal is depreciated. Please use fwconsole!!!
forwarding all commands to ‘fwconsole’
No repos specified, using: [standard] from last GUI settings

+----------------------+------------+----------+------------+
| Module               | Version    | Status   | License    |
+----------------------+------------+----------+------------+
| accountcodepreserve  | 13.0.2.2   | Enabled  | GPLv2      |
| amd                  | 13.0.3     | Enabled  | GPLv3+     |
| announcement         | 13.0.7.7   | Enabled  | GPLv3+     |
| arimanager           | 13.0.5.2   | Enabled  | GPLv3+     |
| asterisk-cli         | 14.0.1     | Enabled  | GPLv3+     |
| backup               | 14.0.10.3  | Enabled  | GPLv3+     |
| blacklist            | 14.0.2     | Enabled  | GPLv3+     |
| builtin              |            | Enabled  |            |
| bulkdids             | 13.0.2     | Enabled  | GPLv3+     |
| bulkextensions       | 13.0.3     | Enabled  | GPLv3+     |
| bulkhandler          | 13.0.14.8  | Enabled  | GPLv3+     |
| calendar             | 14.0.2.16  | Enabled  | GPLv3+     |
| callback             | 13.0.5.4   | Enabled  | GPLv3+     |
| callforward          | 14.0.1.3   | Enabled  | AGPLv3+    |
| calllimit            | 13.0.5.7   | Enabled  | Commercial |
| callrecording        | 14.0.14    | Enabled  | AGPLv3+    |
| callwaiting          | 14.0.1.1   | Enabled  | GPLv3+     |
| campon               | 13.0.4.1   | Enabled  | GPLv3+     |
| cdr                  | 14.0.5.19  | Enabled  | GPLv3+     |
| cel                  | 14.0.2.12  | Enabled  | GPLv3+     |
| certman              | 14.0.3.2   | Enabled  | AGPLv3+    |
| cidlookup            | 14.0.1.8   | Enabled  | GPLv3+     |
| conferences          | 13.0.23.15 | Enabled  | GPLv3+     |
| configedit           | 13.0.7.1   | Enabled  | AGPLv3+    |
| contactmanager       | 14.0.5.4   | Enabled  | GPLv3+     |
| core                 | 14.0.25.4  | Enabled  | GPLv3+     |
| customappsreg        | 13.0.5.7   | Disabled | GPLv3+     |
| customcontexts       | 13.0.3.1   | Enabled  | GPLv2+     |
| cxpanel              | 14.0.2     | Enabled  | GPLv3      |
| dahdiconfig          | 14.0.1.4   | Enabled  | GPLv3+     |
| dashboard            | 14.0.6.2   | Enabled  | AGPLv3+    |
| daynight             | 14.0.1     | Enabled  | GPLv3+     |
| dictate              | 13.0.5     | Enabled  | GPLv3+     |
| digium_phones        | 13.0.7.4   | Enabled  | GPLv2      |
| digiumaddoninstaller | 13.0.1.1   | Enabled  | GPLv2      |
| directory            | 13.0.19.12 | Enabled  | GPLv3+     |
| disa                 | 13.0.6.12  | Enabled  | AGPLv3+    |
| donotdisturb         | 14.0.1.1   | Enabled  | GPLv3+     |
| dundicheck           | 2.11.0.3   | Enabled  | GPLv3+     |
| endpoint             | 14.0.2.188 | Enabled  | Commercial |
| extensionroutes      | 13.0.10.7  | Enabled  | Commercial |
| extensionsettings    | 13.0.4     | Enabled  | GPLv3+     |
| fax                  | 14.0.2.7   | Enabled  | GPLv3+     |
| featurecodeadmin     | 13.0.6.4   | Enabled  | GPLv3+     |
| findmefollow         | 14.0.1.23  | Enabled  | GPLv3+     |
| firewall             | 13.0.57.1  | Enabled  | AGPLv3+    |
| framework            | 14.0.11    | Enabled  | GPLv2+     |
| fw_langpacks         | 14.0.1     | Enabled  | GPLv3+     |
| hotelwakeup          | 14.0.1.6   | Enabled  | GPLv2      |
| iaxsettings          | 14.0.1.4   | Enabled  | AGPLv3     |
| infoservices         | 13.0.1.4   | Enabled  | GPLv2+     |
| irc                  | 13.0.1     | Enabled  | GPLv3+     |
| ivr                  | 14.0.4     | Enabled  | GPLv3+     |
| languages            | 14.0.1.4   | Enabled  | GPLv3+     |
| logfiles             | 13.0.10.5  | Enabled  | GPLv3+     |
| manager              | 13.0.2.5   | Enabled  | GPLv2+     |
| miscapps             | 13.0.3.1   | Enabled  | GPLv3+     |
| miscdests            | 13.0.7     | Enabled  | GPLv3+     |
| motif                | 13.0.4     | Enabled  | GPLv3+     |
| music                | 13.0.22.7  | Enabled  | GPLv3+     |
| outroutemsg          | 14.0.1     | Enabled  | GPLv3+     |
| paging               | 14.0.12    | Enabled  | GPLv3+     |
| parking              | 13.0.19.11 | Enabled  | GPLv3+     |
| parkpro              | 14.0.2.9   | Enabled  | Commercial |
| pbdirectory          | 2.11.0.6   | Enabled  | GPLv3+     |
| phonebook            | 13.0.6.4   | Enabled  | GPLv3+     |
| phpagiconf           | 2.11.0.2   | Enabled  | GPLv3+     |
| phpinfo              | 13.0.2     | Enabled  | GPLv2+     |
| pinsets              | 13.0.13    | Enabled  | GPLv3+     |
| pinsetspro           | 13.0.9.14  | Enabled  | Commercial |
| pm2                  | 13.0.7.1   | Enabled  | AGPLv3+    |
| presencestate        | 14.0.1.7   | Enabled  | GPLv3+     |
| printextensions      | 13.0.3.2   | Enabled  | GPLv3+     |
| queuemetrics         | 2.11.0.3   | Enabled  | GPLv3+     |
| queueprio            | 13.0.6     | Enabled  | GPLv3+     |
| queues               | 14.0.2.25  | Enabled  | GPLv2+     |
| recording_report     | 14.0.2.4   | Disabled | Commercial |
| recordings           | 13.0.30.13 | Enabled  | GPLv3+     |
| restapi              | 13.0.21.2  | Enabled  | AGPLv3     |
| ringgroups           | 14.0.1.8   | Enabled  | GPLv3+     |
| setcid               | 13.0.6.3   | Enabled  | GPLv3+     |
| sipsettings          | 14.0.27.12 | Enabled  | AGPLv3+    |
| sipstation           | 14.0.3     | Enabled  | Commercial |
| soundlang            | 14.0.7     | Enabled  | GPLv3+     |
| speeddial            | 2.11.0.4   | Enabled  | GPLv3+     |
| superfecta           | 14.0.18    | Enabled  | GPLv2+     |
| sysadmin             | 14.0.33    | Enabled  | Commercial |
| timeconditions       | 14.0.2.17  | Enabled  | GPLv3+     |
| tts                  | 13.0.13    | Enabled  | GPLv3+     |
| ttsengines           | 13.0.7.5   | Enabled  | AGPLv3     |
| userman              | 14.0.3.49  | Enabled  | AGPLv3+    |
| versionupgrade       | 14.0.2.3   | Enabled  | Commercial |
| vmblast              | 13.0.11    | Enabled  | GPLv3+     |
| vmnotify             | 14.0.1.5   | Enabled  | Commercial |
| voicemail            | 14.0.6.5   | Enabled  | GPLv3+     |
| weakpasswords        | 13.0.2     | Enabled  | GPLv3+     |
_

#7

so no reply here on this issue yet?


(Itzik) #8

Where are you stuck?

You were asked if the modules used as the destinations listed in your error list are installed?

Are they? We have no clue what they are, and a list of modules is not going to help us figure that out. Open each record and look for the destination, see if that module is installed or perhaps disabled.


#9

yes. all queues and IVRs are there and extensions exist as well to which former point (as destinations).


(system) closed #10

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