Unless you are running a very old version, amportal is deprecated and has been replaced by fwconsole..
Every call to amportal is actually forwarded to fwconsole…
Also, is it under /usr/sbin/amportal or /usr/local/sbin/amportal on your system? You mention that /usr/sbin/amportal is missing but then you copy /usr/local/sbin/amportal to /var/lib/asterisk/bin/amportal (my guess is that you wanted the exact reverse of what you did…).
I believe you followed the suggestion given in the link in that post
which was not the right fix…
Also,/usr/sbin/amportal, at least on FreePBX 14 distro but most likely at least a few earlier versions as well, is a symbolic link to /var/lib/asterisk/bin/amportal not the other way around and you don’t want to copy it but actually do a symbolic link to it.
Could you please give more info about what you are running, which FreePBX version and which Linux distro you are running? Missing files makes me think that rounded down it has something to do with 3…
amportal still works by me, not fwconsole, and I can’t seem to properly upgrade past where I am, or uograde any modules (it takes me to a broken page when I click process updates) so I am sort of stuck in this upgrade.
If you really want to see all my errors – here they are:
I get rotating errors when reloading:
[root@phone ~]# amportal a reload
Fetching FreePBX settings with gen_amp_conf.php..
Error(s) have occured, the following is the retrieve_conf output:
exit: 255
PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to start GPG, the command was: [/usr/bin/gpg --homedir /home/asterisk/.gnupg --no-permission-warning --keyserver-options auto-key-retrieve=true,timeout=5 --status-fd 3 --list-keys 2016349F5BC6F49340FCCAF99F9169F4B33B4659]' in /var/www/html/admin/libraries/BMO/GPG.class.php:354
Stack trace:
#0 /var/www/html/admin/libraries/BMO/GPG.class.php(190): GPG->runGPG('--list-keys 201...')
#1 /var/www/html/admin/libraries/BMO/GPG.class.php(249): GPG->getKey()
#2 /var/lib/asterisk/bin/retrieve_conf(23): GPG->trustFreePBX()
#3 {main}
thrown in /var/www/html/admin/libraries/BMO/GPG.class.php on line 354
or
[root@phone ~]# amportal a reload
Fetching FreePBX settings with gen_amp_conf.php..
Error(s) have occured, the following is the retrieve_conf output:
exit: -1
and when i try to “check online” for upgrades to the modules, it spins for a bit until I get an ERR_EMPTY_RESPONSE broken page
Basically my freepbx is not happy but the phones (incoming and outgoing calls) do not seem upset about all this red.
Basically I was on a really old version, so I purchased the upgrade module (because we had a hack and I wanted better security), and had it go as far as it go in one click and this is basically where ive been since more or less.
I really appreciate your time, and I imagine this may be a beast. So I’m just trying to work through one error at a time.
As far as I can tell you did but I was expecting to see an error message of some kind, something that would help figure out what is happening…
Unfortunately that didn’t give us much to go on…
You are welcome and I wish I was… I am usually pretty good at debugging things even when I don’t know how the whole thing works but I was really hoping we would get a clue as to what is wrong by executing that command manually…
There is a difference between what the code runs and what I had you do, the output of the command is redirected into a file descriptor opened by FreePBX most likely to parse it something we could not do from the command line…
Out of curiosity, did you try doing
amportal ma refreshsignatures
in the attempts to fix you did earlier?
I am pretty sure I read about a similar problem recently but can’t seem to find it…
the size is the 5th column (be careful of fifth columnists ! :-))
that show us that you installed freepbx 2.11 from source and then upgraded to FreePBX 12 also from source , chances are that you need to ignore the signatures in the advanced settings, and when you try go to FreePBX 13 then likely fwconsole will appear, but be careful how you do it as any “commercial but free”. modules might well eff you up.
It would also help us all if you stated what OS you are using.
Unable to install module announcement:
- FreePBX version 13.0.191.12 or higher is required, you have 13.0.0alpha1
SETTING FILE PERMISSIONS.................Done
chmod: cannot access `/var/log/prosody': No such file or directory
Removing any dangling symlinks
Dangling symlinks removed
[root@phone ~]# amportal a ma install versionupgrade
Fetching FreePBX settings with gen_amp_conf.php..
Unable to install module versionupgrade:
- FreePBX version 13.0.192.14 or higher is required, you have 13.0.0alpha1
PBX Upgrader Stable Sangoma Technologies Corporation Commercial Not Installed (Locally available: 13.0.1.1)
Info
Changelog
Publisher: Sangoma Technologies Corporation
License: Commercial
Description: Fully automates and upgrades the PBX to the next major release for free.
More info: Get help for PBX Upgrader
Missing Requirements:
FreePBX version 13.0.192.14 or higher is required, you have 13.0.0alpha1
Track: Stable
Action: No Action
Everything is so buggy!! At leaaast the phones work lol!