-
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Operation timed out #2475
Comments
I would initiate a debug targeting your connectivity to your localhost. Could you share the result of a port and connection test with your DB? pg_isready -h localhost -p 5432 -U your_user sudo systemctl status atuin ps aux | grep atuin ss -tunlp | grep 8888 |
We actually make quite heavy usage of postgres, so this is unlikely to cut it. You'll also want to put
In your client config. |
I can not interact with the instance as I completely uninstalled it due to Debian kernel errors within WSL2. It may be so that was affecting the systemd managed atuin server in spurious ways. Here are the things I backed up yesteday: atuin-server.service[Unit]
# User=dynuser
Description=Atuin Server
# DynamicUser=1
[Service]
Type=simple
ExecStart=/usr/bin/atuin-server.sh
Environment="HOME=/home/daniel/"
Environment="RUST_BACKTRACE=1"
[Install]
WantedBy=multi-user.target server.toml## host to bind, can also be passed via CLI args
# host = "127.0.0.1"
## port to bind, can also be passed via CLI args
# port = 8888
## whether to allow anyone to register an account
# open_registration = false
## URI for postgres (using development creds here)
# db_uri="postgres://username:password@localhost/atuin"
## Maximum size for one history entry
# max_history_length = 8192
## Maximum size for one record entry
## 1024 * 1024 * 1024
# max_record_size = 1073741824
## Webhook to be called when user registers on the servers
# register_webhook_username = ""
## Default page size for requests
# page_size = 1100
host = "127.0.0.1"
port = 8888
open_registration = true
db_uri="<redacted>" where atuin-server.sh was simply:
To my surprise, when I ran today in a new Debian instance within WSL2, and with the server invoked from the command line as opposed to being invoked as a service, it seems to have worked as I would expect. The only drawback is that the database seems to have been cleared for any reason I do not know. Here is the output:
I backed zsh_history, but I am not sure if atuin allows me to upload this info into the database... |
What did you expect to happen?
I run a local atuin server within my Debian distro on a new and free tier database. I was expecting no error whatsoever when performing
atuin sync
. As the operation was timing out over and over again I developed a persistent script as follows:What happened?
The script output shows that eventually the database was synced after many retrials:
Atuin doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: