Skip to content

Latest commit

 

History

History
159 lines (84 loc) · 4.45 KB

PROBLEM_SOLVED.md

File metadata and controls

159 lines (84 loc) · 4.45 KB

The problem I faced and I already solved

Remember! If you don't get a problem like me you don't have to follow this

The origin hubs repo is always updating and we are running on different server so it comes with different kind of error.

Sometimes the error I face doesn't necessarily mean you also face it.

- 502 server communication error in hubs admin like this issue

Ok, let's give try to solve this.

The problem is an API call to this route

/api/ita/admin-info

and other with slash ita /ita

if we check where is the code in the reticulum which handles that open the router.ex ita API call the RetWeb.Plugs.ItaProxy if you in vs code you can command+click / ctrl+click for find the function is called.

scope "/api/postgrest" do
   pipe_through([:secure_headers, :auth_required, :admin_required, :proxy_api])
   forward("/", RetWeb.Plugs.PostgrestProxy)
end

What is port 3000?

Thanks to the contributor that give me a clue about the port 3000

its a PostgREST

Thanks to daniel, Give me info about Running PostgREST locally

hubs admin panel work

- Architecture Kit Failed to Load and Import

This problem is related to number 1 above. We don't need CORS_PROXY_SERVER so set it with an empty string

env spoke

and make condition like this picture bellow

env spoke

- Spoke Assets Thumbnail not Showing on Production

Edit Api.js

env spoke

- Spoke Console Error prefetch-src

I got error like this

Spoke console error

Then add rule prefetch-src like this.

Spoke console fix

- Upload Assets too Large on Spoke Production

It because nginx

Open up the nginx configuration file

sudo nano /etc/nginx/nginx.conf

add this client_max_body_size to the http section

http {
    
    # other line...

    client_max_body_size 100M;
}  

Then restart nginx

sudo systemctl restart nginx

for more detail see this article

- Error: listen EADDRNOTAVAIL: address not available

I install this project on server in china. alibaba elastic compute service

then i got that error when trying to run Spoke and hubs admin.

address error

just remove process.env.HOST_IP || like picture above.

and leave "0.0.0.0"

thanks to this

- My Experience Installing On Alibaba Elastic Compute Service

see

- Dialog Error Keep Restarting on pm2

this._mediasoupRouter._transports.size

dialog restart

- MediaSoupError: port bind failed due to address not available

Change the prod command in package.json

it because MEDIASOUP_LISTEN_IP. set value with 0.0.0.0

MEDIASOUP_LISTEN_IP=0.0.0.0 MEDIASOUP_ANNOUNCED_IP=123.xxx.xxx.xxx HTTPS_CERT_FULLCHAIN=/etc/letsencrypt/live/example.com/fullchain.pem HTTPS_CERT_PRIVKEY=/etc/letsencrypt/live/example.com/privkey.pem DOMAIN=example.com node index.js


Paypal

Buy Me a Coffee at ko-fi.com

Also read:

Hosting Mozilla Hubs on VPS

The Problem I Still Faced

The Problem I Faced and I Already Solved

Tips for Modification

Overview System With Figma

Experience Sharing About Hosting on Other Server