ajcrowe / puppet-supervisord

Puppet Module to install and configure applications under supervisord
MIT License
37 stars 104 forks source link

Puppet 4: Error: Failed to apply catalog: undefined method `[]' for nil:NilClass #100

Open Jinkxed opened 8 years ago

Jinkxed commented 8 years ago

Cloned from Master Running on a Vagrant CentOS 6.8 box. Puppet 4 masterless.

Code

include ::supervisord

Error

Error: Failed to apply catalog: undefined method `[]' for nil:NilClass
ajcrowe commented 8 years ago

Hi @chad-upton are you able to provide any other information on where this might be occurring?

Jinkxed commented 8 years ago

It was the only module being installed, not sure which method it was happening on. I ran puppet with -vd and it reported the same.

I actually went another way in doing what I needed and ended up not using this module.

damonconway commented 6 years ago

I'm getting this as well. Debug gives this just before.

Debug: Execinstall_setuptools: Executing check 'which easy_install' Debug: Executing: 'which easy_install' Debug: /Stage[main]/Supervisord::Pip/Exec[install_setuptools]/unless: /usr/bin/easy_install Debug: Execinstall_pip: Executing check 'which pip' Debug: Executing: 'which pip' Debug: /Stage[main]/Supervisord::Pip/Exec[install_pip]/unless: /usr/bin/pip Debug: Execpip_provider_name_fix: Executing check 'which pip-python' Debug: Executing: 'which pip-python' Debug: /Stage[main]/Supervisord::Pip/Exec[pip_provider_name_fix]/unless: /usr/bin/pip-python Debug: Prefetching pip resources for package Debug: Executing '/usr/bin/pip --version' Debug: Storing state Debug: Stored state in 0.18 seconds Error: Failed to apply catalog: undefined method `[]' for nil:NilClass

I'm using PE 2017.3.2, on CentOS 6.9, and I am pulling supervisord directly from github.

damonconway commented 6 years ago

Ok, I think I figured it out. The version of pip that easy_install was installing, is broken. Once I installed the python-pip package via yum, it moved on past that point. I've set install_pip to false and I'm handling that install elsewhere.

rekul commented 3 years ago

@damonconway I realize this was a while ago, but could you articulate this fix in any more detail? Did you edit the .pp files to remove the easy_install calls or just install pip via SSH and it skiped them on it's own?

damonconway commented 3 years ago

I left the company where I was working on that code later that year so I can't go look. However, I believe I added some code to one of my pp files that made sure pip was installed via yum. That bypassed the check that was failing.