Bug 1498460 - updatedb run through the systemd timer fails to scan /usr
Summary: updatedb run through the systemd timer fails to scan /usr
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mlocate
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Sekletar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-04 11:45 UTC by Lorenzo Pistone
Modified: 2021-05-18 19:58 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-27 20:22:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lorenzo Pistone 2017-10-04 11:45:48 UTC
This is probably due to ProtectSystem=true in the systemd unit (overriding it fixes the problem). You can test this in the following way:

sudo systemctl restart mlocate-updatedb.service
locate /usr/lib64/libc.so.6 #not found

sudo updatedb
locate /usr/lib64/libc.so.6 #found

sudo systemctl edit mlocate-updatedb.service #edit with ProtectSystem=false
sudo systemctl restart mlocate-updatedb.service
locate /usr/lib64/libc.so.6 #found


Strangely enough, ProtectSystem=true should block /boot too, but I can locate files there.

Comment 1 Hedayat Vatankhah 2018-04-16 09:06:28 UTC
Setting IOSchedulingClass=3 seems to help here. Although I'm still not sure (not tried to actually boot with this settings when updatedb should be run to see if it doesn't affect boot at all).

Anyway, this bug has a really bad impression on Fedora users. If cannot be fixed using systemd, I highly suggest using cron again.

Comment 2 Hedayat Vatankhah 2018-04-16 09:09:57 UTC
Oh I'm really sorry :">

This comment was meant to be posted in another bug report. Sorry for the noise.

Comment 3 Ben Cotton 2018-11-27 16:10:31 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2018-11-30 17:32:39 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Lorenzo Pistone 2018-12-14 15:13:48 UTC
Still here in f29.

Comment 6 Ben Cotton 2019-10-31 20:19:03 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Ben Cotton 2019-11-27 20:22:01 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 Roshan Shariff 2021-05-18 19:58:25 UTC
This issue is still present in Fedora 34.  The workaround in #1 still works.


Note You need to log in before you can comment on or make changes to this bug.