Just a reminder to my future me and anybody using Perkeep behind Nginx.
If your Uploader stops with such warning:
2019/09/29 05:15:21 Warning: error uploading file map after finding
server dup of
[sha224-d50aa95f42fb2b35264e644e72e076dc6e81b5a44e11432f9ceb3c90]:
invalid http response 504 in upload response
2019/09/29 05:16:09
Warning: error uploading file map after finding server dup of
[sha224-87c3913de42d997f3cd9ad8366083f2ee3a8870df30b5b00fada895b]:
invalid http response 504 in upload response
2019/09/29 05:18:51
Warning: error uploading file map after finding server dup of
[sha224-67f38797dfb0f07c7969246fb5aad8791df39aa2877f74236fe90815]:
invalid http response 504 in upload response
2019/09/29 05:19:12
Error uploading /storage/0123-4567/DCIM/Camera/VID_20181018_165640.mp4:
invalid http response 504 in upload response
It's the Nginx which responds with 504 when it thinks that the Perkeep server does not respond (in time).
When I tested those urls with HEAD, it did respond, just not promptly enough for the default 60s nginx timeout.
So set a long "proxy_read_timeout" in your nginx config!
Sorry for the noise!
Tamás Gulácsi