Your question
I am running into an issue, but it is not one I can reproduce.
My WebDav server that I have been using for some time and was functioning well stopped working. Now, when I try to access my files I am still able to successfully authenticate, but after authentication the connection drops. Nginx returns me a 502 error and I see the following in nginx logs:
[error] 80704#80704: *1 upstream prematurely closed connection while reading response header from upstream...
Stalwart logs:
2026-08-08T05:29:00Z DEBUG HTTP connection started (http.connection-start) listenerId = "https", localPort = 443, remoteIp = 172.18.0.1, remotePort = 47724
2026-08-08T05:29:00Z DEBUG HTTP request URL (http.request-url) listenerId = "https", localPort = 443, remoteIp = 172.18.0.1, remotePort = 47724, url = "/dav/file/mail"
2026-08-08T05:29:00Z TRACE Expression evaluation result (eval.result) listenerId = "https", localPort = 443, remoteIp = 172.18.0.1, remotePort = 47724, id = "Http with id singleton", key = "allowedEndpoints", result = "Integer(200)"
2026-08-08T05:29:00Z DEBUG Cache hit (store.cache-hit) key = 2, collection = "accessToken"
2026-08-08T05:29:00Z TRACE HTTP request body (http.request-body) listenerId = "https", localPort = 443, remoteIp = 172.18.0.1, remotePort = 47724, details = [["host", "<domain>"], ["x-real-ip", "<ip>"], ["x-forwarded-for", "<ip>"], ["x-forwarded-proto", "https"], ["connection", "close"], ["content-length", "288"], ["user-agent", "cadaver/0.28 neon/0.37.1"], ["depth", "0"], ["content-type", "application/xml"], ["authorization", "Basic <redacted>"]], contents = "<?xml version="1.0" encoding="utf-8"?>\n<propfind xmlns="DAV:"><prop>\n<getcontentlength xmlns="DAV:"/>\n<getlastmodified xmlns="DAV:"/>\n<executable xmlns="http://apache.org/dav/props/"/>\n<resourcetype xmlns="DAV:"/>\n<checked-in xmlns="DAV:"/>\n<checked-out xmlns="DAV:"/>\n</prop></propfind>\n", size = 288
2026-08-08T05:29:00Z DEBUG Cache hit (store.cache-hit) key = "<domain>" collection = "domainName"
2026-08-08T05:29:00Z DEBUG Cache hit (store.cache-hit) key = 3, collection = "domainId"
2026-08-08T05:29:00Z DEBUG Cache hit (store.cache-hit) key = "mail", domain = 3, collection = "email"
2026-08-08T05:29:00Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
2026-08-08T05:29:00Z DEBUG Cache hit (store.cache-hit) key = 2, collection = "account"
2026-08-08T05:29:00Z TRACE Data store iteration operation (store.data-iterate) elapsed = 0ms
There doesn’t seem to be any failures listed in the logs.
The stalwart CardDav and CalDav servers are still functioning, so I think this has to be an issue specific to the WebDav instance. I don’t have any important files stored in this, so I don’t mind resetting the WebDav instance if needed. Is it possible to reset just the WebDav?
Stalwart version: 0.16.x (Docker), using RocksDB for database engine and blob storage.