#PaLM not showing

1 messages · Page 1 of 1 (latest)

wooden briar
#

I've put auth.json in the /api/data path in the container already but according to the log it still can't find the auth.json

supple acorn
#

In the .env file you could try to set it as user provided and load it from the UI, you’ll at least know if the the json is correct if you try this...

cosmic willow
#

Also remember to restart the node workers

#

Sometimes can be a problem when the file didn’t exist upon first run

wooden briar
#

my json file is correct but when i put it /api/data it doesnt work

cosmic willow
#

So just confirming

  1. The full path is /api/data/auth.json
  2. PALM_KEY in your .env is blank?
  3. You are running the latest version (check /package.json has 0.4.6)
wooden briar
#

i left PALM_KEY blank cuz idk what to set

cosmic willow
#

Yes I think it has to be completely empty or commented out

wooden briar
#

so how do I fix it

cosmic willow
#

Sorry I was just checking that you’ve reviewed all of the above and you’ve restarted both the frontend and backend scripts?

wooden briar
#

I think restarting the docker container restarts both of them

cosmic willow
#

Yea it does. Have you also tried rebuilding the docker container?

#

Not just re-running but rebuilding

wooden briar
#

so I should try to redeploy the stacks?

cosmic willow
#

You’ve lost me. I’ve got to head off anyway. Someone might be able to help later. In the meantime I suggest rebuilding your docker container using the docker compose —rm parameter

#

The next step after that would be to open terminal in the docker and confirm the files are there. Could be a file map thing

#

Chatgpt could probably direct you on how to do that.

wooden briar
#

I've tried to delete the whole stack and re-deployed it and pushed the auth.json to the path already

cosmic willow
#

Failing that still, you’ll need to compile all your OS/setup information and post it here to see if someone can replicate the problem

#

Okay off for real now. Have a goood night/day

green folio
wooden briar
#

ok let me try it

#
2023-05-20T09:06:33.326453557Z No 'auth.json' file (service account key) found in /api/data/ for PaLM models
green folio
#

you have PALM_KEY=PALM_KEY

wooden briar
#

yes

green folio
#

it should be completely removed

wooden briar
#

then?

green folio
#

PALM_KEY only exists to allow user_provided json from the frontend

wooden briar
#

but after removing it I still can't see PALM in the endpoint

green folio
#

so you can delete the PALM_KEY line

#

this may be due to building from docker image, if you are doing that

#

then you should set PALM_KEY=user_provided

wooden briar
#

so I can fix it by rebuilding it?

green folio
#

yes

#

or just load up the json file in the frontend

#

it's easy

wooden briar
#

before I build it I have to put the auth.json in the /api/data?

green folio
#

yes

wooden briar
#

ok let me try it

green folio
#

for solidarity, i will try it too

#

it worked for me. i will rebuild just in case