You are not logged in.

#1 2014-11-30 09:38:40

mini
Member
Registered: 2006-12-18
Posts: 132

Slow boot and Rotate log files error

Hello,
My Arch distro is slow since time and I have some error at the boot that I couldn't solve.
Here my systemctl

….......
sys-subsystem-bluetooth-devices-hci0.device loaded active plugged   /sys/subsystem/bluetooth/de
  sys-subsystem-net-devices-eth0.device loaded active plugged   82566MM Gigabit Network Con
  sys-subsystem-net-devices-wlan0.device loaded active plugged   PRO/Wireless 4965 AG or AGN
  -.mount                    loaded active mounted   /
  boot.mount                 loaded active mounted   /boot
  dev-hugepages.mount        loaded active mounted   Huge Pages File System
  dev-mqueue.mount           loaded active mounted   POSIX Message Queue File Sy
  home.mount                 loaded active mounted   /home
  proc-sys-fs-binfmt_misc.mount loaded active mounted   Arbitrary Executable File F
  run-user-1000-gvfs.mount   loaded active mounted   /run/user/1000/gvfs
  run-user-1000.mount        loaded active mounted   /run/user/1000
  run-user-997.mount         loaded active mounted   /run/user/997
  sys-fs-fuse-connections.mount loaded active mounted   FUSE Control File System
  sys-kernel-config.mount    loaded active mounted   Configuration File System
  sys-kernel-debug.mount     loaded active mounted   Debug File System
  tmp.mount                  loaded active mounted   Temporary Directory
  windows-D.mount            loaded active mounted   /windows/D
  org.cups.cupsd.path        loaded active running   CUPS Scheduler
  systemd-ask-password-console.path loaded active waiting   Dispatch Password Requests
  systemd-ask-password-wall.path loaded active waiting   Forward Password Requests t
  session-c2.scope           loaded active abandoned Session c2 of user sddm
  session-c3.scope           loaded active running   Session c3 of user mirek
  acpid.service              loaded active running   ACPI event daemon
  avahi-daemon.service       loaded active running   Avahi mDNS/DNS-SD Stack
  colord.service             loaded active running   Manage, Install and Generat
  dbus.service               loaded active running   D-Bus System Message Bus
  kmod-static-nodes.service  loaded active exited    Create list of required sta
* logrotate.service          loaded failed failed    Rotate log files
  NetworkManager.service     loaded active running   Network Manager

and journalctl /usr/lib/systemd/systemd -b

-- Logs begin at sob 2014-11-22 14:01:10 CET, end at nie 2014-11-30 10:22:35 CET. --
lis 30 09:50:50 localhost systemd[1]: logrotate.service: main process exited, code=exited, status=1/FAILURE
lis 30 09:50:50 localhost systemd[1]: Failed to start Rotate log files.
lis 30 09:50:50 localhost systemd[1]: Unit logrotate.service entered failed state.
lis 30 09:50:50 localhost systemd[1]: logrotate.service failed.
lis 30 09:51:22 localhost systemd[1088]: pam_unix(systemd-user:session): session opened for user mirek by (uid=0)
lis 30 09:51:23 linux.fritz.box systemd[1088]: Reached target Paths.
lis 30 09:51:23 linux.fritz.box systemd[1088]: Starting Timers.
lis 30 09:51:23 linux.fritz.box systemd[1088]: Reached target Timers.

Then I have some „logrotate.service loaded failed failed Rotate log files” that are starting and that takes a lot of time.
I have tried to configure Logrotate according to Wiki
https://wiki.archlinux.org/index.php/logrotate

but it did not help.
How shall I solve?

Thanks

Offline

#2 2014-11-30 09:55:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Slow boot and Rotate log files error

When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.


Post the output of

systemd-analyze blame

Offline

#3 2014-11-30 10:04:29

mini
Member
Registered: 2006-12-18
Posts: 132

Re: Slow boot and Rotate log files error

Ok,
my systemd-analyze blame

 # systemd-analyze blame
    2min 43.296s man-db.service
    2min 24.453s updatedb.service
         15.973s NetworkManager.service
         11.691s systemd-journald.service
          4.756s logrotate.service
          3.302s shadow.service
          3.284s rpcbind.service
          2.809s colord.service
          2.681s polkit.service
          1.439s avahi-daemon.service
          1.367s systemd-modules-load.service
          1.318s systemd-logind.service
          1.316s alsa-restore.service
          1.258s systemd-remount-fs.service
           986ms wpa_supplicant.service
           834ms systemd-udevd.service
           810ms systemd-binfmt.service
           733ms systemd-udev-trigger.service
           730ms tmp.mount
           711ms systemd-rfkill@rfkill0.service
           601ms dev-hugepages.mount
           587ms dev-mqueue.mount
           451ms proc-sys-fs-binfmt_misc.mount
           404ms dev-sda5.swap
           403ms sys-kernel-debug.mount
           388ms home.mount
           362ms windows-D.mount
           336ms kmod-static-nodes.service
           334ms systemd-backlight@backlight:acpi_video0.service
           256ms systemd-fsck-root.service
           233ms boot.mount
           199ms udisks2.service
           176ms systemd-sysctl.service
           171ms systemd-tmpfiles-setup.service
           169ms systemd-vconsole-setup.service
           165ms systemd-tmpfiles-setup-dev.service
           133ms systemd-backlight@backlight:radeon_bl0.service
           130ms systemd-random-seed.service
            97ms systemd-fsck@dev-sda7.service
            67ms systemd-user-sessions.service
            47ms sys-fs-fuse-connections.mount
            35ms systemd-update-utmp.service
            29ms systemd-fsck@dev-sda3.service
            17ms user@1000.service
            15ms user@997.service
            10ms systemd-tmpfiles-clean.service
             2ms systemd-journal-flush.service
             2ms systemd-rfkill@rfkill1.service
             2ms sys-kernel-config.mount
             2ms systemd-udev-settle.service 

Offline

#4 2014-11-30 10:16:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Slow boot and Rotate log files error

See e.g. https://bugs.archlinux.org/task/41688 for man-db and updatedb services starting on boot.

Offline

#5 2014-12-02 15:37:43

mini
Member
Registered: 2006-12-18
Posts: 132

Re: Slow boot and Rotate log files error

Can you please be more precise what update can fix it?
Also, if I boot my PC more than once in a single day, it boots very fast next time

Offline

#6 2014-12-02 15:49:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Slow boot and Rotate log files error

mini wrote:

Also, if I boot my PC more than once in a single day, it boots very fast next time

These services are scheduled to run at midnight if the computer is turned on. If it's not, they will be run at the earliest convenience i.e. at boot. They're run only once every 24 hours at most, so if your computer has been powered off for a few days they won't run a few times back-to-back, but only once.


The comment on the bug report suggests using OnBootSec=15min and OnUnitActiveSec=1d but you can set the timers to whatever you want.
https://wiki.archlinux.org/index.php/Systemd/Timers

Offline

Board footer

Powered by FluxBB