Catfish search won't update database; is there a fix or command line update?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Catfish search won't update database; is there a fix or command line update?
https://imgur.com/a/n74xyPP
Ever since the most recent update of Linux Mint, I've gotten a message on Catfish file search saying the database must be updated. I try, I put in my password, but it comes back with an error message. Is there a way to update the Catfish database using the command line? See picture for error message.
Ever since the most recent update of Linux Mint, I've gotten a message on Catfish file search saying the database must be updated. I try, I put in my password, but it comes back with an error message. Is there a way to update the Catfish database using the command line? See picture for error message.
Last edited by LockBot on Mon Sep 25, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- ricardogroetaers
- Level 6
- Posts: 1368
- Joined: Sat Oct 27, 2018 3:06 am
- Location: Rio de Janeiro, Brasil
Re: Catfish search won't update database; is there a fix or command line update?
Newer Catfish are somewhat problematic.tomreedtoon wrote: ⤴Sat Mar 25, 2023 6:29 pm Ever since the most recent update of Linux Mint, ......
Suggestion:
- completely uninstall catfish via Synaptic.
- Download the older Catfish deb (before it is too late) here: http://archive.ubuntu.com/ubuntu/pool/u ... -1_all.deb
- install the older Catfish from the "Gdebi package installer
- Run for the cheers of the fans.
Re: Catfish search won't update database; is there a fix or command line update?
Before talking about old and new version we should at first check, which version of Catfish gets actually used. I have 4.16 and I encounter no problems. Besides that: The command in Catfish to update the database is nothing else, than a function, which the system does automatically on a daily basis. So a defective database has nothing to do with Catsfish.
The command to update the database is
The command to update the database is
sudo updatedb
. If this gives the same trouble, it is evident, that Catfish has nothing to do with the problem. Delete the file mlocate.db and create a new one (same command).Re: Catfish search won't update database; is there a fix or command line update?
I tried the command line refresh and the process took about two minutes and didn't return. Then I went into my folders. Inside of the .var folder there is no subfolder named lib/mlocate/mlocate.db. The only thing inside /lib is a folder named app, with the following folders:
com.github.johnfactorum.Foliate
com.obsproject.Studio
eu.scarpetta.PDFMixTool
io.github.webcamoid.Webcamoid
net.scribus.Scribus
net.sourceforge.liferea
org.audacityteamAudacity
org.gnome.Cheese
org.inkscape.Inkscape
org.videolan.VLC
When I use Catfish to search for lib/mlocate/mlocate.db it can't find it anywhere. Is there another search function that might find out if it's on my installation at all?
com.github.johnfactorum.Foliate
com.obsproject.Studio
eu.scarpetta.PDFMixTool
io.github.webcamoid.Webcamoid
net.scribus.Scribus
net.sourceforge.liferea
org.audacityteamAudacity
org.gnome.Cheese
org.inkscape.Inkscape
org.videolan.VLC
When I use Catfish to search for lib/mlocate/mlocate.db it can't find it anywhere. Is there another search function that might find out if it's on my installation at all?
Re: Catfish search won't update database; is there a fix or command line update?
This makes clear,why you have the original problem in Catfish. But this means also, that something is terribly broken in your system, because there must be numerous subfolders in /var/lib, but not a folder named app.tomreedtoon wrote: ⤴Mon Mar 27, 2023 9:31 pm Inside of the .var folder there is no subfolder named lib/mlocate/mlocate.db. The only thing inside /lib is a folder named app
Return with a Timeshift snapshot..
- ricardogroetaers
- Level 6
- Posts: 1368
- Joined: Sat Oct 27, 2018 3:06 am
- Location: Rio de Janeiro, Brasil
Re: Catfish search won't update database; is there a fix or command line update?
Observation:tomreedtoon wrote: ⤴Mon Mar 27, 2023 9:31 pm Inside of the .var folder there is no subfolder named lib/mlocate/mlocate.db.
The "mlocate.db" file is in the "/var/lib/mlocate/" folder.
The "/lib/" folder in Mint 20.3 (and I assume, but am not sure, in all 20.x and 21.x series) is just a "shortcut" to "/usr/lib/".
You are a lucky guy.
The versions "4.16.0-1~20.04 (una)" and "1.4.10-1~18.04" (LM 19.3, Tricia) are a "hotbed" of problems.
If we eliminate the places pre-set as exceptions and search for some "object" in the "file system" (understood as the whole computer), the search never ends.
The finds (found objects) repeat themselves indefinitely in a crazy, endless loop.
I refuse to set some "locations" (folders) as exceptions to the search so that the catfish program is supposed to work correctly.
These problems simply do not exist in version 1.4.4-1.
Translated with www.DeepL.com/Translator (free version)
Re: Catfish search won't update database; is there a fix or command line update?
I'm using LM 21.1 and Catfish 4.16.3
now while everything says Catfish uses /var/lib/mlocate/mlocate.db
I can assure you it does not ....
it uses and updates /var/lib/plocate/plocate.db as does the comand sudo updatedb
now why have they changed from mlocate to plocate ............... I've no idea
I also edited
/usr/lib/python3/dist-packages/catfish_lib/catfishconfig.py
changed the location of the file
from
__locate_db_path__ = '/var/lib/mlocate/mlocate.db'
to
__locate_db_path__ = '/var/lib/plocate/plocate.db'
result
my catfish works just fine
now while everything says Catfish uses /var/lib/mlocate/mlocate.db
I can assure you it does not ....
it uses and updates /var/lib/plocate/plocate.db as does the comand sudo updatedb
now why have they changed from mlocate to plocate ............... I've no idea
I also edited
/usr/lib/python3/dist-packages/catfish_lib/catfishconfig.py
changed the location of the file
from
__locate_db_path__ = '/var/lib/mlocate/mlocate.db'
to
__locate_db_path__ = '/var/lib/plocate/plocate.db'
result
my catfish works just fine
Re: Catfish search won't update database; is there a fix or command line update?
I merely think, that you are very unlucky (out of which reason ever).
Regarding plocate:
Seems to be a change in Ubuntu 22.04, but the OP seems to use Mint 20.3, see the screenshot in the 1st post, so not relevant here.
Re: Catfish search won't update database; is there a fix or command line update?
yes I read the OP post ..... please advise as to how you deduced from the screenshot that he's using LM 20.3 ?but the OP seems to use Mint 20.3, see the screenshot in the 1st post, so not relevant here.
- Pjotr
- Level 23
- Posts: 19887
- Joined: Mon Mar 07, 2011 10:18 am
- Location: The Netherlands (Holland) 🇳🇱
- Contact:
Re: Catfish search won't update database; is there a fix or command line update?
I have Catfish 4.16.3 (Mint 21.1). My Mint was not upgraded from 20.x; I only do in-place upgrades within a Mint series.
Catfish works well on my machines. It uses the
Strangely enough, that
But
Catfish works well on my machines. It uses the
mlocate.db
database, not the plocate.db
database.Strangely enough, that
mlocate.db
database doesn't seem to need mlocate
itself; neither mlocate
nor locate
are installed on my system.But
plocate
is installed. Synaptic tells me, that mlocate
is a transitional dummy package that points to plocate
. Which might shed some light on this issue.Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Re: Catfish search won't update database; is there a fix or command line update?
yes I read the OP post ..... please advise as to how you deduced from the screenshot that he's using LM 20.3 ?
Re: Catfish search won't update database; is there a fix or command line update?
so you didn't read my post then ....
my first screenshot was mlocate , I see no difference between it and the OPs
my second screenshot was plocate after I'd edited catfishconfig.py
Re: Catfish search won't update database; is there a fix or command line update?
Did this have a purpose (except confusing things)?
Re: Catfish search won't update database; is there a fix or command line update?
Thanks! that command worked, although the screen says the database hasn't been updated for more than 7 days. At least it didn't crash.Cosmo. wrote: ⤴Sun Mar 26, 2023 3:16 am Before talking about old and new version we should at first check, which version of Catfish gets actually used. I have 4.16 and I encounter no problems. Besides that: The command in Catfish to update the database is nothing else, than a function, which the system does automatically on a daily basis. So a defective database has nothing to do with Catsfish.
The command to update the database issudo updatedb
. If this gives the same trouble, it is evident, that Catfish has nothing to do with the problem. Delete the file mlocate.db and create a new one (same command).