picoblaanket

joined 2 years ago
[–] picoblaanket@lemmy.ml 6 points 3 months ago

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

  • Which statement are you calling “bullshit”?

  • You wouldn’t recommend what?

[–] picoblaanket@lemmy.ml 3 points 4 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”.

[–] picoblaanket@lemmy.ml 6 points 4 months ago* (last edited 4 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.

[–] picoblaanket@lemmy.ml 7 points 4 months ago* (last edited 4 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.)
[–] picoblaanket@lemmy.ml 35 points 4 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.

[–] picoblaanket@lemmy.ml 98 points 4 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.

[–] picoblaanket@lemmy.ml 2 points 4 months ago

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

how mellow that person would be.

[–] picoblaanket@lemmy.ml 7 points 4 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.

[–] picoblaanket@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, I understand what you mean (after a year of exploring the Web Socket).

That lemmy auth value is pulled from a JWT cookie in the browser - which you can access in JS by document.cookie. It allows user-specific API calls (retrieving saved posts, subscribed communities, etc).

[–] picoblaanket@lemmy.ml 3 points 1 year ago

Yes exactly - living on the edge!

One way to learn the new API is - explore the code of (similar) extensions and browser scripts, to see how they build and send their calls.

[–] picoblaanket@lemmy.ml 3 points 1 year ago (3 children)

Is there a specific API call you'd like to make?

Maybe someone can reveal that method and endpoint.

[–] picoblaanket@lemmy.ml 1 points 1 year ago* (last edited 1 year ago) (1 children)

This User Script called Fediverse Redirector auto-redirects all Community, Post, and User pages to your home instance. It works well.

  • Just click install on that page - it will be added to TamperMonkey (or similar).

  • Then click settings (under the script) and enter your home lemmy instance.

And to directly answer your question: the raw code is visible in that repo, so you could explore how the post redirect query was constructed.

 

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 2 years ago* (last edited 2 years ago) by picoblaanket@lemmy.ml to c/lemmy_support@lemmy.ml
 

QUESTION:

Where should we declare those new UI Environment Variables? (from the readme)

ANSWER:

Add the new UI Environment Variables to docker-compose.yml (on the server). Like this:

  lemmy-ui:
    image: ggg/ui2:latest
    ports:
      - "127.0.0.1:23587:1234"
    restart: always
    environment:
      - LEMMY_INTERNAL_HOST=lemmy:8536
      - LEMMY_EXTERNAL_HOST=ggg.quest
      - LEMMY_HTTPS=true
      - LEMMY_UI_LEMMY_EXTERNAL_HOST=ggg.com
      - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
      - LEMMY_UI_HTTPS=true
    depends_on:
      - lemmy
1
submitted 2 years ago* (last edited 1 year ago) by picoblaanket@lemmy.ml to c/lemmy_support@lemmy.ml
 

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 ›