Modules signed by invalid key and GPG Verify File check failed

Hi everyone, my Asterisk server is warning about all modules are signed by invalid key (on FreePBX Dashboard), so I try to run command “amportal a ma refreshsignature” but it show me all files exists.

Extracting…/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/LICENSE’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/README.md’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/Vmx.class.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/Voicemail.class.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/functions.inc.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/install.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/module.sig’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/module.xml’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload586fb850d9b37/voicemail/page.voicemail.php’: File exists

And nothing was change, the warning still appear. I try to uninstall a module and reinstall it, but it show me GPG Verify File check failed

sudo amportal ma downloadinstall callrecording

Please wait…

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

Starting callrecording download…
Processing callrecording
Downloading…
48735/48735 [============================] 100%
Finished downloading
The following error(s) occured:

  • File Integrity failed for /var/www/html/admin/modules/_cache/callrecording-13.0.11.tgz.gpg - aborting (GPG Verify File check failed)

I also try to run some command below

sudo -u asterisk gpg --refresh-keys --keyserver pool.sks-keyservers.net
sudo -u asterisk gpg --keyserver pgp.mit.edu --recv-key 3DDB2122FE6D84F7

But nothing change. I still get GPG Verify File check failed

I need help. Thanks

Ubuntu 16.10
Asterisk 13.10
FreePBX 13

I run “sudo amportal ma downloadinstall callrecording” again and I got it

No one aswers :frowning:

Help , please.

Is this a typo? It’s refreshsignatures

fwconsole a ma refreshsignatures

You might also want to issue a

fwconsole chown

before…

Good luck and have a nice day!

Nick

Thank you for reply

I try “fwconsole chown”
and it look like good

And I run “fwconsole ma refreshsignatures”
But I got the same issue

And nothing was change

I have checked this path

/var/www/html/admin/modules/_cache/upload58725ddb54724/cel/LICENSE

It does not exist but when I run refreshsignatures, it always show File Exists . I don’t know why.

It looks like your machine may have some file system corruption. Try removing the_cache directory with this command:

rm -rf /var/www/html/admin/modules/_cache

It should get auto created.

Also, there is no need to run any installs through sudo, only ‘fwconsole chown’ needs root access.

I also notice you’re using ‘amportal’, which should now be ‘fwconsole’.

Also, it’s better to copy and paste the text, rather than pasting screenshots. Makes it much easier for people to read.

1 Like

thank you

I try to delete directory which you advise me. I also run

sudo fwconsole chown
sudo fwconsole refreshsignatures

Of course I using “fwconsole” as root

and this is the result

sh: 0: getcwd() failed: No such file or directory
Getting Data from Online Server…
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Done
Checking Signatures of Modules…
Checking builtin…
Signature Invalid
Could not find signed module on remote server!
Checking cel…
Signature Invalid
Refreshing cel
Starting cel-13.0.26.tgz download…
Processing
Downloading…
124182/124182 [============================] 100%
Finished downloading
Extracting…sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/Cel.class.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/LICENSE’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/README.md’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/audio.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/crypt.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/install.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/module.sig’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/module.xml’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58730cea90544/cel/page.cel.php’: File exists
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Done

Look like the same issue

The directory you are in while this is executing is being deleted. WHERE are you running the command.

Also we stopped using “/usr/bin/install” a couple of releases ago @xrobau

Oh, that my mistake, I run it when I’m in _cache directory.

I try delete _cache directory and run commands again (after I move to modules directory)

And I got

Getting Data from Online Server…
Done
Checking Signatures of Modules…
Checking builtin…
Signature Invalid
Could not find signed module on remote server!
Checking cel…
Signature Invalid
Refreshing cel
Starting cel-13.0.26.tgz download…
Processing
Downloading…
124182/124182 [============================] 100%
Finished downloading
Extracting…/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/Cel.class.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/LICENSE’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/README.md’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/audio.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/crypt.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/install.php’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/module.sig’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/module.xml’: File exists
/usr/bin/install: cannot create directory ‘/var/www/html/admin/modules/_cache/upload58731a0d5f02c/cel/page.cel.php’: File exists
Done

It looks like Ubuntu does not like our usage of install. Unfortunately you are sort of stuck here. You’ll have to download framework manually and install it as we just recently stopped using the install utility because it had issues.

1 Like

We’ve recently removed it because of issues like this. I think the easiest thing for you to do is to see if you can upgrade framework first (‘fwconsole ma downloadinstall framework’) which should get the ball rolling again.

Unfortunately, I have tried to upgrade framework, but I got GPG Verify File check failed

No repos specified, using: [standard] from last GUI settings

Starting framework download…
Processing framework
Downloading…
9302011/9302011 [============================] 100%
Finished downloading
The following error(s) occured:

  • File Integrity failed for /var/www/html/admin/modules/_cache/framework-13.0.190.7.tgz.gpg - aborting (GPG Verify File check failed)

I also try to refresh key as some topic before but it doesn’t work.

Is your date incorrect on your machine?

Yes, It’s correct , I just checked .

Thinking about this some more, something’s pretty badly broken with your machine. I’d start by downloading framework manually, installing it again, and then seeing what else is playing up.

wget http://mirror1.freepbx.org/modules/packages/framework/framework-13.0.190.11.tgz

Extract that file somewhere, and run ./install -n which will (hopefully!) update your machine to the latest framework.

If that still doesn’t work, you might need to do a complete refresh using the latest 13.0 package

wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-13.0-latest.tgz

I have installed framework
It look OK

Done
bin is: /var/lib/asterisk/bin
sbin is: /usr/sbin
Finishing up directory processes…Done!
Running variable replacement…Done
Creating missing #include files…Done
Setting up Asterisk Manager Connection…Done
Running through upgrades…
Checking for upgrades…
1 found
Upgrading to 13.0.190.10…
→ Running PHP script /tmp/framework/upgrades/13.0.190.10/upgrades.php
Upgrading to 13.0.190.10…OK
Finished upgrades
Setting FreePBX version to 13.0.190.11…Done
Writing out /etc/amportal.conf…Done
Installing framework…
No directory /var/www/html/admin/modules/framework/amp_conf/htdocs, install script not needed
Generating CSS…Done
Module framework successfully installed
Updating Hooks…Done
Done
Taking too long? Customize the chown command, See Sangoma Documentation
Setting Permissions…
Collecting Files…Done
24800/24800 [============================] 100%
Finished setting permissions
Generating default configurations…
Reloading FreePBX
Successfully reloaded
Finished generating default configurations
Trusting FreePBX…Trusted
You have successfully installed FreePBX

I will try to run fwconsole chow and fwconsole ma refreshsignatures again.

This is the result

Getting Data from Online Server…
Done
Checking Signatures of Modules…
Checking builtin…
Signature Invalid
Could not find signed module on remote server!
Checking cel…
Signature Invalid
Refreshing cel
Starting cel-13.0.26.tgz download…
Processing
Downloading…
124182/124182 [============================] 100%
Finished downloading
Extracting…Done
Module http://mirror1.freepbx.org/modules/packages/cel/cel-13.0.26.tgz successfully downloaded
Creating cel if needed…OK
checking for extra field…already exists
Checking for userfield field to remove…Already Removed
Checking for src field to remove…Already Removed
Checking for dst field to remove…Already Removed
Checking for channel field to remove…Already Removed
Checking for dstchannel field to remove…Already Removed
Checking for context index…Already indexed
Generating CSS…Done
Module cel successfully installed
Updating Hooks…Done
Verifying GPG…
Done
Checking conferences…
Signature Invalid
Refreshing conferences
Starting conferences-13.0.23.1.tgz download…
Processing
Downloading…
76597/76597 [============================] 100%
Finished downloading
Extracting…Done
Module http://mirror1.freepbx.org/modules/packages/conferences/conferences-13.0.23.1.tgz successfully downloaded
Generating CSS…Done
Module conferences successfully installed
Updating Hooks…Done
Verifying GPG…
Done
Checking core…
Signature Invalid
Refreshing core
Starting core-13.0.115.3.tgz download…
Processing
Downloading…
1081096/1081096 [============================] 100%
Finished downloading
Extracting…Done
Module http://mirror1.freepbx.org/modules/packages/core/core-13.0.115.3.tgz successfully downloaded
Checking if directdids need migrating…already done
updating zap callgroup, pickupgroup…not needed
checking for delay_answer field …already exists
checking for reversal field …already exists
checking for pricid field …already exists
Migrating pickup groups to named pickup groups
Migrating call groups to named call groups
Checking if trunk table migration required…not needed
Checking if privacy manager options exists…already exists
Checking for noanswer_cid field…already exists
Checking for busy_cid field…already exists
Checking for chanunavail_cid field…already exists
Checking for rvolume field…already exists
Checking for noanswer_dest field…already exists
Checking for busy_dest field…already exists
Checking for chanunavail_dest field…already exists
Checking for General Setting migrations…not needed
Deleting unused globals…done
Converting IAX notransfer to transfer if needed…updated 0000 records
deleting obsoleted record_in and record_out entries…ok
checking for dest field in outbound_routes…already exists
checking for continue field in trunks…already exists
upgrading any zap trunks to dahdi if found…ok
Checking for possibly invalid emergency caller id fields…none found
Generating CSS…Done
Module core successfully installed
Updating Hooks…Done
Verifying GPG…
Done
Checking customappsreg…
Signature Invalid
Refreshing customappsreg
Starting customappsreg-13.0.5.tgz download…
Processing
Downloading…
54176/54176 [============================] 100%
Finished downloading
Extracting…Done
Module http://mirror1.freepbx.org/modules/packages/customappsreg/customappsreg-13.0.5.tgz successfully downloaded
Generating CSS…Done
Module customappsreg successfully installed
Updating Hooks…Done
Verifying GPG…
Done

Because the result very long so I only post a part of result.

I try access to Dashboard of FreePBX , I still see the warning like my 5th post.

Now you’ve fixed framework, you can run fwconsole ma refreshsignatures to redownload the other modules. It seems like some one has been messing with your machine.

Thanks for your help

But the quote above is the result I got after run “sudo fwconsole ma refreshsignatures”. And the warning about invalid key still appear.

This machine was build by my co-worker, but he has leave the company.

Any solutions else? FreePBX still show the warning.