4
20
youpie_temp

@reddthat.com

youpie_temp 29 points 3 years ago

capitalism is the fundamental problem

path: 0 990128, hotness: undefined, score: 29, children: 2
youpie_temp 22 points 3 years ago

trams!!!

path: 0 1332714, hotness: undefined, score: 22, children: 8
youpie_temp 11 points 3 years ago

cool, a new arg or something!

path: 0 1484764, hotness: undefined, score: 11, children: 3
youpie_temp 8 points 3 years ago

oh wow thanks, ill see if that fixes it! weird that it doesnt get killed by OOM killer on my server

path: 0 7167428 7167472, hotness: undefined, score: 8, children: 6
youpie_temp 8 points 3 years ago

the oceans are rising, and so are we!

path: 0 1016237, hotness: undefined, score: 8, children: 0
youpie_temp 3 points 3 years ago

It has zswap and a swapfile of about 8 gb, and it gets fully utilized

path: 0 7167428 7167472 7167684 7167757, hotness: undefined, score: 3, children: 4
youpie_temp 3 points 3 years ago

don't vote with your wallet. vote with your voice, organize and make change✊

path: 0 1229003 1272835, hotness: undefined, score: 3, children: 0
youpie_temp 1 point 3 years ago

I am actually already running that config in the internal nginx, but i've never changed anything about it. what do i need to specify when they say "# this needs to map to the lemmy (server) docker service hostname" do they want the name of the docker container, and do they want the internal or external port?

path: 0 888568 888716 898317 898947, hotness: undefined, score: 1, children: 11
youpie_temp 1 point 3 years ago

im using an nginx reverse proxy with the template provided by lemmy.(this one) Im using the docker install the website is lemmy.emphisia.nl

path: 0 888568 888716, hotness: undefined, score: 1, children: 14
youpie_temp 1 point 3 years ago

is this one for the internal Lemmy nginx or the reverse proxy? edit: the name makes that quite clear

path: 0 888568 888716 898317 898547, hotness: undefined, score: 1, children: 0
youpie_temp 1 point 3 years ago

I actually need the website to be hosted at 8085, as the nginx reverse proxy is listening at that adres, and it has already bound to port 80 and 443. When i open internal port 80 to 8085 and set the lemmy port to 8086 in the compose file. when i then visit the site i get a redirect loop. (im probably doing something horribly wrong). Also lemmy keeps panicking

path: 0 888568 888716 898317 898947 925807 926957 928509 929238 929934 930213 930568 933182, hotness: undefined, score: 1, children: 2
youpie_temp 1 point 3 years ago

hi, apologies for the incredibly late response, i was on vacation. So as per the setup guide of lemmy. i am using two nginx instances. one i a lemmy internal nginx, running in a container which uses the nginx-internal config file. This exposes lemmy on port 8085. i then want to use a reverse proxy so that i can access the website on lemmy.emphisia.nl for that i use a second nginx running on the host machine. this one is the reverse proxy for all services i have running on the machine. (nextcloud, onlyoffice, bitmanager and lemmy)

path: 0 888568 888716 898317 898947 925807 926957 928509 929238 929934 930213 930568 933182 933764 1507924, hotness: undefined, score: 1, children: 0
youpie_temp 1 point 3 years ago

yeah I've already done that, I did sudo chown -r 991:991 volumes/pictrs. what details do you need about my setup? edit: I do know another program is already using port 8080 on my host machine, or does that not matter when it's running inside docker?

path: 0 1626830 1629664, hotness: undefined, score: 1, children: 9
youpie_temp 1 point 3 years ago

PICTRS__SERVER__API_KEY

the config in docker compose looks like

  pictrs:
    image: asonix/pictrs:0.4.0
    # this needs to match the pictrs url in lemmy.hjson
    hostname: 127.0.0.1
    # we can set options to pictrs like this, here we set max. image size and forced format for conversion
    # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
    environment:
      - PICTRS_OPENTELEMETRY_URL=http://otel:4137
      - PICTRS__SERVER__API_KEY=****
      - RUST_LOG=debug
      - RUST_BACKTRACE=full
      - PICTRS__MEDIA__VIDEO_CODEC=vp9
      - PICTRS__MEDIA__GIF__MAX_WIDTH=256
      - PICTRS__MEDIA__GIF__MAX_HEIGHT=256
      - PICTRS__MEDIA__GIF__MAX_AREA=65536
      - PICTRS__MEDIA__GIF__MAX_FRAME_COUNT=400
    user: 991:991

and in the config it is

  pictrs: {
    url: "http://127.0.0.1:8080/"
    api_key: "****"
  }

the password on both is the same so i don't see what is going wrong :(

path: 0 1626830 1629664 1630180 1631887 1631888 1632141, hotness: undefined, score: 1, children: 5
youpie_temp 1 point 3 years ago

hmm after looking i dont even see an option to change the port (in pictrs). it seems stuck at 8080, but since its running on its own network, i doubt it would matter.

path: 0 1626830 1629664 1630180 1631887 1631888 1632141 1632235 1632922, hotness: undefined, score: 1, children: 1
youpie_temp 1 point 3 years ago

yeah i changed that because i was testing. but i now realize that was dumb. ive change both the hostname and the url to pictrs. OMG that just worked..... i feel so dumb rn. it is strange tho because that wasnt working before. Thanks for all the help :)

path: 0 1626830 1629664 1630180 1631887 1631888 1632141 1632987 1633183, hotness: undefined, score: 1, children: 0
youpie_temp 1 point 3 years ago

according to portainer, no other docker containers are using ports, so i don't know what ports to set them as. I assume they are communicating over an internal network and the nginx is the only open external port.

I am using two nginx servers because one nginx server is used by lemmy to give me one port to access. And the other one i use to set up my reverse proxy so that i can host more than one service on my server.

I dont know why i have different versions of the ui and backend. I am just using the latest version avalible on the docker website.

My docker compose file looks like this and the lemmy config file looks like this i got this config from here because i was looking for a way to correctly set-up my email because de documentation about the config file is really bad. But when using the default config file (found here).

path: 0 888568 888716 898317 898947 925807 926957, hotness: undefined, score: 1, children: 8
youpie_temp 1 point 3 years ago

thank you, the config now runs, unfortunately i am now getting a bad gateway when visiting the website. Also in the logs i see two errors that catch my eye thread 'main' panicked at 'Failed to load settings file, see documentation (https://join-lemmy.org/docs/en/administration/configuration.html): LemmyError { message: None, inner: Is a directory (os error 21), context: SpanTrace [] }', crates/utils/src/settings/mod.rs:20:20 and caddy_1 | {"level":"error","ts":1688725909.314515,"logger":"http.acme_client","msg":"challenge failed","identifier":"lemmy.emphisia.nl","challenge_type":"http-01","problem":{"type":"","title":"","detail":"","instance":"","subproblems":[]}}

Also according to portainer, no ports are open on the caddy server. I have never used caddy. Thank you btw for trying to help me :))

path: 0 888568 888716 898317 898947 925807 926957 928509 929238 929934 930213, hotness: undefined, score: 1, children: 4
youpie_temp 1 point 3 years ago

thank you very much for your config file, however on pasting it and running it, i get the error

ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.caddy: 'lemmy'
path: 0 888568 888716 898317 898947 925807 926957 928509 929238, hotness: undefined, score: 1, children: 6
youpie_temp 0 points 3 years ago

it does appear to be in its own network (according to portainer) the error log in the lemmy container is

2023-07-23T13:58:44.850844Z  WARN lemmy_server::root_span_builder: Request error: error sending request for url (http://127.0.0.1:8080/image): error trying to connect: tcp connect error: Connection refused (os error 111)

Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(127.0.0.1)), port: Some(8080), path: "/image", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) })

no errors appear when i look at the pictrs log. I don't know why it says password: None as i've set a password

path: 0 1626830 1629664 1630180 1631887, hotness: undefined, score: 0, children: 7

thanks for using Leebra!

go to feed...