Question: Deployment fails, “App failed to promote”. There is nothing on Logs tab.
Repl link/Link to where the bug appears: https://replit.com/@andrejsimunaj1/TheGameGPT
Screenshots, links, or other helpful context:
code snippet
Question: Deployment fails, “App failed to promote”. There is nothing on Logs tab.
Repl link/Link to where the bug appears: https://replit.com/@andrejsimunaj1/TheGameGPT
Screenshots, links, or other helpful context:
code snippet
Same here, apparently it’s a general error
Welcome to Ask! What’s your code look like? The link you provided appears to be a 404.
I get the same error, including no logs. What’s the fix?
@trafficloaderma there is an active issue about this on the Replit status site. Replit is working on a fix. This is likely an unrelated issue (albeit with a similar result) to the original post.
Thanks @anon40284853 for your response. I am new to Replit. What do you need to help me get my project promoted?
Can you make your Repl public so that the community can view it? Also, what are your deployment settings?
My replit is public. What do you mean by ‘deployment settings’. The project is imported from Github, I just configured secrets.
Do you mean my .replit file?
This Repl is not public:
https://replit.com/@andrejsimunaj1/TheGameGPT
You can test by going to an Incognito tab and trying to access it. If it’s a private Repl, it will 404. A public one will show up for everyone. You can change it to public by clicking on the Repl name and clicking “public” instead of “private”.
By deployment settings, I mean what deployment type did you use and any applicable commands. Basically, anything you had to pick or setup from the Deployments tab.
My replit is https://replit.com/@trafficloaderma/superagent
My deployment is 1 vcpu/2G Ram/3 max
Apologies @trafficloaderma. For some reason, I thought you were OP. “App failed to promote” can be caused by different underlying factors so your issue may not be the same as OP.
In any case, let’s take a look after we get that deployment logs issue fixed so we can get some clues. Right now it’s giving me an “Exceeded max batch request error” in the logs. We are actively working on it so I’m hopeful it’s resolved soon.
Thanks for the update… and looking into this.
OK, I have log files for you to look at now.
Great. Do they have any clues? You can post them here for the community to take a look.
There is nothing that makes sense to me. Here are the topmost lines in the log file.
01/09/24 12:15:27 PM
async with self.lifespan_context(app) as maybe_state:
01/09/24 12:15:27 PM
e[31mERROR: Application startup failed. Exiting.e[0m
01/09/24 12:15:27 PM
e[0m
01/09/24 12:15:27 PM
await prisma.connect()
01/09/24 12:15:27 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/query.py", line 114, in _ensure_file
01/09/24 12:15:27 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/libs/superagent/app/main.py", line 62, in startup
01/09/24 12:15:27 PM
await self._router.startup()
01/09/24 12:15:27 PM
e[31mERROR: Traceback (most recent call last):
01/09/24 12:15:27 PM
raise errors.BinaryNotFoundError(
01/09/24 12:15:27 PM
return utils.ensure(BINARY_PATHS.query_engine)
01/09/24 12:15:27 PM
self.file = file = self._ensure_file()
01/09/24 12:15:27 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/query.py", line 126, in connect
01/09/24 12:15:27 PM
await self.__engine.connect(
01/09/24 12:15:27 PM
await handler()
01/09/24 12:15:27 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
01/09/24 12:15:27 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__
01/09/24 12:15:27 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
01/09/24 12:14:39 PM
[2024-01-09 20:14:39 +0000] [28] [INFO] Booting worker with pid: 28
01/09/24 12:14:39 PM
[2024-01-09 20:14:39 +0000] [27] [INFO] Booting worker with pid: 27
01/09/24 12:14:39 PM
forwarding local port 8000 to external port 1104
01/09/24 12:14:39 PM
[2024-01-09 20:14:39 +0000] [25] [INFO] Using worker: uvicorn.workers.UvicornWorker
01/09/24 12:14:39 PM
[2024-01-09 20:14:39 +0000] [25] [INFO] Listening at: http://0.0.0.0:8000 (25)
01/09/24 12:14:39 PM
[2024-01-09 20:14:39 +0000] [25] [INFO] Starting gunicorn 20.1.0
01/09/24 12:14:37 PM
/nix/store/y4gpaygmnmdli9l5abxpg2bs82lp6bwq-poetry/bin/poetry: line 8: /repl/stats/resources.json: No such file or directory
01/09/24 12:14:37 PM
/nix/store/y4gpaygmnmdli9l5abxpg2bs82lp6bwq-poetry/bin/poetry: line 8: /repl/stats/resources.json: No such file or directory
01/09/24 12:14:36 PM
starting up user application
01/09/24 11:55:06 AM
Try running prisma py fetch
01/09/24 11:55:06 AM
prisma.engine.errors.BinaryNotFoundError: Expected /home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/libs/superagent/prisma-query-engine-debian-openssl-1.1.x, /home/runner/.cache/prisma-python/binaries/4.15.0/8fbc245156db7124f997f4cecdd8d1219e360944/prisma-query-engine-debian-openssl-1.1.x or /home/runner/.cache/prisma-python/binaries/4.15.0/8fbc245156db7124f997f4cecdd8d1219e360944/node_modules/prisma/query-engine-debian-openssl-1.1.x to exist but none were found or could not be executed.
01/09/24 11:55:06 AM
raise errors.BinaryNotFoundError(
01/09/24 11:55:06 AM
await prisma.connect()
01/09/24 11:55:06 AM
e[31mERROR: Traceback (most recent call last):
01/09/24 11:55:06 AM
e[0m
01/09/24 11:55:06 AM
return utils.ensure(BINARY_PATHS.query_engine)
01/09/24 11:55:06 AM
self.file = file = self._ensure_file()
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/client.py", line 281, in connect
01/09/24 11:55:06 AM
await self._router.startup()
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/libs/superagent/app/main.py", line 62, in startup
01/09/24 11:55:06 AM
async with self.lifespan_context(app) as maybe_state:
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/utils.py", line 117, in ensure
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/query.py", line 114, in _ensure_file
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/query.py", line 126, in connect
01/09/24 11:55:06 AM
await self.__engine.connect(
01/09/24 11:55:06 AM
await handler()
01/09/24 11:55:06 AM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
01/09/24 11:54:29 AM
[2024-01-09 19:54:29 +0000] [28] [INFO] Booting worker with pid: 28
01/09/24 11:54:29 AM
[2024-01-09 19:54:29 +0000] [25] [INFO] Listening at: http://0.0.0.0:8000 (25)
01/09/24 11:54:27 AM
/nix/store/y4gpaygmnmdli9l5abxpg2bs82lp6bwq-poetry/bin/poetry: line 8: /repl/stats/resources.json: No such file or directory
01/09/24 11:54:27 AM
/nix/store/y4gpaygmnmdli9l5abxpg2bs82lp6bwq-poetry/bin/poetry: line 8: /repl/stats/resources.json: No such file or directory
01/09/24 11:54:25 AM
starting up user application
Run
42m on 11:58:10, 01/10
Have you redeployed today at all? Same errors?
That logfile was from about two hours ago. But why is the date wrong?
Go ahead and check again (or deploy again if needed). You should have some logs from today if that’s the case and maybe you need to scroll. It should contain both today and yesterday.
Here is from two hours ago:
01/10/24 12:04:40 PM
prisma.engine.errors.BinaryNotFoundError: Expected /home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/libs/superagent/prisma-query-engine-debian-openssl-1.1.x, /home/runner/.cache/prisma-python/binaries/4.15.0/8fbc245156db7124f997f4cecdd8d1219e360944/prisma-query-engine-debian-openssl-1.1.x or /home/runner/.cache/prisma-python/binaries/4.15.0/8fbc245156db7124f997f4cecdd8d1219e360944/node_modules/prisma/query-engine-debian-openssl-1.1.x to exist but none were found or could not be executed.
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/query.py", line 114, in _ensure_file
01/10/24 12:04:40 PM
await prisma.connect()
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 654, in startup
01/10/24 12:04:40 PM
await self._router.startup()
01/10/24 12:04:40 PM
e[31mERROR: Traceback (most recent call last):
01/10/24 12:04:40 PM
await handler()
01/10/24 12:04:40 PM
e[31mERROR: Application startup failed. Exiting.e[0m
01/10/24 12:04:40 PM
e[0m
01/10/24 12:04:40 PM
raise errors.BinaryNotFoundError(
01/10/24 12:04:40 PM
self.file = file = self._ensure_file()
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 566, in __aenter__
01/10/24 12:04:40 PM
async with self.lifespan_context(app) as maybe_state:
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/starlette/routing.py", line 677, in lifespan
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/engine/utils.py", line 117, in ensure
01/10/24 12:04:40 PM
await self.__engine.connect(
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/.pythonlibs/lib/python3.10/site-packages/prisma/client.py", line 281, in connect
01/10/24 12:04:40 PM
File "/home/runner/32f0ecb3-b119-4e79-a590-3c2b2ac86009/libs/superagent/app/main.py", line 62, in startup
01/10/24 12:03:49 PM
[2024-01-10 20:03:49 +0000] [28] [INFO] Booting worker with pid: 28
01/10/24 12:03:49 PM
[2024-01-10 20:03:49 +0000] [27] [INFO] Booting worker with pid: 27
01/10/24 12:03:49 PM
[2024-01-10 20:03:49 +0000] [25] [INFO] Using worker: uvicorn.workers.UvicornWorker
01/10/24 12:03:49 PM
[2024-01-10 20:03:49 +0000] [25] [INFO] Listening at: http://0.0.0.0:8000 (25)
01/10/24 12:03:49 PM
forwarding local port 8000 to external port 1104
01/10/24 12:03:49 PM
[2024-01-10 20:03:49 +0000] [25] [INFO] Starting gunicorn 20.1.0
01/10/24 12:03:46 PM
/nix/store/y4gpaygmnmdli9l5abxpg2bs82lp6bwq-poetry/bin/poetry: line 8: /repl/stats/resources.json: No such file or directory
01/10/24 12:03:46 PM
/nix/store/y4gpaygmnmdli9l5abxpg2bs82lp6bwq-poetry/bin/poetry: line 8: /repl/stats/resources.json: No such file or directory
01/10/24 12:03:45 PM
starting up user application