I cannot add a openai api key
jrkassis
HOBBYOP

15 days ago

I have this error in the logs.

When i try to add my openai api key it just always shows connection failed.

My other api keys are working perfectly, and i double checked that the key is correct.

Attachments

Solved$10 Bounty

Pinned Solution

The error shown in the image you provided is related to n8n's encryption key being changed or lost. Have you changed N8N_ENCRYPTION_KEY ? If it wasn't set, n8n generates one automatically and saves it to ~/.n8n folder. So, was that folder deleted?

You can read more about this here: https://docs.n8n.io/hosting/configuration/configuration-examples/encryption-key/

3 Replies

Status changed to Open Railway 15 days ago


The error shown in the image you provided is related to n8n's encryption key being changed or lost. Have you changed N8N_ENCRYPTION_KEY ? If it wasn't set, n8n generates one automatically and saves it to ~/.n8n folder. So, was that folder deleted?

You can read more about this here: https://docs.n8n.io/hosting/configuration/configuration-examples/encryption-key/


jrkassis
HOBBYOP

15 days ago

It was working fine yesterday and today it just decided to stop working. I didn't touch it at all.

Where do I find said folder to check the variable.


jrkassis

It was working fine yesterday and today it just decided to stop working. I didn't touch it at all. Where do I find said folder to check the variable.

Since the encryption key is lost, can you start a new project? It's the cleanest way at this point. If you go with that route, make sure to set a value to N8N_ENCRYPTION_KEY .


Status changed to Solved brody 15 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...