question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Starts, but nothing displayed

See original GitHub issue

Hi,

I have started visualizer with this…

docker run --name=visualizer -it -d -p 9000:9000 -e HOST=10.2.10.34 -e PORT=9000 -v /var/run/docker.sock:/var/run/docker.sock manomarks/visualizer

and it shows up correctly as running, but has an undefined error (investigations show this is due to process.env.DOCKER_HOST being empty)

10.2.10.34 is the IP of our swarm master, although as below the master runs visualizer on swarm-node-02 at 10.2.10.44

90aa79e4b705        manomarks/visualizer           "npm start"              3 minutes ago       Up 3 minutes        8080/tcp, 10.2.10.44:9000->9000/tcp   swarm-node-02/visualizer

npm info it worked if it ends with ok
npm info using npm@2.14.4
npm info using node@v4.1.2
npm info prestart swarmVisualizer@0.0.1
npm info start swarmVisualizer@0.0.1

> swarmVisualizer@0.0.1 start /app
> node server.js

undefined

This is on Docker 1.12, Swarm 1.2.5, deployed via boot2docker 1.12.0.

The end result is a screen identical to that in #19

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tibmeistercommented, Sep 7, 2016

Yep, and just found out what is going on, the HOST variable must match what is being used in the browser. I was using HOST=IP and using FQDN in the browser URL. Once I switched the HOST variable using FQDN it’s working. So, that’s an interesting thing…

0reactions
johnharris85commented, Oct 20, 2016

undefined is crappy coding on my part. I just print the contents of the DOCKER_HOST environment variable as my of a PR a while ago and forgot to remove the line. It doesn’t need to be set so the undefined you guys are seeing here is irrelevant / red herring.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Computer That Turns on but Displays Nothing
Try to wake your computer by jiggling the mouse, pressing a key on the keyboard, or quickly pressing the Power button. If your...
Read more >
Don't Panic! 8 Solutions to Fix PC Turns On but No Display
Computer Turns On But no Display FAQ · Check the Power Supply, Laptop Charger and Battery · Disconnect All External Devices, Unplug All...
Read more >
Why Do I Have No Display On Boot? How To Fix It
The most common reason why you have No Display on Boot is faulty cables and loose connections. Cable damage is hard to gauge...
Read more >
[Fixed] Computer Turns On But No Display on Boot
The primary reason you get no display on your PC could be damaged or loosely connected cables. Other reasons may include incorrect display ......
Read more >
[SOLVED] PC turns on but no display - 8 troubleshooting steps
Fix 1: Check your monitor · Fix 2: Check your HDMI cable · Fix 3: Try another monitor/display · Fix 4: Connect monitor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found