unable to update 22.01 to 22.05rc
-
GUI update hangs on: Please wait while the update system initializes
CommandLine: Another instance is already running... Aborting!
pkg-static update -f
Updating pfSense-core repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.pkg: 100% 2 KiB 2.3kB/s 00:01
Processing entries: 100%
pfSense-core repository update completed. 14 packages processed.
Updating pfSense repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.pkg: 100% 157 KiB 160.3kB/s 00:01
Processing entries: 0%
Newer FreeBSD version for package base64:
To ignore this error set IGNORE_OSVERSION=yes- package: 1203506
- running kernel: 1203500
Ignore the mismatch and continue? [y/N]:
pkg-static: repository pfSense contains packages for wrong OS version: FreeBSD:12:amd64
Processing entries: 100%
Unable to update repository pfSense
Error updating repositories!
What to do???
-
When you see this :
@mcouture said in unable to update 22.01 to 22.05rc:
CommandLine: Another instance is already running... Aborting!
then "Another instance is already running".
That's like using "Windows Update" twice (normally not possible, I know).
Ctrl-C the command you just started.Ask the system what 'pkg' process are running :
ps ax | grep 'pkg'
Use also
pgrep 'pkg'
( less details, only the process numbers ).
Now, wait a bit, re run one or both commands.
The pkg proces(ses) should be stopped = dissapared.If not, kill them.
Like
kill xxxx
where xxxx is the process number of a pkg process instance.
Kill them all.Now, you've solved the "Another instance is already running... Aborting!" part.
That is, if pkg can't reach the other side, will will try for a while, and this might last minutes.
Or more : see here https://forum.netgate.com/topic/172838/ssl-certificate-subject-doesn-t-match-host - even that issue 'auto resolved' ;) -
I have done a “ps grep” for pkg but it doesn’t return anything.
I have not rebooted yet but….
-
From the console or ssh CLI, try running
pfSense-upgrade -dc
and see what the update check finds.If that works, try
pfSense-upgrade -d
and see if the upgrade works from the console/ssh. -
pfSense-upgrade -dc
Another instance is already running... Aborting! -
Look at the full output of
ps uxawwd
and see if there are any other instances ofpfSense-upgrade
,pkg
, or (more likely)pkg-static
running and that ps output should make it easy to see what started it. Killing the process, e.g.killall -9 pkg-static
may be sufficient but if it was started by something else, you might need to kill that, too.Using option 16 and then 11 from the console menu will restart PHP and the GUI service, which may also help if it was a GUI update check that got wedged.
-
@jimp said in unable to update 22.01 to 22.05rc:
ps uxawwd
I found these:
root 14248 0.0 0.0 11244 2496 0 S+ 09:48 0:00.00 |
-- grep upgr root 50870 0.0 0.0 11704 3072 - I 14:45 0:00.00 |-- /bin/sh /usr/local/sbin/pfSense-upgrade -y -l /cf/conf/upgrade_log.txt -p /tmp/pfSense-upgrade.sock root 58743 0.0 0.0 10588 2068 - I 14:45 0:00.00 |
-- /usr/bin/lockf -s -t 5 /tmp/pfSense-upgrade.lock /usr/local/libexec/pfSense-upgrade -y -l /cf/conf/upgrade_log.txt -p /tmp/pfSense-upgrade.sock
root 58811 0.0 0.0 12472 3356 - S 14:45 0:29.41 |-- /bin/sh /usr/local/libexec/pfSense-upgrade -y -l /cf/conf/upgrade_log.txt -p /tmp/pfSense-upgrade.sock root 39126 0.0 0.0 11164 2132 - I 14:46 0:00.00 |
-- nc -lU /tmp/pfSense-upgrade.sockI killed them and restarted the upgrade via GUI and it is now starting....
Thanks all!