Deployment failed but work in workspace

relp link:


2024-01-18T12:00:41Z info: Skipping Build as no Build command set
2024-01-18T12:00:41Z info: Pushing pid1 binary layer...
2024-01-18T12:00:44Z info: Skipping Python layer creation
2024-01-18T12:00:44Z info: Skipping Node layer creation
2024-01-18T12:00:44Z info: Pushing hosting layer...
2024-01-18T12:00:44Z warning: Detected broken symlink! The path "/home/runner/Python/venv/bin/python3" does not exist.
2024-01-18T12:00:45Z info: Retrieved cached nix layer
2024-01-18T12:00:46Z info: Created hosting layer
2024-01-18T12:00:47Z info: Created pid1 binary layer
2024-01-18T12:01:31Z info: Created Repl layer
2024-01-18T12:01:31Z info: Pushing Repl (cache) layer...
2024-01-18T12:01:49Z info: Created Repl (cache) layer
2024-01-18T12:01:51Z info: Pushed image manifest
2024-01-18T12:01:52Z info: Pushed soci index manifest
2024-01-18T12:01:59Z info: Creating Autoscale service
starting up user application
2024-01-18T12:02:42Z error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on and a staff member will take a look.

Hi @ccy2 , welcome to the forums!
Could you send the logs of the deployment?

Also, your repl may be running on the old version, so try running this to update in the Shell:

curl -s|bash -s

Then, reinstall any modules using poetry add <module-name> in the Shell, like poetry add flask or poetry add request.
Also, what is your repl about?

its about getting funding rates value from crypto exchange to google sheet

run command :

this dint work:
curl -s|bash -s and poetry add

before this “deployment” thing the relp is running without problem for months

Hi @ccy2 !
Try deploying your repl as a Reserved VM instead, as this is a bot.
Also, if you have any modules installed, it would be poetry add followed by the module, like flask. Example: poetry add flask
This is for any modules needed in your repl.

deploy success but the bot not working, do i still nid to press the run button at the top?

error: The Amazon CloudFront distribution is configured to block access from your country.
seem the ip is blocked on the deploying server , can i pick another server?
also y the development server dont have such problem ? tats feel kind of misleading

Hi @ccy2 !
It seems that Amazon blocks you because of the country you are in. Maybe use a VPN and re-deploy?


You should be able to at

IIRC Deployment and account servers are 2 different things. The former is only based in USA, while the latter is Asia of USA.

changing setting in only make it stuck after deploying

and using vpn dint do anything.

seem the problem cant be fix as long as the deploying server is in US .
changing setting to asia in account setting only work in development , and will still fail when deploy since deploying server only in USA.
time to migrate i guess :smiling_face_with_tear: :person_facepalming:

FYI : my relp need access binance global(not binance US )/bybit and other exchange api for funding rate value , so if anyone dong the same thing , dont bother using replit to deploy anymore.