UPDATE: HERE IS THE ANSWER

^^^^^^^


Hi,

Lemmy is awesome.

I’m having trouble launching my instance.

Here is a home page screenshot:

HERE’S THE FULL ERROR:

“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”

IF YOU CLICK ‘SIGN UP’, CONSOLE SAYS:

client.js:formatted:60298 Uncaught TypeError: Cannot read properties of undefined (reading 'site')
    at n.get (client.js:formatted:60298)
    at n.get (client.js:formatted:60293)
    at n.a.render (client.js:formatted:59987)
    at Ae (client.js:formatted:7378)
    at Pe (client.js:formatted:7410)
    at client.js:formatted:7420
    at Ve (client.js:formatted:7423)
    at client.js:formatted:7495
    at Ue (client.js:formatted:7497)
    at qe (client.js:formatted:7819)

OFTEN REQUESTED LOGS / CONFIGS: (pastebin)

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)


PORTS

I have the following ports open on the server (maybe too many):

  • 22, 80, 443, 8536, 5432, 1235

And the following rules in IPTABLES (maybe too many)

  • A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 8536 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 5432 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 1235 -j ACCEPT

I’ve failed at several ‘fixes’.

If anyone knows what to do, I’d really appreciate the guidance.

If any more info is needed, I’ll gladly provide.

Thank you

  • nutomic@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    Go to https:://your-domain.com/api/v3/post/list and see what it says. Most likely a problem with the backend, but the google links dont work for me.

    • PicoBlaanket@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 years ago

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

      A curl to that URL says “Not Found”.

      Yeah it does seem to be a fail in the backend call.

      nginx -t gives OK, but I may not have the right port mapping in the Nginx config (/etc/nginx/sites-enabled/ggg.com.conf).


      In the lemmy docs, there was a detailed nginx setup, but it 404s now:Lemmy nginx config

      Could be beneficial to repost a functioning NGINX config file / Lemmy config file (with placeholder info).

      (Just an idea, I’m grateful for the docs and code as it is. It’s great.)