Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Docker compose startup problems #151

Open
lonnietc opened this issue Feb 17, 2021 · 15 comments
Open

Docker compose startup problems #151

lonnietc opened this issue Feb 17, 2021 · 15 comments
Labels
kind:bug Something isn't working

Comments

@lonnietc
Copy link

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):

  • OS: Ubuntu 20.04 (AMD)

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

@lonnietc lonnietc added the kind:bug Something isn't working label Feb 17, 2021
@lonnietc
Copy link
Author

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
Copy link
Author

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
olivia_1 | _ _ _
olivia_1 | ___ | () () __ _
olivia_1 | / _ | | \ \ / / |/ | olivia_1 | | (_) | | |\ V /| | (_| | olivia_1 | \___/|_|_| \_/ |_|\__,_| 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.org_1 | _ _ _ olivia-ai.org_1 | ___ | (_)_ _(_) __ _ olivia-ai.org_1 | / _ \| | \ \ / / |/ _ |
olivia-ai.org_1 | | (
) | | |\ V /| | (| |
olivia-ai.org_1 | ___/|
|| _/ ||_,|
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
Copy link
Member

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
Copy link

Outstep commented Feb 20, 2021

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
Copy link
Contributor

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

@surya4crowde
Copy link

i have some issue

@surya4crowde
Copy link

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

@A-Yamout
Copy link
Contributor

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

@hugolgst
Copy link
Member

As discussed in #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
Copy link
Contributor

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:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository:
tag_with_ref: true

@hugolgst
Copy link
Member

I think we can try on a PR

@A-Yamout
Copy link
Contributor

@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
Copy link
Contributor

A-Yamout commented Mar 2, 2021

@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
Copy link

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
Copy link

galamdring commented Jan 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants