Skip to content

missing field "providers" ( Cannot read /dev/disk/by-label) #3401

@teto

Description

@teto

What system are you running Yazi on?

Linux Wayland

What terminal are you running Yazi in?

kitty

yazi --debug output

Yazi
    Version: 25.9.15 (c6e03e9 2025-12-03)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.91.1 (ed61e7d7 2025-11-07)

Ya
    Version: 25.9.15 (c6e03e9 2025-12-03)

Config
    Yazi             : /home/teto/.config/yazi/yazi.toml (6933 chars)
    Keymap           : /home/teto/.config/yazi/keymap.toml (2164 chars)
    Theme            : /home/teto/.config/yazi/theme.toml (No such file or directory (os error 2))
    VFS              : /home/teto/.config/yazi/vfs.toml (No such file or directory (os error 2))
    Package          : /home/teto/.config/yazi/package.toml (219 chars)
    Dark/light flavor: "" / ""

Emulator
    TERM                : Some("xterm-kitty")
    TERM_PROGRAM        : None
    TERM_PROGRAM_VERSION: None
    Brand.from_env      : Some(Kitty)
    Emulator.detect     : Emulator { kind: Left(Kitty), version: "kitty(0.44.0)", light: false, csi_16t: (10, 22), force_16t: false }

Adapter
    Adapter.matches    : Kgp
    Dimension.available: Dimension { rows: 51, columns: 192, width: 1920, height: 1122 }

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-1")
    DISPLAY                    : None
    SWAYSOCK                   : Some("/run/user/1000/sway-ipc.1000.2776.sock")
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : Some("/run/current-system/sw/bin/zsh")
    EDITOR             : Some("nvim")
    VISUAL             : None
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None
    YAZI_ZOXIDE_OPTS   : None
    FZF_DEFAULT_OPTS   : Some("--bind=\'ctrl-o:execute(code {})+abort\'")
    FZF_DEFAULT_COMMAND: Some("/nix/store/027m34av4nx0246ia2qdbfygzy9dbikw-fd-10.3.0/bin/fd --type f")

Text Opener
    default     : Some(OpenerRule { run: "xdg-open \"$1\"", block: true, orphan: false, desc: "xdg-open", for: None, spread: false })
    block-create: Some(OpenerRule { run: "xdg-open \"$1\"", block: true, orphan: false, desc: "xdg-open", for: None, spread: false })
    block-rename: Some(OpenerRule { run: "xdg-open \"$1\"", block: true, orphan: false, desc: "xdg-open", for: None, spread: false })

Multiplexers
    TMUX               : false
    tmux version       : 3.6
    tmux build flags   : enable-sixel=Supported
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.45
    ueberzugpp    : No such file or directory (os error 2)
    ffmpeg/ffprobe: 8.0 / 8.0
    pdftoppm      : 25.10.0
    magick        : 7.1.2-8
    fzf           : 0.67.0
    fd/fdfind     : 10.3.0 / No such file or directory (os error 2)
    rg            : 15.1.0
    chafa         : 1.18.0
    zoxide        : 0.9.8
    7zz/7z        : 25.01 / No such file or directory (os error 2)
    resvg         : 0.45.1
    jq            : 1.8.1

Clipboard
    wl-copy/paste: 2.2.1 / 2.2.1
    xclip        : No such file or directory (os error 2)
    xsel         : No such file or directory (os error 2)

Routine
    `file -bL --mime-type`: text/plain


See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.

Describe the bug

Thank you so much for native suppor ! It's one of the things I didnt have a good workflow before and yazi fixes it in the best way possible. Amazing work as usual.
While yazi sftp://... worked on several attempts, for one of my host I had a weird error

On startup

           │ Error: TOML parse error at line 1, │
           │              column 1              │
           │                   |                │
           │                1 |                 │
           │                  | ^               │
           │      missing field `providers`     

while trying to run:

➜ y sftp://REDACTED.com
Running with log level `yazi=DEBUG`, logs are written to "/home/teto/.local/state/yazi/yazi.log"
~ took 3s 
➜ less /home/teto/.local/state/yazi/yazi.log
  2025-12-04T09:06:50.564428Z DEBUG yazi_adapter::emulator: Terminal responded to DA1 in 3.274699ms: [27, 80, 62, 124, 107, 105, 116, 116, 121, 40, 48, 46, 52, 52, 46, 48, 41, 27, 92, 27, 91, 54, 59, 50, 50, 59, 49, 48, 116, 27, 93, 49, 49, 59, 114, 103, 98, 58, 48, 48, 48, 48, 47, 48, 48, 48, 48, 47, 48, 48, 48, 48, 27, 92, 27, 91, 63, 54, 50, 59, 53, 50, 59, 99]
    at yazi-adapter/src/emulator.rs:130

  2025-12-04T09:06:50.564737Z DEBUG yazi_adapter::emulator: Detected background color: 0000/0000/0000 (luma = 0.00)
    at yazi-adapter/src/emulator.rs:198

  2025-12-04T09:06:50.572341Z DEBUG yazi_adapter::emulator: Terminal responded to DA1 in 3.567018ms: [27, 80, 49, 36, 114, 49, 32, 113, 27, 92, 27, 91, 63, 49, 50, 59, 48, 36, 121, 27, 91, 63, 48, 117, 27, 91, 63, 54, 50, 59, 53, 50, 59, 99]
    at yazi-adapter/src/emulator.rs:130

  2025-12-04T09:06:50.573151Z ERROR yazi_fs::mounts::linux: Cannot read /dev/disk/by-label
    at yazi-fs/src/mounts/linux.rs:147

  2025-12-04T09:06:50.573333Z ERROR yazi_fs::mounts::linux: Cannot read /dev/disk/by-label
    at yazi-fs/src/mounts/linux.rs:147

At first I was not sure if ths was an error in my config but grepping for "providers", I could see references in yazi-config/src/vfs/vfs.rs.

and indeed on the remote server I see no /dev/disk/by-label:

$ ls /dev/disk/by-<TAB>
by-designator/  by-id/          by-partuuid/    by-uuid/        
by-diskseq/     by-partlabel/   by-path/   

I guess I could try attaching a label to workaround that

Minimal reproducer

see before

Anything else?

No response

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions