XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Alpine Linux from HUB: xe-daemon: CollectOS error

    Scheduled Pinned Locked Moved Xen Orchestra
    9 Posts 2 Posters 974 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ForzaF Offline
      Forza
      last edited by

      Hi!

      Just installed Alpine Linux from XO HUB template.

      in /var/log/messages I see lots of lines like this:

      Oct  1 08:10:38 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      

      xe-guest-utilities is running. The version installed is:

      # apk info xe-guest-utilities
      xe-guest-utilities-7.12.0-r0 description:
      XenServer guest tools
      
      xe-guest-utilities-7.12.0-r0 webpage:
      https://github.com/xenserver/xe-guest-utilities
      
      xe-guest-utilities-7.12.0-r0 installed size:
      5472256
      

      This is the full boot log:

      May  7 09:53:32 localhost daemon.info init: starting pid 2396, tty '': '/sbin/openrc default'
      May  7 09:53:32 localhost daemon.info chronyd[2445]: chronyd version 3.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP -SCFILTER +SIGND +ASYNCDNS -SECHASH +IPV6 -DE
      BUG)
      May  7 09:53:32 localhost daemon.info chronyd[2445]: Frequency -82.005 +/- 0.157 ppm read from /var/lib/chrony/chrony.drift
      May  7 09:53:42 localhost daemon.warn chronyd[2445]: No suitable source for initstepslew
      May  7 09:53:44 localhost cron.info crond[2470]: crond (busybox 1.30.1) started, log level 8
      May  7 09:53:44 localhost auth.info sshd[2500]: Server listening on 0.0.0.0 port 22.
      May  7 09:53:44 localhost auth.info sshd[2500]: Server listening on :: port 22.
      May  7 09:53:44 localhost daemon.info init: starting pid 2539, tty '/dev/tty1': '/sbin/getty 38400 tty1'
      May  7 09:53:44 localhost daemon.info init: starting pid 2540, tty '/dev/tty2': '/sbin/getty 38400 tty2'
      May  7 09:53:44 localhost daemon.info init: starting pid 2544, tty '/dev/tty3': '/sbin/getty 38400 tty3'
      May  7 09:53:44 localhost daemon.info init: starting pid 2548, tty '/dev/tty4': '/sbin/getty 38400 tty4'
      May  7 09:53:44 localhost daemon.info init: starting pid 2552, tty '/dev/tty5': '/sbin/getty 38400 tty5'
      May  7 09:53:44 localhost daemon.info init: starting pid 2556, tty '/dev/tty6': '/sbin/getty 38400 tty6'
      May  7 09:53:44 localhost daemon.info init: starting pid 2560, tty '/dev/ttyS0': '/sbin/getty -L 0 ttyS0 vt100'
      May  7 09:53:44 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 09:54:09 localhost auth.info login[2581]: root login on 'tty1'
      May  7 09:54:19 localhost auth.err passwd: password for root changed by root
      May  7 09:54:44 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 09:55:44 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 09:56:08 localhost daemon.info chronyd[2445]: Source 193.30.120.245 replaced with 162.159.200.123
      May  7 09:56:44 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 09:57:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 09:58:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 09:59:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:00:00 localhost cron.info crond[2470]: USER root pid 2656 cmd run-parts /etc/periodic/15min
      May  7 10:00:00 localhost cron.info crond[2470]: USER root pid 2657 cmd run-parts /etc/periodic/hourly
      May  7 10:00:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:01:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:02:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:03:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:04:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:05:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:06:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      May  7 10:07:45 localhost user.notice xe-daemon: CollectOS error: &os.PathError{Op:"open", Path:"/var/cache/xe-linux-distribution", Err:0x2}
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Does it stay if you update Alpine?

        ForzaF 1 Reply Last reply Reply Quote 0
        • ForzaF Offline
          Forza @olivierlambert
          last edited by

          olivierlambert said in Alpine Linux from HUB: xe-daemon: CollectOS error:

          Does it stay if you update Alpine?

          Yes.

          The problem seems to be fixed if I manually create /var/cache/xe-linux-distribution

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Hmm maybe there's a bug in the tool repo in Alpine. Could you open a ticket in Alpine bug tracker?

            ForzaF 1 Reply Last reply Reply Quote 0
            • ForzaF Offline
              Forza @olivierlambert
              last edited by

              I don't really know where their tracker for packages is. Though also it might not even be an Alpine issue, but an upstream issue?

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                You have all details here: https://pkgs.alpinelinux.org/packages?name=xe-guest-utilities&branch=edge&repo=community

                I'm not sure it's upstream, it's more like a folder not created during package install.

                You should try with a clean Alpine VM, install the package and see if there's the same issue. If yes, than the maintainer name is displayed on the previous link I posted.

                ForzaF 1 Reply Last reply Reply Quote 0
                • ForzaF Offline
                  Forza @olivierlambert
                  last edited by Forza

                  Hi. The problem is solved in Alpine-3.13. All I had to do was edit /etc/apk/repositories to

                  # /etc/apk/repositories
                  http://alpine.42.fr/v3.13/main
                  http://alpine.42.fr/v3.13/community
                  

                  3cfd981d-a19c-4ed4-ab54-6b65348d4f83-image.png

                  olivierlambert Perhaps you can update the XO HUB Template to Alpine 3.13?

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Thanks for the feedback. We will.

                    1 Reply Last reply Reply Quote 1
                    • olivierlambertO Offline
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      fohdeesha let's work on another clean Alpine template.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post