Juniper / open-nti

Open Network Telemetry Collector build with open source tools
Apache License 2.0
233 stars 93 forks source link

Basic install problem #86

Open jcbarth opened 8 years ago

jcbarth commented 8 years ago

Why would this be happening?

cbarth-mbp:open-nti cbarth$ ./docker.start.sh Use docker compose file : docker-compose.yml WARNING: The LOCAL_PORT_EVENT variable is not set. Defaulting to a blank string. WARNING: The IMAGE_NAME variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_STATSD variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_NGINX variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_GRAFANA variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_INFLUXDB variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_INFLUXDB_API variable is not set. Defaulting to a blank string. WARNING: The LOCAL_DIR_DASHBOARD variable is not set. Defaulting to a blank string. WARNING: The LOCAL_DIR_DATA variable is not set. Defaulting to a blank string. WARNING: The CONTAINER_NAME variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_JTI variable is not set. Defaulting to a blank string. WARNING: The LOCAL_PORT_ANALYTICSD variable is not set. Defaulting to a blank string. ERROR: The Compose file './docker-compose.yml' is invalid because: opennti.ports is invalid: Invalid port ":3000", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] input-jti.ports is invalid: Invalid port ":50000/udp", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] input-jti.ports is invalid: Invalid port ":50020/udp", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] input-syslog.ports is invalid: Invalid port ":6000/udp", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] opennti.ports is invalid: Invalid port ":80", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] opennti.ports is invalid: Invalid port ":8083", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] opennti.ports is invalid: Invalid port ":8086", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol] opennti.ports is invalid: Invalid port ":8125/udp", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]

dgarros commented 8 years ago

Hi @jcbarth what kind of shell are you running ? Looks like the variables are not properly loaded Damien

jcbarth commented 8 years ago

OSX

Here is the docker-compose.yml file the error complains about.

cbarth-mbp:open-nti cbarth$ pwd /Users/cbarth/open-nticbarth-mbp:open-nti cbarth$ cat docker-compose.yml

input-jti: image: juniper/open-nti-input-jti container_name: opennti_input_jti environment:

input-syslog: image: juniper/open-nti-input-syslog container_name: opennti_input_syslog environment:

opennti: image: $IMAGE_NAME container_name: $CONTAINER_NAME volumes:

-Colby

On Oct 17, 2016, at 7:34 PM, Damien notifications@github.com wrote:

Hi @jcbarth what kind of shell are you running ? Looks like the variables are not properly loaded Damien

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

dgarros commented 8 years ago

Hi

this file looks OK to me I think the issue is with the file open-nti.params It looks like your laptop doesn't like it and doesn't load the variables as a result

Can you try to run this command, inside the open-nti directory

source ./open-nti.params

Thanks Damien

jcbarth commented 8 years ago

cbarth-mbp:open-nti cbarth$ pwd /Users/cbarth/open-nti cbarth-mbp:open-nti cbarth$ source ./open-nti.params cbarth-mbp:open-nti cbarth$ cat open-nti.params

! /bin/bash

Image and container

export IMAGE_NAME='juniper/open-nti' export CONTAINER_NAME='opennti_con' export DOCKER_COMPOSE_FILE='docker-compose.yml'

Local ports that will be redirected to the Open NTI

Startup will fail if some ports are already in use

export LOCAL_PORT_JTI=50000 export LOCAL_PORT_NA=50010 export LOCAL_PORT_ANALYTICSD=50020 export LOCAL_PORT_STATSD=8125 export LOCAL_PORT_EVENT=6000 export LOCAL_PORT_GRAFANA=3000 export LOCAL_PORT_INFLUXDB=8083 export LOCAL_PORT_INFLUXDB_API=8086 export LOCAL_PORT_NGINX=80 export LOCAL_PORT_SSH=22222

Local directories that will be mapped into the container

export LOCAL_DIR_DATA='data' export LOCAL_DIR_LOG='logs' export LOCAL_DIR_DB='db' export LOCAL_DIR_TESTS='tests' export LOCAL_DIR_DASHBOARD='dashboards' cbarth-mbp:open-nti cbarth$

-Colby

On Oct 18, 2016, at 9:51 AM, Damien notifications@github.com wrote:

source ./open-nti.params

dgarros commented 8 years ago

Colby

What shell are you using ? the issue is clearly that all variables in open-nti.params are not properly loaded when you run ./docker.start.sh

Please can you run this command

ps -o comm $$
jcbarth commented 8 years ago

cbarth-mbp:open-nti cbarth$ ps -o comm $$ COMM -bash

-Colby

On Oct 18, 2016, at 11:53 AM, Damien notifications@github.com wrote:

ps -o comm $$

3fr61n commented 7 years ago

Hi @jcbarth

Are you still having this shell variables issue on osX? is your containers and opennti up and running?

Regards

evasilew commented 2 years ago

@jcbarth, Hello! Please let me know what happened, did you solve the problem?