Open lonnietc opened 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
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
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 ?
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.
Did you check that ufw (firewall) rules were updated?
i have some issue
also when trying chat using console client, i got error like i screenshot in my issue
@hugolgst would you be willing to move the repo from GitHub to a docker hub repo?
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.
name: Publish Docker image on: release: types: [published] jobs: push_to_registry: name: Push Docker image to Docker Hub runs-on: latest steps:
I think we can try on a PR
@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
@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?
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
``
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
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.