hardocp
(hardocp)
January 4, 2019, 3:24pm
1
Asterisk 16 Freepbx 14
Received a notification about a bunch of module upgrades including framework
Went in to do the update and got the following error for Framework (which is now disabled)
fwconsole ma install framework
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications…Done
installing files to /var/www/html…done
installing files to /var/lib/asterisk/bin…done
installing files to /var/lib/asterisk/agi-bin…done
Checking for upgrades…
2 found
Upgrading to 14.0.5.9…
-> Running PHP script /var/www/html/admin/modules/framework/upgrades//14.0.5.9/upgrade.php
In upgrade.php line 3:
syntax error, unexpected ‘(’ in /etc/asterisk/asterisk.conf on line 2
ma [-f|–force] [-d|–debug] [–edge] [–stable] [–color] [–skipchown] [-e|–autoenable] [–skipdisabled] [–snapshot SNAPSHOT] [–format FORMAT] [-R|–repo REPO] [-t|–tag TAG] [–sendemail] [–] []…
Current framework version is 14.0.5.5 and the latest is 14.0.5.20
Can you please help me fix this
thanks
arielgrin
(arielgrin)
January 4, 2019, 4:05pm
2
Try running fwconsole reload and then fwconsole ma upgradeall
This might fix it for you.
hardocp
(hardocp)
January 4, 2019, 4:20pm
3
unfortunately no – got the same error
tm1000
(Andrew Nagy)
January 4, 2019, 5:04pm
4
Fix your asterisk.conf file. The error tells you what’s wrong
hardocp
(hardocp)
January 4, 2019, 5:20pm
5
Andrew – here are the first 12 lines of the asterisk.conf file – i dont see an extra ( on line 2?
[directories](!)
astetcdir => /etc/asterisk
astmoddir => /usr/lib64/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
astsbindir => /usr/sbin
hardocp
(hardocp)
January 4, 2019, 6:07pm
7
Andrew – i am not trying to be rude or obtuse – and i really appreciate all the help you provide here – but i am not understanding your comment
These are lines one and two:
1 [directories](!)
2 astetcdir => /etc/asterisk
How would you like me to modify lines 1 and or 2 exactly?
Looking at the same file here it looks the same as my file https://github.com/asterisk/asterisk/blob/master/configs/samples/asterisk.conf.sample
So sorry to bother you again with something so trivial –
thanks,
tm1000
(Andrew Nagy)
Split this topic
January 4, 2019, 7:59pm
8
A post was split to a new topic: System Crashed
tm1000
(Andrew Nagy)
January 4, 2019, 7:58pm
9
The error is
It’s not talking about an “extra” “(”.
Remove the (!) that is in your file.
1 Like
hardocp
(hardocp)
January 4, 2019, 8:14pm
10
That did the trick!
Thank you for your time and assistance
rideous
(Chris Tai)
January 7, 2019, 1:56am
11
I have tried to upgrade the framework module via GUI , however ;
"syntax error, , unexpected ‘(’ in /etc/asterisk/asterisk.conf on line 2\
seems there is a bug here
tm1000
(Andrew Nagy)
January 7, 2019, 7:03am
12
@rideous nope not a bug. You’ve copied your asterisk.conf file from a sample file. This is not in any of our wikis or documentation. You can fix the issue by looking above at this thread
system
(system)
Closed
January 14, 2019, 7:03am
13
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.