Error Getting Index file

I am trying to setup a f-droid repository on a debian server. I have installed f-droid server, and used fdroid init to initialize the repository. But when trying to access this repository in f-droid client then it gives error with message “error getting index file.”

The repo folder has the file index.xml, apk file and categories.text file. The files other than apk are created by the fdroid update command. I am googling it since 2 days now but none of the solutions help.

I tried removing SSL, installed Android SDK without success. The URL for the repository is correct.

When checking server logs it says that fdroid client tries to access index.jar file. But there is no Jar file in repo folder or main fdroid folder, only index.xml . Any help would be greatly appreciated.

I am trying to setup a f-droid repository on a debian server. I have installed f-droid server, and used fdroid init to initialize the repository. But when trying to access this repository in f-droid client then it gives error with message “error getting index file.”

As you found out, the client does no longer use unsigned,
plaintext/xml index files, but signed jar files.

fdroid update

should generate all you need, if you have setup your signing keys
properly. Maybe your fdroidserver is out-of-date? Which version
do you use, is it pre-packaged in your distribution? Maybe using
fdroidserver’s git master helps?

Hello, I have the same problem, however I have the index.jar file.

I tried http and https yet, same error.

I don’t know where is the fdroidserver’s log to share with you this information.

Help.

Are you able to get the logcat messages from the Android device after seeing the error message? That may be equally as helpful as the fdroiserver’s log.

I got the same issue, opened another thread some time ago: Possible issue with Fdroid app

aLogCat unfortunately doesn’t generate anything about F-Droid for me:
Android Log: Jul 20, 2017 13:11:32 GMT+03:00
--------- beginning of main
W/System (12572): ClassLoader referenced unknown path: /data/app/org.jtb.alogcat-1/lib/arm64
W/InputEventReceiver(12572): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputEventReceiver(12572): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputEventReceiver(12572): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputEventReceiver(12572): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputEventReceiver(12572): Attempted to finish an input event but the input event receiver has already been disposed.
W/System (13270): ClassLoader referenced unknown path: /data/app/org.jtb.alogcat-1/lib/arm64

Hi tnx for your answer, using logcat a got this (filtred by grep “fdroid”)

    07-20 13:29:59.403   583   708 I ActivityManager: Start proc 14491:org.fdroid.fdroid/u0a134 for service org.fdroid.fdroid/.UpdateService
07-20 13:33:28.955   583  1036 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.fdroid.fdroid/.FDroid bnds=[189,873][360,1117] (has extras)} from uid 10056 on display 0
07-20 13:50:37.078   583  2690 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.fdroid.fdroid/.FDroid bnds=[189,627][360,871] (has extras)} from uid 10056 on display 0
07-20 13:50:42.101 14491 16514 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:51:14.566 14491 16534 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:51:18.253 14491 16537 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:53:08.606 14491 16585 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:58:21.532   583  3242 I ActivityManager: START u0 {cmp=org.fdroid.fdroid/.views.ManageReposActivity} from uid 10134 on display 0
07-20 13:58:22.025   583   643 I ActivityManager: Displayed org.fdroid.fdroid/.views.ManageReposActivity: +460ms
07-20 13:58:23.897   583   802 I ActivityManager: START u0 {cmp=org.fdroid.fdroid/.views.RepoDetailsActivity (has extras)} from uid 10134 on display 0
07-20 13:58:24.488   583   643 I ActivityManager: Displayed org.fdroid.fdroid/.views.RepoDetailsActivity: +573ms
07-20 13:58:46.632 14491 16804 E ManageReposActivity: Error while searching for repo at https://apkrepo.asyste.local/fdroid/repo/
07-20 13:58:47.463 14491 16807 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:58:47.644 14491 16807 E UpdateService: Error updating repository https://apkrepo.asyste.local/fdroid/repo
07-20 13:58:51.357 14491 16812 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:58:51.421 14491 16812 E UpdateService: Error updating repository https://apkrepo.asyste.local/fdroid/repo
07-20 13:58:53.515 14491 16817 E UpdateService: Error updating repository http://apkrepo.asyste.local/fdroid/repo
07-20 13:58:54.018 14491 16817 E UpdateService: Error updating repository https://apkrepo.asyste.local/fdroid/repo

My local repository URL is: apkrepo.asyste.local/fdroid/repo/

The server is running on Debian9, with nginx as web/proxy server.

I am replicating this example

Thanks again.