• 1 Post
  • 7 Comments
Joined 1 year ago
cake
Cake day: June 27th, 2023

help-circle


  • 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 :(


  • 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