0 items in history database , force: true

Hi folks, noob with some pretty basic Linux skills. Firstly, thanks for Atuin, I LOVE it, use on two other machines no probs, syncs everything. Anyway, to this issue, installed atuin on new host, logged in fine but history doesn’t show or save. up arrow loads Atuin but shows history count = 0. installed with brew.

I’m guessing it has something to do with the first lines in my doctor output, especially as it say preexec = none, but I’m not real sure how to proceed from here. Like I said, noob :slight_smile: any help greatly appreciated!

Doctor…
Atuin Doctor
Checking for diagnostics

[Shell] If you are using Bash, Atuin requires that either bash-preexec or ble.sh be installed. An older ble.sh may not be detected. so ignore this if you have it set up!

Please include the output below with any bug reports or issues

{
“atuin”: {
“version”: “18.3.0”,
“sync”: {
“cloud”: true,
“records”: true,
“auto_sync”: true,
“last_sync”: “2024-12-02 1:12:44.34387919 +00:00:00”
},
“sqlite_version”: “3.44.0”
},
“shell”: {
“name”: “bash”,
“default”: “bash”,
“plugins”: [
“atuin”
],
“preexec”: “none”
},
“system”: {
“os”: “Linux Mint”,
“arch”: “x86_64”,
“version”: “22”,
“disks”: [
{
“name”: “/dev/nvme0n1p2”,
“filesystem”: “ext4”
},
{
“name”: “/dev/nvme0n1p1”,
“filesystem”: “vfat”
},
{
“name”: “/home/kim/.Private”,
“filesystem”: “ecryptfs”
}
]
}
}

update: just installed bash-preexec with brew, restarted terminal, tried sync & history again. no change

Ok, well, got it working. Unfortunately it’s one of those ‘don’t know how I fixed it fixes’, lol. thought the problem was using brew to install it, so I removed atuin with brew and installed it with apt, then stuffed something up and had to reinstall brew, then reinstalled atuin. anyway, um, no need for further help. cluessless tinkering to the rescue.
thanks!

Glad you got it sorted!

This part of the doctor output highlighted the problem

[Shell] If you are using Bash, Atuin requires that either bash-preexec or ble.sh be installed. An older ble.sh may not be detected. so ignore this if you have it set up!

This usually happens when the shell plugin is not setup. For bash, we require

  1. bash-preexec or blesh
  2. The atuin shell plugin

to be setup in your shell config. For all other shells, we only need the Atuin plugin. If you use the Atuin install script, this is handled for you.

More here: Installation | Atuin Docs

1 Like