Agent-based backups for Windows and Linux, centralized agent management
Post Reply
akwete
Influencer
Posts: 15
Liked: never
Joined: Dec 30, 2018 2:58 am
Full Name: Ken Onwere
Contact:

Guest File Indexing Error

Post by akwete »

I've got a Linux host on which Veeam Agent backups generate the following guest file indexing error:

" updatedb: can not open a temporary file for `/tmp/veeam/index/mlocate._boot_.db' "

Any idea what might be causing this?

HannesK
Veeam Software
Posts: 5704
Liked: 782 times
Joined: Sep 01, 2014 11:46 am
Location: Austria
Contact:

Re: Guest File Indexing Error

Post by HannesK »

Hello,
I'm just guessing what I found on the internet and it could be a permission problem as stated here

If that's not the case, I can only suggest to open a case and share the case number here.

Thanks,
Hannes

mkuch
Lurker
Posts: 1
Liked: 1 time
Joined: Jun 06, 2020 11:18 am
Full Name: Michael Kuch
Contact:

Re: Guest File Indexing Error

Post by mkuch » 1 person likes this post

A bit late, but I had the same problem on a SuSE Linux Enterprise Server and found a solution:

The source of the error is that apparmor was blocking the executable ("updatedb") from reading/writing from anywhere except the system default directory. The Veeam agent tries to store the index files in /tmp/veeam/index/ which gets blocked by apparmour.

To solve the issue you have to add the files created in this directory to the apparmor configuration file and restart the apparmor service.

Code: Select all

sles:~ # vi /etc/apparmor.d/usr.bin.updatedb

# Last Modified: Fri Apr 13 21:57:17 2018
#include <tunables/global>

/usr/bin/updatedb {
  #include <abstractions/base>

  capability dac_override,
  capability dac_read_search,
  capability fowner,

  / r,
  /**/ r,
  /etc/updatedb.conf r,
  /usr/bin/updatedb mr,
  owner /proc/@{pid}/mounts r,
  /var/lib/mlocate/mlocate.db rwk,
  /var/lib/mlocate/mlocate.db.?????? rw,

  /tmp/veeam/index/mlocate.*.db rwk,
  /tmp/veeam/index/mlocate.*.db.?????? rw,
}

sles:~ # rcapparmour restart
In the usr.bin.updatedb the two lines starting with "/tmp/veeam/index" have been added at the end of the file.
After this change the index error was gone.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests