ERROR: It was not possible to identify which pfSense kernel is installed
-
Hm but the command 'pkg upgrade' itself completed correctly right, what was the one that failed.? I dont have those -journal and -wal files myself either might be normal..
Was the failure with installing the pfsense package parts? Can you try?:
truss -o /root/truss_pkg_install.log pkg install pfSense pfSense-base pfSense-default-config pfSense-kernel-pfSense pfSense-rc pfSense-repo pfSense-upgrade
-
After 2min, aborted. 16MB file.
[2.4.0-BETA][root@apu2b2.localdomain]/root: tail -40 truss_pkg_install.log mkdir("/var/cache",0777) ERR#17 'File exists' mkdir("/var/cache/pkg",0777) ERR#17 'File exists' statfs("/var/cache/pkg",0x7fffffffd798) ERR#2 'No such file or directory' mkdir("/var",0777) ERR#17 'File exists' mkdir("/var/cache",0777) ERR#17 'File exists' mkdir("/var/cache/pkg",0777) ERR#17 'File exists' statfs("/var/cache/pkg",0x7fffffffd798) ERR#2 'No such file or directory' mkdir("/var",0777) ERR#17 'File exists' mkdir("/var/cache",0777) ERR#17 'File exists' mkdir("/var/cache/pkg",0777) ERR#17 'File exists' statfs("/var/cache/pkg",0x7fffffffd798) ERR#2 'No such file or directory' mkdir("/var",0777) ERR#17 'File exists' mkdir("/var/cache",0777) ERR#17 'File exists' mkdir("/var/cache/pkg",0777) ERR#17 'File exists' statfs("/var/cache/pkg",0x7fffffffd798) ERR#2 'No such file or directory' mkdir("/var",0777) ERR#17 'File exists' mkdir("/var/cache",0777) ERR#17 'File exists' mkdir("/var/cache/pkg",0777) ERR#17 'File exists' statfs("/var/cache/pkg",0x7fffffffd798) ERR#2 'No such file or directory' mkdir("/var",0777) ERR#17 'File exists' mkdir("/var/cache",0777) ERR#17 'File exists' SIGNAL 2 (SIGINT) sigprocmask(SIG_SETMASK,{ SIGINT },0x0) = 0 (0x0) write(2,"pkg: ",5) = 5 (0x5) write(2,"\nsignal received, cleaning up",29) = 29 (0x1d) write(2,"\n",1) = 1 (0x1) unlink("pÙÿÿ") ERR#2 'No such file or directory' rename("pÙÿÿ-pkgtemp","pÙÿÿ") ERR#2 'No such file or directory' unlink("pÙÿÿ-journal") ERR#2 'No such file or directory' unlink("pÙÿÿ") ERR#2 'No such file or directory' rename("pÙÿÿ-pkgtemp","pÙÿÿ") ERR#2 'No such file or directory' unlink("pÙÿÿ-journal") ERR#2 'No such file or directory' unlink("pÙÿÿ") ERR#2 'No such file or directory' rename("pÙÿÿ-pkgtemp","pÙÿÿ") ERR#2 'No such file or directory' unlink("pÙÿÿ-journal") ERR#2 'No such file or directory' unlink("pÙÿÿ") ERR#2 'No such file or directory' rename("pÙÿÿ-pkgtemp","pÙÿÿ") ERR#2 'No such file or directory' unlink("pÙÿÿ-journal") ERR#2 'No such file or directory' exit(0x1) process exit, rval = 1 [2.4.0-BETA][root@apu2b2.localdomain]/root:
Circular ?
[2.4.0-BETA][root@apu2b2.localdomain]/var/cache: ls -l total 1 lrwxr-xr-x 1 root wheel 24 Jan 16 16:51 pkg -> ../../root/var/cache/pkg [2.4.0-BETA][root@apu2b2.localdomain]/var/cache:
-
So the "SIGNAL 2 (SIGINT)" is probably from you pressing Ctrl+C, and before that its looping over the same 4 commands..
What happens right before it enters that 'loop'?
Can you check if /var/cache/pkg/ exists, and all files seem 'valid' no 0 byte files or something? Or just throw the whole pkg folder in there away or rename it.?. -
Can you disable memory disks if you have those enabled? For me on a regular full install it isn't a 'linked' folder..
[2.4.0-BETA][root@pfSe.localdomain]/var/cache: ls -l total 105 drwxr-xr-x 2 root wheel 16 Jan 18 22:44 pkg
-
I do not have RAM-disk enabled.
[2.4.0-BETA][root@apu2b2.localdomain]/: find / -name pkg /var/cache/pkg /var/db/pkg /var/db/pkg/pkg /etc/pkg /usr/share/keys/pkg /usr/local/pkg /usr/local/sbin/pkg /usr/local/etc/pkg /usr/local/share/pfSense/pkg /usr/local/share/pfSense/keys/pkg /usr/sbin/pkg
And this is all that is there for "db pkg":
[2.4.0-BETA][root@apu2b2.localdomain]/: ls -l /var/db/pkg/pkg lrwxr-xr-x 1 root wheel 21 Jan 16 16:51 /var/db/pkg/pkg -> ../../root/var/db/pkg [2.4.0-BETA][root@apu2b2.localdomain]/: ls -l /var/db/pkg/ total 483 -rw-r--r-- 1 root wheel 109568 Jan 18 22:25 local.sqlite -rw-r--r-- 1 root wheel 246 Jan 18 21:59 pfSense-core.meta -rw-r--r-- 1 root wheel 246 Jan 18 16:55 pfSense.meta lrwxr-xr-x 1 root wheel 21 Jan 16 16:51 pkg -> ../../root/var/db/pkg -rw-r--r-- 1 root wheel 70656 Jan 18 22:26 repo-pfSense-core.sqlite -rw-r--r-- 1 root wheel 832512 Jan 18 22:26 repo-pfSense.sqlite [2.4.0-BETA][root@apu2b2.localdomain]/:
-
My vote go's to getting rid of those linked pkg folders..
Mine:[2.4.0-BETA][root@pfSe.localdomain]/var/cache: ls -l /var/db/pkg total 3667 -rw-r--r-- 1 root wheel 6195200 Jan 18 22:44 local.sqlite -rw-r--r-- 1 root wheel 246 Jan 18 21:59 pfSense-core.meta -rw-r--r-- 1 root wheel 246 Jan 18 16:55 pfSense.meta -rw-r--r-- 1 root wheel 70656 Jan 18 22:42 repo-pfSense-core.sqlite -rw-r--r-- 1 root wheel 832512 Jan 18 22:42 repo-pfSense.sqlite [2.4.0-BETA][root@pfSe.localdomain]/var/cache: ls -l total 105 drwxr-xr-x 2 root wheel 16 Jan 18 22:44 pkg drwxr-xr-x 2 root wheel 474 Jan 18 19:43 pkg X [2.4.0-BETA][root@pfSe.localdomain]/var/cache:
The place that "pkg -> ../../root/var/db/pkg" points to doesnt seem to exist.. I would try and delete it. And also from /var/cache/
pkg should recreate the cache folder itself when it downloads new stuff.. -
Beautyfull !
Yes, the removal of the link-files freed up the update & recreation processes.
Thanks PiBa.... pfSense 2.4.0-BETA amd64 Wed Jan 18 14:23:45 CST 2017 Bootup complete FreeBSD/amd64 (apu2b2.localdomain) (ttyu0) *** Welcome to pfSense 2.4.0-BETA (amd64) on apu2b2 *** ...
:) :) :)
-
Just freshly installed pfSense-CE-2.4.0-BETA-amd64-20170119-1521.iso on a KVM.
Same error:
pkg: No package(s) matching pfSense-kernel-*
Issuing
pkg install pfSense pfSense-base pfSense-default-config pfSense-kernel-pfSense pfSense-rc pfSense-repo pfSense-upgrade
seems to have fixed it.
Maybe related to changes introduced in Bug #7086?
zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 592M 45.7G 96K /zroot zroot/ROOT 455M 45.7G 96K none zroot/ROOT/default 454M 45.7G 454M / zroot/tmp 336K 45.7G 336K /tmp zroot/var 137M 45.7G 137M /var
-
Does this still happen on a current snapshot?
-
Nope, Renato fixed it. I also reinstalled my primary system today, all fine.
-
-
-
-
-
-
-