Skip to content
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

Couldn't find env file! #2

Open
mohammadmahboubeh opened this issue Dec 25, 2020 · 21 comments
Open

Couldn't find env file! #2

mohammadmahboubeh opened this issue Dec 25, 2020 · 21 comments

Comments

@mohammadmahboubeh
Copy link

Pleasure day!
I got this error message when trying to nosh running:
Capture

@mohammadmahboubeh
Copy link
Author

mohammadmahboubeh commented Dec 26, 2020

Trying to run docker-nosh_webserver1:

Please advise,

Capture

@shihjay2
Copy link
Owner

Can you verify that the env file is indeed missing in the docker-nosh/nosh directory? If you did a git clone as instructed, the file should have been included (as seen here); if it is indeed missing, it might be something related to Powershell but since I'm not a Windows user, it's only a guess.

@mohammadmahboubeh
Copy link
Author

For env file I solved it. But when I finished the installation and looking to docker webserver is trying to start. Kindly see the pervious picture.

Thanks

@shihjay2
Copy link
Owner

See update on commit 4e1b6bc (you can restart the entire install routine or see the changes in the commit on your nginx.conf file and then restart the webserver.

@mohammadmahboubeh
Copy link
Author

Thanks I will do and let you know...

@mohammadmahboubeh
Copy link
Author

Now the webserver is working!
How can get in the the nosh web application?
Capture

@mohammadmahboubeh
Copy link
Author

I tried localhost!!
Capture

@shihjay2
Copy link
Owner

Looks like you're missing the ./.nosh_app_key (generated in the init_win.sh); confirm that it's in the root directory.

@mohammadmahboubeh
Copy link
Author

I think it's missing...
Capture

@mohammadmahboubeh
Copy link
Author

By the way I am using Ubuntu inside windows so I used ./init.sh

@shihjay2
Copy link
Owner

You need to use ls -a since it is a dot file.

@mohammadmahboubeh
Copy link
Author

Here you are
Capture

@shihjay2
Copy link
Owner

What is the content of the file (sudo cat .nosh_app_key)? Is it empty?

@mohammadmahboubeh
Copy link
Author

Capture

@mohammadmahboubeh
Copy link
Author

I tried to install it again and I got this...
Capture

@shihjay2
Copy link
Owner

You might want to reboot your ubuntu VM; I can't tell if you didn't shut down docker when you re-installed it.

@mohammadmahboubeh
Copy link
Author

I just reboot the Ubuntu and the same problem! Should I shutdown docker before re-installing the nosh?

@shihjay2
Copy link
Owner

shihjay2 commented Dec 26, 2020 via email

@mohammadmahboubeh
Copy link
Author

After installation I typed docker-compose up and got this:
Capture

@shihjay2
Copy link
Owner

Identified a problem with the mariadb docker image (unable to create InnoDB database) and also identified a problem with the init script (that is why you didn't have an app key). These will be fixed soon.

@shihjay2
Copy link
Owner

I think I figured out the problem - the database volume was already present and encrypted and when you created a new install - there was mismatch hence the database error. To restart (will wipe all existing data) use the command docker-compose down -v, then use the ./init.sh command; updated the init scripts to fix the problem with key generation in commit 46dea2f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants