Skip to content

hishtory init <secret> on truenas zsh hangs but seems to work? #319

@kode54

Description

@kode54

I am running the hishtory-server linuxservers container in TrueNAS's docker system, using a YAML definition that also includes the official Postgresql image and sets that up as the data storage, using a persistent external volume as the storage for the database.

It worked fine for setting up my primary Arch Linux desktop, and also setting up and initializing with the same secret on my Mac mini. Both appear to have synced to the server.

The problem happened when I attempted to sync the TrueNAS local zsh for my user to the Hishtory server. I have HISHTORY_SERVER=http://127.0.0.1:port set up there. When I attempt to run hishtory init <secret> on the shell, it hangs:

Your current hishtory profile has saved history entries, are you sure you want to run `init` and reset?
Note: This won't clear any imported history entries from your existing shell
[y/N]y
Setting secret hishtory key to <redacted>

However, if I check the log feed for the server, it isn't running any queries, and reports that it has just over 21k entries, primarily from my Arch install's fish history going back almost a year.

hishtory query on the server does pick up both local and remote shell items, however.

Also this may be a more recommended setup for general use, as this large history table is only using about 200MB of RAM on the server, not that this matters a whole lot, since the server has 128GB.

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