Scalelite部署故障求助:Nginx无法加载、数据库初始化报错及负载均衡配置问题
Hey there, let's work through these Scalelite deployment issues one by one—since you're new to setting up Scalelite for load balancing two servers, I'll break each fix down with clear, actionable steps:
This error almost always happens because you're hitting an incorrect endpoint or making an improperly formatted request. Scalelite exposes a BigBlueButton-compatible API, so you need to target the right path and include required validation:
- Use the correct base API path: Instead of accessing just your server's root URL, navigate to
http://your-scalelite-domain/bigbluebutton/api—this is the standard endpoint for BBB/Scalelite API requests. - Include valid checksums: Every API request (even simple ones like
getMeetings) requires a generated checksum to authenticate. You can't just call endpoints directly in the browser without this (unless you've disabled checksum validation, which isn't recommended for production). - Verify request methods: Some actions (like creating a meeting) require a POST request, while others (like listing meetings) use GET. Using the wrong method will trigger this error.
Rails protects production databases from accidental destructive actions by default, which is why you're seeing this error. To bypass this safety check (since you're setting up a new deployment, this is safe), modify your command to include the required environment variable:
docker exec -i scalelite-api bundle exec rake db:setup DISABLE_DATABASE_ENVIRONMENT_CHECK=1
Note: This command will create your database tables and load the schema—only run this if you're starting with a fresh database (which you should be during initial deployment). If you ever have existing data in production, double-check before using this flag!
The duplicate domain.com entries mean you've registered the same BigBlueButton server twice in Scalelite. Here's how to clean this up:
- First, list all registered servers to confirm duplicates:
docker exec -i scalelite-api bundle exec rake servers:list - Identify the ID of the duplicate server entry from the list output.
- Remove the duplicate using the server ID (replace
123with your actual duplicate ID):docker exec -i scalelite-api bundle exec rake servers:remove[123] - Going forward, make sure you only run the
servers:addcommand once per BigBlueButton server you want to add to the pool.
内容的提问来源于stack exchange,提问作者Abel_s_tales

