Back

Failed Function build due to "Unable to clone code repository: fatal: remote error"

  • 0
  • React Native
  • Functions
RajKaps
14 Aug, 2024, 04:45

Hello. We recently pushed some code into our main branch and this error showed up during our function build. I went through some of the earlier threads, but couldn't understand if this is a GitHub issue or something to do with AppWrite.

This is also the first time this issue came up since we have been pushing to main consistently without any problem. Not sure if last weeks issue caused some disturbance?

I am tempted to disconnect my github repository and reconnect, but not sure if that would break anything so holding off to the experts for suggestions. :appwritecheers:

Appreciate all the help! Thank you:appwriteparty:

TL;DR
Code repository cloning failed during function build with the error "upload-pack: not our ref 0000000000000000000000000000000000000000." The developer is unsure if it's a GitHub or AppWrite issue, considering recent problems. They're contemplating disconnecting and reconnecting the GitHub repository cautiously.
RajKaps
14 Aug, 2024, 04:45

Here is the full error:

TypeScript
Unable to clone code repository: fatal: remote error: upload-pack: not our ref 0000000000000000000000000000000000000000

/usr/src/code/vendor/appwrite/server-ce/src/Appwrite/Platform/Workers/Builds.php:235
#0 /usr/src/code/vendor/appwrite/server-ce/src/Appwrite/Platform/Workers/Builds.php(93): Appwrite\Platform\Workers\Builds->buildDeployment(Object(Utopia\Storage\Device\DOSpaces), Object(Appwrite\Event\Func), Object(Appwrite\Event\Event), Object(Appwrite\Event\Usage), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Utopia\VCS\Adapter\Git\GitHub), Object(Utopia\Database\Document), Object(Utopia\Database\Document), Object(Utopia\Database\Document), Object(Utopia\Database\Document), Object(Utopia\Logger\Log))
#1 /usr/src/code/vendor/appwrite/server-ce/src/Appwrite/Platform/Workers/Builds.php(55): Appwrite\Platform\Workers\Builds->action(Object(Utopia\Queue\Message), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Appwrite\Event\Event), Object(Appwrite\Event\Func), Object(Appwrite\Event\Usage), Object(Utopia\Cache\Cache), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Utopia\Storage\Device\DOSpaces), Object(Utopia\Logger\Log))
#2 /usr/src/code/vendor/utopia-php/queue/src/Queue/Server.php(248): Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}(Object(Utopia\Queue\Message), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Appwrite\Event\Event), Object(Appwrite\Event\Func), Object(Appwrite\Event\Usage), Object(Utopia\Cache\Cache), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Utopia\Storage\Device\DOSpaces), Object(Utopia\Logger\Log))
#3 [internal function]: Utopia\Queue\Server->Utopia\Queue\{closure}('4')
#4 /usr/src/code/vendor/utopia-php/queue/src/Queue/Adapter/Swoole.php(37): call_user_func(Object(Closure), '4')
#5 [internal function]: Utopia\Queue\Adapter\Swoole->Utopia\Queue\Adapter\{closure}(Object(Swoole\Process\Pool), '4')
#6 {main}
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more