Search always empty

I’m using atuin locally since a long time and I’m updating regurarely with mice. Since 1-2 weeks the interactive search shows no results:

There seems to be no history. But all non-interactive commands work: atuin history last, atuin stats, atuin search.

I’ve tried with a new config, a new history db, but nothing helps. Any ideas?

Atuin Doctor
Checking for diagnostics


Please include the output below with any bug reports or issues

{
  "atuin": {
    "version": "18.15.2",
    "commit": "1b4eb4901d256637c75849f0e4f82e476934b922",
    "sync": null,
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "bash",
    "default": "bash",
    "plugins": [
      "atuin",
      "bash-preexec"
    ],
    "preexec": "bash-preexec"
  },
  "system": {
    "os": "Fedora Linux",
    "arch": "x86_64",
    "version": "43",
    "disks": [
      {
        "name": "/dev/nvme0n1p4",
        "filesystem": "btrfs"
      },
      {
        "name": "/dev/nvme0n1p4",
        "filesystem": "btrfs"
      },
      {
        "name": "/dev/nvme0n1p3",
        "filesystem": "ext4"
      },
      {
        "name": "/dev/nvme0n1p1",
        "filesystem": "vfat"
      }
    ]
  }
}

Things you could try:

  • minimal .bashrc:
    # at the top (or remove):
    eval "$(atuin init hex)"
    
    # at the bottom:
    eval "$(atuin init bash --disable-ai)"
    
  • ble.sh instead of bash-preexec (or maybe a newer version)
  • another shell like zsh or fish just to check if the problem is shell config related

Thanks for your inputs!

The only thing which helped, was a downgrade to atuin 18.13.6 :sad_but_relieved_face:

I’m seeing the exact same thing - atuin search works, but any of the search modes shows empty. Tested on fish (my regular shell), bash (raw / no actual .bashrc) and zsh (also raw).

Did you make any progress except for a downgrade?

No. Did try a lot of things before, but gave up for now.

Are you using the daemon? Check your config file

search_mode = "daemon_fuzzy" will mean that you are, and in order for search to function the daemon must be running. Docs for the daemon: daemon - Atuin Documentation

Either way, I would recommend using it. Searches (and everything else) will be much faster

Yes, I’m using `search_mode = "daemon_fuzzy"` with daemon autostart.

what is the result of atuin daemon status?

Oh

atuin daemon status
Daemon is not running

and atuin daemon start hangs.

But I’m currently back on atuin 18.13.6 and search_mode = “fuzzy”

I’m sure that the deamon was running in atuin 18.15.2.

it would only have autostarted if you have

[daemon]
enabled = true
autostart = true

in your config