XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. MajorP93
    3. Posts
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 92
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: backup mail report says INTERRUPTED but it's not ?

      @olivierlambert No.
      I reverted to Node 20 as previously mentioned.
      I was using Node 24 before but reverted to Node 20 as I hoped it would "fix" the issue.
      Using Node 20 it takes longer for these issues to arise but in the end they arise.

      3 of the users in this thread that encounter the issue said that they are using XOA.
      As XOA also uses Node 20, I think most people that reported this issue actually use Node 20.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      During the past month my backups failed (status interrupted) 1-2 times per week due to this memory leak.
      When increasing heap size (node old space size) it takes longer but the backup fails when RAM usage eventually hits 100%.
      I guess I’ll go with @Pilow ‘s workaround for now and create a cronjob for rebooting XO VM right before backups start.

      posted in Backup
      M
      MajorP93
    • RE: 🛰️ XO 6: dedicated thread for all your feedback!

      @marcoi Sounds like your issue is related to: https://github.com/vatesfr/xen-orchestra/issues/9500

      ronivay created this issue in vatesfr/xen-orchestra

      open v5 interface doesn't work if hostname set #9500

      posted in Xen Orchestra
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      Hi @Bastien-Nollet,

      oh okay, thanks for clarifying!

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      I wonder if this PR https://github.com/vatesfr/xen-orchestra/pull/9506 aims to solve the issue that was discussed in this thread.
      To me it looks like it's the case as the issue seems to be related to RAM used by backup jobs not being freed correctly and the PR seems to add some garbage collection to backup jobs.
      I hope that it will fix the issue and if needed I can test a branch.

      b-Nollet opened this pull request in vatesfr/xen-orchestra

      open Backup tasks gc #9506

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      After implementing the --max-old-space-size Node parameter as recommended by @pilow it took longer time for the VM to hit the issue.
      Still: backups went into interrupted status.
      Memory leak seems to be still there.
      With each subsequent backup run the memory usage rises and rises. After backup run the memory usage does not fully go back to "normal".

      6ad321a1-2e39-4bca-9285-062e502a17b2-grafik.png

      After adding the node parameter there was no heap size error on Node anymore since the heap size got increased. The system went into various OOM errors in kernel log (dmesg) despite not all RAM (8GB) being used.

      This is what htop looks like with 3 backup jobs running:
      68db77eb-26f2-4dbb-b1db-2273984eabb3-grafik.png

      posted in Backup
      M
      MajorP93
    • RE: ASUS NUC NUC14MNK-B LAN problems

      @olivierlambert as the driver provided by @andrew is based on upstream r8125 version 9.016.01 and seems to solve the issue of user @paha I was wondering: are there any plans to update the driver to latest upstream version in official XCP-ng package repository?

      posted in Hardware
      M
      MajorP93
    • RE: ASUS NUC NUC14MNK-B LAN problems

      @paha Hi

      Try to install "r8125-module" by running

      yum install r8125-module
      

      Reboot your XCP-ng node afterwards

      1ee11405-70a2-4db1-a223-ddf3753c83e1-grafik.png

      //EDIT: Hmm I just checked on one of my XCP-ng nodes, r8125-module seems to be installed by default (despite me not using Realtek NIC).
      So installing it as suggested before will most probably have no impact in your case.

      From own experience I can say that Realtek NICs have been causing issues on Linux systems for a long time. You could try to use a different NIC, maybe even via USB adapter.
      I purchased a NIC with robust driver support on Linux on Amazon for 15$ for a private machine.
      Intel based NIC would be your best bet I guess.

      If trying a different NIC is no option your issue could possibly be fixed by XCP-ng team updating r8125 driver to latest upstream version (which seems to be 9.016.01 as of now)

      //EDIT2: another thing you should check first is disabling all sorts of energy saving options for your NIC in BIOS. PCI/PCIe ASPM being the most important one. I remembered that ASPM had been causing issues on Realtek NIC on one of my systems in the past.
      The issue you described (NIC connecting and disconnecting repeatedly) could be caused by some sort of energy saving feature bug.

      posted in Hardware
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @olivierlambert Right now I am using Node JS version 20 as I saw that XOA uses that version aswell. I thought it might be best to use all dependencies at the versions that XOA uses.

      I was having the issue with backup job "interrupted" status on Node JS 24 aswell as documented in this thread.

      Actually since I downgraded to Node 20 total system RAM usage seems to have decreased by a fair bit which can be seen by comparing the 2 screenshots that I posted in this thread. On first screenshot I was using Node 24 und second screenshot Node 20.
      Despite that the issue re-occurred after a few days of XO running.

      I hope that --max-old-space-size Node parameter as suggested by @pilow solves my issue.
      I will report back.

      Best regards

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @Pilow said in backup mail report says INTERRUPTED but it's not ?:

      @MajorP93 you say to have 8GB Ram on XO, but it OOMkills at 5Gb Used RAM.

      did you do those additionnal steps in your XO Config ?

      You can increase the memory allocated to the XOA VM (from 2GB to 4GB or 8GB).
      Note that simply increasing the RAM for the VM is not enough.
      You must also edit the service file (/etc/systemd/system/xo-server.service) 
      to increase the memory allocated to the xo-server process itself.
      
      You should leave ~512MB for the debian OS itself. Meaning if your VM has 4096MB total RAM, you should use 3584 for the memory value below.
      
      - ExecStart=/usr/local/bin/xo-server
      + ExecStart=/usr/local/bin/node --max-old-space-size=3584 /usr/local/bin/xo-server
      The last step is to refresh and restart the service:
      
      $ systemctl daemon-reload
      $ systemctl restart xo-server
      

      Interesting!
      I did not know that it is recommended to set "--max-old-space-size=" as a startup parameter for Node JS with the result of (total system ram - 512MB).
      I added that, restarted XO and my backup job.

      I will test if that gives my backup jobs more stability.
      Thank you very much for taking the time and recommending the parameter.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      Xen Orchestra Backup RAM consumption still does not look o.k. in my case... Even after downgrading Node JS to 20 and all other dependencies to their respective versions as used in XOA.

      I am currently running XO commit "91c5d98489b5981917ca0aabc28ac37acd448396" / feat: release 6.1.1 so I expected RAM fixes as mentioned by @florent to be there.

      Despite all of that backup jobs got terminated again (Xen Orchestra Backup status "interrupted").

      Xen Orchestra log shows:

      <--- JS stacktrace --->
      
      FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
      ----- Native stack trace -----
      
       1: 0xb76db1 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/usr/local/bin/node]
       2: 0xee62f0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
       3: 0xee65d7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/usr/local/bin/node]
       4: 0x10f82d5  [/usr/local/bin/node]
       5: 0x1110158 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
       6: 0x10e6271 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
       7: 0x10e7405 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
       8: 0x10c3b26 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/usr/local/bin/node]
       9: 0x10b529c v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawArray(int, v8::internal::AllocationType) [/usr/local/bin/node]
      10: 0x10b5404 v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller(v8::internal::Handle<v8::internal::Map>, int, v8::internal::Handle<v8::internal::Oddball>, v8::internal::AllocationType) [/usr/local/bin/node]
      11: 0x10d1e45 v8::internal::Factory::NewJSArrayStorage(v8::internal::ElementsKind, int, v8::internal::ArrayStorageAllocationMode) [/usr/local/bin/node]
      12: 0x10d1f4e v8::internal::Factory::NewJSArray(v8::internal::ElementsKind, int, int, v8::internal::ArrayStorageAllocationMode, v8::internal::AllocationType) [/usr/local/bin/node]
      13: 0x12214a9 v8::internal::JsonParser<unsigned char>::BuildJsonArray(v8::internal::JsonParser<unsigned char>::JsonContinuation const&, v8::base::SmallVector<v8::internal::Handle<v8::internal::Object>, 16ul, std::allocator<v8::internal::Handle<v8::internal::Object> > > const&) [/usr/local/bin/node]
      14: 0x122c35e  [/usr/local/bin/node]
      15: 0x122e999 v8::internal::JsonParser<unsigned char>::ParseJson(v8::internal::Handle<v8::internal::Object>) [/usr/local/bin/node]
      16: 0xf78171 v8::internal::Builtin_JsonParse(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
      17: 0x1959df6  [/usr/local/bin/node]
      {"level":"error","message":"Forever detected script was killed by signal: SIGABRT"}
      {"level":"error","message":"Script restart attempt #1"}
      Warning: Ignoring extra certs from `/host-ca.pem`, load failed: error:80000002:system library::No such file or directory
      2026-02-10T15:49:15.008Z xo:main WARN could not detect current commit {
        error: Error: spawn git ENOENT
            at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
            at onErrorNT (node:internal/child_process:483:16)
            at processTicksAndRejections (node:internal/process/task_queues:82:21) {
          errno: -2,
          code: 'ENOENT',
          syscall: 'spawn git',
          path: 'git',
          spawnargs: [ 'rev-parse', '--short', 'HEAD' ],
          cmd: 'git rev-parse --short HEAD'
        }
      }
      2026-02-10T15:49:15.012Z xo:main INFO Starting xo-server v5.196.2 (https://github.com/vatesfr/xen-orchestra/commit/91c5d9848)
      2026-02-10T15:49:15.032Z xo:main INFO Configuration loaded.
      2026-02-10T15:49:15.036Z xo:main INFO Web server listening on http://[::]:80
      2026-02-10T15:49:15.043Z xo:main INFO Web server listening on https://[::]:443
      2026-02-10T15:49:15.455Z xo:mixins:hooks WARN start failure {
        error: Error: spawn xenstore-read ENOENT
            at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
            at onErrorNT (node:internal/child_process:483:16)
            at processTicksAndRejections (node:internal/process/task_queues:82:21) {
          errno: -2,
          code: 'ENOENT',
          syscall: 'spawn xenstore-read',
          path: 'xenstore-read',
          spawnargs: [ 'vm' ],
          cmd: 'xenstore-read vm'
        }
      }
      

      XO virtual machine RAM usage climbed again, even after updating to "feat: release 6.1.1" commit. VM has 8GB RAM, they do not fully get exhausted.
      Seems to be related to Node heap size.

      20779690-79e2-49f6-ade7-5a0e27a7e0bc-grafik.png

      You can see the exact moment when the backup jobs went into status "interrupted" (RAM usage dropped).

      I am trying to fix these backup issues and am really running out of ideas...
      My backup jobs had been running stable in the past.

      Something about RAM usage seem to have changed around the release of XO6 as previously mentioned in this thread.

      0 mpiton committed to vatesfr/xen-orchestra
      feat: release 6.1.1 (#9470)
      posted in Backup
      M
      MajorP93
    • RE: Openmetrics powered Grafana dashboards for Xen Orchestra

      @simonp Is it intended that "host memory usage" and "top VMs by memory usage" show percentage values?

      Wouldn't it make more sense if it would show GB / GiB values?

      Apart from that: thanks a lot for sharing those dashboards!

      posted in Advanced features
      M
      MajorP93
    • RE: Potential bug with Windows VM backup: "Body Timeout Error"

      @psafont @olivierlambert As you previously mentioned february and we reached it as of now - I was wondering: do you have any update on when you plan to push the fix to XCP-ng repositories?

      Thanks and best regards

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @olivierlambert Sure, I absolutely get that XO CE comes with absolutely no warranty and XOA is the supported, enterprise grade product.
      If the budget was there and if I was to decide on that I would be happy to use it.

      It might still be a good idea to update your documentation at https://docs.xen-orchestra.com/installation#packages-and-prerequisites to at least align it with the Node JS version that you actually use and test against internally.
      (The linked part of documentation advises to use Node 24 while you are shipping Node 20 in XOA.)

      During testing it looked like running XO on Node 20 behaves quite differently compared to running it on Node 24 when it comes to RAM management. It looks like this got also confirmed by other users in this thread.

      XO CE users actually using and testing the versions that you ship might be of value for finding bugs.
      I think the documentation should generally advise to use the packages that you target during development in order to make the experience as good as possible for everyone.

      Just my two cents.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      I deployed XOA and used it to create a list of all XO dependencies and their respective versions as this seems to be the baseline that Vates tests against.

      I then went ahead and re-deployed my XO CE VM using the exact same package versions that XOA uses.

      This resulted in me using Debian 12, kernel 6.1, Node 20, etc.

      I hope that this gives my backup jobs more stability.

      It would be convenient if we would be able to get this information (validated, stable dependencies) from documentation instead of having to deploy XOA.

      Best regards

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      7ec89d01-64e4-47c6-a800-e4de50a56e38-grafik.png

      This is the RAM usage of my XO CE instance (Debian 13, Node 24, XO commit fa110ed9c92acf03447f5ee3f309ef6861a4a0d4 / "feat: release 6.1.0")

      Metrics are exported via XO openmetrics plugin.

      At the spots in the graph where my XO CE instance used around 2GB of RAM it was freshly restarted.
      Between 31.01. and 03.02. you can see the RAM usage climbing and climbing until my backup jobs went into "interrupted" status on 03.02. due to Node JS heap issue as described in my error report in post https://xcp-ng.org/forum/post/102160.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @Pilow Which Node JS version does your XO CE instance use?

      Could you possibly also check what Node JS version your XOA uses?

      As discussed in this thread maybe there are some RAM management differences when comparing XO on different Node JS versions.

      I would also be a big fan of Vates recommending (in documentation) XO CE users to use the exact same Node JS version as XOA uses... I feel like that would streamline things. Otherwise it feels like us XO CE users are "beta testers".

      //EDIT: @pilow also maybe the totally different RAM usage seen in your screenshots might be related to the XO CE not doing any backup jobs? You mentioned that you use XO CE purely as a read-only fallback instance. During my personal tests it looked like the RAM hogging is related to backup jobs and RAM is not being freed after backups finished.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      Okay, to update on my findings:

      According to the log lines

      [40:0x2e27d000] 312864931 ms: Scavenge 2011.2 (2033.4) -> 2005.3 (2033.6) MB, pooled: 0 MB, 2.31 / 0.00 ms  (average mu = 0.257, current mu = 0.211) task;
      [40:0x2e27d000] 312867125 ms: Mark-Compact (reduce) **2023.6** (2044.9) -> **2000.5 (2015.5)** MB, pooled: 0 MB, 83.33 / 0.62 ms  (+ 1867.4 ms in 298 steps since start of marking, biggest step 19.4 ms, walltime since start of marking 2194 ms) (average mu = 0.333,
      FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
      

      The default heap size seems to be 2GB. I read some Node documentation regarding heap size and understood that configured heap size is honored on a per-process basis.
      XO backup seems to spawn multiple node processes (workers) which is why I figured the value I previously set as an attempt to fix my issue was too high (max-old-space-size=6144), 6GB can cause OOM quickly when multiple Node processes are being spawned.

      For now I added 512MB to the default heap which results in my heap totaling to 2.5GB.
      I hope that this will suffice for my backup jobs to not fail as my log clearly indicated the cause of the Node OOM was the heap ceiling being touched.

      If it was caused by Node 22+ RSS there would be other log entries.

      Also I was thinking a bit more about what @pilow said and I think I observed something similar.
      Due to the "interrupted" issue already occurring a few weeks back I checked "htop" once in a while on my XO VM and noticed that after backup jobs completed the RAM usage not really goes down to the value it was sitting before.
      After a fresh reboot of my XO VM RAM usage sits at around 1GB.
      During backups it showed around 6GB of 10GB total being used.
      After backups finished XO VM was sitting at around 5GB of RAM.
      So yeah maybe there is a memory leak somewhere after all.

      Anyhow I will keep monitoring this and see if the increased heap makes backup jobs more robust.

      Would still be interesting to hear something from XO team in this regard.

      Best regards
      MajorP

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @john.c Considering how widely Node JS is being used out there I highly doubt that memory management in itself is broken in Node 22 and 24.
      If that would be the case it would have been covered by IT bloggers and most users would switch to using something else.
      Classifying memory management as unstable for the whole LTS branches 22 and 24 is something a LLM would do.
      I think it is more likely a XO + Node issue.
      @pilow already said that they are using XOA which (AFAIK) is still using Node 20.
      Even on Node 20 there seems to be some memory leak ongoing according to them which is why it being a "XO + Node" issue rather than a Node 22/24 being borked in general becomes even more likely.

      //EDIT: even if using Node 20 would improve anything here, sticking with it might not be the best idea as Node 20 will become EOL in April 2026.

      posted in Backup
      M
      MajorP93
    • RE: backup mail report says INTERRUPTED but it's not ?

      @john.c Your AI generated reply is not really correct. The LLM you used is repeatedly talking about kernel OOM which did not happen here. Also "No crash logs = likely kernel OOM kill" is not correct. The Xen Orchestra / Node log indicates the Node level crash due to heap issue. I attached the log file to my first post in this thread.

      Other than that investigating Node 24 related memory changes might be a good idea as XO documentation recommends to use latest Node LTS version (which is 24 as of now).

      posted in Backup
      M
      MajorP93