help-circle
rss
SOLVED - Lemmy UI Fork - 502 Bad Gateway error
SOLUTION: The issue was - the ‘New UI’ docker image was automatically building for AMD64, but the Linux server is an ARM64/v8. I had to add QEMU and multi-platform build commands to the docker-image.yml file (in Github Actions). This creates an additional docker image for ARM64 machines, which loads and runs successfully. This was discovered by manually building a docker container, and receiving the following message: `WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested` So if you get that message, you must build your docker image for the platform you are on (or multiple platforms). ** == ** == ** == ** == ** == ** == ** ORIGINAL ERROR: **THE SETUP and ERROR** 1. I made a fresh ansible install, on a fresh ubuntu 20.04 server - the Lemmy instance runs perfectly. 2. I made a fresh fork of the 16.7 Lemmy-UI. 3. I built a docker-image of that forked UI, and loaded it via docker-compose (here is my [docker-image.yml build file](https://privatebin.at/?5882ef055652c602#3gVWY9YzphzrkFNmFLK6KLxWhfR4Fqtx9idoCFrZhnGx) ). Now I am getting a “502 Bad Gateway - nginx” error (the site does not load). NGINX error log shows: ``` connect() failed (111: Connection refused) while connecting to upstream, client: 75.222.232.212, server: ggg.com, request: "GET / HTTP/2.0", upstream: "http://0.0.0.0:15153/", host: "ggg.com" ``` - Nginx config has not been modified (but here is the config anyway - [ggg.conf](https://privatebin.at/?a4ba45299811eda8#GJwMDhkY1GvB4MhX914MwjxHgA9zKXpSCfhNA4rtaRcM)) - Docker log is clean. ** **DIAGNOSIS** When I list docker containers (`docker ps -a`), there is no PORT mapped to the ‘New-UI’ image container. (However, when running the ‘default lemmy-UI’ image container, the PORT is successfully mapped to 127.0.0.1:15153->1234/tcp) It seems I must create a new Container, using the ‘New-UI’ image, and map the PORT to 127.0.0.1:15153->1234/tcp (unless an Environment Variable can do it). ^ Now I must figure out that exact docker command. (because `docker run -d -p 127.0.0.1:15153:1234 [ImageID]` does successfully create the container.) ** **THE QUESTION** Is there an Environment Variable we must set to map a 'forked UI'? (to connect front-end and back-end) Here are the Env Vars I’ve added (in various combinations/values): ``` lemmy-ui: environment: - LEMMY_UI_HTTPS=true - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536 - LEMMY_UI_LEMMY_EXTERNAL_HOST=ggg.com - LEMMY_UI_DISABLE_CSP=true # - LEMMY_UI_LEMMY_WS_HOST=lemmy:8536 # - LEMMY_UI_HOST=0.0.0.0:1234 ``` here is [the full docker-compose.yml](https://privatebin.at/?a00b49548bb76418#3dprkF35H671DFVfyRiGs5tY1FRrNXV9fnBK7ndxugF1) (only changed Env Vars)

Inconsistent comments
https://lemmy.ml/post/498512 vs https://feddit.de/post/387263/

Lemmy instances near france similar to lemmy.ml?
I can't connect to lemmy.ml any longer unless I'm using tor. So I want to find another instance that federates with as many other instances as possible and that is near france. Which one would you recommend?

Searching only in one community does not work for me
The GUI of the search page indicates that it is possible too search only in one special community. When I select for example this community I get search results from many other communities. Any hints?

  • Jonny
  • edit-2
    2d
Still Sync issues with mp-tube channels
Hi, I still have sync issues with The subscribed Peer Tube instances. for example I'm subscribed to !news@mp-tube.de with my instance: https://lemmy.rimkus.it/c/news@mp-tube.de but the new Posts(Videos) are not autmotically synced. If I click on a Video on the original mp-tube site e.g.: https://mp-tube.de/w/4sH4HgqJXZeYAaKTZPaPY9 and enter that URL in the Search bar of my instance, it is successfully fetched from the site, and after that occurs in my subscribed channel. Is it a known Issue with subscribed peertube channels? is there a solution or any way I can investigate deeper? Thanks in advance :)

JSON API endpoint for communities?
Does Lemmy have some public JSON API to query information about communities? I would like to adapt this to automatically configure XMPP chatrooms for each Lemmy community: https://modules.prosody.im/mod_muc_http_defaults.html Thanks!

  • NXL
  • 5d
Do votes from instances that aren’t federated with your instance still affect the score on posts you do federate with?
For example, if im on an instance that only federates with instances in an allowlist can someone create an instance of bots to downvote things in the lemmy.ml instance and affect the score of the lemmy.ml posts that users on my instance can see? I’m interested in learning how lemmy prevents vote brigading from instances that might be made with malicious intent

  • poVoq
  • edit-2
    8d
Lemmy Pict-rs storage requirements?
I might take over one of these one-year-free hosted Lemmy instances on my server infrastructure, but I read several times now that Lemmy's image hosting system Pict-rs is using a lot of storage quickly. The server I could run this on is limited to 32gb ssd storage with no easy way to expand it. Is there some way to limit the image storage use and automatically prune old images that are not user or community icons or such?

I'm new to lemmy and I created my own community or instance. But how do I get people to join? I'm assuming I can't post it to other communities. Can you help me?

Is there an easy way to set up a CDN?
Hi everyone, we want to set up a cdn in order to avoid hosting the images in our instance

resolve_object
I'm not 100% certain that's the cause, but my testing so far suggests it's probably that. Basically if you have a URL that doesn't point to the original resource, but some copy of it on another instance, it won't resolve. So far I've only tested that on a third instance, but from my experience with the same bug on pleroma, this will occur even if you do it on the resource's origin instance. (fse post referred to from poa.st can't be resolved on fse.) As example: https://lemmy.perthchat.org/api/v3/resolve_object?q=https://lemmy.ml/post/472799. It's possible that this is actually just a federation block, but https://beehaw.org/post/125367/comment/32382 also fails, (and fetching that post works,) which I'm pretty sure isn't.

The name, logo, description and sidebar changes when I restart docker or the server
Hello, I spun up my instance and when I was doing the initial setup I got an error "Server already exists". I reloaded the page and realized that the server was a copy of https://exploding-heads.com/. I was really confused since I didn't do anything. I didn't even federated with that instance. After that I changed the settings to how I wanted them to be and moved on with the day. I thought it was one time issue. Few days later I restarted the server and when I got back to it the name, logo, description and sidebar have changed back to the ones from the other instance. I changed them back to normal and decided to restart just the docker containers. Again the same issue. Normally the logs help but this time nothing out of normal shows up.

  • Jae
  • 24d
Federation sync problems
Hey there, It seems from my instance, I don't receive everything posted on other instances. Is there something to sync posts and comments or am I doomed to be behind all of this for the rest of eternity?

Have there been any reports concerning troublesome bot accounts on Lemmy instances?
This is a fairly concerning problem with Reddit, for example. Are there similar concerns here?

How to subsribe to groups or posts via RSS?
cross-posted from: https://lemmy.ml/post/449303 > I really like RSS feeds, especially with tools like newsboat and there are RSS feeds for everything, like Reddit posts or even Youtube channels. > > Is it possible to get RSS feeds for Lemmy groups or even posts, too? > > This would boost the workflow immensely.

Why do I see different things when viewing the same post on Lemmy vs Beehaw?
[This post on Lemmy](https://lemmy.ml/post/443571?scrollToComments=true): ![](https://lemmy.ml/pictrs/image/cfbdc434-aa6a-485a-a776-13d1889d41c1.png) [This post on Beehaw](https://beehaw.org/post/110803?scrollToComments=true): ![](https://lemmy.ml/pictrs/image/2ee9f903-b933-40ad-a979-f6191a18eeea.png) [@lisko@sopuli.xyz](https://sopuli.xyz/u/lisko)'s comment is not visible at all on the Lemmy instance while to me my comment is not visible at all on the Beehaw instance, nothing is showing in modlog though so I assume it has not been removed. Am I unaware of a mechanic of federation occurring here? Or is something bugged?


  • bkrl
  • edit-2
    1M
Multireddits feature
I really appreciated in the official Reddit the "Multireddits" feature, a collection of multiple subscriptions under one "viewlist." Does a similar feature exist or are there plans to be developed in Lemmy in the future?

  • NXL
  • 1M
Users need an option to block instances
browsing through All has so much pro-fascist posts coming from lemmygrad that it drowns out all the other instances. I'm surprised they're even federated by default but we should have an option to block instances from All if lemmy is deadset on federating with them just because they are fascists with a red and yellow flag... (before the Tankies start posting about how they aren't pro-fascism "Fascism is a far-right, authoritarian, ultranationalist political ideology and movement, characterized by a dictatorial leader, centralized autocracy, militarism, forcible suppression of opposition, belief in a natural social hierarchy, subordination of individual interests for the good of the nation and race, and strong regimentation of society and the economy" which all describe the Z movement in Russia they gleefully support in multiple posts)

Transfer account to another instance?
Is this a thing that's possible? Asking for an imperialist *friend* who want to hop over to beehaw from lemmy.ml until *friend* has grasped nginx and figured out *friends* own instance on their rpi.

Support / questions about Lemmy.

  • 0 users online
  • 4 users / day
  • 25 users / week
  • 49 users / month
  • 150 users / 6 months
  • 8 subscribers
  • 101 Posts
  • 638 Comments
  • Modlog
Lemmy
A community of leftist privacy and FOSS enthusiasts, run by Lemmy’s developers

What is Lemmy.ml

Rules

  1. No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
  2. Be respectful. Everyone should feel welcome here.
  3. No porn.
  4. No Ads / Spamming.

Feel free to ask questions over in: