devika icon indicating copy to clipboard operation
devika copied to clipboard

root: ERROR : Failed to list Ollama models:

Open gabrie opened this issue 11 months ago • 6 comments

Each time I start Devika with "python devika.py"

24.03.27 15:25:10: root: ERROR : Failed to list Ollama models: 24.03.27 15:25:12: root: INFO : Booting up... This may take a few seconds 24.03.27 15:25:12: root: INFO : Initializing Devika... 24.03.27 15:25:12: root: INFO : Initializing Prerequisites Jobs... 24.03.27 15:25:12: root: INFO : Loading sentence-transformer BERT models... 24.03.27 15:25:16: root: INFO : BERT model loaded successfully.

  • Serving Flask app 'devika'
  • Debug mode: off

I could still start Bun, but obviously the webui will stuck with no function.

gabrie avatar Mar 27 '24 07:03 gabrie

same issue here while Ollama is running in the background.

RenNgu avatar Mar 29 '24 09:03 RenNgu

I am running ollama dockerized and I had to do a pull through curl:

curl http://localhost:11434/api/pull -d '{ "name": "llama2" }'

After it has pulled you can see it with curl localhost:11434/api/tags

It may take a while to pull the model so check the output of your ollama instance wherever its running

After I could see it using api/tags I was able to select it from the dropdown menu

GustavHenning avatar Mar 29 '24 11:03 GustavHenning

same issue. @GustavHenning Could you please let me know when should I run the curl command? Before "python devika.py" of after it?

FlyingLoong avatar Mar 31 '24 13:03 FlyingLoong

Before. You should be able to see it with the tags command after you have pulled it @FlyingLoong

GustavHenning avatar Mar 31 '24 17:03 GustavHenning

I got a "ACCESS_DENIED" error after ran the "curl localhost:11434/api/tags" I tried to add current user to ollama group "sudo usermod -aG ollama $USER", but it doesn't work :(

FlyingLoong avatar Apr 01 '24 02:04 FlyingLoong

"meta http-equiv="refresh" content="0;url=https://7rx90003.ibosscloud.com/ibreports/ibp/bp.html?bu=http://127.0.0.1:11434/api/tags&bc=The+requested+URL+cannot+be+accessed.&ip=xx.xx.xxx.xxx&er=ERR_ACCESS_DENIED"

here is the error message

FlyingLoong avatar Apr 01 '24 02:04 FlyingLoong

fetch the latest changes. already fixed

ARajgor avatar Apr 03 '24 19:04 ARajgor