API file details getting 500 error, breaks mobile downloads

I’ve been trying to fix a problem with two of my servers not allowing downloads on the mobile app.

I was finally able to track down in the logs that the mobile app accesses the /api2/repos/file/detail api endpoint while the desktop app only uses /api2/repos/file/ one. When I try to view a file’s properties on the web ui I get an error as well, so there seems to be something broken with that endpoint.

Both of these servers were upgraded from older versions, at least v6.

Is there a way to get more verbose error logging other than just a 500 error on the endpoint?

I posted a little more detail in this topic:

Thank you for any help!

Finally was able to track down the issue. It looks like way back when the server was upgraded from 6.3 there was one database update that got missed and it was causing a problem with the file details api calls.

This page is the page that fixed the problem I had:
https://manual.seafile.com/11.0/upgrade/ce-7.0/

1 Like