Permissions need to be changed on CentOS 6.8
Per slack
Max Chadwick [4:43 PM]
service kapacitord start
kapacitord: unrecognized service
[4:43]
How does one start the kapacitord service?
Nathaniel Cook [4:43 PM]
`service kapacitor start`
Max Chadwick [4:43 PM]
that doesn't seem to start kapacitord for me
[4:44]
i'm on CentOS
[4:44]
downloaded the Kapacitor like this
[4:44]
wget https://dl.influxdata.com/kapacitor/releases/kapacitor-0.13.1.x86_64.rpm
sudo yum localinstall kapacitor-0.13.1.x86_64.rpm
[4:45]
or maybe it's just not working at all?
[4:45]
[root@sd-ops-diagnostics kapacitor]# service kapacitor start
Starting the process kapacitor [ OK ]
kapacitor process was started [ OK ]
[root@sd-ops-diagnostics kapacitor]# ps aux | grep 'kap'
root 7913 0.0 0.0 103312 876 pts/2 R+ 15:44 0:00 grep kap
[root@sd-ops-diagnostics kapacitor]#
Jack Zampolin [5:05 PM]
What centos version? did you check `service kapacitor status`?
Max Chadwick [5:07 PM]
CentOS 6.8
[5:07]
Potentially permissions issue?
[5:07]
==> /var/log/kapacitor/kapacitord.err <==
2016/06/29 16:07:30 Using configuration at: /etc/kapacitor/kapacitor.conf
[run] 2016/06/29 16:07:30 E! init logging: open /var/log/kapacitor/kapacitor.log: permission denied
run: init logging: open /var/log/kapacitor/kapacitor.log: permission denied
[5:08]
i'm starting the service as root
[5:08]
root@sd-ops-diagnostics kapacitor]# sudo service kapacitor start
[5:09]
OK yea
[5:09]
==> /var/log/kapacitor/kapacitord.err <==
run: open server: open service *storage.Service: open boltdb @ "/var/lib/kapacitor/kapacitor.db": open /var/lib/kapacitor/kapacitor.db: permission denied
[5:10]
yeah, it was permissions
[5:10]
I did _not_ have to change any permissions for InfluxDB FWIW
new messages
Jack Zampolin [5:18 PM]
Did you try running with `sudo`
[5:18]
yes
[5:19]
sorry for not reading that. You shouldn’t have had to change any permissions for kapacitor either
[5:19]
@mpchadwick please open an issue on the `influxdata/kapacitor` repo with the tag `packaging` (edited)
@mpchadwick What where the permissions after installing? I just performed an install on a new CentOS image.
[root@c74ad51706a9 /]# curl https://dl.influxdata.com/kapacitor/releases/kapacitor-0.13.1.x86_64.rpm > kapacitor-0.13.1.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.8M 100 10.8M 0 0 8417k 0 0:00:01 0:00:01 --:--:-- 8415k
[root@c74ad51706a9 /]# yum localinstall kapacitor-0.13.1.x86_64.rpm
Loaded plugins: fastestmirror, ovl
Examining kapacitor-0.13.1.x86_64.rpm: kapacitor-0.13.1-1.x86_64
Marking kapacitor-0.13.1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package kapacitor.x86_64 0:0.13.1-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Installing:
kapacitor x86_64 0.13.1-1 /kapacitor-0.13.1.x86_64 41 M
Transaction Summary
=====================================================================================================================================
Install 1 Package
Total size: 41 M
Installed size: 41 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kapacitor-0.13.1-1.x86_64 1/1
Verifying : kapacitor-0.13.1-1.x86_64 1/1
Installed:
kapacitor.x86_64 0:0.13.1-1
Complete!
[root@c74ad51706a9 /]# ll /var/lib/
total 0
drwxr-xr-x 1 root root 44 Mar 31 17:01 alternatives
drwxr-xr-x 1 root root 0 Nov 20 2015 dbus
drwxr-xr-x 1 root root 0 Aug 12 2015 games
drwxr-xr-x 1 root root 0 Dec 3 2015 initramfs
drwxr-xr-x 1 kapacitor kapacitor 0 May 13 22:44 kapacitor
drwx------ 1 root root 0 Mar 31 17:02 machines
drwxr-xr-x 1 root root 0 Aug 12 2015 misc
drwxr-xr-x 1 root root 322 Mar 31 17:03 rpm
drwxr-xr-x 1 root root 0 Aug 12 2015 rpm-state
drwxr-xr-x 1 root root 52 Mar 31 17:02 systemd
drwxr-xr-x 1 root root 68 Jun 30 15:09 yum
[root@c74ad51706a9 /]# ll /var/lib/kapacitor/
total 0
[root@c74ad51706a9 /]# ll /var/log/
total 4
drwxr-xr-x 1 root root 186 Mar 31 17:03 anaconda
drwxr-xr-x 1 kapacitor kapacitor 0 May 13 22:44 kapacitor
-rw------- 1 root root 53 Jun 30 15:09 yum.log
[root@c74ad51706a9 /]# ll /var/log/kapacitor/
total 0
[root@c74ad51706a9 /]#
All permissions look correct. Can you provide more details as to which permissions you fixed to get it working?
I chmod-ed /var/log/kapacitor and /var/lib/kapacitor to 777. I'm not sure what they were before making the perissions changes. I'm going to close this issue if it's not reproducible. It might have just been me. If someone else reports it it would be worth investigating, I guess
I ran into this bug trying to upgrade from 0.12.1 to 1.2
- Error : It does not have permission to open previously installed version's(0.12.1) kapacitor.db
- Removed that file and gave 666 on entire kapacitor folder, trying to reinstall
- ran into
create server: open /var/lib/kapacitor/cluster.id: permission denied - gave 666 on that file too but still now working
I got the similar issue while upgrading the kapacitor image "open service *storage.Service: open boltdb @ "/var/lib/kapacitor/kapacitor.db": open /var/lib/kapacitor/kapacitor.db: permission denied"
-- I am using aws ebs volume for persistent storage. -- Access mode setup in dynamic allocation PVC - ReadWriteOnce
When upgrading the kapacitor-- pod is getting into crashloopbackoff with above error
One way to deal with above issue-- -- Get the PV and PVC with ReadWriteMany -- aws doesn't supports RWX with ebs volume, switch to EFS volume which supports RWX access mode