I’ve run into an issue setting up my own repository using the fdroidserver
utility (version 0.7.0). It all works without errors while generating the index files and rsyncing to the server.
But upon adding the newly created repository to the F-Droid client application, it gives the very informative error message ‘Error getting index file’. Looking at the logcat, I’ve found:
04-15 11:28:28.620 23782 2451 E UpdateService: Error updating repository xxxxxxxxxxxxxx
04-15 11:28:28.620 23782 2451 E UpdateService: org.fdroid.fdroid.RepoUpdater$UpdateException: Error getting index file
04-15 11:28:28.620 23782 2451 E UpdateService: at org.fdroid.fdroid.IndexV1Updater.update(IndexV1Updater.java:147)
04-15 11:28:28.620 23782 2451 E UpdateService: at org.fdroid.fdroid.UpdateService.onHandleIntent(UpdateService.java:427)
04-15 11:28:28.620 23782 2451 E UpdateService: at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
04-15 11:28:28.620 23782 2451 E UpdateService: at android.os.Handler.dispatchMessage(Handler.java:102)
04-15 11:28:28.620 23782 2451 E UpdateService: at android.os.Looper.loop(Looper.java:154)
04-15 11:28:28.620 23782 2451 E UpdateService: at android.os.HandlerThread.run(HandlerThread.java:61)
04-15 11:28:28.620 23782 2451 E UpdateService: Caused by: java.util.zip.ZipException: error in opening zip file
04-15 11:28:28.620 23782 2451 E UpdateService: at java.util.zip.ZipFile.open(Native Method)
04-15 11:28:28.620 23782 2451 E UpdateService: at java.util.zip.ZipFile.<init>(ZipFile.java:225)
04-15 11:28:28.620 23782 2451 E UpdateService: at java.util.zip.ZipFile.<init>(ZipFile.java:148)
04-15 11:28:28.620 23782 2451 E UpdateService: at java.util.jar.JarFile.<init>(JarFile.java:161)
04-15 11:28:28.620 23782 2451 E UpdateService: at java.util.jar.JarFile.<init>(JarFile.java:140)
04-15 11:28:28.620 23782 2451 E UpdateService: at org.fdroid.fdroid.IndexV1Updater.processDownloadedIndex(IndexV1Updater.java:157)
04-15 11:28:28.620 23782 2451 E UpdateService: at org.fdroid.fdroid.IndexV1Updater.update(IndexV1Updater.java:102)
04-15 11:28:28.620 23782 2451 E UpdateService: ... 5 more
It seems not to be able to open the index.jar
zip file, while I’m able to open it normally on my PC and even on my Android phone using Ghost Commander.
Any ideas on how to solve this problem?
Btw. using the old (xml) index format works as expected.