Edge track in fwconsole for single module : enables edge track globally, does not clear it upon errored exit?

Is the fwconsole ma --edge upgrade foomodule command supposed to only switch the foomodule to Edge track ? The available documentation seems to suggest it would be so.

I used fwconsole ma --edge upgrade endpoint to upgrade EPM to edge track, but then had to go to Advanced Settings and manually turn Edge track off, otherwise Module Admin was offering me all edge track modules that are available for update.

Thanks in advance :slight_smile:

That setting is not in sysadmin. Are you sure you turned it off in sysadmin.

The --edge switch turns it off right after. I confirmed this last night.

ugh. I meant Advanced Settings of course, apologies for confusion; I’ve edited original post now.
My case still stands as described though:

I issued the command as above [quote=“el_es, post:1, topic:36252”]
fwconsole ma --edge upgrade endpoint
[/quote]

and afterwards and after a reload (through fwconsole reload), I still had a whole list of modules offered on edge track (in fact the Module Admin was displaying a warning that it was switched to edge track globally) which only disappeared when I went to Advanced Settings and switched Edge track off.

(FreePBX 13.0.163, not yet updated to 10.13.66-14)

Trying doing it again to confirm

Hmm I can not reproduce now either… but maybe because latest endpoint has just been released ?

[[email protected] ~]# fwconsole ma --edge upgrade endpoint
Edge repository temporarily enabled
No repos specified, using: [standard,commercial] from last GUI settings

Starting endpoint download..
Processing endpoint
Verifying local module download...Verified
Extracting...Done
Module endpoint successfully downloaded
Generating CSS...Done
Module endpoint successfully installed
Updating Hooks...Done
[[email protected] ~]# fwconsole reload
Reloading FreePBX
Successfully reloaded
[[email protected] ~]# fwconsole ma showupgrades
No repos specified, using: [standard,commercial] from last GUI settings

Up to date.

Just done that again, as endpoint new edge revision has become available and here is what happens from cli perspective:

[[email protected] ~]# fwconsole ma showupgrades
No repos specified, using: [standard,commercial] from last GUI settings

Up to date.
[[email protected] ~]# fwconsole ma --edge upgrade endpoint
Edge repository temporarily enabled
No repos specified, using: [standard,commercial] from last GUI settings

Starting endpoint download..
Processing endpoint
Verifying local module download...Redownloading
Downloading...
 15724234/15724234 [============================] 100%
Finished downloading
The following error(s) occured:
 - Cant Verify downloaded module /var/www/html/admin/modules/_cache/endpoint-13.0.74.tgz.gpg. Unable to trust GPG Key - aborting (Cause: GPG took too long to run the command: [/usr/bin/gpg --homedir /home/asterisk/.gnupg --no-permission-warning --keyserver-options auto-key-retrieve=true,timeout=5 --status-fd 3 --list-keys 2016349F5BC6F49340FCCAF99F9169F4B33B4659])
[[email protected] ~]# fwconsole ma --edge upgrade endpoint
Edge repository temporarily enabled
No repos specified, using: [standard,commercial] from last GUI settings

Starting endpoint download..
Processing endpoint
Verifying local module download...Verified
Extracting...Done
Module endpoint successfully downloaded
Generating CSS...Done
Module endpoint successfully installed
Updating Hooks...Done
[[email protected] ~]# fwconsole reload
Reloading FreePBX
Successfully reloaded
[[email protected] ~]# fwconsole ma showupgrades
No repos specified, using: [standard,commercial] from last GUI settings

Upgradable: 
+----------------+---------------+----------------+
| Module         | Local Version | Online Version |
+----------------+---------------+----------------+
| backup         | 13.0.24       | 13.0.25        |
| cdr            | 13.0.29.4     | 13.0.29.5      |
| certman        | 13.0.25       | 13.0.28        |
| conferences    | 13.0.20       | 13.0.22        |
| contactmanager | 13.0.28       | 13.0.31        |
| core           | 13.0.98       | 13.0.104       |
| findmefollow   | 13.0.32       | 13.0.36        |
| firewall       | 13.0.35.2     | 13.0.36.2      |
| framework      | 13.0.163      | 13.0.166       |
| iaxsettings    | 13.0.4        | 13.0.5         |
| miscapps       | 13.0.2.3      | 13.0.2.4       |
| miscdests      | 13.0.3        | 13.0.4         |
| music          | 13.0.20       | 13.0.21        |
| paging         | 13.0.21       | 13.0.22        |
| queues         | 13.0.27       | 13.0.29        |
| restapps       | 13.0.64       | 13.0.70        |
| sipsettings    | 13.0.23.5     | 13.0.23.6      |
| sysadmin       | 13.0.63.1     | 13.0.65.4      |
| tts            | 13.0.7        | 13.0.8         |
| ttsengines     | 13.0.5        | 13.0.6         |
| ucp            | 13.0.37       | 13.0.39        |
| userman        | 13.0.69       | 13.0.71        |
| voicemail      | 13.0.50       | 13.0.52        |
+----------------+---------------+----------------+

The module admin now sports the Edge track warning :

 EDGE MODE This system has edge mode enabled. This means you will get modules as they are released and may encounter bugs not seen in general availibility modules.
 For more information visit http://wiki.freepbx.org/x/boi3Aw 

And sure enough, the Set Module Admin to Edge mode option was left ON…

Suppose, this happened due to GPG timeout when checking module upon the first run of cli command?

Because after flipping the Edge Mode switch to OFF,

[[email protected] ~]# fwconsole reload
Reloading FreePBX
Successfully reloaded
[[email protected] ~]# fwconsole ma showupgrades
No repos specified, using: [standard,commercial] from last GUI settings

Up to date.

the cli is back to ‘normal’.

Yes it happened because everything aborted.

1 Like