Solved - Update broken - Always saying i'm on latest vers



  • Gent's

    I have a problem with one of my pfSense boxes , well only the update part.

    I have 2 Qotom Core i5's running 2.4.0-Beta

    One box is detecting new updates fine , it's a remote box that i will upgrade when onsite.

    The other i have @Home , and it stopped detecting new updates , after i updated it last friday the 18'th Aug.
    I have no problems with the box, and it's working fine. But it doesn't seem to detect the latest updates anymore.

    Doing a ssh admin@pfsense & select opt 13 (upgrade from console) , returns errors

    
    Enter an option: 13
    
    >>> Updating repositories metadata... 
    Updating pfSense-core repository catalogue...
    pfSense-core repository is up to date.
    Updating pfSense repository catalogue...
    pkg: Repository pfSense load error: access repo file(/root/var/db/pkg/repo-pfSense.sqlite) failed: No such file or directory
    pkg: https://pkg.pfsense.org/pfSense_v2_4_0_amd64-pfSense_devel/meta.txz: Not Found
    repository pfSense has no meta file, using default settings
    pkg: https://pkg.pfsense.org/pfSense_v2_4_0_amd64-pfSense_devel/packagesite.txz: Not Found
    Unable to update repository pfSense
    Error updating repositories!
    *** Welcome to pfSense 2.4.0-BETA (amd64) on  ***
    
    

    It seems like it lost track of all installed packages too, and no packkages are available.

    Edit:

    Files in /root/var/db/pkg :

    Working unit

    /root/var/db/pkg: ls -l
    total 4856
    -rw-r--r--  1 root  wheel  3665920 Aug 23 18:33 local.sqlite
    -rw-r--r--  1 root  wheel      246 Aug 23 13:24 pfSense-core.meta
    -rw-r--r--  1 root  wheel      246 Aug 23 03:48 pfSense.meta
    -rw-r--r--  1 root  wheel   212992 Aug 23 13:24 repo-pfSense-core.sqlite
    -rw-r--r--  1 root  wheel   987136 Aug 23 03:48 repo-pfSense.sqlite
    [2.4.0-BETA][admin@]/root/var/db/pkg
    

    Non Working Unit

    /root/var/db/pkg: ls -l
    total 3896
    -rw-r--r--  1 root  wheel  3710976 Aug 21 18:20 local.sqlite
    -rw-r--r--  1 root  wheel      246 Aug 23 13:24 pfSense-core.meta
    -rw-r--r--  1 root  wheel      246 Aug 21 18:04 pfSense.meta
    -rw-r--r--  1 root  wheel   212992 Aug 23 13:24 repo-pfSense-core.sqlite
    [2.4.0-BETA][admin@]/root/var/db/pkg:
    

    Any hints on how to fix the broken one ?
    Would really prefer not to reinstall it.

    TIA

    /Bingo







  • Seems to be solved

    I switched to the devel repos , and saved.
    Then i switched back to the stable repos , and saved.

    No updates or anything , just switch & save.

    Now i get this on my previous "Bad box"

    Wonder what happened ??

    A diff of the new (ok) config.xml , and the previous (bad)
    Shows that this has been added to the (ok) config.

    		 <gitsync><branch></branch></gitsync> 
    		<pkg_repo_conf_path>/usr/local/share/pfSense/pkg/repos/pfSense-repo.conf</pkg_repo_conf_path>
    

    And my installed packages & available packages are back too  ;D

    /Bingo




  • Just upgraded to the latest RC , all went fine.
    I used the SSH : 13) Update from console  way op upgrading , no problems at all.

    My system is back on track  ;D

    /Bingo




  • i wish mine worked… I tried your way with me its a no go...

    Enter an option: 13

    Updating repositories metadata...
    Updating pfSense-core repository catalogue...
    pkg: Repository pfSense-core has a wrong packagesite, need to re-create database
    pkg: https://beta.pfsense.org/packages/pfSense_devel_amd64-core/meta.txz: Not Found
    repository pfSense-core has no meta file, using default settings
    pkg: https://beta.pfsense.org/packages/pfSense_devel_amd64-core/packagesite.txz: Not Found
    Unable to update repository pfSense-core
    Updating pfSense repository catalogue...
    pkg: Repository pfSense has a wrong packagesite, need to re-create database
    pkg: https://beta.pfsense.org/packages/pfSense_devel_amd64-pfSense_devel/meta.txz: Not Found
    repository pfSense has no meta file, using default settings
    pkg: https://beta.pfsense.org/packages/pfSense_devel_amd64-pfSense_devel/packagesite.txz: Not Found



  • me too.  i have to use force updae in shell


Log in to reply