galliumos-distro icon indicating copy to clipboard operation
galliumos-distro copied to clipboard

service ureadahead fails after each reboot

Open molberg opened this issue 8 years ago • 5 comments

$ systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● ureadahead.service loaded failed failed Read required files in advance

$ systemctl status ureadahead ● ureadahead.service - Read required files in advance Loaded: loaded (/lib/systemd/system/ureadahead.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2016-09-22 15:45:25 CEST; 13min ago Process: 2435 ExecStart=/sbin/ureadahead (code=exited, status=5) Main PID: 2435 (code=exited, status=5)

$ sudo /sbin/ureadahead --verbose /var/lib/ureadahead/pack: No such file or directory Counted 4 CPUs

ureadahead: Error while tracing: No such file or directory

So the reason appears to be a missing "pack" file. I have tried to google for a way to generate it, but have not been successful.

I am on Dell Chromebook 13 (lulu), installed via chrx

$ uname -a Linux lulu 4.4.6-galliumos #2 SMP PREEMPT Fri Apr 29 13:30:57 MDT 2016 x86_64 x86_64 x86_64 GNU/Linux

molberg avatar Sep 22 '16 14:09 molberg

I've noticed that error too. Is it causing a problem with the function of your system, or just an aesthetic concern at present?

reynhout avatar Sep 22 '16 16:09 reynhout

I was really just playing around with systemctl when I noticed that it reported the failure. Hadn't noticed it otherwise. I understand that ureadahead is supposed to speed up the boot process, my system boots amazingly fast anyhow ;-)

molberg avatar Sep 22 '16 19:09 molberg

The launchpad description for ureadahead says it requires a kernel patch, which is included in the Ubuntu kernel.

There's also a kernel patch inside the ureadahead source tree -- this might be the patch of interest. It is rather old (2009) does not apply cleanly to 4.7 kernels.

I haven't been able to find an equivalent patch in the Ubuntu xenial kernel tree.

  • https://launchpad.net/ureadahead
  • https://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/ureadahead/wily/view/head:/0001-trace-add-trace-events-for-open-exec-an.patch

Not sure whether this is a useful avenue...just dumping the context here for future research. :)

reynhout avatar Sep 22 '16 21:09 reynhout

For everyone which plan to use kernel 4.9, here is a patch for ureadahead on ubuntu :

https://github.com/pykiki/patches/blob/master/ureadahead-add-trace-event_ubuntu_4.9.patch

pykiki avatar Dec 21 '16 15:12 pykiki

Other computers with this Linux Mint 19.1 on 4.15 kernel without problem, but this gaming device with 5.2 kernel

~ uname -a
Linux host 5.2.7-050207-generic #201908061831 SMP Tue Aug 6 18:34:36 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

~ systemctl status ureadahead
● ureadahead.service - Read required files in advance
   Loaded: loaded (/lib/systemd/system/ureadahead.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-08-07 22:01:09 +05; 3h 53min ago
 Main PID: 462 (code=exited, status=5)
Aug 07 22:01:09 host ureadahead[462]: ureadahead: Error while tracing: No such file or directory
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

~ sudo /sbin/ureadahead --verbose
/var/lib/ureadahead/pack: No such file or directory
Counted 8 CPUs
ureadahead: Error while tracing: No such file or directory

Read about incompatibility systemd and ureadahead, so:

~ sudo systemctl disable ureadahead.service
Removed /etc/systemd/system/default.target.wants/ureadahead.service.
~ sudo systemctl mask ureadahead.service
Created symlink /etc/systemd/system/ureadahead.service → /dev/null.

b1oki avatar Aug 07 '19 20:08 b1oki