olivia-ai / olivia

💁‍♀️Your new best friend powered by an artificial neural network
https://olivia-ai.org
MIT License
3.68k stars 353 forks source link

Docker compose startup problems #151

Open lonnietc opened 3 years ago

lonnietc commented 3 years ago

ERROR: Docker compose

Error response from daemon: Head https://docker.pkg.github.com/v2/olivia-ai/olivia/olivia/manifests/latest: no basic auth credentials

Describe the bug On a fresh install of Ubuntu 20.04 with Docker and Docker-Compose installed I get a "no basic autho credentials" Error

To Reproduce go into olivia directory docker-compose up

Desktop (please complete the following information):

Any solution to this error would be appreciated as I also tried it with a direct docker pull and get the same error.

lonnietc commented 3 years ago

Hi All,

I was able to go thorough the "Installation" steps to get it partially working but no web interface yet even with Docker-Compose Up.

I am a bit confused why the need for all of these install steps. Would it not be better to have a simple public repo that does not depend up logging into Github and generating a TOKEN for it?

Installation Login to Github

To get a personal accsess token from Github go to Setings>Developer settings>Personal access tokens

Click on Genererate new Token and name it you MUST have read and write packages ticked on. Then click Generatre new token

Go into home directory

$ cd ~

Make TOKEN.txt file

$ sudo nano TOKEN.txt

Paste Token in to file then save

Login to Github (Note: change USERNAME to Gthub username)

cat ~/TOKEN.txt | docker login https://docker.pkg.github.com -u USERNAME --password-stdin

lonnietc commented 3 years ago

I used "docker-compose up" and get:

~/olivia$ docker-compose up Creating network "olivia_default" with the default driver Creating olivia_olivia-ai.org_1 ... done Creating olivia_olivia_1 ... done Attaching to olivia_olivia_1, olivia_olivia-ai.org_1 olivia1 | olivia_1 | | () (_) _ olivia1 | / | | \ \ / / |/ _` | olivia1 | | () | | |\ V /| | (_| | olivia1 | \/||| _/ ||_,_| olivia_1 | olivia_1 | hey olivia_1 | Your authentication token is: (removed by me) olivia_1 | Save it, you won't be able to get it again unless you generate a new one. olivia_1 | olivia-ai.org1 | olivia-ai.org_1 | | () (_) _ olivia-ai.org1 | / | | \ \ / / |/ _` | olivia-ai.org1 | | () | | |\ V /| | (_| | olivia-ai.org1 | \/||| _/ ||_,_| olivia-ai.org_1 | olivia-ai.org_1 | Loading the neural network from res/locales/en/training.json olivia-ai.org_1 | Loading the neural network from res/locales/de/training.json olivia-ai.org_1 | Loading the neural network from res/locales/fr/training.json olivia-ai.org_1 | Loading the neural network from res/locales/es/training.json olivia-ai.org_1 | Loading the neural network from res/locales/ca/training.json olivia-ai.org_1 | Loading the neural network from res/locales/it/training.json olivia-ai.org_1 | Loading the neural network from res/locales/tr/training.json olivia-ai.org_1 | Loading the neural network from res/locales/nl/training.json olivia-ai.org_1 | Loading the neural network from res/locales/el/training.json olivia-ai.org_1 | olivia-ai.org_1 | Server listening on the port 80... olivia_1 | Loading the neural network from res/locales/en/training.json olivia_1 | Loading the neural network from res/locales/de/training.json olivia_1 | Loading the neural network from res/locales/fr/training.json olivia_1 | Loading the neural network from res/locales/es/training.json olivia_1 | Loading the neural network from res/locales/ca/training.json olivia_1 | Loading the neural network from res/locales/it/training.json olivia_1 | Loading the neural network from res/locales/tr/training.json olivia_1 | Loading the neural network from res/locales/nl/training.json olivia_1 | Loading the neural network from res/locales/el/training.json olivia_1 | olivia_1 | Server listening on the port 8080...

which seems like it is running, but when I access:

http://localhost:80 or http://localhost:8080

I get "404 page not found"

Shouldn't I get the Olivia web interface? Cheers

hugolgst commented 3 years ago

Hi. localhost:8080 is the API so if you get a 404 it is normal. However the 80 is not normal, do you have any console logs from the browser ?

Outstep commented 3 years ago

Hello, I was running it from the Docker-Compose

On my Ubuntu 20.04 system it seems to show that everything is up and running just fine and I do not know where to get any browser records for it.

There are no messages except that it is listening on port 80 and port 8080.

Not sure what to try now.

Maybe I can try to delete the old docker images and some some fresh pull to see if that fixes it.

A-Yamout commented 3 years ago

Did you check that ufw (firewall) rules were updated?

surya4crowde commented 3 years ago

i have some issue

surya4crowde commented 3 years ago

also when trying chat using console client, i got error like i screenshot in my issue

A-Yamout commented 3 years ago

@hugolgst would you be willing to move the repo from GitHub to a docker hub repo?

hugolgst commented 3 years ago

As discussed in https://github.com/olivia-ai/olivia/discussions/150 I think we could keep GitHub packages and add Docker hub. I am currently a bit busy, if someone wants to PR the repository to add a GitHub Action I'd be glad to merge it.

A-Yamout commented 3 years ago

Would this work? (IDK how to use GitHub actions)

name: Publish Docker image on: release: types: [published] jobs: push_to_registry: name: Push Docker image to Docker Hub runs-on: latest steps:

hugolgst commented 3 years ago

I think we can try on a PR

A-Yamout commented 3 years ago

@lonnietc @hugolgst I found a fix for the no valid AUTH credentials but not for the 404 not found

To get a personal access token from Github go to Setings>Developer settings>Personal access tokens

Click on Generate new Token and name it you MUST have read and write packages ticked on. Then click Generate new token

Replace Token with the Token that you just made.

$ export PAT=TOKEN

Login to GitHub (Note: change USERNAME to GitHub username)

$ echo $PAT | docker login docker.pkg.github.com -u USERNAME --password-stdin

I also am putting a PR for this right now, but when I did docker compose up I got a 404 not found and I don't know I fix for that.

Steps to reproduce: Download source code and run docker compose, there no errors in terminal but when I go to my web browser and got to localhost I get 404 Error not found. Using Windows 10 with Ubuntu 20.04 as a subsystem with docker engine v20.10.2

Tried with : Microsoft Edge Brave

A-Yamout commented 3 years ago

@hugolgst I pulled Proxmox out of the dust and got up Ubuntu 18.04, Ubuntu 20.04, windows 10 with subsystem, and Alpine VM's working (clean install). After trying to install Olivia on all of them only Ubuntu 18.04 works, I do not know why but it is working only on Ubuntu 18.04. Is there any debug info you want/need?

josecelano commented 3 years ago

I also have the 404 error:

Docker version 20.10.8, build 3967b7d
docker-compose version 1.29.2, build 5becea4c
Ubuntu 20.04.3 LTS

Installation steps:


git clone git@github.com:olivia-ai/olivia.git
cd olivia
docker-compose up
``
galamdring commented 2 years ago

it seems there is nothing being hosted at / try hitting one of the api get endpoints, like api/coverage the web frontend is in another repo github.com/olivia-ai/olivia-ai.org