-
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
New Install - Database not populated and API not communicating? #151
Comments
Go into your database container Then go into your api container
Then you can populate it with sample data using
And finally restart your docker containers. |
The first command doesn't seem to do what I expected:
I'm having the same issues. I've been attempting to set up and following directions, the openeats.sql database isn't created. Running quickstart a second time creates an empty openeats.sql (0 bytes).
I can connect to the container with
Any thoughts? I keep erasing everything and staring fresh to get the same issue. Updated: Changed mysql to correct command using the standard password |
The first command should be
Did you get it working them? When you get the access denied it is because the password is wrong. |
No, I keep trying to erase all the containers and start over to get a db instance with the correct password...
I clone the repo...
I create the env_prod.list
Then creating the docker-prod.override.yml...
I am then starting everything with
After this, there is no openeats.sql stat base int he OpenEats folder. I then attempt to start mysql on the db container, as shown in my previous post it fails to connect with the default password of 'root'. I presume this is why the database is never created, then the backup process creates an empty one when running QuickStart again? Do I have the correct default password? |
Are you also deleting your docker volumes? Something like Try and switch mysql image to See my comment here #143 (comment) about running it from scratch. |
I was not deleting the volume... I was not aware of volumes, I have more to learn about Docker! :) Your comment helped and I was able to get into mysql with the default password and create the database. So, now I just have to get the API to talk to the front end... Thanks! |
@rlglenn Did you get the install to work? |
I was able to create the database and populate it, but the API is still a no-go and the website is basically blank. Also, I'm not using docker if that wasn't clear. This is all on one instance of a BSD jail. |
Are you following the guide on running without docker? https://github.com/open-eats/OpenEats/blob/master/docs/Running_the_App_Without_Docker.md Can you post the instructions you have written to this point so we can try to reproduce and test? It may also be working and just have no data. Can you navigate to the /admin page? |
I did follow the guide, but some things didn't work so I had to improvise, if I recall correctly. The database is populated so the loaddata scripts work, and I could navigate to admin login page, but not log in. I will attempt to recreate since it has been so long since I last tried and will post it all here. |
In the best effort to keep diversions to a minimum, I will post what I did to set up, and only go as far as when I started to experience problems: Jail setup
Install Dependencies
Database
At this point there is no data in the database, of course. Continuing onto Set up the OpenEats-api from https://github.com/open-eats/OpenEats/blob/master/docs/Running_the_App_Without_Docker.md I had to change the group and exec path in /opt/openeats/openeats-api/base/gunicorn_start.sh and add a line to collect the pid. No systemd so had to setup rc.d script
Since the (.) command isn't available in csh, use bash
Install the dependecies After installing above ,when I run Even tough I followed the steps on Running_the_App_Without_Docker.md. After investigating, I see that node-sass is not installed
There is also a warning/err that peer deps ajv, react and fsevents are missing. So at this point, should I clone node-sass from https://github.com/sass/node-sass.git and try building them again? What about the other 3 deps it is complaining about? After we answer that, I will go on to posting the apache web config and report what happens then. Keep in mind that this is NAT'ed and the port is forwarded. I can also post config file contents if need be. |
New install on FreeBSD 12.2 jail. I'm not sure if it is a permissions problem or environment variable problem or both or something else altogether, can browse to first page, but nothing populated and /admin and /api get 404's. /browse, /random, /recipes and /news are basically blank besides header and footer. /login shows textboxes and button, but no action. It looks like css and js work, just not API. Logs show no errors or point to anything useful. Database has tables but no sample data (I assumed it had dummy recipes, etc. but none show.) Can anyone point me in a direction? How can I otherwise populate database to troubleshoot in that direction? Is there a schema or dump I can use? I would like to provide documentation to steps I took once completed for everyone's edification.
The text was updated successfully, but these errors were encountered: