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

ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type #5

Open
seeker-dsr opened this issue Nov 21, 2018 · 1 comment

Comments

@seeker-dsr
Copy link

Got this error on every librenms discover.

Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 314, in 'calling callback function'
  File "/etc/bird-snmp-agent/adv_agentx.py", line 404, in _handler_wrapper
    req.SetValue(AXObject.AXData[req.oid]['value'])
  File "/etc/bird-snmp-agent/adv_agentx.py", line 349, in SetValue
    axl.snmp_set_var_typed_value(self.__request.requestvb, otype, ctypes.cast(value, ctypes.POINTER(ctypes.c_ubyte)), size)
ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type

CentOS Linux release 7.5.1804 (Core)
BIRD version 1.6.3

@traderose
Copy link

same here, everytime librenms discover:

--
File "/etc/bird/bird-snmp-agent/adv_agentx.py", line 349, in SetValue
axl.snmp_set_var_typed_value(self.__request.requestvb, otype, ctypes.cast(value, ctypes.POIN
ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 315, in 'calling callback function'
File "/etc/bird/bird-snmp-agent/adv_agentx.py", line 404, in _handler_wrapper
req.SetValue(AXObject.AXData[req.oid]['value'])
File "/etc/bird/bird-snmp-agent/adv_agentx.py", line 349, in SetValue
axl.snmp_set_var_typed_value(self.__request.requestvb, otype, ctypes.cast(value, ctypes.POIN
ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type

also the snmpd service shows the following error:

Connection from UDP: [librenms_ip]:41315->[bird_ip]:161
snmp_build: unknown failure
send response: Error building ASN.1 representation (wrong type in snmp_realloc_rbuild_var_op: 199)
-- iso.3.6.1.2.1.15.2
-- iso.3.6.1.2.1.15.2
-- iso.3.6.1.2.1.15.2
Connection from UDP: [librenms_ip]:55747->[bird_ip]:161
Connection from UDP: [librenms_ip]:55747->[bird_ip]:161

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

2 participants