this post was submitted on 16 Jul 2023
6 points (100.0% liked)

Lemmy Support

4659 readers
49 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I'm trying to get Lemmy up and running on Azure Container Apps, and I've almost got it working.

Right now, I can get a request from a remote client (via Cloudflare) all the way through nginx and into the lemmy UI, but I'm getting this in the lemmy UI logs:

API error: FetchError: invalid json response body at http://lemmy--13fdtu8.internal.jollysky-9d68b8d3.uksouth.azurecontainerapps.io/api/v3/site? reason: Unexpected end of JSON input

That URL is the container apps FQDN for the lemmy backend container. I have no idea what's causing this error, as there is nothing in the lemmy backend container logs. I have RUST_LOG set to 'verbose'. I have a sinking feeling it's the container Envoy proxy blocking it and it's not getting to the backend.

This manifests itself as a 500 error in the browser.

Does anyone know how I can debug this?

The thing about container apps is all traffic between the containers is HTTPS, so I've had to make a few adjustments for that. It all works fine in normal kubernetes.

The other thing to mention, is I can't pass this proxy header through, as it causes a 403 error, I think because of a hostname mismatch in the SSL handshake. Does anyone know if that will break anything?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here