openui icon indicating copy to clipboard operation
openui copied to clipboard

Sharing doesn't work? : Error! Error: Internal Server Error: Unable to locate credentials

Open ahakobyan79 opened this issue 9 months ago • 4 comments

Installed on Ubuntu 22 server. Everything seem to be working fine.

The only change i've made is I've changed the 127.0.0.1 to 10.10.10.200 IP in main.py file

Everything loads and works fine. But when I try to share a result I see this: image

and when i visit the link, i see an empty UI with this error:

image

ahakobyan79 avatar May 06 '24 17:05 ahakobyan79

Sharing only happens in fly.io currently. It requires an S3 compatible storage configuration. I can add instructions on how to configure this for self hosting.

vanpelt avatar May 08 '24 10:05 vanpelt

please make guide for fly

rossman22590 avatar Jul 01 '24 04:07 rossman22590

can u show how to deploy on fly?

rossman22590 avatar Jul 12 '24 04:07 rossman22590

Sorry @rossman22590 been swamped with various things. There's a fly.toml file in the backend directory. You'll need to modify that to be the domain you end up using on fly and create a github client_id and client_secret if you want to have github login. Then you'll need to set any secrets for api providers you want to use using flyctl, i.e.

flyctl secrets set OPENAI_API_KEY=xxxx

To deploy, you can run npm run deploy from the frontend directory, that will build for the hosted version. I might have missed something but that's the general idea.

vanpelt avatar Jul 12 '24 20:07 vanpelt