9001/copyparty

NixOS module cannot create volume of directory containing spaces

Open

#1,423 建立於 2026年4月8日

在 GitHub 查看
 (2 留言) (0 反應) (1 負責人)Python (43,524 star) (1,773 fork)batch import
bughelp wanted

描述

Describe the bug

When using the NixOS module to configure copyparty including a space in a volume's path results in the SystemD service to fail.

To Reproduce

  1. Create a folder with a space in the name
  2. Add a volume using the created folder to the Copyparty using the NixOS module

Expected behavior

The service to start and the volume with a space to be bound.

Example

"/TV Shows" = {
  path = "/mnt/drive-a/TV Shows";
  access = {
    A = [ "cody" ];
  };
};

Causes:

activating the configuration...
setting up /etc...
reloading user units for cody...
restarting sysinit-reactivation.target
the following new units were started: NetworkManager-dispatcher.service
warning: the following units failed: copyparty.service
× copyparty.service - http file sharing hub
     Loaded: loaded (/etc/systemd/system/copyparty.service; enabled; preset: ignored)
     Active: failed (Result: exit-code) since Tue 2026-04-07 23:27:26 MST; 1s ago
   Duration: 1d 1h 16min 3.051s
 Invocation: 93e1c5027cd04ac5a423b9eb1bd4e182
    Process: 1977560 ExecStartPre=/nix/store/vbwvizyd4kd4px79aigbw4c7k828mkka-unit-script-copyparty-pre-start/bin/copyparty-pre-start (code=exited, status=226/NAMESPACE)
         IP: 0B in, 0B out
         IO: 0B read, 0B written
   Mem peak: 2.1M
        CPU: 17ms

Apr 07 23:27:26 haumea systemd[1]: Starting http file sharing hub...
Apr 07 23:27:26 haumea (re-start)[1977560]: copyparty.service: Failed to set up mount namespacing: /mnt/drive-a/TV: No such file or directory
Apr 07 23:27:26 haumea (re-start)[1977560]: copyparty.service: Failed at step NAMESPACE spawning /nix/store/vbwvizyd4kd4px79aigbw4c7k828mkka-unit-script-copyparty-pre-start/bin/copyparty-pre-start: No such file or directory
Apr 07 23:27:26 haumea systemd[1]: copyparty.service: Control process exited, code=exited, status=226/NAMESPACE
Apr 07 23:27:26 haumea systemd[1]: copyparty.service: Failed with result 'exit-code'.
Apr 07 23:27:26 haumea systemd[1]: Failed to start http file sharing hub.
Command 'systemd-run -E LOCALE_ARCHIVE -E NIXOS_INSTALL_BOOTLOADER --collect --no-ask-password --pipe --quiet --service-type=exec --unit=nixos-rebuild-switch-to-configuration /nix/store/c3jhvii21a71bmvrar85j6zy6v3p9732-nixos-system-haumea-26.05.20251130.2d293cb/bin/switch-to-configuration switch' returned non-zero exit status 4.

Server details (if you're NOT using docker/podman)

remove the ones that are not relevant:

  • server OS / version: NixOS 26.05
  • what copyparty did you grab: Distro
  • how you're running it: SystemD Service
  • run copyparty with --version and grab the last 3 lines (they start with copyparty, CPython, sqlite) and paste them below this line: copyparty v1.19.20 "usernames" (2025-11-02) CPython v3.13.9 on Linux64 [GCC 14.3.0] sqlite 3.50.4*1 | jinja 3.1.6 | pyftpd 2.0.1 | tftp (None)

貢獻者指南

NixOS module cannot create volume of directory containing spaces · 9001/copyparty#1423 | Good First Issue