influxdata / sandbox Goto Github PK
View Code? Open in Web Editor NEWA sandbox for the full TICK stack
License: MIT License
A sandbox for the full TICK stack
License: MIT License
https://docs.influxdata.com/platform/install-and-deploy/deploying/sandbox-install
git clone [email protected]:influxdata/sandbox.git
is not work,
change it please on correct link
Cloning into 'sandbox'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I'm trying to use this sandbox to try out the TICK stack, the other repository "TICK-stack" seems quite outdated with v1.3.
Anyway on a vanilla system it fails:
[root@portainer sandbox-master]# ./sandbox up Using latest, stable releases Spinning up Docker Images... If this is your first time starting sandbox this might take a minute... Building influxdb Step 1/2 : ARG INFLUXDB_TAG ERROR: Service 'influxdb' failed to build: Please provide a source image with
fromprior to commit
Following message appears (just for Google results)
documentation failed to build: no matching manifest for ++unknown in the manifest list entries raspbian
Fixed by moving Alpine from 3.4 to 3.6 in documentation Dockerfile, as all of the other images already support linux/arm.
The default configuration of the Splunk Forwarder uses 8089 for local control. This leads to being unable to start the sandbox on my work laptop where splunk is enabled and where I cannot reconfigure the port it uses. Would there be a reasonable alternative choice for the UDP port other than 8089?
I've tried to run the default sandbox app on both Windows 10 and Ubuntu 18.04.2 with the same result. Is this a problem with the sandbox app or my usage?
I clone and type ./sandbox up
telegraf_1 | 2019-06-06T13:30:24Z I! Starting Telegraf 1.10.4
telegraf_1 | 2019-06-06T13:30:24Z I! Using config file: /etc/telegraf/telegraf.conf
telegraf_1 | 2019-06-06T13:30:24Z I! Loaded inputs: docker cpu system influxdb syslog mqtt_consumer
telegraf_1 | 2019-06-06T13:30:24Z I! Loaded aggregators:
telegraf_1 | 2019-06-06T13:30:24Z I! Loaded processors:
telegraf_1 | 2019-06-06T13:30:24Z I! Loaded outputs: influxdb
telegraf_1 | 2019-06-06T13:30:24Z I! Tags enabled: host=telegraf-getting-started
telegraf_1 | 2019-06-06T13:30:24Z I! [agent] Config: Interval:5s, Quiet:false, Hostname:"telegraf-getting-started", Flush Interval:5s
telegraf_1 | 2019-06-06T13:30:24Z W! [outputs.influxdb] when writing to [http://influxdb:8086]: database "telegraf" creation failed: Post http://influxdb:8086/query: dial tcp 172.19.0.2:8086: connect: connection refused
telegraf_1 | 2019-06-06T13:30:25Z E! [inputs.influxdb]: Error in plugin: [url=http://influxdb:8086/debug/vars]: Get http://influxdb:8086/debug/vars: dial tcp 172.19.0.2:8086: connect: connection refused
Successfully tagged influx-sandbox_documentation:latest
Creating influx-sandbox_influxdb_1 ... done
Creating influx-sandbox_documentation_1 ... done
Creating influx-sandbox_kapacitor_1 ... done
Creating influx-sandbox_telegraf_1 ... done
Creating influx-sandbox_chronograf_1 ... done
Opening tabs in browser...
./sandbox: line 91: xdg-open: command not found
To fix i had to install sudo apt install xdg-utils
Hello,
I have installed docker toolbox on my Mac Pro.
I cloned this sandbox and did ./sandbox up
InfluxDB and Telegrap containers are running successfully
But Chronograph failed with the below error [and I am absolutely certain that there is no Chronograph running and i made sure that there is no port conflict]
level=error msg="Unable to open boltdb; is there a chronograf already running? invalid argument" component=boltstore
And Kapacitor failed with the below error
*[run] 2017/04/08 19:53:26 E! open server: open service storage.Service: open boltdb @ "/var/lib/kapacitor/kapacitor.db": invalid argument
What am i doing wrong?
Please advice.
Opening tabs in browser...
[15790:15790:1109/205555.741431:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
I'm trying to run the sandbox through the Docker Toolbox on Windows 7 and everything goes as it should until opening the tabs in the browser.
There are many browsers but Docker doesnt seem to find any.
Any ideas?
After running docker-compose up
or sandbox up
and trying to add a new source I'm getting this error message.
level=error msg="Error message Error contacting source" component=server http_status =400
When 1.x is running on Ubuntun 20 ARM7, and the localhost:3010 failed. Do you have any clue? Thanks.
My environment is Ubuntu 16.04 on Cloud.
When I try to type './sandbox up' command, this error was shown,
Opening tabs in browser...
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://localhost:8888'
How can I fix it?
Please give me advice ~
Hey guys,
I am running Ubuntu 20.04 and I cloned https://github.com/influxdata/sandbox.git
for installation. I installed docker version 26.1.3, build b72abbb and docker-compose version 1.29.2, build 5becea4c.
Logs of chronograf give this:
./sandbox logs chronograf
Using latest, stable releases
Following the logs from the chronograf container...
Attaching to sandbox_chronograf_1
chronograf_1 | time="2024-05-19T13:24:21Z" level=error msg="Unable to create bolt clientUnable to open boltdb; is there a chronograf already running? open /var/lib/chronograf/chronograf-v1.db: permission denied"
sandbox_chronograf_1 exited with code 1
The documentation works fine and is available in the browser. Maybe someone know what to do.
Hello We are trying to setup basic auth for new user with read only access for chronograf but we not able to create new user with readonly access. Any suggestion or approach
We are using .htpasswd
to setup admin basic auth
Our htpasswd
ravit:$apr1$x45D.lah$ybTTur0jfCkVkVCQkZ3U10
manshu:$apr1$ZLXOnX8o$4WtOYcfulYxSX/ikz/1AQ.
Our docker-compose.yml
version: '3'
services:
influxdb:
# Full tag list: https://hub.docker.com/r/library/influxdb/tags/
build:
context: ./images/influxdb/
dockerfile: ./${TYPE}/Dockerfile
args:
INFLUXDB_TAG: ${INFLUXDB_TAG}
image: "influxdb"
# volumes:
# Mount for influxdb data directory
# - ./influxdb/data:/var/lib/influxdb
# Mount for influxdb configuration
# - ./influxdb/config/:/etc/influxdb/
ports:
# The API for InfluxDB is served on port 8086
- "17273:8086"
- "17274:8082"
# UDP Port
- "17275:8089/udp"
telegraf:
# Full tag list: https://hub.docker.com/r/library/telegraf/tags/
build:
context: ./images/telegraf/
dockerfile: ./${TYPE}/Dockerfile
args:
TELEGRAF_TAG: ${TELEGRAF_TAG}
image: "telegraf"
environment:
HOSTNAME: "telegraf-getting-started"
# Telegraf requires network access to InfluxDB
links:
- influxdb
volumes:
# Mount for telegraf configuration
- ./telegraf/:/etc/telegraf/
# Mount for Docker API access
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- influxdb
kapacitor:
# Full tag list: https://hub.docker.com/r/library/kapacitor/tags/
build:
context: ./images/kapacitor/
dockerfile: ./${TYPE}/Dockerfile
args:
KAPACITOR_TAG: ${KAPACITOR_TAG}
image: "kapacitor"
volumes:
# Mount for kapacitor data directory
# - ./kapacitor/data/:/var/lib/kapacitor
# Mount for kapacitor configuration
- ./kapacitor/config/:/etc/kapacitor/
# Kapacitor requires network access to Influxdb
links:
- influxdb
ports:
# The API for Kapacitor is served on port 9092
- "17276:9092"
chronograf:
# Full tag list: https://hub.docker.com/r/library/chronograf/tags/
build:
context: ./images/chronograf
dockerfile: ./${TYPE}/Dockerfile
args:
CHRONOGRAF_TAG: ${CHRONOGRAF_TAG}
image: "chrono_config"
hostname: thor
environment:
RESOURCES_PATH: "/usr/share/chronograf/resources"
# GOOGLE_CLIENT_ID: "232136951997-lddjksgah8q49u9qivo1kf3hdp57ihkp.apps.googleusercontent.com"
# GOOGLE_CLIENT_SECRET: "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"
# TOKEN_SECRET: "Super5uperUdn3verGu355!"
GOOGLE_DOMAINS: "thor.com"
HTPASSWD: "/tmp/.htpasswd"
HOST: "0.0.0.0"
PORT: "17277"
PUBLIC_URL: "http://thor.com:8888"
# volumes:
# Mount for chronograf database
# - ./chronograf/data/:/var/lib/chronograf/
links:
# Chronograf requires network access to InfluxDB and Kapacitor
- influxdb
- kapacitor
ports:
# The WebUI for Chronograf is served on port 8888
- "17277:17277"
depends_on:
- kapacitor
- influxdb
- telegraf
volumes:
- ./auth:/tmp/
documentation:
build:
context: ./documentation
ports:
- "17278:3000"
Reference: https://docs.influxdata.com/chronograf/v1/administration/managing-influxdb-users/
I try to receive MQTT data and store it in a local influxdb.
However, when receiving the MQTT data I get the following error when running telegraf --debug
:
2018-06-22T09:37:20Z E! [outputs.influxdb]: when writing to [http://127.0.0.1:8086]: Post http://127.0.0.1:8086/write?consistency=any&db=iotree: dial tcp 127.0.0.1:8086: connect: connection refused
2018-06-22T09:37:20Z E! Error writing to output [influxdb]: could not write any address
Sometimes when this error occurs I am not able to attach to the influxdb cli and it says 'no container found'.
Telegraf config file (removed sensitive information, e.g. passwords):
[agent]
interval = "5s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "5s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = "$HOSTNAME"
omit_hostname = false
[[outputs.influxdb]]
urls = ["http://127.0.0.1:8086"]
database = "<removed>"
username = ""
password = ""
retention_policy = ""
write_consistency = "any"
timeout = "5s"
# Read metrics from MQTT topic(s)
[[inputs.mqtt_consumer]]
## MQTT broker URLs to be used. The format should be scheme://host:port,
## schema can be tcp, ssl, or ws.
servers = ["tcp://<removed>:1883"]
## MQTT QoS, must be 0, 1, or 2
qos = 0
## Connection timeout for initial connection in seconds
connection_timeout = "30s"
## Topics to subscribe to
topics = [
"<removed>/devices/+/up"
]
# if true, messages that can't be delivered while the subscriber is offline
# will be delivered when it comes back (such as on service restart).
# NOTE: if true, client_id MUST be set
persistent_session = false
# If empty, a random client ID will be generated.
client_id = ""
## username and password to connect MQTT server.
username = "<removed>"
password = "<removed>"
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
## Data format to consume.
## Each data format has its own unique set of configuration options, read
## more about them here:
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "json"
name_suffix = "_tree"
tag_keys = [
"<removed>"
]
Host:
Hi
I have just cloned the repo and run the ./sandbox up
script.
But in looking at Chronograf, I see the following:
time="2018-03-23T17:33:06Z" level=error msg="Unable to open boltdb; is there a chronograf already running? invalid argument" component=boltstore
I'm running Docker version 18.01.0-ce, build 03596f5
on Mac OS X 10.12.6
Kapacitor also gives and error, which is likely related:
ts=2018-03-23T17:33:06.239Z lvl=error msg="encountered error" service=run err="open server: open service *storage.Service: open boltdb @ \"/var/lib/kapacitor/kapacitor.db\": invalid argument" run: open server: open service *storage.Service: open boltdb @ "/var/lib/kapacitor/kapacitor.db": invalid argument
PS C:\Program Files\docker\sandbox> ./sandbox up
C:\WINDOWS\system32\cmd.exe /c ""C:\Program Files\docker\sandbox\sandbox.bat" up"
Spinning up Docker Images...
If this is your first time starting sandbox this might take a minute...
WARNING: The TYPE variable is not set. Defaulting to a blank string.
Building influxdb
ERROR: Cannot locate specified Dockerfile: .//Dockerfile
Opening tabs in browser...
Press any key to continue . . .
PS C:\Program Files\docker\sandbox>
It appears environment variable TYPE is not set as noted by others. If that is the case what would be the best way to address this issue?
.yml files has the following:
dockerfile: ./${TYPE}/Dockerfile
.env file has no setting for TEMP
.env-latest has the following;
export TYPE=latest
.env-nightly
export TYPE=nightly
Would it make a difference if I clone the repo. I downloaded a zipfile.
I think making it easy to use the influx repl
shell for running flux qeuries against the sandbox would be nice. I propose extending the ./sandbox influxdb
command with a repl
argument.
$ ./sandbox influxdb repl
Entering the influx repl...
Get your flux on!
>
we should use a .src file to pre-define the chronograf connection to influx to avoid things like this: #21
Everybody runs influx along grafana and the port 3000 is already taken in this configuration. The sandbox choose to use the same one
I'm following the TICK stack getting setup documentation. Executing ./sandbox up
fails with the following message:
=> CANCELED ...
failed to parse stage name "kapacitor:kapacitor:latest": invalid reference format
The thing to pay attention to here is kapacitor:kapacitor:latest. That is likely because of the .env which adds the image name to the tag variables.
Replacing the contents of the .env from
TELEGRAF_TAG=telegraf:latest
INFLUXDB_TAG=influxdb:1.8
CHRONOGRAF_TAG=chronograf:latest
KAPACITOR_TAG=kapacitor:latest
to
TELEGRAF_TAG=latest
INFLUXDB_TAG=1.8
CHRONOGRAF_TAG=latest
KAPACITOR_TAG=latest
fixed the issue
To properly start docker container to listen UDP inputs, needs a fix in docker-compose.yml.
In influxdb
service or conteiner, today has this:
ports:
# The API for InfluxDB is served on port 8086
- "8086:8086"
- "8082:8082"
# UDP Port
- "8089:8089"
but you need specify the port bind as UDP using:
ports:
# The API for InfluxDB is served on port 8086
- "8086:8086"
- "8082:8082"
# UDP Port
- "8089:8089/udp"
Starting sandbox fails:
(libzebra27_32) C:\src\sandbox-master>.\sandbox.bat up
Spinning up Docker Images...
If this is your first time starting sandbox this might take a minute...
Creating network "sandbox-master_default" with the default driver
Pulling influxdb (influxdb:latest)...
latest: Pulling from library/influxdb
cc1a78bfd46b: Pull complete
6861473222a6: Pull complete
7e0b9c3b5ae0: Pull complete
ef1cd6af9147: Pull complete
fe4486e82c7c: Pull complete
d5f280025ad5: Pull complete
7b3aaccfccbb: Pull complete
73454d972cf2: Pull complete
Digest: sha256:4c782a464f03c9714b9d5456cc6057f4cd4a81bafc75b9b604bc27090c565036
Status: Downloaded newer image for influxdb:latest
Pulling telegraf (telegraf:latest)...
latest: Pulling from library/telegraf
cc1a78bfd46b: Already exists
6861473222a6: Already exists
7e0b9c3b5ae0: Already exists
fd32666cd9df: Pull complete
6051dfec002a: Pull complete
48e1f0115574: Pull complete
b951392656f3: Pull complete
Digest: sha256:5b35480bb51d1a0d64337b2962ee61343a4ea18b6fe8b550f9f55cd55fa5beb4
Status: Downloaded newer image for telegraf:latest
Pulling kapacitor (kapacitor:latest)...
latest: Pulling from library/kapacitor
cc1a78bfd46b: Already exists
6861473222a6: Already exists
7e0b9c3b5ae0: Already exists
8a1f5b873fc9: Pull complete
99903b6932cd: Pull complete
7c82c74d6076: Pull complete
bc4c9d5ceca9: Pull complete
671595e19621: Pull complete
Digest: sha256:9c8a70caee1eb4da5945118e72616784218634c9b9232c53a7446965c7e70e13
Status: Downloaded newer image for kapacitor:latest
Building chronograf
Step 1/3 : FROM chronograf:latest
latest: Pulling from library/chronograf
f2aa67a397c4: Pull complete
d7349ac161b0: Pull complete
cdb814294d81: Pull complete
e50f8e713e55: Pull complete
49801660c059: Pull complete
322481d528b1: Pull complete
Digest: sha256:de3dcc09a389a58404f55ed1e27d60985bea8e693a15f3aa961f3ac26d45d8b7
Status: Downloaded newer image for chronograf:latest
---> b2c319a46e0f
Step 2/3 : ADD ./sandbox.src ./usr/share/chronograf/resources/
---> 9b7368ad341e
Step 3/3 : ADD ./sandbox-kapa.kap ./usr/share/chronograf/resources/
---> 146eab95262b
Successfully built 146eab95262b
Successfully tagged chrono_config:latest
Building documentation
Step 1/6 : FROM alpine:3.4
3.4: Pulling from library/alpine
81033e7c1d6a: Pull complete
Digest: sha256:2532609239f3a96fbc30670716d87c8861b8a1974564211325633ca093b11c0b
Status: Downloaded newer image for alpine:3.4
---> c7fc7faf8c28
Step 2/6 : EXPOSE 3010:3000
---> Running in 8a72805c2b44
Removing intermediate container 8a72805c2b44
---> a2166104207f
Step 3/6 : RUN mkdir -p /documentation
---> Running in c42d77154622
Removing intermediate container c42d77154622
---> 51857bf7c4f6
Step 4/6 : COPY builds/documentation /documentation/
---> a10226283072
Step 5/6 : COPY static/ /documentation/static
---> 50ffb227ab9f
Step 6/6 : CMD ["/documentation/documentation", "-filePath", "/documentation/"]
---> Running in 414cd40ffd39
Removing intermediate container 414cd40ffd39
---> 057de3f529b6
Successfully built 057de3f529b6
Successfully tagged sandbox-master_documentation:latest
Building ifql
Step 1/3 : FROM quay.io/influxdb/ifqld:v0.0.6
v0.0.6: Pulling from influxdb/ifqld
ff3a5c916c92: Pull complete
43a600e0bf2a: Pull complete
1b80a6b885d5: Pull complete
a7451e1c13c9: Pull complete
Digest: sha256:b160d93593cd430b7ea827a9e2bcebaf05fa0c64c419953d1b5f5ed85b83bc14
Status: Downloaded newer image for quay.io/influxdb/ifqld:v0.0.6
---> 2bf8f89cb44f
Step 2/3 : ADD ./wait_for_influxdb.sh ./
---> e896fc733331
Step 3/3 : ENTRYPOINT ["./wait_for_influxdb.sh"]
---> Running in ad6777af4a09
Removing intermediate container ad6777af4a09
---> 9cef38935cb2
Successfully built 9cef38935cb2
Successfully tagged ifqld_wait:latest
Creating sandbox-master_influxdb_1 ... done
Creating sandbox-master_documentation_1 ... done
Creating sandbox-master_kapacitor_1 ...
Creating sandbox-master_ifql_1 ...
Creating sandbox-master_kapacitor_1 ... done
Creating sandbox-master_ifql_1 ... done
ERROR: for sandbox-master_telegraf_1 Cannot create container for service telegraf: b'Mount denied:\nThe source path "\\var\\run\\docker.sock:/var/run/docker.sock"\nis not a valid Windows path'ERROR: for telegraf Cannot create container for service telegraf: b'Mount denied:\nThe source path "\\var\\run\\docker.sock:/var/run/docker.sock"\nis not a valid Windows path'
ERROR: Encountered errors while bringing up the project.
Opening tabs in browser...
C:\src\sandbox-master>docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:12:48 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:22:38 2018
OS/Arch: linux/amd64
Experimental: false
The instructions say to configure Kapacitor by selecting the it from the gear icon in the sidebar. Doesn't look like it's in there anymore.
After cloning the repo, I tried to run ./sandbox up
and encounter the follow errors. It looks like 1.5.0
is missing in https://hub.docker.com/r/library/influxdb/tags/
.
Pulling influxdb (influxdb:1.5.0)...
ERROR: manifest for influxdb:1.5.0 not found
Is that possible to push the influxdb 1.5.0
to docker hub? Thank you!
I left sandbox running up for 24 hours (forgot to shut it down) on Windows 10 machine.
It generated ~40 GB of TSM files, each 1.9MB in size.
Is this expected behaviour?
...
Creating sandbox_documentation_1 ... done
Creating sandbox_influxdb_1 ... done
Creating sandbox_kapacitor_1 ...
Creating sandbox_telegraf_1 ... error
Creating sandbox_ifql_1 ...
Creating sandbox_kapacitor_1 ... done
ERROR: for sandbox_telegraf_1 Cannot create container for service telegraf: b'Mount denied:\nThe source path "\\var\\run\\dockerCreating sandbox_ifql_1 ... done
ERROR: for telegraf Cannot create container for service telegraf: b'Mount denied:\nThe source path "\\var\\run\\docker.sock:/var/run/docker.sock"\nis not a valid Windows path'
Encountered errors while bringing up the project.
while running the Sanbox up facing an issue with telegraf saying:
23T16:59:05Z E! [inputs.docker] Error in plugin: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.21/info": dial unix /var/run/docker.sock: connect: permission denied
2022-01-23T16:59:05Z E! [inputs.docker] Error in plugin: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.21/containers/json?filters=%7B%22status%22%3A%5B%22running%22%5D%7D&limit=0": dial unix /var/run/docker.sock: connect: permission denied
i think it has something to do with https://www.influxdata.com/blog/docker-run-telegraf-as-non-root/
Scenario:
git clone
./sandbox up
http://localhost:3000/
Problem:
Current:
https://docs.influxdata.com/chronograf/v1.2
Proposed:
https://docs.influxdata.com/chronograf/v1.3/
To note:
Successfully tagged ifqld_wait:latest
Starting sandbox_influxdb_1 ... error
Starting sandbox_documentation_1 ...
ERROR: for sandbox_influxdb_1 Cannot start service influxdb: driver failed programming external connectivity on endpoint sandbox_influxdb_1 (c992128e20a2fea5a442188491ca8572bfba637de09ac0a760f69ff1064117d2): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8089:tc
Starting sandbox_documentation_1 ... error
ERROR: for sandbox_documentation_1 Cannot start service documentation: driver failed programming external connectivity on endpoint sandbox_documentation_1 (9dc04234166b3f15c93182acc946e9dbec3cae4ddfede17b53ff517546007436): Error starting userland proxy: mkdir /port/tcp:
0.0.0.0:3010:tcp:172.19.0.3:3000: input/output error
ERROR: for influxdb Cannot start service influxdb: driver failed programming external connectivity on endpoint sandbox_influxdb_1 (c992128e20a2fea5a442188491ca8572bfba637de09ac0a760f69ff1064117d2): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:8089:tcp:172.19.0
.2:8089: input/output error
ERROR: for documentation Cannot start service documentation: driver failed programming external connectivity on endpoint sandbox_documentation_1 (9dc04234166b3f15c93182acc946e9dbec3cae4ddfede17b53ff517546007436): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:30
10:tcp:172.19.0.3:3000: input/output error
ERROR: Encountered errors while bringing up the project.
Hi
I am using ubuntu.
While starting, I had to change chronograf version to 1.3.5.0 in yaml file.
Now I don't get error while starting, i.e. ./sandbox up.
But I can't access from UI, localhost:9000 / localhost:8888.
Regards
Prashant
System: Mac OS X Sierra (10.12.6)
Docker version:
Steps to reproduce:
./sandbox up
./sandbox logs chronograf
This is the error message in the logs:
chronograf_1 | time="2017-08-05T03:37:55Z" level=error msg="Unable to open boltdb; is there a chronograf already running? invalid argument" component=boltstore
sandbox_chronograf_1 exited with code 1
I can see that the other containers started successfully, but chronograf
is missing:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fe71b439589f telegraf:1.3.1 "/entrypoint.sh te..." 2 minutes ago Up 2 minutes 8092/udp, 8125/udp, 8094/tcp sandbox_telegraf_1
a8a506fe50ea influxdb:1.2.4 "/entrypoint.sh in..." 2 minutes ago Up 2 minutes 0.0.0.0:8086->8086/tcp sandbox_influxdb_1
8e44e24b6935 sandbox_documentation "/documentation/do..." 2 minutes ago Up 2 minutes 0.0.0.0:3000->3000/tcp sandbox_documentation_1
Chronograf and Kapacitor say
/entrypoint.sh: line 12: /usr/bin/chronograf: cannot execute binary file: Exec format error
sandbox_documentation is built; however, during execution it says:
Cannot start service documentation: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/documentation/documentation\": permission denied"
Hi,
I'm trying to follow the getting started documentation. I followed the instructions and ran ./sandbox up
the web site start up OK but then when navigating to the "Hosts Lists" I get an "Unable to get hosts error"
Looking at the containers I see sandbox_kapacitor_1 has stopped.
looking at the logs I see the following
2021/02/28 23:26:25 Using configuration at: /etc/kapacitor/kapacitor.conf
ts=2021-02-28T23:26:25.666Z lvl=info msg="kapacitor starting" service=run version=1.5.8 branch=HEAD commit=873d93b7377bf1c7bfbcd508e4ea6a6213997aff
ts=2021-02-28T23:26:25.666Z lvl=info msg="go version" service=run version=go1.15.5
ts=2021-02-28T23:26:25.666Z lvl=info msg="listing Kapacitor hostname" source=srv hostname=a727262bc6f9
ts=2021-02-28T23:26:25.670Z lvl=info msg="listing ClusterID and ServerID" source=srv cluster_id=cd642cef-dbc1-4d4b-901d-6a4bb6b5f67d server_id=3dcab9b5-011c-40aa-bc28-f7243de239fc
ts=2021-02-28T23:26:25.670Z lvl=info msg="opened task master" service=kapacitor task_master=main
ts=2021-02-28T23:26:25.677Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:26.340Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:26.904Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:27.783Z lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get \"http://influxdb:8086/ping\": dial tcp 172.20.0.3:8086: connect: connection refused"
ts=2021-02-28T23:26:30.239Z lvl=info msg="closed HTTP service" service=http
ts=2021-02-28T23:26:30.239Z lvl=info msg="closed HTTP service" service=http
ts=2021-02-28T23:26:30.239Z lvl=info msg="closed task master" service=kapacitor task_master=main
ts=2021-02-28T23:26:30.239Z lvl=error msg="encountered error" service=run err="open server: open service *influxdb.Service: failed to link subscription on startup: invalid response: code 401: body: {\"code\":\"unauthorized\",\"message\":\"unauthorized access\"}"
run: open server: open service *influxdb.Service: failed to link subscription on startup: invalid response: code 401: body: {"code":"unauthorized","message":"unauthorized access"}
Docker version 18.06.1-ce installed
I am doing a git clone of the sandbox, then running sandbox up from inside a command prompt and get the following error:
D:\Source\Repos\influxtestbench\sandbox>sandbox up
Spinning up Docker Images...
If this is your first time starting sandbox this might take a minute...
WARNING: The TYPE variable is not set. Defaulting to a blank string.
Building influxdb
ERROR: Cannot locate specified Dockerfile: .//Dockerfile
Opening tabs in browser...
The dockerfile it is looking for is inside the latest||nightly folders, but still does not work.Help please.
It would be nice to have a flag, that indicates that TICK stack should be automatically restarted e.g. after reboot (as it happens when one runs: docker run --restart always ...
). For now I'm using cron.
Or maybe just set restart always
policy as a default, then it is easy I guess - just adding: restart: always
for all services in docker-compose.yml.
On Mac OS I can't find the way to post messages to UDP socket from my Java program.
This is what I added to default configuration that comes with Sandbox:
[[inputs.socket_listener]] service_address = "udp://:8094" data_format = "influx"
Then I use
echo "mymeasurement,my_tag_key=mytagvalue my_field=\"my field value\"" | nc -u localhost 8094
but the measurement is not being posted to the InfluxDB. I suspect this is something about Docker networking, but have no idea, how to fix it..
I cannot find any info on the best practice for starting the sandbox on boot. Is is possible to give us some guidance and include it in the documentation?
is there a tutorial to get unix socket working for telegraf inputs?
[[inputs.socket_listener]]
service_address = "unix:///tmp/telegraf.sock"
max_connections = 1024
read_timeout = "30s"
read_buffer_size = 65535
data_format = "influx"
while running the Sanbox up facing an issue saying:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /Users/username/Documents/sandbox-master/chronograf/data
could anyone would help me out on this..much appreciated.thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.