Is it normal that no accounts are showing up to connect?
Hi everyone,
I'm using Twenty CRM Self Hosted, and I noticed that no accounts are showing up to connect. Is this normal, or am I missing something? Could anyone guide me on where to find the information on how to properly link accounts? Any help would be appreciated! Thanks in advance!
I'm using Twenty CRM Self Hosted, and I noticed that no accounts are showing up to connect. Is this normal, or am I missing something? Could anyone guide me on where to find the information on how to properly link accounts? Any help would be appreciated! Thanks in advance!

29 Replies
Thx @thomast , I did that also activated SCOPES on Google Console, should I insert the codes of SCOPES in the docker too? In the guide I don't see specific instructions. Thx



UPDATE
I added this code to the docker-compose.yml file:
# Configurazione Google OAuth
CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE> AUTH_GOOGLE_CLIENT_ID: ${AUTH_GOOGLE_CLIENT_ID}
AUTH_GOOGLE_CLIENT_SECRET: ${AUTH_GOOGLE_CLIENT_SECRET}
AUTH_GOOGLE_CALLBACK_URL: ${AUTH_GOOGLE_CALLBACK_URL}
AUTH_GOOGLE_APIS_CALLBACK_URL: ${AUTH_GOOGLE_APIS_CALLBACK_U>
and got this (see attachment), did I configured it right?

Still encountering issues, this one is to be fixed with Google and has nothing to do with Twenty CRM right? Twenty Configuration is just fine like this?

is your worker running? It is the one handling the import of emails. If running, you should look for errors in your logs
Yes it is running, I got this

you have to add all required env variables to worker container also. Error seems to indicate you dont have google client ID on worker.
https://twenty.com/developers/section/self-hosting/setup#create-a-project-in-google-cloud
I inserted the google client id, something else is wrong i guess


Please double check your env variables values
What does your worker logs say ?
I s this part missing maybe?
https://github.com/twentyhq/twenty/blob/main/packages/twenty-server/src/engine/core-modules/auth/utils/get-google-apis-oauth-scopes.ts#L4-L10
Where I am suppose to add this code?
https://twenty.com/developers/section/self-hosting/setup#configure-scopes
export const getGoogleApisOauthScopes = () => {
return [
'email',
'profile',
'https://www.googleapis.com/auth/gmail.readonly',
'https://www.googleapis.com/auth/calendar.events',
'https://www.googleapis.com/auth/profile.emails.read',
'https://www.googleapis.com/auth/gmail.send',
];
};
GitHub
twenty/packages/twenty-server/src/engine/core-modules/auth/utils/ge...
Building a modern alternative to Salesforce, powered by the community. - twentyhq/twenty
Should not theses are generic google scopes agnostic of your google app
At least that's the ones we will request access to in your google app
These are the worker logs
This part gives errors:
I am in test mode, these Sync Failed errors are cause of that, or even in test mode syncronization should work so the issues is somewhere else?


It seems right this way, right?

env variables values should be correct. I am also using a subdomain, so in the URL I inserted thata specific subdomain.
@Prastoin @thomast @dialnco For my understanding being able to log in through an added test account should also Sync Calendar and Email, other no added test account are not even allowed to enter.
I double checked CLIENT ID and CLIENT SECRET, they are correct.
There must be a misconfiguration on the Twenty Installation then.
variables are set on the "server" container. You need to copy them to the "worker" container also.
Do you mean in the docker-compose.yml file under worker section?
This is my file right now.



But now not only isn not sync Google button has disappear😣
I manged getting it back and having it work in some way. I got 5-6 contacts imported but i have hundreds contacts in those emails and it's been hours now and importing is still processing without results besides the 5-6 contacts soon imported.
I have the doubt emails are not imported only calendar events, cause I don't see any emails.
Any idea?

After 4-5 hours they both sync, but the feeling is the sync havent' chatch all contacts in the email we got 50 contacts, but we got much more thatn 50 emails how so?
Why so long?
Why not all contacts and email?
Any suggestion?

@Raphaël are there special rules for contacts?
You can update what behavior you want for the contact creation in the settings. The default is: we don't create contacts for non work emails (gmail, outlook ...), we don't create contacts for people within your company and we only create contacts for people you've sent an email to
It might take long if you have a lot of emails to import. We schedule the imports not to trigger google api's rate limiting