Open rrrnld opened 6 years ago
I could fix /var/lib/dokku/data/storage/playmaker/repo
being empty by first setting up persistent storage and then setting up the app anew (instead of redeploying it). Still GET /fdroid
returns 404. It's weird because from skimming the source files it appears that tornado listens to 0.0.0.0
; plus the bootstrap interface shows up correctly. Even from within the container curl localhost:5000/fdroid
returns the same response:
$ curl localhost:5000/fdroid
<html><title>404: Not Found</title><body>404: Not Found</body></html>
Any help would be very appreciated.
... well, it should have been /fdroid/
(note the trailing slash). Maybe the path in the web ui should be updated? Or is it redirected normally? Leaving this issue open for now.
AFAIK it's normal that /fdroid
returns 404, because there is no Directory Listings functionality in Tornado (like Nginx or Apache that let you list contents inside a folder). So you need to access directly the files inside the repo, like:
http://127.0.0.1:5000/fdroid/index.xml
http://127.0.0.1:5000/fdroid/categories.txt
Another cool workaround suggested here is to serve the fdroid repo directory directly from Nginx.
@heyarne the answer from @NoMore201 is correct. Since you're using Nginx, you can direct /fdroid to somewhere or serve a default page if you wish.
I set up playmaker locally to give it a try and everything worked fine; now I tried to set it up on a server where I deployed it via dokku, set up https via letsencrypt (the container runs without certificates though because it's proxied by nginx), created an app password etc.
I can login just fine, I can also search for and download apps; I persisted
/data/fdroid
to/var/lib/dokku/data/storage/playmaker
, created the folder but didn't change any permissions. When trying to access the/fdroid
url I get an error 404. When I check/var/lib/dokku/data/storage/playmaker
therepo
directory is empty. Here's an excerpt from the logs:As you can see, there's quite a couple of 404s, especially after adding Tinder. The last one is me manually requesting
/fdroid
. Any idea what went wrong?