Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    ERROR: It was not possible to identify which pfSense kernel is installed

    2.4 Development Snapshots
    5
    24
    12.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Actually you could reinstall the packages to get back to a good state:

      pkg install pfSense pfSense-base pfSense-default-config pfSense-kernel-pfSense pfSense-rc pfSense-repo pfSense-upgrade
      

      Remember: Upvote with the 馃憤 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        So what's up with this pkg db corruption? Only happens with RAM disks?

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Until a week or so ago there were some corner cases like ZFS where the difference in how/when the disk was mounted stopped the code from working as expected.

          On current snaps it should be OK all-around.

          Remember: Upvote with the 馃憤 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            OK, thanks. ;)

            1 Reply Last reply Reply Quote 0
            • H
              hda
              last edited by

              @jimp:

              Actually you could reinstall the packages to get back to a good state:

              
              [2.4.0-BETA][root@apu2b2.localdomain]/root: pkg install pfSense pfSense-base pfSense-default-config pfSense-kernel-pfSense pfSense-rc pfSense-repo pfSense-upgrade
              Updating pfSense-core repository catalogue...
              Fetching meta.txz: 100%聽 聽 940 B聽  0.9kB/s聽 聽 00:01
              Fetching packagesite.txz: 100%聽 聽 2 KiB聽  1.8kB/s聽 聽 00:01
              Processing entries: 100%
              pfSense-core repository update completed. 7 packages processed.
              Updating pfSense repository catalogue...
              Fetching meta.txz: 100%聽 聽 940 B聽  0.9kB/s聽 聽 00:01
              Fetching packagesite.txz: 100%聽 120 KiB 122.6kB/s聽 聽 00:01
              Processing entries: 100%
              pfSense repository update completed. 441 packages processed.
              The following 149 package(s) will be affected (of 0 checked):
              
              New packages to be INSTALLED:
              聽 聽 聽 聽 pfSense: 2.4.0.b.20170116.1330 [pfSense]
              聽 聽 聽 聽 pfSense-base: 2.4.0.b.20170116.1536 [pfSense-core]
              聽 聽 聽 聽 pfSense-default-config: 2.4.0.b.20170116.1536 [pfSense-core]
              聽 聽 聽 聽 pfSense-kernel-pfSense: 2.4.0.b.20170116.1536 [pfSense-core]
              聽 聽 聽 聽 pfSense-rc: 2.4.0.b.20170116.1536 [pfSense-core]
              聽 聽 聽 聽 pfSense-repo: 2.4.0.b.20170116.1330 [pfSense]
              聽 聽 聽 聽 pfSense-upgrade: 0.12 [pfSense]
              聽 聽 聽 聽 libxml2: 2.9.4 [pfSense]
              聽 聽 聽 聽 clog: 1.0.1 [pfSense]
              聽 聽 聽 聽 dpinger: 2.0 [pfSense]
              聽 聽 聽 聽 php56-pdo_sqlite: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-pdo: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56: 5.6.29 [pfSense]
              聽 聽 聽 聽 pcre: 8.39_1 [pfSense]
              聽 聽 聽 聽 sqlite3: 3.15.1_1 [pfSense]
              聽 聽 聽 聽 readline: 6.3.8 [pfSense]
              聽 聽 聽 聽 indexinfo: 0.2.6 [pfSense]
              聽 聽 聽 聽 expiretable: 0.6_1 [pfSense]
              聽 聽 聽 聽 libltdl: 2.4.6 [pfSense]
              聽 聽 聽 聽 smartmontools: 6.5_1 [pfSense]
              聽 聽 聽 聽 php56-mbstring: 5.6.29 [pfSense]
              聽 聽 聽 聽 oniguruma5: 5.9.6_1 [pfSense]
              聽 聽 聽 聽 ipmitool: 1.8.17_1 [pfSense]
              聽 聽 聽 聽 php56-json: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-sysvshm: 5.6.29 [pfSense]
              聽 聽 聽 聽 pecl-radius: 1.4.0.b1 [pfSense]
              聽 聽 聽 聽 php56-bz2: 5.6.29 [pfSense]
              聽 聽 聽 聽 isc-dhcp43-server: 4.3.5 [pfSense]
              聽 聽 聽 聽 beep: 1.0_1 [pfSense]
              聽 聽 聽 聽 pear-Net_Growl: 2.7.0 [pfSense]
              聽 聽 聽 聽 pear: 1.10.1 [pfSense]
              聽 聽 聽 聽 php56-zlib: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-xml: 5.6.29 [pfSense]
              聽 聽 聽 聽 bwi-firmware-kmod: 3.130.20 [pfSense]
              聽 聽 聽 聽 ca_root_nss: 3.28.1 [pfSense]
              聽 聽 聽 聽 mpd5: 5.8 [pfSense]
              聽 聽 聽 聽 php56-hash: 5.6.29 [pfSense]
              聽 聽 聽 聽 mobile-broadband-provider-info: 20151214 [pfSense]
              聽 聽 聽 聽 bind-tools: 9.11.0P2 [pfSense]
              聽 聽 聽 聽 idnkit: 1.0_6 [pfSense]
              聽 聽 聽 聽 json-c: 0.12.1 [pfSense]
              聽 聽 聽 聽 libedit: 3.1.20150325_2,1 [pfSense]
              聽 聽 聽 聽 php56-mcrypt: 5.6.29 [pfSense]
              聽 聽 聽 聽 libmcrypt: 2.5.8_3 [pfSense]
              聽 聽 聽 聽 pear-XML_RPC2: 1.1.3 [pfSense]
              聽 聽 聽 聽 php56-curl: 5.6.29 [pfSense]
              聽 聽 聽 聽 curl: 7.52.1_1 [pfSense]
              聽 聽 聽 聽 libnghttp2: 1.18.0 [pfSense]
              聽 聽 聽 聽 pear-Cache_Lite: 1.7.16,1 [pfSense]
              聽 聽 聽 聽 pear-HTTP_Request2: 2.3.0,1 [pfSense]
              聽 聽 聽 聽 pear-Net_URL2: 2.2.1 [pfSense]
              聽 聽 聽 聽 pear-Mail: 1.3.0,1 [pfSense]
              聽 聽 聽 聽 pear-Net_SMTP: 1.7.2 [pfSense]
              聽 聽 聽 聽 pear-Net_Socket: 1.0.14 [pfSense]
              聽 聽 聽 聽 check_reload_status: 0.0.8 [pfSense]
              聽 聽 聽 聽 libevent2: 2.0.22_1 [pfSense]
              聽 聽 聽 聽 ataidle: 2.7.2 [pfSense]
              聽 聽 聽 聽 php56-tokenizer: 5.6.29 [pfSense]
              聽 聽 聽 聽 minicron: 0.0.2 [pfSense]
              聽 聽 聽 聽 dhcp6: 20080615.1 [pfSense]
              聽 聽 聽 聽 php56-ctype: 5.6.29 [pfSense]
              聽 聽 聽 聽 openvpn: 2.4.0 [pfSense]
              聽 聽 聽 聽 lzo2: 2.09 [pfSense]
              聽 聽 聽 聽 liblz4: 131 [pfSense]
              聽 聽 聽 聽 ntp: 4.2.8p9_1 [pfSense]
              聽 聽 聽 聽 libwww: 5.4.0_6 [pfSense]
              聽 聽 聽 聽 gettext-runtime: 0.19.8.1_1 [pfSense]
              聽 聽 聽 聽 pecl-zmq: 1.1.3_2 [pfSense]
              聽 聽 聽 聽 libzmq4: 4.1.5 [pfSense]
              聽 聽 聽 聽 norm: 1.5r6 [pfSense]
              聽 聽 聽 聽 libsodium: 1.0.11_1 [pfSense]
              聽 聽 聽 聽 ssh_tunnel_shell: 0.1_1 [pfSense]
              聽 聽 聽 聽 php56-simplexml: 5.6.29 [pfSense]
              聽 聽 聽 聽 cpdup: 1.18 [pfSense]
              聽 聽 聽 聽 pear-Net_IPv6: 1.3.0.b2_2 [pfSense]
              聽 聽 聽 聽 miniupnpd: 1.9.20160113,1 [pfSense]
              聽 聽 聽 聽 pecl-ssh2: 0.13 [pfSense]
              聽 聽 聽 聽 libssh2: 1.8.0,2 [pfSense]
              聽 聽 聽 聽 sshlockout_pf: 0.0.2 [pfSense]
              聽 聽 聽 聽 pfSense-Status_Monitoring: 1.6.0_2 [pfSense]
              聽 聽 聽 聽 pecl-rrd: 1.1.3_4 [pfSense]
              聽 聽 聽 聽 rrdtool: 1.6.0_1 [pfSense]
              聽 聽 聽 聽 perl5: 5.24.1.r4_1 [pfSense]
              聽 聽 聽 聽 glib: 2.46.2_4 [pfSense]
              聽 聽 聽 聽 python27: 2.7.13_1 [pfSense]
              聽 聽 聽 聽 libffi: 3.2.1 [pfSense]
              聽 聽 聽 聽 libiconv: 1.14_10 [pfSense]
              聽 聽 聽 聽 pear-Auth_RADIUS: 1.1.0 [pfSense]
              聽 聽 聽 聽 radvd: 1.9.1 [pfSense]
              聽 聽 聽 聽 libdaemon: 0.14_1 [pfSense]
              聽 聽 聽 聽 unbound: 1.6.0 [pfSense]
              聽 聽 聽 聽 expat: 2.2.0_1 [pfSense]
              聽 聽 聽 聽 ldns: 1.6.17_5 [pfSense]
              聽 聽 聽 聽 isc-dhcp43-relay: 4.3.5 [pfSense]
              聽 聽 聽 聽 dhcpleases: 0.3_1 [pfSense]
              聽 聽 聽 聽 php56-opcache: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-dom: 5.6.29 [pfSense]
              聽 聽 聽 聽 gogoc: 1.2_1 [pfSense]
              聽 聽 聽 聽 wol: 0.7.1_3 [pfSense]
              聽 聽 聽 聽 php56-xmlwriter: 5.6.29 [pfSense]
              聽 聽 聽 聽 choparp: 20150613 [pfSense]
              聽 聽 聽 聽 nginx: 1.10.2_3,2 [pfSense]
              聽 聽 聽 聽 luajit: 2.0.4_1 [pfSense]
              聽 聽 聽 聽 dnsmasq: 2.76,1 [pfSense]
              聽 聽 聽 聽 nettle: 3.3 [pfSense]
              聽 聽 聽 聽 gmp: 5.1.3_3 [pfSense]
              聽 聽 聽 聽 libidn: 1.33_1 [pfSense]
              聽 聽 聽 聽 pftop: 0.7_7 [pfSense]
              聽 聽 聽 聽 strongswan: 5.5.1 [pfSense]
              聽 聽 聽 聽 vstr: 1.0.15_1 [pfSense]
              聽 聽 聽 聽 php56-sockets: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-filter: 5.6.29 [pfSense]
              聽 聽 聽 聽 voucher: 0.1_2 [pfSense]
              聽 聽 聽 聽 filterdns: 1.0_15 [pfSense]
              聽 聽 聽 聽 isc-dhcp43-client: 4.3.5 [pfSense]
              聽 聽 聽 聽 php56-pfSense-module: 0.32 [pfSense]
              聽 聽 聽 聽 links: 2.13,1 [pfSense]
              聽 聽 聽 聽 php56-sysvsem: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-readline: 5.6.29 [pfSense]
              聽 聽 聽 聽 filterlog: 0.1_5 [pfSense]
              聽 聽 聽 聽 scponly: 4.8.20110526_2 [pfSense]
              聽 聽 聽 聽 qstats: 0.2 [pfSense]
              聽 聽 聽 聽 php56-posix: 5.6.29 [pfSense]
              聽 聽 聽 聽 igmpproxy: 0.1_5,1 [pfSense]
              聽 聽 聽 聽 php56-openssl: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-gettext: 5.6.29 [pfSense]
              聽 聽 聽 聽 php-xdebug: 2.4.1_1 [pfSense]
              聽 聽 聽 聽 xinetd: 2.3.15_2 [pfSense]
              聽 聽 聽 聽 bsnmp-regex: 0.6_1 [pfSense]
              聽 聽 聽 聽 php56-ldap: 5.6.29 [pfSense]
              聽 聽 聽 聽 openldap-client: 2.4.44 [pfSense]
              聽 聽 聽 聽 uclcmd: 0.1_1 [pfSense]
              聽 聽 聽 聽 libucl: 0.8.0 [pfSense]
              聽 聽 聽 聽 wrapalixresetbutton: 0.0.7 [pfSense]
              聽 聽 聽 聽 php56-pcntl: 5.6.29 [pfSense]
              聽 聽 聽 聽 rate: 0.9_1 [pfSense]
              聽 聽 聽 聽 php56-session: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-sysvmsg: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-shmop: 5.6.29 [pfSense]
              聽 聽 聽 聽 php56-xmlreader: 5.6.29 [pfSense]
              聽 聽 聽 聽 bsnmp-ucd: 0.4.2 [pfSense]
              聽 聽 聽 聽 dhcpleases6: 0.1_2 [pfSense]
              聽 聽 聽 聽 pear-Crypt_CHAP: 1.5.0 [pfSense]
              聽 聽 聽 聽 dmidecode: 3.0 [pfSense]
              聽 聽 聽 聽 php56-sqlite3: 5.6.29 [pfSense]
              聽 聽 聽 聽 relayd: 5.5.20140810_2 [pfSense]
              聽 聽 聽 聽 cpustats: 0.1_1 [pfSense]
              聽 聽 聽 聽 php-suhosin: 0.9.38_3 [pfSense]
              聽 聽 聽 聽 php56-bcmath: 5.6.29 [pfSense]
              
              Number of packages to be installed: 149
              
              The process will require 449 MiB more space.
              125 MiB to be downloaded.
              
              Proceed with this action? [y/N]: y
              
              

              No dice ?
              Already more than 15min in this state. No I/O. CPU 25%, Load ~ 1.4, Mem. normal 14%. What's going on ?

              ADD: I aborted after 30min. Ctrl-C =>聽 signal received, cleaning up. Back at prompt.

              ADD:

              
              聽 PID USERNAME聽 聽 THR PRI NICE聽  SIZE聽 聽 RES STATE聽  C聽  TIME聽 聽 WCPU COMMAND
              53727 root聽 聽 聽 聽 聽 1 103聽 聽 0 47888K 14804K CPU1聽 聽 1聽  2:39 100.00% pkg
              27942 root聽 聽 聽 聽 聽 1聽 23聽 聽 0聽  264M 29224K piperd聽 2聽  0:00聽  1.76% php-fpm
              47711 root聽 聽 聽 聽 聽 1聽 52聽  20 13048K聽 2384K wait聽 聽 2聽  0:42聽  0.20% sh
              ....
              
              
              1 Reply Last reply Reply Quote 0
              • P
                PiBa
                last edited by

                Might be that some pkg file is partially corrupted? Can you try (im assuming the name of the pool is zroot):

                zpool list
                zpool scrub zroot
                zpool status -v zroot
                

                Keep running the last command until its done scanning the disk.

                1 Reply Last reply Reply Quote 0
                • H
                  hda
                  last edited by

                  
                  [2.4.0-BETA][root@apu2b2.localdomain]/root: zpool list
                  NAME聽 聽 SIZE聽 ALLOC聽  FREE聽 EXPANDSZ聽  FRAG聽 聽 CAP聽 DEDUP聽 HEALTH聽 ALTROOT
                  zroot聽 12.9G聽  470M聽 12.4G聽 聽 聽 聽  -聽 聽  6%聽 聽  3%聽 1.00x聽 ONLINE聽 -
                  
                  [2.4.0-BETA][root@apu2b2.localdomain]/root: zpool scrub zroot
                  [2.4.0-BETA][root@apu2b2.localdomain]/root:
                  
                  [2.4.0-BETA][root@apu2b2.localdomain]/root: zpool status -v zroot
                  聽 pool: zroot
                   state: ONLINE
                  聽 scan: scrub repaired 0 in 0h0m with 0 errors on Tue Jan 17 20:55:02 2017
                  config:
                  
                  聽 聽 聽 聽 NAME聽 聽 聽 聽 STATE聽 聽  READ WRITE CKSUM
                  聽 聽 聽 聽 zroot聽 聽 聽  ONLINE聽 聽 聽  0聽 聽  0聽 聽  0
                  聽 聽 聽 聽 聽 ada0p3聽 聽 ONLINE聽 聽 聽  0聽 聽  0聽 聽  0
                  
                  errors: No known data errors
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • P
                    PiBa
                    last edited by

                    Try logging what its doing, might show that it fails to read (part of) some file? After a minute or two check the logfile possibly showing lots of commands repeating/hanging at the end of the log.. The try and find what if any file it was busy with at that time.?.

                    
                    truss -o /root/truss_pkg_upgrade.log pkg upgrade
                    
                    

                    Not sure if this is the best way, but it did help me find some problem files once..

                    1 Reply Last reply Reply Quote 0
                    • H
                      hda
                      last edited by

                      
                      [2.4.0-BETA][root@apu2b2.localdomain]/root: truss -o /root/truss_pkg_upgrade.log pkg upgrade
                      Updating pfSense-core repository catalogue...
                      Fetching meta.txz: 100%聽 聽 940 B聽  0.9kB/s聽 聽 00:01
                      Fetching packagesite.txz: 100%聽 聽 2 KiB聽  1.8kB/s聽 聽 00:01
                      Processing entries: 100%
                      pfSense-core repository update completed. 7 packages processed.
                      Updating pfSense repository catalogue...
                      Fetching meta.txz: 100%聽 聽 940 B聽  0.9kB/s聽 聽 00:01
                      Fetching packagesite.txz: 100%聽 120 KiB 122.6kB/s聽 聽 00:01
                      Processing entries: 100%
                      pfSense repository update completed. 441 packages processed.
                      Checking for upgrades (0 candidates): 100%
                      Processing candidates (0 candidates): 100%
                      Checking integrity... done (0 conflicting)
                      Your packages are up to date.
                      [2.4.0-BETA][root@apu2b2.localdomain]/root:
                      
                      

                      A lot of "No such file or directory" in the log file i.e.

                      
                      [2.4.0-BETA][root@apu2b2.localdomain]/root: tail -40 truss_pkg_upgrade.log
                      access("/var/db/pkg/local.sqlite-journal",F_OK)聽 ERR#2 'No such file or directory'
                      fstat(12,{ mode=-rw-r--r-- ,inode=20540,size=109568,blksize=109568 }) = 0 (0x0)
                      pread(0xc,0x7fffffffd900,0x10,0x18)聽 聽 聽 聽 聽 聽 聽 = 16 (0x10)
                      fstat(12,{ mode=-rw-r--r-- ,inode=20540,size=109568,blksize=109568 }) = 0 (0x0)
                      access("/var/db/pkg/local.sqlite-wal",F_OK)聽 聽 聽 ERR#2 'No such file or directory'
                      fstat(12,{ mode=-rw-r--r-- ,inode=20540,size=109568,blksize=109568 }) = 0 (0x0)
                      fcntl(12,F_SETLK,0x7fffffffd8d0)聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      stat("/var/db/pkg/local.sqlite",{ mode=-rw-r--r-- ,inode=20540,size=109568,blksize=109568 }) = 0 (0x0)
                      getpid()聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽  = 86979 (0x153c3)
                      stat("/var/db/pkg/local.sqlite",{ mode=-rw-r--r-- ,inode=20540,size=109568,blksize=109568 }) = 0 (0x0)
                      openat(AT_FDCWD,"/var/db/pkg/local.sqlite-journal",O_RDWR|O_CREAT|O_CLOEXEC,0644) = 17 (0x11)
                      fstat(17,{ mode=-rw-r--r-- ,inode=21580,size=0,blksize=131072 }) = 0 (0x0)
                      geteuid()聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 = 0 (0x0)
                      fchown(17,0,0)聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      fstat(17,{ mode=-rw-r--r-- ,inode=21580,size=0,blksize=131072 }) = 0 (0x0)
                      pwrite(0x11,0x8031d7908,0x200,0x0)聽 聽 聽 聽 聽 聽 聽  = 512 (0x200)
                      pwrite(0x11,0x7fffffffd914,0x4,0x200)聽 聽 聽 聽 聽 聽 = 4 (0x4)
                      pwrite(0x11,0x803319b08,0x400,0x204)聽 聽 聽 聽 聽 聽  = 1024 (0x400)
                      pwrite(0x11,0x7fffffffd914,0x4,0x604)聽 聽 聽 聽 聽 聽 = 4 (0x4)
                      fcntl(12,F_SETLK,0x7fffffffd8c0)聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      fcntl(12,F_SETLK,0x7fffffffd8c0)聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      pwrite(0x11,0x7fffffffd8a4,0x4,0x608)聽 聽 聽 聽 聽 聽 = 4 (0x4)
                      pwrite(0x11,0x803325d08,0x400,0x60c)聽 聽 聽 聽 聽 聽  = 1024 (0x400)
                      pwrite(0x11,0x7fffffffd8a4,0x4,0xa0c)聽 聽 聽 聽 聽 聽 = 4 (0x4)
                      pread(0x11,0x7fffffffd898,0x8,0xc00)聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      pwrite(0x11,0x7fffffffd888,0xc,0x0)聽 聽 聽 聽 聽 聽 聽 = 12 (0xc)
                      fsync(0x11)聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 = 0 (0x0)
                      openat(AT_FDCWD,"/var/db/pkg",O_CLOEXEC,00)聽 聽 聽 = 18 (0x12)
                      fsync(0x12)聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 = 0 (0x0)
                      close(18)聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 = 0 (0x0)
                      pwrite(0xc,0x803325d08,0x400,0x0)聽 聽 聽 聽 聽 聽 聽 聽 = 1024 (0x400)
                      pwrite(0xc,0x803319b08,0x400,0x10400)聽 聽 聽 聽 聽 聽 = 1024 (0x400)
                      fsync(0xc)聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      close(17)聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 = 0 (0x0)
                      unlink("/var/db/pkg/local.sqlite-journal")聽 聽 聽  = 0 (0x0)
                      fcntl(12,F_SETLK,0x7fffffffd840)聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      fcntl(12,F_SETLK,0x7fffffffd840)聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      fcntl(12,F_SETLK,0x7fffffffd860)聽 聽 聽 聽 聽 聽 聽 聽  = 0 (0x0)
                      exit(0x0)
                      process exit, rval = 0
                      [2.4.0-BETA][root@apu2b2.localdomain]/root:
                      
                      

                      Thanks again for pointing the methods. And I concluded that the database is missing.
                      So reinstall is mandatory I think.

                      1 Reply Last reply Reply Quote 0
                      • P
                        PiBa
                        last edited by

                        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
                        
                        1 Reply Last reply Reply Quote 0
                        • H
                          hda
                          last edited by

                          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:
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • P
                            PiBa
                            last edited by

                            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.?.

                            1 Reply Last reply Reply Quote 0
                            • P
                              PiBa
                              last edited by

                              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
                              
                              1 Reply Last reply Reply Quote 0
                              • H
                                hda
                                last edited by

                                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]/:
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • P
                                  PiBa
                                  last edited by

                                  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..

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    hda
                                    last edited by

                                    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 ***
                                    ...
                                    
                                    

                                    :) :) :)

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      athurdent
                                      last edited by

                                      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
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        Does this still happen on a current snapshot?

                                        Remember: Upvote with the 馃憤 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          athurdent
                                          last edited by

                                          Nope, Renato fixed it. I also reinstalled my primary system today, all fine.

                                          1 Reply Last reply Reply Quote 0
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • Sergei_ShablovskyS Sergei_Shablovsky referenced this topic on
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.