picoblaanket

joined 3 years ago
[–] [email protected] 8 points 1 month ago (3 children)

$916 billion = US military budget, in 2023.

Just think of all the good that could be done with that money…

Poverty-reduction, environment-restoration, water-health, high-speed trains, global-aid…

When will we be angelic?

[–] [email protected] -3 points 2 months ago

Okay, well Barack Obama stole my private jet (I have no proof of owning the jet).

Maybe dw.com can turn it into a 700-word story called "Is Obama Stealing Airplanes?"

[–] [email protected] -5 points 2 months ago (2 children)

They didn’t even show that this guy owns (or owned) the land…

(They even say he has no deed or proof.)

This is lazy clickbait journalism.

[–] [email protected] -5 points 2 months ago (4 children)

Answer (to the clickbait title): No.

Reason (from the article): The wind-farm land-rights were purchased by a chinese company for millions, directly from a Bosnian politician (and the bosnian politician had secured the land-rights from “local authorities”).

It says that right in the “article”.

…It’s a pretty lame “article”…

…clickbait title, zero evidence to support the claim, written in the style of a first-draft.

[–] [email protected] 6 points 7 months ago

“I’d call this bullshit and wouldn’t recommend it.”

  • Which statement are you calling “bullshit”?

  • You wouldn’t recommend what?

[–] [email protected] 3 points 7 months ago (1 children)

I’m waiting for the math... Support your claim that you would “make a killing”.

I don’t see how you would...

The most you could possibly make would be $32.50 in an hour... (and that’s ONLY if you had a fare for ALL 60 minutes of an hour... and somehow still made less than $32.50 from those fares).

...And you'd be driving your own car and burning gas for that whole hour...

So show me (with math) how you’d be “making a killing”.

[–] [email protected] 6 points 7 months ago* (last edited 7 months ago) (1 children)

The central feature of their business IS having drivers WAITING when a ride is requested.

So yes - it would be fair if they included some “waiting time” for each ride (maybe up to 15 minutes of actual waiting time).

These apps ONLY have value if there are drivers WAITING when a ride is requested, so drivers should be paid for that.

[–] [email protected] 7 points 7 months ago* (last edited 7 months ago) (3 children)

Okay...

Give me the math of how this new wage would help you “make a killing”.

Keep in mind that this wage merely sets a floor for the specific-minutes when you have a fare.

  • (And brother - driving for uber is not "running your own business"... it's being maximally-exploited by a business... with no liability-protection, no security, and almost zero rights.)
[–] [email protected] 35 points 7 months ago (13 children)

If you wait 10 minutes for a fare… give a 20-minute ride to some suburban house… and then drive 20 minutes back to the city…

your pay would be $10.83 (with this new deal).

…that’s very different from $32.50 per hour.

  • Does an airline baggage-handler only get paid for the “specific minutes” when he is lifting luggage?

  • Does a cashier only get paid for “specific minutes” when there are customers in her line?

The original goal of this lawsuit was to classify drivers as employees under state law…

And that goal was ignored completely.

[–] [email protected] 98 points 7 months ago (16 children)

It’s not as much as it seems…

The wage is only “for time spent traveling to pick up riders, and transporting them to their destination”.

  • No pay for driving back to the pickup area.

  • No pay for waiting when there are no fares.

It’s a per-minute wage, and only for certain minutes.

[–] [email protected] 2 points 7 months ago

Could you imagine… if someone spent a year on the JWST… then returned to earth…

how mellow that person would be.

[–] [email protected] 7 points 8 months ago (1 children)

I love the joy you feel from the appearance of a monarch - knowing what that signifies.

And I love the way you study the overall water channel.

 

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 ).

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)

  • Docker log is clean.

**

DIAGNOSIS

When I list docker containers, 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 not successfully create the container.)

**

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 (only changed Env Vars)

4
submitted 3 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

UPDATE: HERE IS THE ANSWER

^^^^^^^


Hi,

Lemmy is awesome.

I’m having trouble launching my instance.

Here is a home page screenshot:

HERE'S THE FULL ERROR:

“Found. Redirecting to /404?err=FetchError: invalid json response body at http://lemmy:8536/api/v3/post/list?page=1&limit=20&sort=Active&type_=Local&saved_only=false 
reason: Unexpected token N in JSON at position 0”

IF YOU CLICK ‘SIGN UP’, CONSOLE SAYS:

client.js:formatted:60298 Uncaught TypeError: Cannot read properties of undefined (reading 'site')
    at n.get (client.js:formatted:60298)
    at n.get (client.js:formatted:60293)
    at n.a.render (client.js:formatted:59987)
    at Ae (client.js:formatted:7378)
    at Pe (client.js:formatted:7410)
    at client.js:formatted:7420
    at Ve (client.js:formatted:7423)
    at client.js:formatted:7495
    at Ue (client.js:formatted:7497)
    at qe (client.js:formatted:7819)

OFTEN REQUESTED LOGS / CONFIGS: (pastebin)

Docker logs (2 errors)

  • TL-DR (the 2 errors):
  • lemmy_server:::root_span_builder:NotFound
  • lemmy_server:::root_span_builder:captcha_incorrect

Lemmy config

Nginx config (/etc/nginx/sites-enabled/ggg.com.conf)


PORTS

I have the following ports open on the server (maybe too many):

  • 22, 80, 443, 8536, 5432, 1235

And the following rules in IPTABLES (maybe too many)

  • A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 8536 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 5432 -j ACCEPT
  • A INPUT -p tcp -m state --state NEW -m tcp --dport 1235 -j ACCEPT

I've failed at several 'fixes'.

If anyone knows what to do, I’d really appreciate the guidance.

If any more info is needed, I'll gladly provide.

Thank you

 

A couple questions about the lemmy-ansible instructions:


Step 1 - “Clone this repo: /lemmy-ansible.git”

QUESTION 1 - Clone it to my local machine, correct? (not directly onto the VPS)

ANSWER: - Yes, clone lemmy-ansible to local.


Step 2 - “Edit the config file”

QUESTION 2 - By default, config.hjson has values like hostname: "{{ domain }}" - and - password: "{{ postgres_password }}".

  • Are those “{{values}}” automatically pulled from the hosts file?

  • or just directly edit them in the config.hjson file?

ANSWER: - Edit them directly in the config.hjson file.


Thank you for your patience.

I want to do it right / understand.

UPDATE: Installed Lemmy on VPS via SSH

view more: next ›