Nevermind it's working now
What was the fix?
Apparently nothing, it's doing it again.
I just restarted the build container a couple times and it fixed it temporarily. But now it's doing it again and rebooting the containers isn't helping
Sent you my build container logs in DM
When I click redeploy I get this
@Steven
I just wiped & reconfigured my Git Config, rebuilt my stack, and tried to deploy my function. appwrite logs gave this:
[Error] Timestamp: 2023-10-19T18:01:45+00:00
[Error] Method: POST
[Error] URL: /v1/vcs/github/installations/:installationId/providerRepositories/:providerRepositoryId/detection
[Error] Type: TypeError
[Error] Message: Cannot access offset of type string on string
[Error] File: /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php
[Error] Line: 190
My first function deployed, but then after the first one, all consecutive fail.
Worker Builds
failed Exception: Pool 'cache_redis_main' is empty (size 10) in /usr/src/code/vendor/utopia-php/pools/src/Pools/Pool.php:174
Stack trace:
#0 /usr/src/code/src/Appwrite/Resque/Worker.php(262): Utopia\Pools\Pool->pop()
#1 /usr/src/code/app/workers/builds.php(58): Appwrite\Resque\Worker->getCache()
#2 /usr/src/code/src/Appwrite/Resque/Worker.php(125): BuildsV1->run()
#3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Job.php(201): Appwrite\Resque\Worker->perform()
#4 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(303): Resque_Job->perform()
#5 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(242): Resque_Worker->perform(Object(Resque_Job))
#6 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('0.1', false)
}
I gotta get this figured out, this is holding up a large scale project we are working
If i delete my function, stop and start the full stack, i can create the function again and it will build, but that is the ONLY way i can deploy a function
You're still seeing this error?
Yep
still having the same issue, I have not been able to figure it out yet. Any thoughts?
do you have multiple builds happening at the same time?
nope, just one
Maybe there's something with the code you're deploying?
It does it with any functions including y'all's prebuilt functions
Only with deploying via GitHub?
Does the repo only have the template function?
Yes only the template function in the repo. I haven't tried a cli deployment yet
Would you please try with the CLI?
Yeah, I am also rebuilding my git config. Is there a way to authorize a git organization in appwrite vs personal account? Looking to be able to access repositories from an org i own
You should be able to select it just fine
It is only letting me access my personal repos
so, looks like my functions are deploying properly now. rebuilt my git config, and restructured my repos, and now it looks like its working
[SOLVED] Functions sitting in "Pending"
Recommended threads
- How Can I Create landing page in appwrit...
I created function called invoice URL https://app.getrestt.com/v1/functions/invoice/executions?id=test-76f948fe83c43422561fe096c0674a1bd3ff0702cdfcf2444293ab31...
- DeploymentStatus enum value `canceled` m...
Hey, Sorry if it has been reported already, I found an issue using the Dart SDK where the `canceled` enum value is missing from `DeploymentStatus`. This causes...
- Synchronous function execution timeout w...
I am calling server functions with xasync = true and I still get this error message. Synchronous function execution timed out. Use asynchronous execution inste...