cross-posted from: https://lemmy.world/post/688351

cross-posted from: https://lemmy.world/post/684781

now i get this error when i attempt to access it. anyone know how to set it back?

404: FetchError: request to http://lemmy:8536/api/v3/site

and the command docker compose -p lemmy-easy-deploy logs -f yeilds a bunch of nonsense but this line stood out…

Error: LemmyError { message: Some("Cannot have both private instance and federation enabled."), inner: Cannot have both private instance and federation enabled., context: "SpanTrace" }

  • Netto Hikari@social.fossware.space
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 year ago

    Hey, there. This should solve your problem, I guess:

    docker compose down

    docker compose up -d postgres

    docker compose exec postgres psql -U lemmy

    UPDATE local_site SET private_instance = 'f' WHERE id = '1';

    \q

    docker compose up -d

    Let me know if that worked or not.

    Edit for shorter version: docker compose exec postgres psql -U lemmy -c "UPDATE local_site SET private_instance = 'f' WHERE id = '1';"

    Then restart lemmy.