OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: kabo on May 20, 2017, 11:56:28 pm

Title: Updates broken?
Post by: kabo on May 20, 2017, 11:56:28 pm
Hi, I'm having issues with "System > Firmware > Updates" and "System > Firmware > Plugins". I'm trying to get UPnP installed so that applications can open up ports as needed.

When I go to "System > Firmware > Updates" (see attachment)
When I got to "System > Firmware > Plugins" (see attachment)
When I click "Check for updates" it says "Checking... (may take up to 30 seconds)" and then "Connection error".
When I look at "System > Log File" it says:
Quote
May 21 09:47:42    configd.py: [5b30f780-6d78-403a-b242-9f9cbe7327c1] Retrieving changelog index
May 21 09:47:42    configd.py: [93c537e2-5dcc-49d1-a4a4-a45c66d2249c] view local packages
May 21 09:47:42    configd.py: [a6403983-09ec-4623-b962-df72ec0e8c47] Script action failed with Command 'pkg rquery "%n|||%v|||%c|||%sh|||0|||%L"' returned non-zero exit status 74 at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 477, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command 'pkg rquery "%n|||%v|||%c|||%sh|||0|||%L"' returned non-zero exit status 74
May 21 09:47:42    configd.py: [a6403983-09ec-4623-b962-df72ec0e8c47] view remote packages
May 21 09:47:42    configd.py: [757102ad-4914-4867-be6d-4e1208e23b59] Script action stderr returned "fetch: transfer timed out pkg: Repository OPNsense load error: access repo file(/var/db/pkg/repo-OPNsense.sqlite) failed: No such file or directory"
May 21 09:47:06    configd.py: [757102ad-4914-4867-be6d-4e1208e23b59] retrieve firmware update status
May 21 09:46:11    configd.py: [45450617-15fd-403c-9b09-963d5c50fb39] Retrieving changelog index
May 21 09:46:10    configd.py: [08ae0d4c-7092-4a30-bed6-1ac9e9d95e4b] view local packages
May 21 09:46:10    configd.py: [5cc86823-029a-461a-9624-5ba87f9532bd] Script action failed with Command 'pkg rquery "%n|||%v|||%c|||%sh|||0|||%L"' returned non-zero exit status 74 at Traceback (most recent call last): File "/usr/local/opnsense/service/modules/processhandler.py", line 477, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command 'pkg rquery "%n|||%v|||%c|||%sh|||0|||%L"' returned non-zero exit status 74
May 21 09:46:10    configd.py: [b143056d-2c61-4623-b1d6-911d41345513] retrieve firmware execution status
May 21 09:46:10    configd.py: [5cc86823-029a-461a-9624-5ba87f9532bd] view remote packages

What's going on?
I'm using default firmware mirror and default firmware flavour.
Is there some way to install plugins from the command line, maybe I can get some more output that way. pfSense seems to have "pfSsh.php", is there an equivalent for OPNSense?
https://doc.pfsense.org/index.php/2.1_New_Features_and_Changes#SH.2FPHP_Shell_Scripts
Title: Re: Updates broken?
Post by: franco on May 22, 2017, 07:35:18 am
Hi there,

It's likely a connectivity issue, maybe only need to fix DNS resolution.

From the console, try:

# pkg upgrade -n
# ping pkg.opnsense.org

It will show us how far your update would go and if you can resolve DNS.


Cheers,
Franco
Title: Re: Updates broken?
Post by: kabo on May 22, 2017, 08:11:20 am
Thanks, I tried pinging and it worked. I then tried listing the plugins again, and it just worked. I haven't touched this setup at all. Perhaps the mirror I was using was experiencing some kind of issue. :)
Title: Re: Updates broken?
Post by: franco on May 22, 2017, 08:12:38 am
Could be, sounded like an intermittent connectivity issue from the start. :)


Cheers,
Franco