Giter VIP home page Giter VIP logo

Comments (6)

cimnine avatar cimnine commented on May 24, 2024

Please provide some more information:

  • The output of docker-compose version
  • The output of docker version
  • The output of git rev-parse HEAD
  • The command you launched to start the project

from netbox-docker.

Preskton avatar Preskton commented on May 24, 2024

Hi, I'm encountering the same issue, also on Windows.

  • The output of docker-compose version --> docker-compose version 1.16.1, build 6d1ac219
  • The output of docker version --> Docker version 17.09.0-ce, build afdb6d4
  • The output of git rev-parse HEAD --> e4ddfc925ca439beaed64385cf7bc28bff6a16b9
  • The command you launched to start the project:
❯ docker-compose up -d

netboxdocker_postgres_1 is up-to-date
Starting netboxdocker_netbox_1 ...
Starting netboxdocker_netbox_1 ... done
Starting netboxdocker_nginx_1 ...
Starting netboxdocker_nginx_1 ... done

❯ docker-compose port nginx 80
ERROR: No container found for nginx_1

Logs from netboxdocker_nginx_1:

2017/12/01 04:23:21 [emerg] 1#1: host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
nginx: [emerg] host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
2017/12/01 06:30:01 [emerg] 1#1: host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
nginx: [emerg] host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
2017/12/01 06:31:37 [emerg] 1#1: host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
nginx: [emerg] host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
2017/12/01 06:31:39 [emerg] 1#1: host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28
nginx: [emerg] host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:28

Logs from netboxdocker_netbox_1:

standard_init_linux.go:185: exec user process caused "no such file or directory"
standard_init_linux.go:185: exec user process caused "no such file or directory"

Thanks in advance.

pd

from netbox-docker.

cimnine avatar cimnine commented on May 24, 2024

Did you build the image or pull it from Docker Hub? Can you run docker-compose pull?

It looks like you ran into line encoding issues: https://forums.docker.com/t/standard-init-linux-go-175-exec-user-process-caused-no-such-file/20025/4

from netbox-docker.

cimnine avatar cimnine commented on May 24, 2024

I haven't heard back in almost a week, so I'll close this now.

from netbox-docker.

cmchuron avatar cmchuron commented on May 24, 2024

I'm also having this issue, running on Windows (runs fine in Linux.)
I've taken the steps above in this string, and while I suspect you're right, it relates to the line encoding issues, I don't know how to fix it, or which files are causing the problem.

c:\Docker\netbox-docker>docker-compose --version
docker-compose version 1.22.0, build f46880fe

c:\Docker\netbox-docker>docker --version
Docker version 18.06.1-ce, build e68fc7a

c:\Docker\netbox-docker>git rev-parse HEAD
f1ebd4d

c:\Docker\netbox-docker>docker-compose logs -f nginx
Attaching to netbox-docker_nginx_1
nginx_1 | 2018/10/04 19:05:39 [emerg] 1#1: host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:29
nginx_1 | nginx: [emerg] host not found in upstream "netbox" in /etc/netbox-nginx/nginx.conf:29
netbox-docker_nginx_1 exited with code 1

c:\Docker\netbox-docker>docker-compose ps
The system cannot find the path specified.
Name Command State Ports

netbox-docker_netbox-worker_1 python3 /opt/netbox/netbox ... Up
netbox-docker_netbox_1 /opt/netbox/docker-entrypo ... Exit 1
netbox-docker_nginx_1 nginx -c /etc/netbox-nginx ... Exit 1
netbox-docker_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
netbox-docker_redis_1 docker-entrypoint.sh sh -c ... Up 6379/tcp

from netbox-docker.

cmchuron avatar cmchuron commented on May 24, 2024

Update: I opened and saved the Dockefile and docker-compose.yml files in notepod++, and issue is resolved.

from netbox-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.