-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
No Host DNS record found. Add the following to /etc/hosts:127.0.0.1 project.loc #595
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
None of the variables are set, did you copy |
Also this is mixed
You don't have to chown anything. Use your local uesrs' uid and gid and add this to the |
Well, i gave it a try with a windows setup, having the same problem here, after i set in the windows host file 127.0.0.1 joomla.loc it still keeps telling me i have to add that to my hosts file ... And yes, i copied the env-example over to .env, whether it was under linux or with windows. I had a problem first with Docker for Windows, because HyperV kept me from adding port 80, so i set port 80 to 8080... BUT i am using the new edge version of docker for windows (experimental), since the previous one would ask me for login / password to share the discdrive with docker. Since i do not have a password, because i us 2FA; i couldn't continue with installation. Found later the new branch, which will work without samba; therefore might be that part of the problem? Docker for Windows, according to your documentation, handles the uid and gid for itself, but will it still, if it does NOT use samba? See here: docker/for-win#616 (comment) Thanks for getting back, i almost gave up hope on this one. Best Here the versions: |
Judging by these errors:
Something is wrong with your setup. It doesn't even show any logs from any Docker container. So I suggest you troubleshoot this first. |
I think this might also relevant: I found error on browser console:
|
I'm having the same problem reported. |
The problem is active if you use vpn. Disconnect vpn service and all will be work |
I'm having the same issue and disabling my VPN connection did not fix it. |
You should enter the /etc/hosts of your user not from devilbox container , check if is that is the problem? |
@ahmedch1, I cannot image a |
This issue already got quite messy. @creactiv you seem to have several local issues:
@dbrw If you have specific issues, please open up a separate bug report @alexfd7 / @bbeale Please create separate bug reports with your specific details. @ Everyone: Also worth to mention: Devilbox is currently at v1.8.1 (#747), which has a lot of bug fixes and additions. |
ISSUE TYPE
Checklist
.env
file is attacheddocker-compose.override.yml
is attached (if it exists) (not customized)cfg/
dir are attached (if customized) (not customized)docker-compose logs
andlog/
output is added (see below)OS / ENVIRONMENT
SUMMARY
Not able to add new project to a newly installed devilbox while devilbox or ubuntu does not honor hosts file. hosts file bears the 127.0.0.1 projects entry, but devilbox still claims, i would have to add this entry.
STEPS TO REPRODUCE
Install current Ubuntu 16.04
create user / group devilbox
install docker ce (following devilbox/docker instructions)
install docker compose (following devilbox/docker instructions)
install git
clone devilbox in /opt
cp example-env .env
edit /opt/devilbox/ .env as enclosed
su devilbox
cd /opt/devilbox/data/www
mkdir project
cd project
mkdir htdocs
exit
cd /etc
nano hosts
add: 127.0.0.1 project.loc
save
docker-compose up bind httpd php mysql
browse to intranet scrreen
menue: vhosts:
then i will get this:
No Host DNS record found. Add the following to /etc/hosts:127.0.0.1 project.loc
EXPECTED BEHAVIOUR
it just works as intended and i can add new projects to devilbox and hosts file... :-)
ACTUAL BEHAVIOUR
Whatever i do, and i setup various times and tried different solutions found in world wide web, and all ended up with this error, i couldn't get Ubuntu to do auto dns'ing; i messed up several times and now i am sorta broke :-(
OTHER INFORMATION
Start command
$ docker-compose up bind http php mysql
File and user permissions (Linux & MacOS)
Hint: when i sudo devilbox and try to start docker-compose up there i will get this:
Couldn'T connect to docker daemon at http+docker://localhost - is it running?
User devilbox IS being in docker group as well.
With root user docker-compose up works
$ ls -la root@devilbox:/opt/devilbox# ls -al total 240 drwxr-xr-x 16 root root 4096 Jun 20 06:10 . drwxr-xr-x 5 root root 4096 Jun 20 06:08 .. drwxr-xr-x 2 root root 4096 Jun 20 06:07 autostart drwxr-xr-x 3 devilbox devilbox 4096 Jun 20 06:44 backups drwxr-xr-x 2 root root 4096 Jun 20 06:07 bash drwxr-xr-x 2 devilbox devilbox 4096 Jun 20 06:47 ca drwxr-xr-x 57 root root 4096 Jun 20 06:07 cfg -rw-r--r-- 1 root root 4651 Jun 20 06:07 CHANGELOG.md drwxr-xr-x 2 root root 4096 Jun 20 06:07 compose -rw-r--r-- 1 root root 2770 Jun 20 06:07 CONTRIBUTING.md drwxr-xr-x 3 root root 4096 Jun 20 06:07 data drwxr-xr-x 3 root root 4096 Jun 20 06:07 .devilbox -rw-r--r-- 1 root root 743 Jun 20 06:07 docker-compose.override.yml-example -rw-r--r-- 1 root root 14314 Jun 20 06:07 docker-compose.yml drwxr-xr-x 20 root root 4096 Jun 20 06:07 docs -rw-r--r-- 1 root root 2445 Jun 20 06:07 .editorconfig -rw-r--r-- 1 root root 16643 Jun 20 06:45 .env -rw-r--r-- 1 root root 16622 Jun 20 06:07 env-example drwxr-xr-x 8 root root 4096 Jun 20 06:07 .git drwxr-xr-x 3 root root 4096 Jun 20 06:07 .github -rw-r--r-- 1 root root 3837 Jun 20 06:07 .gitignore -rw-r--r-- 1 root root 1064 Jun 20 06:07 LICENSE.md drwxr-xr-x 4 root root 4096 Jun 20 06:47 log drwxr-xr-x 9 root root 4096 Jun 20 06:44 mod -rw-r--r-- 1 root root 63099 Jun 20 06:07 README.md -rw-r--r-- 1 root root 86 Jun 20 06:07 shell.bat -rwxr-xr-x 1 root root 59 Jun 20 06:07 shell.sh drwxr-xr-x 5 root root 4096 Jun 20 06:07 .tests -rw-r--r-- 1 root root 9808 Jun 20 06:07 .travis.yml -rwxr-xr-x 1 root root 2265 Jun 20 06:07 update-docker.sh -rw-r--r-- 1 root root 1043 Jun 20 06:07 UPDATING.md
Queestion: Is it correct to chown the project files & directories to the devilbox user? Usually i'd use www-data for user/group when placing files in webserverdirectory.
So what?
Thanks for pushing me in the right direction ;-)
Best
env.txt
Update: i can ping now project.loc in Ubuntu and get an answer:
But still error: No Host DNS record found. Add the following to /etc/hosts/: 127.0.0.1 project.loc :-(
The text was updated successfully, but these errors were encountered: