this post was submitted on 27 Jun 2023
1 points (66.7% liked)

Lemmy Support

4660 readers
28 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hiya,

I've mostly successfully installed lemmy from source, but I've got one problem. When going to my lemmy instance /setup to create an admin account, when pressing the button, I get a message saying unexpect doctype html invalid json. I don't know what I'm doing wrong, I followed the installing from source guide, replacing the ui checkout from git with 0.18.0 rather than 0.16.7 as mentioned in the guide. It seems to me that something is pointing to the ui, rather than the backend, but I cannot see where that might be. Anyone experienced this before? Any help?

Thanks!

-Michael.

you are viewing a single comment's thread
view the rest of the comments
[–] hawkwind@lemmy.management 1 points 1 year ago (2 children)

I think there has been some issues with the docs and maybe the config files in the repo for nginx / reverse proxy. It’s definitely a key part that some paths go to the UI and some to the backend. It sounds like your sending a request meant for the ui to the backend.

[–] MWTab@lemmy.ml 2 points 1 year ago (1 children)

Where can I find a (hopefully) working nginx config? I got mine from wherever the doc told me to, which considering it was recommending 0.16.7 for the ui might be out of date.

[–] MWTab@lemmy.ml 1 points 1 year ago

Looks like the latest from the ansible repo is basically the same as the one I have, minus replacing the {{variable name}} things. So perhaps I have the environment variables wrong somehow? Here are the relevant environment variables:

Environment=LEMMY_UI_LEMMY_INTERNAL_HOST=127.0.0.1:8536

Environment=LEMMY_UI_HOST=127.0.0.1:1234

-Michael.