Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxDB doesn't appear to respond after init.d start #2013

Closed
betandr opened this issue Mar 19, 2015 · 1 comment
Closed

InfluxDB doesn't appear to respond after init.d start #2013

betandr opened this issue Mar 19, 2015 · 1 comment

Comments

@betandr
Copy link

betandr commented Mar 19, 2015

I seem to be having an issue on an EC2 instance, starting Influx on that box.

Full uname output is:

Linux i-1f4137fb 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Running sudo /etc/init.d/influxdb start gives:

Setting ulimit -n 65536
Starting the process influxdb [ OK ]
influxdb process was started [ OK ]

Running nc -vz localhost 8086 on that local box yields:

connect to localhost port 8086 (tcp) failed: Connection refused

When I try to start using sudo influxdb -config=/opt/influxdb/shared/config.toml

I get:

panic: mkdir /opt/influxdb/shared/data: file exists

goroutine 1 [running]:
main.start(0x0, 0x0)
    /root/go/src/github.com/influxdb/influxdb/daemon/influxd.go:183 +0x1165
main.main()
    /root/go/src/github.com/influxdb/influxdb/daemon/influxd.go:73 +0x1f

goroutine 5 [syscall]:
os/signal.loop()
    /root/.gvm/gos/go1.4/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
    /root/.gvm/gos/go1.4/src/os/signal/signal_unix.go:27 +0x35

goroutine 6 [chan receive]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc20804e060, 0x7fc2d34dfdb8, 0xc20802a008)
    /root/go/src/code.google.com/p/log4go/termlog.go:27 +0x7a
created by code.google.com/p/log4go.NewConsoleLogWriter
    /root/go/src/code.google.com/p/log4go/termlog.go:19 +0x6b

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /root/.gvm/gos/go1.4/src/runtime/asm_amd64.s:2232 +0x1

goroutine 7 [select]:
code.google.com/p/log4go.func·002()
    /root/go/src/code.google.com/p/log4go/filelog.go:84 +0xa53
created by code.google.com/p/log4go.NewFileLogWriter
    /root/go/src/code.google.com/p/log4go/filelog.go:116 +0x3da

What should I try?

@betandr
Copy link
Author

betandr commented Mar 19, 2015

Turned out it was me, creating the data directory with restrictive permissions and Influx was failing to start, although it wasn't reporting that...

@betandr betandr closed this as completed Mar 19, 2015
mark-rushakoff pushed a commit that referenced this issue Jan 11, 2019
… influxql dir to be closer to the code it tests. (#2013)
mark-rushakoff pushed a commit that referenced this issue Jan 11, 2019
…ub-package so it can be reused (#2077)

* refactor(cmd/influxd): move driver code for influxd main package to sub-package so it can be reused.

* chore(query/influxql): moved query_test.go and requisite files to the influxql dir to be closer to the code it tests. (#2013)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant