Mailinglist Archive: opensuse-support (159 mails)

< Previous Next >
Re: [opensuse-support] Re: [opensuse-factory] mlocate : TW
TW :
On 09/06/18 16:43, Patrick Shanahan wrote:
* ellanios82 <ellanios82@xxxxxxxxx> [06-09-18 09:13]:
On 09/06/18 15:15, Patrick Shanahan wrote on factory :
* mike <furryllama@xxxxxxxxxxx> [06-09-18 08:09]:
On 06/09/2018 07:20 AM, Peter Suetterlin wrote:
mike wrote:
Hi,

        I'm getting this after running updatedb -

                    can not open a temporary file for
'/var/lib/mlocate/mlocate.db'

        I've had to remove mlocate then reinstall it and the first updatedb
runs fine,

        then I get the above error message for the second run.....is there a
better fix

        for this?
Hmm, likely a permission issue. It normally runs as nobody (unless you change
that). Maybe the initial run when installing it is run as root? Then the DB
is owned by root and cannot be changed. Or did you call updatedb yourself?
            always run as root
show: ls -la /var/lib/mlocate
drwxr-xr-x 1 nobody root 20 Jun 9 00:15 .
drwxr-xr-x 1 root root 1006 Jun 8 23:30 ..
-rw-r--r-- 1 nobody nobody 16874246 Jun 9 00:15 mlocate.db


- Thank you Patrick


{ i have been told bu board-member to ask TW probs

 on opensuse-support }


 with TW i have adjusted chown & chmod as you suggest , but continue to get
:


# updatedb
updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'


......

 - what to try next please?
does some other process have mlocate.db open?
ps -A auf |grep mlocate

 - Thank you very much Patrick


# ps -A auf |grep mlocate : turn up nothing


still believe a perms problem, but ...

what about apparmor,
cat /etc/apparmor.d/usr.bin.updatedb
# Last Modified: Fri Apr 13 21:57:17 2018
#include <tunables/global>

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

/ 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,
}

  - believe likewise :

# cat /etc/apparmor.d/usr.bin.updatedb
# Last Modified: Fri Apr 13 21:57:17 2018
#include <tunables/global>

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

  / 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,

.........

 - again : thank you Patrick

.......
 regards

--
To unsubscribe, e-mail: opensuse-support+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-support+owner@xxxxxxxxxxxx

< Previous Next >