Skip to content

Commit 5b3e70d

Browse files
authored
Update README.md
1 parent 96a3111 commit 5b3e70d

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
# kopia-android
1+
# kopia-android
2+
3+
## Problem
4+
5+
When trying to execute kopia on termux running on android 14, I was failing to connect to the repositiory because kopia failed to you the DNS from android. So when doing
6+
7+
``` bash
8+
$ kopia repositiory connect s3 \
9+
--bucket=test \
10+
--endpoint=minio.mydomain.org:9001 \
11+
...
12+
ERROR can't connect to storage: error retrieving storage config from bucket "test": Get "https://minio.mydomain.org:9001/test/.storageconfig": dial tcp: lookup minio.mydomain.org on [::1]:53: read udp [::1]:60141->[::1]:53: read: connection refused
13+
```
14+
15+
## Solution
16+
17+
Build kopia from source and ensures the cgo DNS resolver is used
18+
19+
```bash
20+
$ wget https://dl.google.com/android/repository/android-ndk-r28c-linux.zip
21+
$ unzip android-ndk-r28c-linux.zip
22+
$ export ANDROID_NDK=~/src/android-ndk-r28c
23+
$ export CC="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
24+
$ export CXX="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang++"
25+
$ export GOOS=android GOARCH=arm64 CGO_ENABLED=1
26+
$ go install -tags netcgo -o kopia-android github.com/kopia/kopia@v0.21.1
27+
```
28+

0 commit comments

Comments
 (0)