Open deepanchal opened 4 days ago
Thanks for all the detail! Could you also try running with
ATUIN_LOG=debug atuin sync
and share the output?
❯ ATUIN_LOG=debug atuin sync
[2024-06-24T18:53:54Z DEBUG atuin_client::database] opening sqlite database at "/home/deep/.local/share/atuin/history.db"
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="PRAGMA journal_mode = WAL; …" db.statement="\n\nPRAGMA journal_mode = WAL;\nPRAGMA foreign_keys = ON;\nPRAGMA synchronous = NORMAL;\n" rows_affected=0 rows_returned=1 elapsed=473.691µs
[2024-06-24T18:53:54Z DEBUG atuin_client::database] running sqlite database setup
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="CREATE TABLE IF NOT …" db.statement="\n\nCREATE TABLE IF NOT EXISTS _sqlx_migrations (\n version BIGINT PRIMARY KEY,\n description TEXT NOT NULL,\n installed_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n success BOOLEAN NOT NULL,\n checksum BLOB NOT NULL,\n execution_time BIGINT NOT NULL\n);\n" rows_affected=0 rows_returned=0 elapsed=17.463µs
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="SELECT version FROM _sqlx_migrations …" db.statement="\n\nSELECT\n version\nFROM\n _sqlx_migrations\nWHERE\n success = false\nORDER BY\n version\nLIMIT\n 1\n" rows_affected=0 rows_returned=0 elapsed=43.673µs
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="SELECT version, checksum FROM …" db.statement="\n\nSELECT\n version,\n checksum\nFROM\n _sqlx_migrations\nORDER BY\n version\n" rows_affected=0 rows_returned=5 elapsed=28.604µs
[2024-06-24T18:53:54Z DEBUG atuin_client::record::sqlite_store] opening sqlite database at "/home/deep/.local/share/atuin/records.db"
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="PRAGMA journal_mode = WAL; …" db.statement="\n\nPRAGMA journal_mode = WAL;\nPRAGMA foreign_keys = ON;\n" rows_affected=0 rows_returned=1 elapsed=298.492µs
[2024-06-24T18:53:54Z DEBUG atuin_client::record::sqlite_store] running sqlite database setup
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="CREATE TABLE IF NOT …" db.statement="\n\nCREATE TABLE IF NOT EXISTS _sqlx_migrations (\n version BIGINT PRIMARY KEY,\n description TEXT NOT NULL,\n installed_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,\n success BOOLEAN NOT NULL,\n checksum BLOB NOT NULL,\n execution_time BIGINT NOT NULL\n);\n" rows_affected=0 rows_returned=0 elapsed=12.804µs
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="SELECT version FROM _sqlx_migrations …" db.statement="\n\nSELECT\n version\nFROM\n _sqlx_migrations\nWHERE\n success = false\nORDER BY\n version\nLIMIT\n 1\n" rows_affected=0 rows_returned=0 elapsed=39.013µs
[2024-06-24T18:53:54Z DEBUG sqlx::query] summary="SELECT version, checksum FROM …" db.statement="\n\nSELECT\n version,\n checksum\nFROM\n _sqlx_migrations\nORDER BY\n version\n" rows_affected=0 rows_returned=2 elapsed=26.63µs
[2024-06-24T18:53:54Z DEBUG atuin_client::sync] starting sync upload
[2024-06-24T18:53:54Z DEBUG reqwest::connect] starting new connection: http://beacon.local:8888/
[2024-06-24T18:53:54Z DEBUG hyper::client::connect::dns] resolving host="beacon.local"
Error: error sending request for url (http://beacon.local:8888/sync/status): error trying to connect: operation timed out
Caused by:
0: error trying to connect: operation timed out
1: operation timed out
Location:
/build/source/atuin-client/src/api_client.rs:225:20
Description
I'm encountering an issue with Atuin running on my Raspberry Pi using Docker. When accessing Atuin through the local IP address (e.g., 192.168.0.90), it works perfectly. However, it fails when trying to connect using the
.local
address.Steps to Reproduce:
Here's my
docker-compose.yml
:<YOUR_PI_HOSTNAME>.local
address (beacon.local
in this case).Environment Details
Atuin version: 18.2.0 Docker version: Docker version 26.1.4, build 5650f9b Docker compose version: Docker Compose version v2.27.1 Raspberry Pi model and OS: Raspberry Pi 4 Model B Rev 1.4 8GB RAM running Raspberry Pi OS Lite
Atuin doctor output: