Skip to content

[Bug]: start-on-windows-boot fills disk with logs #21

@jamesianberry

Description

@jamesianberry

Describe the bug

Perhaps just on my system, but I had enabled Distrod on Windows startup as a new distribution with the following command:
sudo /opt/distrod/bin/distrod enable --start-on-windows-boot
My Windows system drive was being filled up with thousands of 8MB files in the following directory:
C:\Users\username\AppData\Local\Temp\DiagOutputDir\RdClientAutoTrace
The rapid creation of files stopped once I disabled Distrod on Windows startup with the following commands and then restarted Windows (afterwards, only a few files are created, at least one for each distro started):
sudo /opt/distrod/bin/distrod disable
sudo /opt/distrod/bin/distrod enable

Steps to reproduce

  1. In Windows Terminal, from the drop down select Distrod
  2. Enter the following command: sudo /opt/distrod/bin/distrod enable --start-on-windows-boot
  3. Enter your Distrod password
[Distrod] Distrod has been enabled. Now your shell will start under systemd.
[Distrod] Enabling atuomatic startup of Distrod. UAC dialog will appear because scheduling
a task requires the admin privilege. Please hit enter to proceed.
  1. Press Enter to start the UAC dialog entry
  2. Press Yes on the Task Scheduler UAC dialog
  3. Enter your Windows password
  4. Restart your Windows PC
  5. Check the following directory for log files with the type of ETL being created at a rapid rate
    C:\Users\username\AppData\Local\Temp\DiagOutputDir\RdClientAutoTrace

Expected behavior

Distrod starts on Windows startup without thousands of files being created in C:\Users\username\AppData\Local\Temp\DiagOutputDir\RdClientAutoTrace

Windows version

Microsoft Windows [Version 10.0.22000.348]

Linux kernel version

Linux RAZER 5.10.74.3-microsoft-standard-WSL2 #1 SMP Mon Oct 18 19:27:44 UTC 2021 x86_64 GNU/Linux

Distro

Debian

Logs

[Distrod][DEBUG] Executing a command in the distro.
[Distrod][DEBUG] Failed to ignore signal Sys(EINVAL)
[Distrod][DEBUG] Failed to ignore signal Sys(EINVAL)
[Distrod][DEBUG] Distro::exec_command.
[Distrod][DEBUG] Container::exec_command.
[Distrod][DEBUG] Triple fork done.
[Distrod][DEBUG] dropping privilege. kmsg logging in the child ends here.
[Distrod][DEBUG] The parent of the second of three forks exits.
[Distrod][DEBUG] Spawning the command or the waiter.
[Distrod][DEBUG] Spawning the waiter.
[Distrod][DEBUG] Failed to ignore signal Sys(EINVAL)
[Distrod][DEBUG] Failed to ignore signal Sys(EINVAL)
-- Journal begins at Fri 2021-11-19 18:58:10 AEDT, ends at Mon 2021-11-29 23:01:18 AEDT. --
-- No entries --

additional comment

It looks like the files still get created for every distro started from Windows Terminal but this is at a much lower rate.
I am seeing more than one 8MB file being created per second when Distrod starts on Windows startup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions