From 754051287513ccb45ded9e9a22dd958dcf6e5e6d Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 23 Aug 2026 15:00:37 +0200 Subject: [PATCH] Pin the endurain importer to the phone's adb serial Two adb devices are normally attached (USB phone + a network target), so the importer correctly refused to guess which one to pull from. Pin ENDURAIN_ADB_SERIAL in the unit; verified with a real run that now reports "pulled 5 file(s) from the phone". Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01GbYEnfGnf1988cdFdGebot --- endurain/systemd/endurain-import.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/endurain/systemd/endurain-import.service b/endurain/systemd/endurain-import.service index 52e6497b..6111d3f5 100644 --- a/endurain/systemd/endurain-import.service +++ b/endurain/systemd/endurain-import.service @@ -13,6 +13,9 @@ Environment=ENDURAIN_URL=http://127.0.0.1:8085 Environment=ENDURAIN_INBOX=/home/kuhy/cloud/RunnerUp Environment=ENDURAIN_STATE=/home/kuhy/.local/state/endurain-import Environment=ENDURAIN_BULK_DIR=/var/opt/endurain/backend/data/activity_files/bulk_import +# Two adb devices are usually attached (USB phone + a network target), and the +# importer refuses to guess between them. Pin the phone explicitly. +Environment=ENDURAIN_ADB_SERIAL=23181JEGR08034 # The API key is read from a mode-600 file rather than embedded here: systemd # unit files are world-readable. ExecStart=/usr/bin/bash -c 'ENDURAIN_API_KEY="$(cat /home/kuhy/testsAndMisc/endurain/.api_key)" /home/kuhy/testsAndMisc/.venv/bin/python -m python_pkg.endurain_import'