Error: undefined method `gsub' for nil:NilClass

363 views
Skip to first unread message

Juan Pablo Daniel

unread,
Jan 31, 2014, 1:44:07 PM1/31/14
to puppet...@googlegroups.com
Hi guys, can you give me a hint on this?

Thanks!

Debug: Executing '/sbin/sysctl -n net.ipv4.ip_local_port_range'
Error: undefined method `gsub' for nil:NilClass
Error: /Stage[main]/Spotflux_pweb::Sysctl/Sysctl[net.ipv4.ip_local_port_range]/value: change from  to 5000 65000 failed: undefined method `gsub' for nil:NilClass
# /sbin/sysctl -n net.ipv4.ip_local_port_range
1024 65535

Debug: Executing '/sbin/sysctl -n net.core.rmem_max'
Error: undefined method `gsub' for nil:NilClass
Error: /Stage[main]/Spotflux_pweb::Sysctl/Sysctl[net.core.rmem_max]/value: change from  to 8388608 failed: undefined method `gsub' for nil:NilClass
# /sbin/sysctl -n net.core.rmem_max
16777216



jcbollinger

unread,
Feb 3, 2014, 10:40:55 AM2/3/14
to puppet...@googlegroups.com


It looks like a bug in the chosen provider for your Sysctl custom type, perhaps related to the manner in which your Spotflux_pweb::Sysctl defined type uses it.  The error message does suggest that the sysctl is not initially set/customized, but it would be a poor implementation of a Sysctl type that could not handle that situation.

Having no idea where your Sysctl type comes from (there are many available, or you could have written your own), and no information on Spotflux_pweb::Sysctl, there's really not much more I can say.


John

Fiddyspence

unread,
Feb 19, 2014, 6:28:06 AM2/19/14
to puppet...@googlegroups.com
That was my fault - I pushed a change without actually running the tests and got everything I deserved as a result.

Apologies for the bug, but it's fixed now.
Reply all
Reply to author
Forward
0 new messages