Accessing ZO in Docker on VM from Different Machine

TLDR V. needed help accessing ZO in Docker on a VM from a different machine. Prabhat provided assistance and suggestions, eventually resolving the issue as a networking problem.

Photo of V.
V.
Fri, 26 May 2023 18:20:08 UTC

Hi Guys, sorry if this is too basic, but what is the enviroment variable for listening url? I ask this, because I wanted to launch ZO in docker on a VM, and access it from a different machine; so its properly starting in a second, i expose it on a different port, but i guess it should not be the problem, I even see that in the logs, HTTP server at: 0.0.0.0:5080, but I cannot access ZO from a different machine, only from localhost. Is this intended maybe? With zincsearch I could access it in this way. Thank you in advance!

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:21:17 UTC

Default port is 5080

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:21:51 UTC

In your case you have it mapped with port 3389. Try accessing it on port 3389

Photo of V.
V.
Fri, 26 May 2023 18:23:38 UTC

Thank you for the quick answer! Yeah, I tried from the outside with 3389, but no response. The localhost:3389 works, the question is, can i access it on like; 192.168.1.15:3389?

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:25:40 UTC

how are you running it? Did you follow the quickstart guide

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:25:52 UTC

```mkdir data docker run -v $PWD/data:/data -e OO_DATA_DIR="/data" -p 5080:5080 \ -e [email protected] -e OO_ROOT_USER_PASSWORD=Complexpass#123 \ public.ecr.aws/zinclabs/openobserve:latest```

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:26:14 UTC

zincobserve

Photo of V.
V.
Fri, 26 May 2023 18:26:14 UTC

Yes, and the localhost works perfectly!

Photo of V.
V.
Fri, 26 May 2023 18:26:39 UTC

I just want to access it from a different URL than localhost:5080

Photo of V.
V.
Fri, 26 May 2023 18:26:54 UTC

Sorry if I made the question confusing :slightly_smiling_face:

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:29:36 UTC

How did you manage to get the port 3389 ?

Photo of V.
V.
Fri, 26 May 2023 18:29:52 UTC

-p 3389:5080

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:30:09 UTC

ok

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:30:23 UTC

are you running on mac?

Photo of V.
V.
Fri, 26 May 2023 18:30:33 UTC

debian

Photo of V.
V.
Fri, 26 May 2023 18:30:55 UTC

The port is not important i just want to use 192.168.1.1:5080, not localhost

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:31:13 UTC

Are you able to access any other service on this machine from outside. The way you are accessing should have just worked

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:32:36 UTC

as long as the IP address is correct too

Photo of V.
V.
Fri, 26 May 2023 18:33:31 UTC

Yes, zincsearch worked, grafana worked, etc. Hmm.

Photo of V.
V.
Fri, 26 May 2023 18:33:56 UTC

Thank you! I will continue with nginx proxy or the linux binary then

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:34:44 UTC

Have you tried the binary directly instead of the container? or is container must?

Photo of V.
V.
Fri, 26 May 2023 18:38:37 UTC

Not yet, but I will try it. In the meantime I tested it on ubuntu22 server and same. outside, not worked, localhost worked :slightly_smiling_face:

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:41:05 UTC

If you could try the binary from

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:41:08 UTC

and let me know.

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:41:21 UTC

I will be around for a while before heading to sleep.

Photo of V.
V.
Fri, 26 May 2023 18:51:49 UTC

Ohhh. I think i have old cpu under the VM, error message is "Illegal instruction".

Photo of V.
V.
Fri, 26 May 2023 18:52:00 UTC

Interesting, but under docker it could run?

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:52:19 UTC

You must have picked the wrong binary to download

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:52:28 UTC

there are a couple of them.

Photo of Prabhat
Prabhat
Fri, 26 May 2023 18:53:13 UTC

If you are on intel/amd then pick

Photo of V.
V.
Fri, 26 May 2023 18:54:35 UTC

Unfortunately this was the one i picked. Intel Xeon is the cpu

Photo of V.
V.
Fri, 26 May 2023 18:55:28 UTC

Look, I think lets stop now, I will test the docker and binary in a different enviroment next week,

Photo of V.
V.
Fri, 26 May 2023 18:55:33 UTC

Thank you for your help!

Photo of V.
V.
Sun, 28 May 2023 13:32:38 UTC

Hello, Thank you for your help, after a fresh start, I was able to access it through the exact docker port I wanted. Currently I still figuring what was the problem (probably network issue on my side...), but it is working!

Photo of Prabhat
Prabhat
Sun, 28 May 2023 13:34:48 UTC

:joy: . Welcome to networking. Thanks for letting us know.