LuckyBX Русский
Reference

If a site does not open

Start with two commands. Most often they name the cause right away:

luckybx check
luckybx site check shop.example.com

Then look at what the browser says.

502#

PHP is not running. Restart it and look at the log:

luckybx service restart php
tail -n 30 /home/bitrix/sites/shop.example.com/logs/php-error.log

504#

The page ran longer than 300 seconds, and the server stopped it. Usually a heavy exchange or import is to blame. Split it into parts or run it through cron.

500 or a blank page#

An error in the site code. The last lines of logs/php-error.log in the site folder show the file and the line.

403#

Access denied. If it is the admin area, check whether it is restricted by address.

413#

The file is too big. The limit is 1 GB.

429#

Too many login attempts from one address. Wait a minute.

The site does not answer at all#

Your address may be blocked for password guessing. Open the site from a phone over mobile internet. If everything works there, remove the block:

luckybx protect unban YOUR_ADDRESS

Database connection error#

Check whether the database is running:

luckybx service
luckybx service restart db

If it does not start, check whether the disk is full: df -h. Space is often taken by old backups and the trash of disabled sites.

Broke after an edit or an update#

Restore the site from a backup. The current state is saved along the way.