Announcement

Collapse
No announcement yet.

Boot Errors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Boot Errors

    Hi! Just noticed while booting up today some errors, but I don't know how to fix any of them. I executed systemctl --failed as root user, and got this output.

    Code:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● apport-autoreport.service loaded failed failed Process error reports when automatic reporting is enabled
    ● atop.service loaded failed failed Atop advanced performance monitor
    ● clamav-daemon.service loaded failed failed Clam AntiVirus userspace daemon
    ● clamav-freshclam.service loaded failed failed ClamAV virus database updater
    ● [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL] loaded failed failed Postfix Mail Transport Agent (instance -)
    ● virtualbox.service loaded failed failed LSB: VirtualBox Linux kernel module
    Turns out the apport one is just becase i didn't have error reporting activated.

    pursuing the atop failure, i came up with :

    Code:
    $ systemctl status atop.service
    
    × atop.service - Atop advanced performance monitor
    Loaded: loaded (/lib/systemd/system/atop.service; enabled; preset: enabled)
    Active: failed (Result: exit-code) since Tue 2023-06-06 15:37:54 EDT; 15s ago
    Docs: man:atop(1)
    Process: 30399 ExecStartPre=/bin/sh -c test -n "$LOGINTERVAL" -a "$LOGINTERVAL" -eq "$LOGINTERVAL" (code=exited, status=0/SUCCESS)
    Process: 30400 ExecStartPre=/bin/sh -c test -n "$LOGGENERATIONS" -a "$LOGGENERATIONS" -eq "$LOGGENERATIONS" (code=exited, status=0/SUCCESS)
    Process: 30401 ExecStart=/bin/sh -c exec /usr/bin/atop ${LOGOPTS} -w "${LOGPATH}/atop_$(date +%Y%m%d)" ${LOGINTERVAL} (code=killed, signal=USR>
    Process: 30402 ExecStartPost=/usr/bin/find ${LOGPATH} -name atop_* -mtime +${LOGGENERATIONS} -exec rm -v {} ; (code=exited, status=1/FAILURE)
    Main PID: 30401 (code=killed, signal=USR2)
    CPU: 13ms
    
    Jun 06 15:37:54 AmigaBuntu systemd[1]: Starting atop.service - Atop advanced performance monitor...
    Jun 06 15:37:54 AmigaBuntu find[30402]: /usr/bin/find: ‘/var/log/atop’: No such file or directory
    Jun 06 15:37:54 AmigaBuntu systemd[1]: atop.service: Control process exited, code=exited, status=1/FAILURE
    Jun 06 15:37:54 AmigaBuntu systemd[1]: atop.service: Main process exited, code=killed, status=12/USR2
    Jun 06 15:37:54 AmigaBuntu systemd[1]: atop.service: Failed with result 'exit-code'.
    Jun 06 15:37:54 AmigaBuntu systemd[1]: Failed to start atop.service - Atop advanced performance monitor.

    Clamav:

    Code:
    $ systemctl status clamav-daemon.service
    × clamav-daemon.service - Clam AntiVirus userspace daemon
    Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
    └─extend.conf
    Active: failed (Result: exit-code) since Tue 2023-06-06 15:41:09 EDT; 1min 53s ago
    Duration: 16ms
    Docs: man:clamd(8)
    man:clamd.conf(5)
    [URL]https://docs.clamav.net/[/URL]
    Process: 38830 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
    Process: 38831 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
    Process: 38832 ExecStart=/usr/sbin/clamd --foreground=true (code=exited, status=1/FAILURE)
    Main PID: 38832 (code=exited, status=1/FAILURE)
    CPU: 27ms
    
    Jun 06 15:41:09 AmigaBuntu systemd[1]: Starting clamav-daemon.service - Clam AntiVirus userspace daemon...
    Jun 06 15:41:09 AmigaBuntu systemd[1]: Started clamav-daemon.service - Clam AntiVirus userspace daemon.
    Jun 06 15:41:09 AmigaBuntu clamd[38832]: ERROR: Can't initialize the internal logger
    Jun 06 15:41:09 AmigaBuntu clamd[38832]: ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
    Jun 06 15:41:09 AmigaBuntu systemd[1]: clamav-daemon.service: Main process exited, code=exited, status=1/FAILURE
    Jun 06 15:41:09 AmigaBuntu systemd[1]: clamav-daemon.service: Failed with result 'exit-code'.​



    Code:
    $ systemctl status clamav-freshclam.service
    × clamav-freshclam.service - ClamAV virus database updater
    Loaded: loaded (/lib/systemd/system/clamav-freshclam.service; enabled; preset: enabled)
    Active: failed (Result: exit-code) since Tue 2023-06-06 15:29:53 EDT; 14min ago
    Duration: 27ms
    Docs: man:freshclam(1)
    man:freshclam.conf(5)
    [URL]https://docs.clamav.net/[/URL]
    Main PID: 3801 (code=exited, status=2)
    CPU: 25ms
    
    Jun 06 15:29:53 AmigaBuntu systemd[1]: Started clamav-freshclam.service - ClamAV virus database updater.
    Jun 06 15:29:53 AmigaBuntu freshclam[3801]: ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
    Jun 06 15:29:53 AmigaBuntu freshclam[3801]: ERROR: initialize: libfreshclam init failed.
    Jun 06 15:29:53 AmigaBuntu freshclam[3801]: ERROR: Initialization error!
    Jun 06 15:29:53 AmigaBuntu freshclam[3801]: ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
    Jun 06 15:29:53 AmigaBuntu systemd[1]: clamav-freshclam.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
    Jun 06 15:29:53 AmigaBuntu systemd[1]: clamav-freshclam.service: Failed with result 'exit-code'.
    Jun 06 15:36:53 AmigaBuntu systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically upd>​
    
    Postfix:
    
    $ systemctl status [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL]
    × [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL] - Postfix Mail Transport Agent (instance -)
    Loaded: loaded (/lib/systemd/system/postfix@.service; enabled-runtime; preset: enabled)
    Active: failed (Result: exit-code) since Tue 2023-06-06 15:45:07 EDT; 12s ago
    Docs: man:postfix(1)
    Process: 49130 ExecStartPre=/usr/lib/postfix/configure-instance.sh - (code=exited, status=1/FAILURE)
    CPU: 26ms
    
    Jun 06 15:45:05 AmigaBuntu systemd[1]: Starting [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL] - Postfix Mail Transport Agent (instance -)...
    Jun 06 15:45:05 AmigaBuntu configure-instance.sh[49132]: postconf: fatal: open /etc/postfix/main.cf: No such file or directory
    Jun 06 15:45:06 AmigaBuntu configure-instance.sh[49134]: postconf: fatal: open /etc/postfix/main.cf: No such file or directory
    Jun 06 15:45:07 AmigaBuntu systemd[1]: [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL]: Control process exited, code=exited, status=1/FAILURE
    Jun 06 15:45:07 AmigaBuntu systemd[1]: [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL]: Failed with result 'exit-code'.
    Jun 06 15:45:07 AmigaBuntu systemd[1]: Failed to start [EMAIL="postfix@-.service"]postfix@-.service[/EMAIL] - Postfix Mail Transport Agent (instance -).

    Virtualbox:
    Code:
    $ systemctl status virtualbox.service
    virtualbox.service - LSB: VirtualBox Linux kernel module
    Loaded: loaded (/etc/init.d/virtualbox; generated)
    Active: failed (Result: exit-code) since Tue 2023-06-06 15:29:53 EDT; 16min ago
    Docs: man:systemd-sysv-generator(8)
    CPU: 109ms
    
    Jun 06 15:29:53 AmigaBuntu systemd[1]: Starting virtualbox.service - LSB: VirtualBox Linux kernel module...
    Jun 06 15:29:53 AmigaBuntu virtualbox[3822]: * Loading VirtualBox kernel modules...
    Jun 06 15:29:53 AmigaBuntu virtualbox[3822]: * modprobe vboxdrv failed. Please use 'dmesg' to find out why
    Jun 06 15:29:53 AmigaBuntu virtualbox[3822]: ...fail!
    Jun 06 15:29:53 AmigaBuntu systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILURE
    Jun 06 15:29:53 AmigaBuntu systemd[1]: virtualbox.service: Failed with result 'exit-code'.
    Jun 06 15:29:53 AmigaBuntu systemd[1]: Failed to start virtualbox.service - LSB: VirtualBox Linux kernel module.

    I have no idea how to fix this stuff, so thank you for taking a look whoever you may be!


    Last edited by Oderus; Jun 06, 2023, 02:29 PM.

    #2
    Some more output:

    Code:
    $ journalctl -b0 -p 3
    Jun 06 16:21:15 AmigaBuntu systemd-udevd[448]: event_source: Failed to get device name: No such file or directory
    Jun 06 16:21:17 AmigaBuntu bluetoothd[998]: src/plugin.c:plugin_init() Failed to init vcp plugin
    Jun 06 16:21:17 AmigaBuntu bluetoothd[998]: src/plugin.c:plugin_init() Failed to init mcp plugin
    Jun 06 16:21:17 AmigaBuntu bluetoothd[998]: src/plugin.c:plugin_init() Failed to init bap plugin
    Jun 06 16:21:17 AmigaBuntu systemd[1]: Failed to start atop.service - Atop advanced performance monitor.
    Jun 06 16:21:23 AmigaBuntu systemd[1]: Failed to start virtualbox.service - LSB: VirtualBox Linux kernel module.
    Jun 06 16:21:25 AmigaBuntu systemd[1]: Failed to start postfix@-.service - Postfix Mail Transport Agent (instance -).
    Jun 06 16:21:28 AmigaBuntu sddm-helper[4055]: gkr-pam: unable to locate daemon control file
    Jun 06 16:21:30 AmigaBuntu systemd[4057]: /run/user/1000/systemd/generator.late/app-startup.sh@autostart.service:18: WorkingDirectory= path is not absolute, ignoring:
    
    ​

    Comment


      #3
      IMO, Clamav you don't need unless you're hosting an email server that will have windows users. It probably failed because postfix failed.

      atop is also not a mandatory thing, This gives a clue: Jun 06 15:37:54 AmigaBuntu find[30402]: /usr/bin/find: ‘/var/log/atop’: No such file or directory

      Virtualbox requires a DKMS kernel module to be built. The error here seems clear. Check the output of "dkms status" and make sure the module is built for the kernel you're using.

      apport-autoreport.service is also not needed and has been reported to have a a security flaw.

      Please Read Me

      Comment


        #4
        Originally posted by oshunluvr View Post
        IMO, Clamav you don't need unless you're hosting an email server that will have windows users. It probably failed because postfix failed.

        atop is also not a mandatory thing, This gives a clue: Jun 06 15:37:54 AmigaBuntu find[30402]: /usr/bin/find: ‘/var/log/atop’: No such file or directory

        Virtualbox requires a DKMS kernel module to be built. The error here seems clear. Check the output of "dkms status" and make sure the module is built for the kernel you're using.

        apport-autoreport.service is also not needed and has been reported to have a a security flaw.
        Well, I did manage to fix the majority of errors, for example atop needed me to make a directory, and same with clamav. the only one i am currently having trouble with is the virtualbox one. I do have all the appropriate things installed, the issue seems to be that secure boot requires me to sign the vboxdrv kernal module and i am not sure how to go about doing that.

        Thanks for the reply.

        My current issues according to journalctl

        Code:
        $ journalctl -b0 -p 3
        Jun 06 21:53:42 AmigaBuntu systemd-udevd[506]: event_source: Failed to get device name: No such file or directory
        Jun 06 21:53:44 AmigaBuntu bluetoothd[1000]: src/plugin.c:plugin_init() Failed to init vcp plugin
        Jun 06 21:53:44 AmigaBuntu bluetoothd[1000]: src/plugin.c:plugin_init() Failed to init mcp plugin
        Jun 06 21:53:44 AmigaBuntu bluetoothd[1000]: src/plugin.c:plugin_init() Failed to init bap plugin
        Jun 06 21:53:52 AmigaBuntu systemd[1]: Failed to start virtualbox.service - LSB: VirtualBox Linux kernel module.
        Jun 06 21:53:56 AmigaBuntu sddm-helper[4266]: gkr-pam: unable to locate daemon control file
        Jun 06 21:53:58 AmigaBuntu systemd[4268]: /run/user/1000/systemd/generator.late/app-startup.sh@autostart.service:18: WorkingDirectory= path is not absolute, ignoring:
        Jun 06 21:58:52 AmigaBuntu postfix/local[19992]: error: open database /etc/aliases.db: No such file or directory
        Jun 06 22:00:02 AmigaBuntu systemd[1]: Failed to start virtualbox.service - LSB: VirtualBox Linux kernel module.
        Jun 07 08:59:56 AmigaBuntu postfix/local[31356]: error: open database /etc/aliases.db: No such file or directory

        As requested here is my dkms status

        Code:
        dkms status
        virtualbox/7.0.6, 6.2.0-20-generic, x86_64: installed
        ​Thank you for taking the time to examine and reply.
        Last edited by Oderus; Jun 07, 2023, 07:15 AM.

        Comment


          #5
          Are you dual booting with windows? Try disabling secure boot.

          Please Read Me

          Comment


            #6
            Or https://askubuntu.com/questions/9149...ng-secure-boot

            Please Read Me

            Comment


              #7
              Perfect, That did it.Thank you. I'll post again if i need assistance with these other errors.

              Comment

              Working...
              X