picoblaanket

joined 3 years ago
[–] picoblaanket@lemmy.ml 1 points 3 years ago* (last edited 2 years ago)

Dessa the rev,

I did a FRESH lemmy-ansible install on a new VPS.

  • I only modified the host file (did not edit config).

Homepage shows the same UI and error message:

  • "Found. Redirecting to /404?err=FetchError: invalid json response body at http:/lemmy:8536/api/v3/post/list?page=1&limit=20&sort=Active&type_=Local&saved_only=false reason: Unexpected token N in JSON at position 0"

Clicking “Login” or “Sign Up” gives the same error:

  • client.js: Uncaught TypeError: Cannot read properties of undefined (reading 'site')

And the same docker error:

  • lemmy_server:::root_span_builder:NotFound

I haven’t modified anything - it is still a fresh ansible-install.


Here are the configs/logs for this NEW lemmy instance (pretty-fied).

I haven’t changed anything (database / ports / config) beyond what ansible did.


If you have a chance to consider this, I am very grateful.

I've read all the docs and I don't know what else to try.


NOTE: The GOOD news is - I’m making a “Lemmy Install for Noobs” guide as I go (detailing every small step)....

When I finally get Lemmy running, I’ll share the guide for community review/benefit.

[–] picoblaanket@lemmy.ml 0 points 3 years ago* (last edited 3 years ago) (2 children)

It was an ansible install, but you are right, I modified the config a ton (tryin to make it work).

I’ll wipe the VM, reinstall with an unedited config, and go from there. Thank you

[–] picoblaanket@lemmy.ml 0 points 3 years ago* (last edited 3 years ago) (4 children)

Thank you for the reply. I updated the 3 docs to paste bin.

You’re right because if I curl localhost (while SSHed into the server), it shows the NGINX setup page.

“If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.”

Could be an issue with the NGINX config (I’m not sure which port mappings to change)

For example, this section:

# frontend
location / {
# The default ports:
# lemmy_ui_port: 1235
# lemmy_port: 8536

set $proxpass "http://0.0.0.0:29201";
if ($http_accept ~ "^application/.*$") {
set $proxpass "http://0.0.0.0:17161";
}

if ($request_method = POST) {
set $proxpass "http://0.0.0.0:17161";
}

Am I meant to change those ports?

And is # lemmy_ui_port: 1235 and # lemmy_port: 8536 just listed for reference (or am I meant to add those elements)?

Thank you again.


Here are the new pastebin links:

Docker logs (2 errors)

  • TL-DR (the 2 errors):
  • lemmy_server:::root_span_builder:NotFound
  • lemmy_server:::root_span_builder:captcha_incorrect

Lemmy config

Nginx config (/etc/nginx/sites-enabled/ggg.com.conf)

I would still create an issue if you like.

view more: ‹ prev next ›