Back

Cannot add git configuration

  • 0
  • Self Hosted
  • Functions
  • General
Faye
20 Jun, 2024, 20:24

Hello.

Whenever I try to add my GitHub account to a project, it doesn't work as it says the "document already exists".. this is really annoying and I am unable to commit my functions to this project for this reason. How can I see where it's connected to? How do I disconnect it so I can re-connect it?

TL;DR
Developers are encountering issues while trying to add git configuration in the Appwrite console. Despite creating users and identity successfully, they still face a "document already exists" error. Restarting the Appwrite to clear caches or checking the database directly for duplicate installations could potentially solve the problem. Disconnecting from the database may be necessary to reconnect successfully.
Steven
21 Jun, 2024, 23:03

How can I see where it's connected to? How do I disconnect it so I can re-connect it?

You might need to dig into the database

faye
21 Jun, 2024, 23:14

I don't think so, no. Just multiple organizations

Steven
21 Jun, 2024, 23:24

weird... maybe look at the _console_respositories table directly in the DB

faye
21 Jun, 2024, 23:47

:(

I'll have to check how tmrw

faye
18 Jul, 2024, 18:06

Hey!

Sorry for the wait..

I got the table. I do see some of the same installation id's, I wonder.. if I delete everything and then re-add the configs using appwrite console, will the functions etc. still work when committing (auto build)?

Otherwise, I Have no clue what I can delete and what not I also just added a new git org which did not have the app for github yet (never added, new organization) and it also gave the same error

faye
18 Jul, 2024, 18:06
Steven
18 Jul, 2024, 22:12

Backup first lol. But, ya maybe deleting might work

faye
24 Jul, 2024, 13:56

Did not seem to work, still getting:

Steven
24 Jul, 2024, 13:57

Maybe it's still in the redis cache?

faye
24 Jul, 2024, 13:58

I restarted appwrite as well, if that works to clear the cache

faye
24 Jul, 2024, 14:32

unless you need to do it manually :/

faye
24 Jul, 2024, 16:23

@Steven I just made a project on the cloud and I have the same exact issue..

faye
24 Jul, 2024, 16:24

Had no orgs whatsoever, imported all my stuff to the cloud and tried to connect my git org, but same error as here.

faye
24 Jul, 2024, 16:24

org id: 66a1236e00237ba3c8ff project id: hp-main

Steven
24 Jul, 2024, 18:29

did you happen to connect git on any other org/project?

faye
24 Jul, 2024, 18:31

Not that I know, no.

Steven
24 Jul, 2024, 18:38

what's the URL for this page? Are there any other failed network requests in the network logs?

faye
24 Jul, 2024, 18:39

let me redo it

faye
24 Jul, 2024, 18:39

The URL:

TypeScript
https://cloud.appwrite.io/v1/vcs/github/callback?code=19551ce42a4d90a2253d&installation_id=53128074&setup_action=update&state=%7B%22projectId%22%3A%22hp-main%22%2C%22success%22%3A%22https%3A%5C%2F%5C%2Fcloud.appwrite.io%5C%2Fconsole%5C%2Fproject-hp-main%5C%2Fsettings%3Falert%3Dinstallation-created%22%2C%22failure%22%3A%22https%3A%5C%2F%5C%2Fcloud.appwrite.io%5C%2Fconsole%5C%2Fproject-hp-main%5C%2Fsettings%3Falert%3Dinstallation-created%22%7D
faye
24 Jul, 2024, 18:40
faye
24 Jul, 2024, 18:41

it's just the document already exists error

Steven
24 Jul, 2024, 18:55

so i see the user and identity so it seems those were created fine...

Steven
24 Jul, 2024, 18:55

installation wasn't created so maybe that's what's throwing the error...but it shouldn't..

faye
24 Jul, 2024, 19:01

I'm guessing what I am getting on cloud is the same issue I get on local

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