Rank 3: Container
Nevermind it's working now
Votes
1
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
Nevermind it's working now
What was the fix?
Rank 3: Container
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
Rank 3: Container
Sent you my build container logs in DM
Rank 3: Container
When I click redeploy I get this
Rank 3: Container
Rank 3: Container
@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.
Rank 3: Container
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)
}
Rank 3: Container
I gotta get this figured out, this is holding up a large scale project we are working
Rank 3: Container
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?
Rank 3: Container
Yep
Rank 3: Container
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?
Rank 3: Container
nope, just one
Maybe there's something with the code you're deploying?
Rank 3: Container
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?
Rank 3: Container
Yes only the template function in the repo. I haven't tried a cli deployment yet
Would you please try with the CLI?
Rank 3: Container
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
Rank 3: Container
It is only letting me access my personal repos
Rank 3: Container
so, looks like my functions are deploying properly now. rebuilt my git config, and restructured my repos, and now it looks like its working
Rank 3: Container
[SOLVED] Functions sitting in "Pending"