You all made great comments - honest and original. That is what I love.
picoblaanket
Thank you, the fix worked.
I should’ve posted that update sooner. I wrote it last week, but didn’t want to send til I tried everything.
It was a blessing in disguise though - got me to rummage the Lemmy files and ansible code MANY times!
Thank you sincerely for taking the time.
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.
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
Yes thank you, I did it just like that. I appreciate the reply.
Hey thanks for the recommendation.
Here are the new privatebin links:
- TL-DR (the 2 errors):
- lemmy_server:::root_span_builder:NotFound
- lemmy_server:::root_span_builder:captcha_incorrect
Nginx config (/nginx/sites-enabled/ggg.com.conf)
It seems to be having a problem connecting to the server. I appreciate your response.
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:
- TL-DR (the 2 errors):
- lemmy_server:::root_span_builder:NotFound
- lemmy_server:::root_span_builder:captcha_incorrect
Nginx config (/etc/nginx/sites-enabled/ggg.com.conf)
I would still create an issue if you like.
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.)
Thanks for the reply. Yeah I have ansible on local.
And running ‘git lemmy-ansible’ on local.
Cool, thank you again.
Thank you for the reply.
To ensure I understand:
-
Ansible installs lemmy on the VPS via docker-compose. The directory “/srv/lemmy/DOMAINNAME” lives on the VPS.
-
Within that directory is a folder called "Volumes".
-
To migrate - I make a fresh Lemmy install on a new VPS, modify config, and move the "Volumes" folder from VPS1 to VPS2.
Is that correct?
Could it help to move Pictrs to a 3rd-party host? (like AWS or similar)
Is anyone running Pictrs on a 3rd-party host? Does it help?