-
cdsg
- Lurker
- Posts: 1
- Liked: never
- Joined: Jul 11, 2022 1:58 pm
- Contact:
Ubuntu 22.04 / mlocate
Running a Veeam Backup job for our first Ubuntu 22.04 LTS virtual machine and Veeam is throwing a warning: Failed to index guest file system. mlocate was not found.
It appears that Ubuntu 22.04 has phased out the old «mlocate» package with a new package called «plocate» — Running «apt install mlocate» actually installs the new «plocate» in its place. It seems like it operates identically however Veeam is unable to identity it.
Code: Select all
# dpkg --list | grep locate
ii mlocate 1.1.15-1ubuntu2 all transitional dummy package
ii plocate 1.1.15-1ubuntu2 amd64 much faster locate
# updatedb -V
updatedb (plocate) 1.1.15
Copyright (C) 2007 Red Hat, Inc. All rights reserved.
This software is distributed under the GPL v.2.
This program is provided with NO WARRANTY, to the extent permitted by law
I didn’t find any other posts about it on this forum. Any clue as to when support for this new change will be added? Other than the guest file system indexing failing the backups operate correctly.
Veeam version 11.0.1.1261 P20220302
-
Andreas Neufert
- VP, Product Management
- Posts: 6253
- Liked: 1301 times
- Joined: May 04, 2011 8:36 am
- Full Name: Andreas Neufert
- Location: Germany
- Contact:
Re: Ubuntu 22.04 / mlocate
Post
by Andreas Neufert » Jul 11, 2022 2:29 pm
I think you can just create a symlink from mlocate to plocate if I remember right. I think if you google you will find some examples.
Btw. Indexing is only needed for a very specific usecase. It is NOT needed for general file level recovery.
You can do file level recovery from Backup & Replication or from Enterprise Manager with mounting the back and browsing through the content.
Indexing is only used within Enteprise Manager if you want to search for files (in the backup catalog) without mounting the backups.
-
Andreas Neufert
- VP, Product Management
- Posts: 6253
- Liked: 1301 times
- Joined: May 04, 2011 8:36 am
- Full Name: Andreas Neufert
- Location: Germany
-
Contact:
Who is online
Users browsing this forum: Bing [Bot] and 33 guests
t3easy
changed the title
Veeam dosen’t detect mlocate
Veeam don’t detect mlocate
Dec 3, 2020
Got the exact same issue — so any solution to this would be nice.
I have not found one since I created the issue, sorry.
I have not found one since I created the issue, sorry.
Well it might not be photon os that is to blame — it could be veeam.
Strange is, that one vm is indexed without any problems. All have the same packages in the same versions installed. Like I’ve written, the only difference is, the working vm was deployed with an older version of the ova some month earlier than the vms having problems.
It seems like while installing the veem it try to figure out if mlocate is not installed or not. Probably reinstalling veem fix the issue.
It seems like while installing the veem it try to figure out if mlocate is not installed or not. Probably reinstalling veem fix the issue.
I doubt that — since how would you be able to add new VM’s to backup if it only happened under installation of veeam?
(I just deployed a 4.0 RC VM from the OVA with virtual hardware v13 (UEFI Secure Boot)
today, installed the required tools and check tomorrow if Veeam can detect mlocate)
I don’t know how it checks if the tools are installed.
Probably not in a very good way, since it fails to detect it consistently
It seems like while installing the veem it try to figure out if mlocate is not installed or not. Probably reinstalling veem fix the issue.
I doubt that — since how would you be able to add new VM’s to backup if it only happened under installation of veeam?
Any way it does not seem to me photon issue since command line works. You should raise a bz at veem.
Same for Photon OS 4.0 RC. Veeam don’t detect mlocate and the filesystem is not indexed.
I’ll open an issue at Veeam and report back here. Please let this issue open
The veeam support reported back:
They check with updatedb -V
if mlocate is installed.
But Photon OS minimal has findutils installed by default and that has the binary /usr/bin/updatedb
Extract from the log:
Zeile 9288: [16.02.2021 22:06:01] <61> Fehler bei updatedb: ungültige Option -V
Zeile 9289: [16.02.2021 22:06:01] <61> Fehler Usage: /usr/bin/updatedb [--findoptions='-option1 -option2...']
Zeile 9290: [16.02.2021 22:06:01] <61> Fehler [--localpaths='dir1 dir2...'] [--netpaths='dir1 dir2...']
Zeile 9291: [16.02.2021 22:06:01] <61> Fehler [--prunepaths='dir1 dir2...'] [--prunefs='fs1 fs2...']
Zeile 9292: [16.02.2021 22:06:01] <61> Fehler [--output=dbfile] [--netuser=user] [--localuser=user]
Zeile 9293: [16.02.2021 22:06:01] <61> Fehler [--old-format] [--dbformat] [--version] [--help]
Zeile 9294: [16.02.2021 22:06:01] <61> Fehler Fehlerbericht an <bug-findutils@gnu.org>.
On Ubuntu for example, its handled like this:
in /usr/bin/
lrwxrwxrwx 1 root root 26 Jun 1 2016 updatedb -> /etc/alternatives/updatedb
-rwxr-xr-x 1 root root 43768 Nov 18 2014 updatedb.mlocate
in /etc/alternatives/
lrwxrwxrwx 1 root root 25 Jun 1 2016 updatedb -> /usr/bin/updatedb.mlocate
In Photon OS I now moved /usr/bin/updatedb to /usr/bin/updatedb.fileutils and symlinked /usr/bin/updatedb.mlocate to /usr/bin/updatedb.
running updatedb now throws an error:
updatedb: kann Gruppe `mlocate’ nicht finden
Seems like the mlocate package don’t create the mlocate group, so I had to add the group manually.
Now indexing works fine. But this is not what I would expect to be necessary.
(Still strange is, that one VM works without the steps mentioned above. This VM was installed earlier and is in the DMZ.)
Zeile 9288: [16.02.2021 22:06:01] <61> Fehler bei updatedb: ungültige Option -V
Zeile 9289: [16.02.2021 22:06:01] <61> Fehler Usage: /usr/bin/updatedb [--findoptions='-option1 -option2...']
Zeile 9290: [16.02.2021 22:06:01] <61> Fehler [--localpaths='dir1 dir2...'] [--netpaths='dir1 dir2...']
Zeile 9291: [16.02.2021 22:06:01] <61> Fehler [--prunepaths='dir1 dir2...'] [--prunefs='fs1 fs2...']
Zeile 9292: [16.02.2021 22:06:01] <61> Fehler [--output=dbfile] [--netuser=user] [--localuser=user]
Zeile 9293: [16.02.2021 22:06:01] <61> Fehler [--old-format] [--dbformat] [--version] [--help]
It seems to me german. From the above logs translating Deutsch(german) -> english with updatedb: invalid option
❯ updatedb --help
Usage: /bin/updatedb [--findoptions='-option1 -option2...']
[--localpaths='dir1 dir2...'] [--netpaths='dir1 dir2...']
[--prunepaths='dir1 dir2...'] [--prunefs='fs1 fs2...']
[--output=dbfile] [--netuser=user] [--localuser=user]
[--dbformat] [--version] [--help]
It should be ❯ updatedb --version
updatedb: kann Gruppe `mlocate’ nicht finden
Seems like the mlocate package don’t create the mlocate group, so I had to add the group manually.
I looked in the source code . I could not find what is mlocate group is used here. Fedora group added is slocate
.
Yes, sorry i installed german localization in Photon OS thats why the errors are in german, I’ll translate them next time or change the locale before.
The updatedb.mlocate
accepts the -V
parameter and Veeam tests with this parameter if updatedb
is a mlocate binary.
If you install mlocate and run updatedb.mlocate
you’ll get an error like «group mlocate not found».
@bjornbouetsmith Did you test my workaround?
In Photon OS I now moved /usr/bin/updatedb to /usr/bin/updatedb.fileutils and symlinked /usr/bin/updatedb.mlocate to /usr/bin/updatedb.
running updatedb now throws an error:
updatedb: can not find group mlocate
Seems like the mlocate package don’t create the mlocate group, so I had to add the group manually.
groupadd mlocate
Now indexing works fine. But this is not what I would expect to be necessary.
Thank you @t3easy for pointing me out to this thread, I spent the last night trying to figure out what’s going on, I opened a case with Veeam, no answers yet, but I read this thread carefully, and it seems that Veeam should be using updatedb.mlocate -V
rather than locate -V
.
I just moved mv /usr/bin/updatedb to /etc/alternatives
and ln -s /usr/bin/updatedb.mlocate /usr/bin/updatedb
so indexing works now
I will report this to Veeam people once they reply to my ticket.
Thanks!
@elekgeek Already had an issue open at Veeam with no luck. Just got the answer: will forward info to developers…
@t3easy One of the things that puzzle me is that I have a lot of linux machines, never had issues indexing them, but vcenter has been always the PITA machine. I looked at these linux machines and mlocate is not even installed Try updatedb -V
on other linux machines and it will for sure behave exactly the same as on PhotonOS, so why veeam is expecting mlocate on vCenter only!?
I had same thing but after update Ubuntu 20.04 to 22.04.
On 22.04 «mlocate not found», meanwhile
root@mysql3:~# updatedb --version
updatedb (plocate) 1.1.15
Copyright (C) 2007 Red Hat, Inc. All rights reserved.
This software is distributed under the GPL v.2.
This program is provided with NO WARRANTY, to the extent permitted by law.
root@mysql3:~# updatedb -V
updatedb (plocate) 1.1.15
Copyright (C) 2007 Red Hat, Inc. All rights reserved.
This software is distributed under the GPL v.2.
This program is provided with NO WARRANTY, to the extent permitted by law.
Most linux vm in Ubuntu 20.04 — indexing fine.
on 22.04… not even clue in logs or manuals.
ERROR : locate: can not stat () `/var/lib/mlocate/mlocate.db’: No such file or directory
You might see the above error while trying to search a file/directory on your linux server using locate command. Error show that “mlocate.db” file is missing on the server. “mlocate.db” is the database file in which locate command use to keep the location of all files on the server. You will see the above error if you are running locate command for the first time or if it is a newly setup linux server.
You must first run “updatedb” command on the server so that locate will store all the file location in mlocate.db. login to your linux server via SSH as root and just type the command “updatedb” and hit enter.
[root@server etc]# locate index.php
locate: can not stat () `/var/lib/mlocate/mlocate.db’: No such file or directory
[root@server etc]# updatedb
[root@server etc]#
locate can not stat mlocate.db No such file or directory
You can start searching files using locate command after “updatedb” is completed. Database file “mlocate.db” is automatically created when we ran “updatedb” command. This database file contain details of location of all files on your Linux server. When you search a file locate command will search this database and provides the file location immediately.
[root@server etc]# du -sch /var/lib/mlocate/mlocate.db
976K /var/lib/mlocate/mlocate.db
Инструменты пользователя
- Войти
locate._var_lib_mlocate_mlocate.db_no_such_file_or_directory
Содержание
locate: can not stat () `/var/lib/mlocate/mlocate.db’: No such file or directory
Проблема
root@workpc:~/ $ locate locate locate: не удалось выполнить stat () «/var/lib/mlocate/mlocate.db»: No such file or directory
Лечение
· Последнее изменение: 2016/08/29 00:00 (внешнее изменение)