OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: tre4bax on October 07, 2018, 12:19:54 pm

Title: Timeout while connecting to the selected mirror
Post by: tre4bax on October 07, 2018, 12:19:54 pm
I loaded NTOPNG the other day to do traffic analysis.  What I didn't spot until I went in to configure it was I need to install Redis.  When I have tried to update the plugins to see this and install it I constantly get the above.  I have tried everything I can think of.  I have tried rebooting the router, several times and I have tried changing the mirrors.  To no avail.

Yesterday I read something about pinging opnsense.org.

If I do this from my router it pings 81.171.2.181 and gets 100% packet loss

If I do it from a workstation connected to the same router this pings fine 0% packet loss average 14ms

Is this the source of my issue with updating the plugins?  and if so what the heck have I done here?  Really wish the config on this could be source managed through GIT or something so I can unwrap ;-)
Title: Re: Timeout while connecting to the selected mirror
Post by: tre4bax on October 09, 2018, 10:06:40 pm
Still cannot do any form of update.  surely someone has encountered this before?
Title: Re: Timeout while connecting to the selected mirror
Post by: tre4bax on October 09, 2018, 10:19:17 pm
Looks like this might be the issue:

configd.py: [c02ed810-623c-4d1e-9b21-8eed1e89e80f] 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 481, in execute stdout=output_stream, stderr=error_stream) File "/usr/local/lib/python2.7/subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command 'pkg rquery "%n|||%v|||%c|||%sh|||0|||%L"' returned non-zero exit status 74
Title: Re: Timeout while connecting to the selected mirror
Post by: tre4bax on October 12, 2018, 10:35:15 am
Where is a mirror address so I can ping it from the box?
Title: Re: Timeout while connecting to the selected mirror
Post by: franco on October 17, 2018, 10:50:53 pm
Running this from the console will reveal the mirror address:

# opnsense-update -M


Cheers,
Franco
Title: Re: Timeout while connecting to the selected mirror
Post by: tre4bax on October 18, 2018, 11:05:51 am
Many thanks Franco.  I will give it a try.

Trev
Title: Re: Timeout while connecting to the selected mirror
Post by: Andreas_ on October 26, 2018, 09:04:50 am
I had the same problem; couldn't update my 18.7.4 to .5 or .6 via GUI on one of two routers (carp pair). changelog was downloaded/unpacked successfully, but then things stopped. Connectivity to update site (pkg.opnsense) was fine.

I finally conducted the update via CLI successfully.
Title: Re: Timeout while connecting to the selected mirror
Post by: Stifler on December 07, 2018, 10:41:11 am
Just registered to share my issue that caused this same problem.

If you installed the Sunny Valley Networks "Sensei" package for OPNSense, and then uninstalled it, it leaves behind traces in the /etc/local/etc/pkg/repo folder.

The best thing to do is open the file left behind (sunneyvalley.conf) and disable the repo. Then update the pkg system.

pkg update -f

Might not be Sensei, but could be something installed that left cruft on your system.