Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LA

Anything about running your own Lemmy instance. Including how to install it, maintain and customise it.

Be sure to check out the docs: https://join-lemmy.org/docs/en/administration/administration.html

If you have any problems, describe them here and we will try to help you fixing them.

Members
722
Posts
41
Active Today
1
Created
5 yr. ago
  • Lemmy Administration @lemmy.ml
    tko @tkohhh.social

    Lemmy v0.19.11 Released

  • Lemmy Administration @lemmy.ml
    bigDottee @geekroom.tech

    Activities behind for publishing to an old hostname for my instance before production ready

    Question for everyone…

    Recently I got GeekRoom.Tech fully operational and federating properly. However, before full success, I ran into a lot of issues and at one point had the domain as www.GeekRoom.Tech.

    As you can see (here)[https://grafana.lem.rocks/d/edf3gjrxxnocgd/federation-health-activities-behind?orgId=1&var-instance=All&var-remote_instance=geekroom.tech&var-remote_instance=www.geekroom.tech&var-remote_software=All] the www version of the instance still has a bunch of instances trying to publish to it.

    What is the best way to resolve that? I assume that those instances are actively trying to push activities but are constantly failing, potentially eating up bandwidth for them.

  • Lemmy Administration @lemmy.ml
    threelonmusketeers @sh.itjust.works

    Has anyone implemented automatic image compression?

    Disclaimer: I'm not an instance admin, just a user. I hope it's okay to post here.

    Problem

    I had several photos which wouldn't post for some reason. After poking around a bit, I found out that my home server has an upload size limit of 5 MB.

    Now, an upload size limit is perfectly reasonable. Storage is expensive, and Lemmy is primarily designed for link aggregation and discussion, not file hosting.

    However, the way Lemmy currently behaves when it encounters a large file is not ideal, and varies depending on the app/UI.

    At best, you get a cryptic error message like {"data":{"msg":"Exceeded maximum dimensions","files":null},"state":"success"} or {"data":{"files":null,"msg":"Too many pixels"},"state":"success"}, and at worst, your webpage/app stalls for an indefinite amount of time.

    Solution?

    Obviously, it would be prudent to improve the comprehensibility of the error messages, but if there were a way to automatically compress large images to below the size limit, that woul

  • Lemmy Administration @lemmy.ml
    pinkystew @reddthat.com

    how to federate with other instances?

    How do I federate with other instances?

    1. I started a new instance
    2. created an admin user and subscribed to a few communities
    3. one pinned post from another instance shows up in my feed, but no others
    4. searching for other communities on other instances does nothing

    any tips?

  • Lemmy Administration @lemmy.ml
    pinkystew @reddthat.com

    How do I change domain names?

    I just bought a new domain and would like to point it at my Lemmy instance.

    There's nothing in the admin panel that allows me to do that. The docs describe running a script against the database, is that the accepted way to change domains?

  • Lemmy Administration @lemmy.ml
    idefix @sh.itjust.works

    Postgresql connectivity issue

    Good afternoon! Newbie here, I've tried to install Lemmy using Ansible (Debian stable) and I ended up having an issue with the Postgresql connectivity (localhost via socket).

    The error message I have is:

     undefined
        
    thread 'main' panicked at 'Error connecting to postgresql:///lemmy?user=lemmy&host=/var/run/postgresql: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
    
      

    I have updated my /etc/postgresql/15/main/pghba.conf from peer to trust to md5 with no success (rebooting Postresql each time).

    My config.hjson is:

     undefined
        
    database: {
     uri: "postgresql:///lemmy?user=lemmy&host=/var/run/postgresql"
     password: "{{ postgres\_password }}"
    }
    
      

    Any idea / suggestion? Thanks!

    PS: cross-posted on the Matrix.org install support chat

  • Lemmy Administration @lemmy.ml
    Illecors @lemmy.cafe

    Duplicate entries in Lemmy database

    cross-posted from: https://lemmy.cafe/post/1403198

    Overview

    This is a quick write up of what I had spent a few weeks trying to work out.

    The adventure happened at the beginning of October, so don't blindly copy paste queries without making absolutely sure you're deleting the right stuff. Use select generously.

    When connected to the DB - run \timing. It prints the time taken to execute every query - a really nice thing to get a grasp when things take longer.

    I've had duplicates in instance, person, site, community, post and received_activity.

    The quick gist of this is the following:

    • Clean up
    • Reindex
    • Full vacuum

    I am now certain vacuuming is not, strictly speaking, necessary, but it makes me feel better to have all the steps I had taken written down.

    \d - list tables (look at it as describe database);

    \d tablename - describe table.

    `\o filename\ - save all output to a file on a filesystem

  • Lemmy Administration @lemmy.ml
    favrion @lemmy.ml

    What happened to lemmy.film?

    I can't access it in Jerboa anymore.

  • Lemmy Administration @lemmy.ml
    Adam @doomscroll.n8e.dev

    New server (new admin), couple of questions

    Why, when I search for a community my instance is not yet aware of, does it sometimes not bring back any posts in that community? This community is in example of that.

    Most new additions will redline the CPU but then come back with a populated page for the community. Sometimes that doesn't happen and no amount of purging and retrying will cause it to.

    I'm currently unable to subscribe to anything on Beehaw. I just get subscription pending and there is no content sent my way. Statistically they're also more likely to encounter no. 1 above. Can I fix this?

  • Lemmy Administration @lemmy.ml
    ZMonster @lemmy.world

    How to integrate sendgrid into Lemmy-Ansible installation?

    I’m using the Lemmy ansible installation method. I’ve been trying to add sendgrid to the postfix section of the config.hjson file on my local machine. But where do I add the API key and username? I used port 587 but nothing works. Can anyone help walk me through how to integrate sendgrid into Lemmy-Ansible? Thanks!!

    the email section of config.hjson looks like this, did I do this right?

     undefined
        
      email: {
        smtp_server: "smtp.sendgrid.net:587"
        smtp_from_address: "noreply@{{ domain }}"
        tls_type: "tls"
      }
    
    
      

    I was able to find the server location on my VPS under srv/lemmy/domain, so I can edit the lemmy.hjson file there if need be.

  • Lemmy Administration @lemmy.ml
    Illecors @lemmy.cafe

    Has anyone noticed postgres swapping heavily after 0.18.5 update?

    Out of the 2G of swap assigned it used to sit at ~250M. It is now being utilised close to 100%.

  • Lemmy Administration @lemmy.ml
    Die4Ever @programming.dev

    Seems like admins can hide communities from all, local, and trending, unless subscribed

    https://github.com/LemmyNet/lemmy/issues/2943#issuecomment-1581485335

    https://github.com/LemmyNet/lemmy/pull/2055

     undefined
        
    curl -X PUT http://localhost:1236/api/v3/community/hide \   
    -H "Content-Type: application/json" \
    -d \
    '{"community_id":3,"hidden":true,"reason":"controversal","auth":"Foo"}'
    
      

    I haven't tried this, but maybe someone will find it useful and test it out. You could probably also easily do it in the database instead of using the API call.

  • Lemmy Administration @lemmy.ml
    favrion @lemmy.ml

    I got banned from Lemmy World for a week because of an emoji. Why?

    I put the middle finger emoji under their newest piracy announcement and they banned me from Lemmy World for a week. I can argue that it was ambiguous. It could have been against Lemmy for letting pirates back in, or it could have been against the pirates. So damn quick to judge.

  • Lemmy Administration @lemmy.ml
    bahmanm @lemmy.ml

    Website to monitor Lemmy servers' performance/availability

    cross-posted from: https://lemmy.ml/post/4489142

    Originally asked in #lemmy:matrix.org


    1 The Idea

    I've been thinking about writing a website to monitor Lemmy instances, much in the same vein as lemmy-status.org, to help people like me, who are interested in the operational health of their favourite servers, have a better understanding of patterns and be notified when things go wrong.

    I thought I'd share my thoughts w/ you and ask for your feedback before going down any potential rabbit hole.

    1.1 Public-facing monitoring solution external to a cluster

    I don't wish to add any more complexity to a Lemmy setup. Rather I'm thinking about a solution which is totally unknown to a Lemmy server AND is publicly available.

    I'm sure one could get quite a decent monitoring solution whi

  • Lemmy Administration @lemmy.ml
    irdc @derp.foo

    S3-compatible object storage providers

    I'm looking into migrating (part of) my ever-growing pictrs data to something cheaper than the VPS disk it's currently on. Ideally I'd like to use minio's Object Tiering to migrate object to/from cheaper storage.

    Anybody using Backblaze's cloud storage product? What other options are out there and what potential pitfalls should I be aware of?

  • Lemmy Administration @lemmy.ml
    RoundSparrow @lemmy.ml

    FYI I made a patch for lemmy that turns off pictrs caching

    cross-posted from: https://campfyre.nickwebster.dev/post/89316

    I was getting close to hitting the end of my free object storage so there was time pressure involved haha.

    Seems to work but I haven't tested it too much. Currently running on my instance.

  • Lemmy Administration @lemmy.ml
    Oha @feddit.de

    My lemmy server just died over night without me doing anything

    Woke up in the morning and my selfhosted Lemmy server was basically braindead. I installed it in a Proxmox lxct container using the ansible playbook. It spams my logs with this:

     undefined
        
    target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "http.method=POST http.scheme=\"https\" http.host=lemmy.ohaa.xyz http.target=/inbox otel.kind=\"server\" request_id=8206186d-eaf9-486d-99ad-d9c5def188c8", file: "src/root_span_builder.rs", line: 16 }] }
    lemmyohaaxyz-lemmy-1 | 2023-08-22T05:16:08.001260Z  WARN lemmy_server::root_span_builder: data did not match any variant of untagged enum AnnouncableActivities
    lemmyohaaxyz-lemmy-1 |    0: lemmy_apub::activities::community::announce::receive
    lemmyohaaxyz-lemmy-1 |              at crates/apub/src/activities/community/announce.rs:46
    lemmyohaaxyz-lemmy-1 |    1: lemmy_server::root_span_builder::HTTP request
    lemmyohaaxyz-lemmy-1 |            with http.method=POST http.scheme="https" http.host=lemmy.ohaa.xyz http.target=/inbox otel.kind="ser
      
  • Lemmy Administration @lemmy.ml
    maor @lemmy.org.il

    What pics are safe to delete?

    My pictrs volume got quite huge and I wanna delete pics cached from other instances. The thing is I'm not sure which pics are from my instance and which aren't, because they all have cryptic filenames. Anyone knows of a way to differentiate?

  • Lemmy Administration @lemmy.ml
    favrion @lemmy.ml

    What happened to waveform.social?

    Why is it also down now?

  • Lemmy Administration @lemmy.ml
    favrion @lemmy.ml

    My account is "not in a ready state?"

    What does that mean? I currently cannot do anything on Lemmy World. Am I shadowbanned? I can read the feed but I cannot look at my notifications or profile nor can I upvote or downvote posts.