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

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

Open
Jinkxed opened this issue Jul 26, 2016 · 6 comments

Comments

@Jinkxed
Copy link

Jinkxed commented Jul 26, 2016

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
Copy link
Owner

ajcrowe commented Aug 2, 2016

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

@Jinkxed
Copy link
Author

Jinkxed commented Aug 2, 2016

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
Copy link

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
Copy link

damonconway commented Apr 5, 2018

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
Copy link

rekul commented Mar 11, 2021

@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
Copy link

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.

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

4 participants