Failed to deploy - infinit loop detected - but it runs just fine

Question:
failing to deploy
Repl link/Link to where the bug appears:
https://replit.com/@staffhubai/new-vocode-telephone-app-testing

Screenshots, links, or other helpful context:

10/25/23 05:41:21 PM

exec [sh -c runtest] error=exit status 127

10/25/23 05:41:21 PM

hostingpid1: crash loop detected

Looks like whatever “runtest” is isn’t recognized by the deployment.

1 Like

@Firepup650 is correct, you need to set the run command of your deployment to something that runs your bot. For example, it might be something like “python3 main.py”. You can test out those commands in the Shell pane to make sure they work first before deploying.

Hi,
thank you - total newb mistake.

J

image
so what is wrong with this? main file is called main.py so…?

tried python3 as well same response

How you configure it wasn’t really explained to you. Here’s the docs (slightly outdated).

To configure the deployment run command, do this:
Click the three dots near your files and then click “Show hidden files”.
Then, open the .replit file. Here, you’ll see some variables such as entrypoint and modules, and some “sections” such as [nix] and [deployments].
Under the [deployments] section (if there isn’t one, just add one to the end of the file), there is a run variable that you can set to a string value, e.g. "python main.py".
This value (without the quotes) is what is entered into the shell when deploying, the shell command (that you can test).

1 Like