Comments (14)
I also see this error on RHEL 7.1
[root@tapir2 python]# service collectd status
Redirecting to /bin/systemctl status collectd.service
collectd.service - Collectd statistics daemon
Loaded: loaded (/usr/lib/systemd/system/collectd.service; enabled)
Active: active (running) since Fri 2015-05-08 13:08:01 BST; 2min 42s ago
Docs: man:collectd(1)
man:collectd.conf(5)
Main PID: 18995 (collectd)
CGroup: /system.slice/collectd.service
└─18995 /usr/sbin/collectd -C /etc/collectd.conf -f
May 08 13:08:01 tapir2.eng.velocix.com systemd[1]: Started Collectd statistics daemon.
May 08 13:08:01 tapir2.eng.velocix.com collectd[18995]: Initialization complete, entering read-loop.
May 08 13:08:01 tapir2.eng.velocix.com collectd[18995]: Unhandled python exception in read callback: TypeError: Dataset mutex-JOS::ApplyManager::apply_lock not found
May 08 13:08:01 tapir2.eng.velocix.com collectd[18995]: read-function of plugin python.ceph' failed. Will suspend it for 20.000 seconds. May 08 13:08:21 tapir2.eng.velocix.com collectd[18995]: Unhandled python exception in read callback: TypeError: Dataset mutex-JOS::ApplyManager::apply_lock not found May 08 13:08:21 tapir2.eng.velocix.com collectd[18995]: read-function of plugin
python.ceph' failed. Will suspend it for 40.000 seconds.
May 08 13:09:01 tapir2.eng.velocix.com collectd[18995]: Unhandled python exception in read callback: TypeError: Dataset mutex-JOS::ApplyManager::apply_lock not found
my collectd.conf
Globals true ModulePath "/usr/lib64/collectd/python" Import "ceph"<Module ceph>
AdminSocket "/var/run/ceph/ceph-*.asok"
</Module>
TypesDB "/usr/share/collectd/types.db" "/usr/lib64/collectd/python/ceph.types.db"
from collectd-ceph.
I've the same problem, have you find a workaround ?
from collectd-ceph.
Hi i have also same problem for Rhel 7.1 and Ceph Hammer release, does anyone has fix/workaround for this problem?
from collectd-ceph.
I should be able to have a look next week.
from collectd-ceph.
I am facing exactly the same issue [error] Unhandled python exception in read callback: UnboundLocalError: local variable 'stats' referenced before assignment
Collectd Logs
[2015-07-20 11:30:29] [info] ceph: collectd new data from service :: took 0 seconds
[2015-07-20 11:30:30] [error] ceph: failed to get stats :: Expecting object: line 2 column 124 (char 124) :: Traceback (most recent call last):
File "/etc/collectd/plugins/ceph/base.py", line 114, in read_callback
stats = self.get_stats()
File "/etc/collectd/plugins/ceph/ceph_pool_plugin.py", line 72, in get_stats
json_stats_data = json.loads(stats_output)
File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.6/json/decoder.py", line 336, in raw_decode
obj, end = self._scanner.iterscan(s, **kw).next()
File "/usr/lib64/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = action(m, context)
File "/usr/lib64/python2.6/json/decoder.py", line 217, in JSONArray
value, end = iterscan(s, idx=end, context=context).next()
File "/usr/lib64/python2.6/json/scanner.py", line 55, in iterscan
rval, next_pos = ac
[2015-07-20 11:30:30] [error] Unhandled python exception in read callback: UnboundLocalError: local variable 'stats' referenced before assignment
[2015-07-20 11:30:30] [notice] read-function of plugin `python.ceph_pool_plugin' failed. Will suspend it for 240.000 seconds.
[2015-07-20 11:30:41] [info] ceph: collectd new data from service :: took 13 seconds
Did anyone managed to fix this.
@rochaporto Do you have time to check this , appreciate your help.
from collectd-ceph.
I'm having the same issue here.
Seems like the origin is there:
Traceback (most recent call last):
File "/usr/bin/ceph", line 896, in <module>
retval = main()
File "/usr/bin/ceph", line 647, in main
conffile=conffile)
File "/usr/lib/python2.7/site-packages/rados.py", line 212, in __init__
library_path = find_library('rados')
File "/usr/lib64/python2.7/ctypes/util.py", line 244, in find_library
return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))
File "/usr/lib64/python2.7/ctypes/util.py", line 237, in _findSoname_ldconfig
f.close()
IOError: [Errno 10] No child processes
from collectd-ceph.
Any news?
I'm having the same issue for Ubuntu 14.04 and Ceph Hammer release:
Aug 21 00:07:54 collectd collectd[17115]: ceph: failed to get stats :: No JSON object could be decoded :: Traceback (most recent call last):#12 File "/usr/lib/collectd/plugins/ceph/base.py", line 108, in read_callback#012 stats = self.get_stats()#12 File "/usr/lib/collectd/plugins/ceph/ceph_pool_plugin.py", line 67, in get_stats#012 json_stats_data = json.loads(stats_output)#12 File "/usr/lib/python2.7/json/init.py", line 338, in loads#012 return _default_decoder.decode(s)#12 File "/usr/lib/python2.7/json/decoder.py", line 366, in decode#012 obj, end = self.raw_decode(s, idx=_w(s, 0).end())#12 File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode#012 raise ValueError("No JSON object could be decoded")#012ValueError: No JSON object could be decoded
Aug 21 00:07:54 collectd collectd[17115]: Unhandled python exception in read callback: UnboundLocalError: local variable 'stats' referenced before assignment
Aug 21 00:07:54 collectd collectd[17115]: read-function of plugin `python.ceph_pool_plugin' failed. Will suspend it for 20.000 seconds.
from collectd-ceph.
One of you has succeed to make it works ? Another ceph ceph -- collectd plugin ?
from collectd-ceph.
Hello!
This note described in a man page:
You may put getsigchld.py in scripts folder and insert the line to a configuration:
<Plugin "python">
ModulePath [..]
Import "getsigchld"
from collectd-ceph.
it works better yashumitsu !
but now there is a new error:
Nov 30 20:33:05 cephrr1n4 collectd[19331]: ceph: failed to get stats :: list index out of range :: Traceback (most recent call last):
File "/opt/collectd-ceph/git/collectd-ceph/plugins/base.py", line 114, in read_callback
stats = self.get_stats()
File "/opt/collectd-ceph/git/collectd-ceph/plugins/ceph_latency_plugin.py", line 67, in get_stats
data[ceph_cluster]['cluster']['stddev_latency'] = results[1]
IndexError: list index out of range
Nov 30 20:33:05 cephrr1n4 collectd[19331]: Unhandled python exception in read callback: UnboundLocalError: local variable 'stats' referenced before assignment
Nov 30 20:33:05 cephrr1n4 collectd[19331]: read-function of plugin `python.ceph_latency_plugin' failed. Will suspend it for 120.000 seconds.
from collectd-ceph.
No thanks necessary!
The easiest way to get it works is to change default pool name (data) to another pool, which is exists:
from collectd-ceph.
It works!
Thanks
from collectd-ceph.
with strace we can see that getsigchld.py
so try to copy getsigchld.py
cp collectd-5.5.0/contrib/python/getsigchld.py /usr/lib64/python2.7/site-packages/
from collectd-ceph.
Thanks for posting this fix.
from collectd-ceph.
Related Issues (20)
- No result from subprocess.check_output(...) HOT 13
- Collectd example configuration HOT 2
- Values in config are ignored HOT 2
- Pool parsing fails with ceph 0.87 HOT 1
- plugin interval values
- CentOS6.6 AttributeError: 'module' object has no attribute 'check_output' HOT 1
- list index out of range in latency plugin HOT 4
- No JSON object could be decoded HOT 2
- typo in pool code HOT 1
- Error ceph_pool
- read_op_per_sec / write_op_per_sec in Jewel HOT 1
- Syntax error HOT 1
- Video tutorial? HOT 1
- Fork, merge, stuff HOT 1
- Add identity (ceph username) to config
- Max_avail is not collected HOT 1
- install collectd-ceph
- Error on ceph_pg_plugin.py HOT 1
- ceph: failed to get stats :: float division by zero for ceph OSD percentage used metrics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collectd-ceph.