PiBa-NL / MyPublicProjects

1 stars 0 forks source link

attempt to index a nil value (local 'self'). #1

Open ivanovicimihai89 opened 4 years ago

ivanovicimihai89 commented 4 years ago

I got this error on haproxy startup haproxy haproxy[58715]: Lua task: runtime error: /root/haproxySmtp/serverhealthchecker.lua:36: attempt to index a nil value (local 'self').

PiBa-NL commented 4 years ago

How did you create the object instance? Something like?: local mychecker = Serverhealthchecker("hapchecker",3,2,checknotifier)

ivanovicimihai89 commented 4 years ago

yes, as is in the script. I've just downloaded the script and add the lines to haproxy config. I use it in a pfsense setup

PiBa-NL commented 4 years ago

i use it on pfSense as well, do you have IRC? im on FreeNode at the #pfSense and #haproxy channels perhaps easier to discuss/compare things.?.

PiBa-NL commented 4 years ago

ive updated the scripts to those that im actually using today.. not much changed. but a little ':' to '.' might help.. not sure if it was a bug in the old version..

ivanovicimihai89 commented 4 years ago

let's talk on email. ivanovici.mihai89@gmail.com