Troubleshooting
Deploy failed
When a deploy fails, BitHut says why in a finding: what is wrong, why, and what to change. Your AI gets it in the deploy result, and you see it under Versions in the cabinet. Below are the common ones. The name in brackets is what your AI sees.
Before the build
BitHut cannot tell what kind of project it is (kind_unknown). Tell your AI whether it is a site, a background process (like a bot) or a scheduled script. It deploys again with that kind.
A scheduled script has no schedule (schedule_missing). Tell your AI when it should run, for example “every day at 9:00”. The AI turns it into a schedule in UTC.
A key is missing (missing_secret). The code reads a key, like TELEGRAM_BOT_TOKEN, that is not saved for the project. Your AI gives you a link to the cabinet; paste the value there, never in the chat. Then ask the AI to deploy again.
A build setting is missing (missing_build_setting). The site needs a public value while it is built, like VITE_API_URL. Ask your AI to save it as a build setting. A key saved as a secret does not reach the build.
The upload is over 100 MB. The upload command from BitHut already leaves out folders like node_modules and .git. Ask your AI to leave out other large files too, such as videos or data dumps.
No plan. To put projects online you need a plan or the free trial. The message has a link to start it.
During the build
The build stopped (build_failed). Installing dependencies or compiling failed. The finding shows the line of the build log where it stopped. Ask your AI to fix that error.
The language is unknown (language_unknown). There is no dependency file, like requirements.txt or package.json, and no Dockerfile. Ask your AI to add the file the project’s language uses.
No start command (start_unknown). BitHut recognised the language but not how to start the program. Tell your AI how you start it on your computer, for example python main.py; it passes that as the start command.
During the trial run
Every new version starts once as a trial. If the trial fails, the version that worked before stays online, and the logs show why.
Nothing answers on the port (not_listening). The site started but does not answer. It must listen on 0.0.0.0 and the port from the PORT variable. Ask your AI to change that.
The program stopped (crashed) or the site answers with an error (http_error). The finding has the last log lines. Ask your AI to read them with explain and fix the code.
A scheduled script did not finish (cron_timeout). A scheduled script must do one pass and exit; the schedule repeats it.
Out of memory (out_of_memory). The program needed more memory than it could get. Ask your AI to make it use less, for example by handling data in smaller parts, or choose a bigger plan.
After the trial
It does not fit the plan (plan_too_small). The trial passed, but the new project uses more memory or disk than is left on your plan. It was stopped; projects that were running keep running. The finding names the plan that fits. Choose it in the cabinet under Profile, Plan, or delete a project you no longer need and deploy again. See Plans and billing.
A problem on the BitHut side
BitHut failed during the deploy (platform_error). The problem is not in your project. Deploy again in a few minutes. If it repeats, write to team@bithut.app.