-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting clean install #2
Comments
My brain is a bit fryed, so I'll leave a quick response now and give a lot more details tomorrow.
|
The API also doesn't have bash anymore (you'll need to use sh) I'll fix this in the docs tomorrow ^^ |
Here's the docker ps -a output for the relevant containers.
Thanks for the update on the bash to sh change. I was able to run the manage.py commands. Had a couple warnings but seems like it was successful.
|
So I went through the docs (with the few edits described above) to setup a new instance. env_prod.list
docker-prod.override.yml
Command line stepsLast login: Mon Feb 5 16:09:35 on ttys003
$ cd code/OpenEats/
$ cp docs/samples/sample_docker_prod_override.yml docker-prod.override.yml
$ cp docs/samples/sample_env_file.list env_prod.list
// changed prod config here
$ ./quick-start.py
OpenEats quick setup script
==================
Downloading Images
==================
latest: Pulling from openeats/openeats-api
81033e7c1d6a: Already exists
9b61101706a6: Already exists
35b21c1a8b97: Already exists
4856f5aeeec4: Already exists
ce9545e7847c: Already exists
d80e481d51ac: Pull complete
323e818db968: Pull complete
a10b47587185: Pull complete
856a3a0ea4fa: Pull complete
b34e7bb85300: Pull complete
7983213fcba9: Pull complete
176f830e10c8: Pull complete
Digest: sha256:04198c7383dc94ab4058e600df3e7eb92808dff7c4148e5334bdbcc393c98f1c
Status: Downloaded newer image for openeats/openeats-api:latest
latest: Pulling from openeats/openeats-web
88286f41530e: Already exists
d0e8a23136b3: Already exists
5ad5b12a980e: Already exists
2242b3b62e20: Pull complete
b4893a8ec42b: Pull complete
1590df062bc4: Pull complete
Digest: sha256:7eb6e2bff808c777b9678122a3886a50a021bf7a2bdac0520db293a1b9e84a89
Status: Downloaded newer image for openeats/openeats-web:latest
latest: Pulling from openeats/openeats-nginx
550fe1bea624: Pull complete
d421ba34525b: Pull complete
fdcbcb327323: Pull complete
bfbcec2fc4d5: Pull complete
f4e477831a50: Pull complete
78eb27264cdb: Pull complete
9860c8d10396: Pull complete
363d5e15560b: Pull complete
Digest: sha256:d4d6a1a981bb132b82ad8bf2dcfce02d310986a65aaad80b856249a4e07753db
Status: Downloaded newer image for openeats/openeats-nginx:latest
==================
Starting OpenEats
==================
Creating the DB. This may take a minute...
Creating network "openeats_default" with the default driver
Creating openeats_api_1 ... done
openeats_db_1 is up-to-date
Creating openeats_web_1 ... done
Creating openeats_web_1 ...
Creating openeats_nginx_1 ... done
App started. Please wait ~30 seconds for the containers to come online.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a1370569611f openeats/openeats-nginx:latest "./start.sh" 12 seconds ago Up 11 seconds 0.0.0.0:80->80/tcp openeats_nginx_1
11e1a75402f9 openeats/openeats-web:latest "npm start" 13 seconds ago Up 12 seconds openeats_web_1
266b56e00951 openeats/openeats-api:latest "/startup/prod-entry…" 14 seconds ago Up 13 seconds openeats_api_1
2ec095a2afd6 mariadb "docker-entrypoint.s…" About a minute ago Up About a minute (healthy) 3306/tcp openeats_db_1
$ docker-compose -f docker-prod.yml run --rm --entrypoint 'python manage.py createsuperuser' api
Starting openeats_db_1 ... done
Username (leave blank to use 'root'): ryan
Email address:
Password:
Password (again):
Superuser created successfully.
$ docker-compose -f docker-prod.yml run --rm api sh
Starting openeats_db_1 ... done
/code # ./manage.py loaddata course_data.json
Installed 4 object(s) from 1 fixture(s)
/code # ./manage.py loaddata cuisine_data.json
Installed 9 object(s) from 1 fixture(s)
/code # ./manage.py loaddata news_data.json
/usr/local/lib/python3.6/site-packages/django/db/models/fields/__init__.py:1423: RuntimeWarning: DateTimeField News.pub_date received a naive datetime (2010-10-10 13:32:47) while time zone support is active.
RuntimeWarning)
Installed 1 object(s) from 1 fixture(s)
/code # ./manage.py loaddata recipe_data.json
/usr/local/lib/python3.6/site-packages/django/db/models/fields/__init__.py:1423: RuntimeWarning: DateTimeField Recipe.pub_date received a naive datetime (2011-05-21 07:35:32) while time zone support is active.
RuntimeWarning)
/usr/local/lib/python3.6/site-packages/django/db/models/fields/__init__.py:1423: RuntimeWarning: DateTimeField Recipe.update_date received a naive datetime (2011-05-21 07:35:32) while time zone support is active.
RuntimeWarning)
Installed 31 object(s) from 1 fixture(s)
/code # ./manage.py loaddata ing_data.json
Installed 15 object(s) from 1 fixture(s)
/code # exit This all worked for me. Hitting
|
Now on to your specific config.
Hope this helps! |
Ok, I was able to get it working using localhost following the setup guide. I can reach the site using I'm unable to get it to work using I've got env_prod.list set to the following:
When I visit the page I get an error EDIT: I should also mention that my nginx proxy is now pointing to localhost:7000:
|
The reason your domain isn't working is because the index is trying to get the bundle from Getting the IP working, you might need to add that to the allowed hosts. Right now I only have it able to accept one host. That can easily be changed here. For now go ahead and try: |
Thanks for looking into this. I was able to update the env_prod.list to allow access over the IP address by using: |
I fixed the issue with multiple allowed hosts here: open-eats/openeats-api#1 It's basically the same, but if there is a comma, it will treat it like a new host. IE, |
I am getting this error message from my db container: Not sure how to fix it, I tried the steps in this thread. |
That message is is a dead lead. Meaning that it doesn't mean anything. I need to remove it. This thread is quite old so some things in here may not work as described anymore. What specifically isn't working for you?
|
Sorry to open this thread up again. I am struggling to get my server working on the LAN. I am sure it must be something to do with the API URL. but can't fathom what is wrong. I will paste my current env_prod.list below. The default set-up worked fine, but I am trying to set it up with LAN access. With this below set-up I am able to access the home page which renders, but no data is pulled in. Also when I try to go to http://192.168.1.143:8000/admin/ I get a "Bad Request (400)".
Any help would be greatly appreciated. |
I'm attempting to follow the docs for a clean install, but having issues getting things running.
After cloning the repo and changing into the OpenEats directory I'm copying the docker-prod.override.yml and env_prod.list from the samples folder. I'm running a Nginx reverse proxy on port 80 already, so I have updated the docker-prod.override.yml with:
I'm making the following changes to the env_prod.list file:
I've got my nginx file set to redirect as follows:
Creating a super user works as expected, as far as I can tell. I can't seem to browse the django admin interface at 10.0.1.10:8000.
It doesn't seem the access to the api container is working to load recipes, either:
I can load the site at http://10.0.1.10:7000, but no recipes are shown because it's unable to reach the api,
net::ERR_CONNECTION_REFUSED
in the Chrome Console.Visiting the site through the hostname https://myers.isa-geek.org/openeats/ shows
GET https://myers.isa-geek.org/bundle.js net::ERR_ABORTED
in the console.Checking the docker logs I see
2018-02-07 3:25:52 139967316383488 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
repeated in the openeats_db_1 container every few seconds.Sorry for the long post, but I hope that including all this info will show a glaring hole in my configs. I think I should be trying from this repo and not the old one? I'm still playing around trying to get things to work, but if I'm honest I'm a bit lost in the interaction between all the containers and what is appropriate for configs in my scenario. Thanks in advance!
The text was updated successfully, but these errors were encountered: