proud-dentist-22844
04/02/2023, 5:26 PM~/git/pants $ pants --version
Error: Failed to exec process.
Caused by:
ENOENT: No such file or directory
Edit: I found the source of this error and filed https://github.com/pantsbuild/scie-pants/issues/148~/git/st2 $ pants --version
Downloading <https://github.com/indygreg/python-build-standalone/releases/download/20221106/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz|https://github.com/indygreg/python-build-standalone/releases/download/20221106/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz>...
[snip duplicate Downloading messages]
Downloading <https://github.com/indygreg/python-build-standalone/releases/download/20221106/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz|https://github.com/indygreg/python-build-standalone/releases/download/20221106/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz>...
Failed to source file cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz: Failed to fetch <https://github.com/indygreg/python-build-standalone/releases/download/20221106/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz|https://github.com/indygreg/python-build-standalone/releases/download/20221106/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz>: [6] Couldn't resolve host name (Could not resolve host: <http://github.com|github.com>)
Error: Isolates your Pants from the elements.
Please select from the following boot commands:
[snip boot commands]
You can select a boot command by passing it as the 1st argument or else by setting the SCIE_BOOT environment variable.
ERROR: Failed to establish atomic directory /data/data/com.termux/files/home/.cache/nce/8bd259181e05963da9f88937eb792e9f1b3dd0205c500ad1e0c86685e31bdb1d/locks/configure-521fac2917ca5b3aa1b53bfcfe140da3fd6afdea57eb50986d03bb0ab54826b3. Population of work directory failed: Failed to establish atomic directory /data/data/com.termux/files/home/.cache/nce/52a8c0a67fb919f80962d992da1bddb511cdf92faf382701ce7673e10a8ff98f/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz. Population of work directory failed: The tar.gz destination /data/data/com.termux/files/home/.cache/nce/52a8c0a67fb919f80962d992da1bddb511cdf92faf382701ce7673e10a8ff98f/cpython-3.9.15+20221106-aarch64-unknown-linux-gnu-install_only.tar.gz of size 0 had unexpected hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
fast-nail-55400
04/02/2023, 7:45 PMproud-dentist-22844
04/02/2023, 7:54 PMfast-nail-55400
04/02/2023, 8:05 PMadb logcat
strace
and see if any syscall errors show up.proud-dentist-22844
04/02/2023, 8:19 PMlogcat:
04-02 15:15:56.393 4722 4722 W bash : type=1400 audit(0.0:186223): avc: granted { execute } for name="pants" dev="dm-41" ino=1201376 scontext=u:r:untrusted_app_27:s0:c70,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c70,c256,c512,c768 tclass=file app=com.termux.api
04-02 15:15:56.397 4722 4722 W bash : type=1400 audit(0.0:186224): avc: granted { execute } for name="pants" dev="dm-41" ino=1201376 scontext=u:r:untrusted_app_27:s0:c70,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c70,c256,c512,c768 tclass=file app=com.termux.api
04-02 15:15:56.397 4722 4722 W bash : type=1400 audit(0.0:186225): avc: granted { execute_no_trans } for path="/data/data/com.termux/files/home/.local/bin/pants" dev="dm-41" ino=1201376 scontext=u:r:untrusted_app_27:s0:c70,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c70,c256,c512,c768 tclass=file app=com.termux.api
04-02 15:15:56.400 4722 4722 W pants : type=1400 audit(0.0:186226): avc: granted { execute } for path="/data/data/com.termux/files/home/.local/bin/pants" dev="dm-41" ino=1201376 scontext=u:r:untrusted_app_27:s0:c70,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c70,c256,c512,c768 tclass=file app=com.termux.api
04-02 15:15:56.410 4722 4722 W pants : type=1400 audit(0.0:186227): avc: granted { execute } for name="scie-pants.bin" dev="dm-41" ino=1399128 scontext=u:r:untrusted_app_27:s0:c70,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c70,c256,c512,c768 tclass=file app=com.termux.api
granted
and that's all logcat shows when running scie-pants. Hmmfast-nail-55400
04/02/2023, 8:30 PMcurl
or wget
?proud-dentist-22844
04/02/2023, 8:34 PMfast-nail-55400
04/02/2023, 8:41 PMscontext
?untrusted_app
like it did for pants as well for wget
or something else.proud-dentist-22844
04/02/2023, 8:41 PM04-02 15:31:22.413 10784 10784 W wget : type=1400 audit(0.0:188710): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/wget" dev="dm-41" ino=1032404 scontext=u:r:untrusted_app_27:s0:c70,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c70,c256,c512,c768 tclass=file app=com.termux.api
fast-nail-55400
04/02/2023, 8:42 PMuntrusted_app_27
proud-dentist-22844
04/02/2023, 8:43 PM14233 openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
So, it doesn't know how to look up dns settings. It was able to find the SSL files after looking all over the place.
Looking at the strace for wget, it looks under the prefix to find the file:
/data/data/com.termux/files/usr/etc/resolv.conf
19411 openat(AT_FDCWD, "/data/data/com.termux/files/usr/etc/resolv.conf", O_RDONLY) = 12
fast-nail-55400
04/02/2023, 9:56 PMproud-dentist-22844
04/02/2023, 10:09 PMfast-nail-55400
04/02/2023, 10:20 PMproud-dentist-22844
04/02/2023, 10:22 PMfast-nail-55400
04/02/2023, 10:22 PMproud-dentist-22844
04/02/2023, 10:29 PMfast-nail-55400
04/02/2023, 10:30 PMproud-dentist-22844
04/02/2023, 10:32 PMenough-analyst-54434
04/02/2023, 10:54 PMproud-dentist-22844
04/02/2023, 11:15 PMenough-analyst-54434
04/02/2023, 11:28 PMproud-dentist-22844
04/02/2023, 11:28 PMenough-analyst-54434
04/02/2023, 11:29 PMproud-dentist-22844
04/02/2023, 11:29 PMcurved-television-6568
04/03/2023, 1:14 PMproud-dentist-22844
04/03/2023, 3:02 PM