blindsidenetworks / scalelite

Scalable load balancer for BigBlueButton.
GNU Affero General Public License v3.0
473 stars 247 forks source link

Could not find any available servers. #92

Closed JGallot closed 4 years ago

JGallot commented 4 years ago

hello,

When i try to create a metting on my scalelie, i've got this message : Could not find any available servers. This is returned by the API.

When i look my servers, all is allright, the command bin/rake status returns : Running via Spring preloader in process 8561 HOSTNAME STATE STATUS MEETINGS USERS LARGEST MEETING VIDEOS server1 enabled online 0 0 0 0 server2 enabled online 0 0 0 0

What can i can check ?

JGallot commented 4 years ago

Some more information : Redis server seems to be empty : **KEYS *** returns (empty list or set) Client dockers can connect redis. No password error is found in logs

farhatahmad commented 4 years ago

Whats the no password error that you found in the logs? Can you send a snippet of it?

ngthienlinh commented 4 years ago

I think we have common problem. In the document: "The Docker image defaults to production. Rails defaults to development" => this lead to incompatible redis namespace. The solution is to set RAIL_ENV variable in /etc/default/scalelite.

JGallot commented 4 years ago

hello, i'Ve made some cheks and reinstallations.

redis is now "populated".

RAIL_ENV=production is now in the file /etc/default/scalelite restart have be done

But the problem is always here , very strange. No message in logs (no errors nor infor only the url used)

JGallot commented 4 years ago

in redis-client, i've got keys :

1) "scalelite_development:server_load"
2) "scalelite_development:server_enabled"
3) "scalelite_development:servers"
4) "scalelite_development:server:b223bb3e-961c-4cbf-ba29-d656797b7657"
5) "scalelite_development:server:e409d22f-5aa5-451b-9485-1d7c37e4e3fd"

I see _development, shouldn't I see _production instead ?

ngthienlinh commented 4 years ago

I think so. I set RAIL_ENV=development, and it is working. if you set RAIL_ENV=production, you may also need to set REDIS_NAMESPACE=.

JGallot commented 4 years ago

I've made this but it doesn't work. ./bin/rake servers:add[https://kbbb3-calc.unicaen.fr/bigbluebutton/api,XXXXX] RAIL_ENV=production REDIS_NAMESPACE=scalelite_production but it continues to populate scalelite_development keys

JGallot commented 4 years ago

ok shame on me ... env vars must before the tasks...

JGallot commented 4 years ago

Ok it works for me now thanks