Flatpak version fails to upload files to storage
Problem:
- I can't upload my APK file with repomaker to my Git storage. This only effects the Flatpak version - the Docker version is uneffected. It seems that the background task executor faces an error and retries again (and fails again).
```
INFO:background_task.tasks:Running repomaker.tasks.update_repo
DEBUG:root:Processing ffupdater-release.apk
INFO:androguard.apk:Starting analysis on AndroidManifest.xml
INFO:androguard.apk:APK file was successfully validated!
DEBUG:androguard.core.api_specific_resources:Available API levels: 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28
WARNING:androguard.core.api_specific_resources:Requested API level 30 is larger than maximum we have, returning API level 28 instead.
DEBUG:androguard.core.api_specific_resources:Available API levels: 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28
DEBUG:root:Getting signature of ffupdater-release.apk
WARNING:root:Using Java's jarsigner, not recommended for verifying APKs! Use apksigner
DEBUG:root:JAR signature verified: repo/ffupdater-release.apk
INFO:root:Creating signed index with this key (SHA256):
INFO:root:16 B0 C1 96 28 E7 C9 F7 8C E1 97 85 90 9A 1D F6 AD B7 C5 A9 34 8E 0E E2 5D 71 50 10 67 35 C9 B5
DEBUG:root:Directory: repo
DEBUG:root:> jar cf index.jar index.xml
ERROR:background_task.tasks:Rescheduling repomaker.tasks.update_repo
Traceback (most recent call last):
File "/app/lib/python3.7/site-packages/fdroidserver/common.py", line 2278, in FDroidPopenBytes
stderr=stderr_param)
File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'jar': 'jar'
```
How to reproduce:
- Install the Flatpak version of repomaker (explained in https://gitlab.com/fdroid/repomaker/#flatpak)
- Create repository in repomaker
- Add storage
- Add APK file
- Watch the error/debug messages in the terminal
Effects versions:
- Freshly installed Ubuntu 20.04.2 LTS in Virtual Box
- Manjaro Linux
- KDE Plasma Version: 5.22.5
- KDE Frameworks Version: 5.86.0
- Qt Version: 5.15.2
- Kernel Version: 5.14.7-2-MANJARO (64-bit)
- Graphics Platform: X11
Solution:
- Use the docker verison of repomaker https://gitlab.com/fdroid/repomaker/-/tree/master/docker#docker-compose-deployment
I know that little work is currently being done on the project. This bug report is intended for the next users so that they do not spend hours looking for the solution.
issue