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

Execution of 'unzip -o /var/lib/consul/archives/consul-0.7.4.zip' returned 1: #332

Closed
induja0107 opened this issue Apr 7, 2017 · 6 comments

Comments

@induja0107
Copy link

Many a times, i am facing this issue while consul is getting extracted through this module.

Raising this issue so I know if you are going to add return code 1 as acceptable return code for the Exec unzip consul. If there is an alternative solution i can use upright without needing any fix from your side, please let me know. I will go with either option. Many thanks!

More log info:

2017-04-06 10:29:04 -0500 Puppet (err): Execution of 'unzip -o /var/lib/consul/archives/consul-0.7.4.zip' returned 1:
2017-04-06 10:29:04 -0500 /Stage[main]/Consul::Install/Archive[/var/lib/consul/archives/consul-0.7.4.zip]/ensure (err): change from absent to present failed: Execution of 'unzip -o /var/lib/consul/archives/consul-0.7.4.zip' returned 1:
2017-04-06 10:29:04 -0500 /Stage[main]/Consul::Install/File[/var/lib/consul/archives/consul-0.7.4/consul] (warning): Skipping because of failed dependencies

@solarkennedy
Copy link
Contributor

Are you sure an error code of 1 is actually acceptable? Can you run unzip -o /var/lib/consul/archives/consul-0.7.4.zip yourself and paste the full output?

@induja0107
Copy link
Author

This is what i get when i try it manually. unzip: cannot find or open /var/lib/consul/archives/consul-0.7.4, /var/lib/consul/archives/consul-0.7.4.zip or /var/lib/consul/archives/consul-0.7.4.ZIP.

@solarkennedy
Copy link
Contributor

It sounds like the unzip didn't work because the download failed? (or the zip got cleaned up after the puppet run)

Can you run puppet with --debug and paste as much output as you can?

@induja0107
Copy link
Author

Hello, this is the complete log info.

Apr 11 11:59:42 node1 puppet-agent[2304]: (/Stage[main]/Consul_mod/Exec[restart_rsyslogd_consul]) Triggered 'refresh' from 1 events
Apr 11 11:59:42 node1 puppet-agent[2304]: (/Stage[main]/Consul_mod/Exec[mkdir -p /opt/consul]/returns) executed successfully
Apr 11 11:59:42 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/opt/consul]/owner) owner changed 'root' to 'consul'
Apr 11 11:59:42 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/opt/consul]/group) group changed 'root' to 'consul'
Apr 11 11:59:42 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/opt/consul/archives]/ensure) created
Apr 11 11:59:42 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/opt/consul/archives/consul-0.7.4]/ensure) created
Apr 11 11:59:44 node1 puppet-agent[2618]: Could not execute posix command: No such file or directory - unzip
Apr 11 11:59:44 node1 puppet-agent[2304]: Execution of 'unzip -o /opt/consul/archives/consul-0.7.4.zip' returned 1:
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/Archive[/opt/consul/archives/consul-0.7.4.zip]/ensure) change from absent to present failed: Execution of 'unzip -o /opt/consul/archives/consul-0.7.4.zip' returned 1:
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/opt/consul/archives/consul-0.7.4/consul]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/opt/consul/archives/consul-0.7.4/consul]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/usr/local/bin/consul]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Install/File[/usr/local/bin/consul]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/File[/lib/systemd/system/consul.service]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/File[/lib/systemd/system/consul.service]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/Exec[consul-systemd-reload]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/Exec[consul-systemd-reload]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/File[/etc/consul]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/File[/etc/consul]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/File[consul config.json]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Config/File[consul config.json]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul_mod/Exec[clean invalid consul data]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul_mod/Exec[clean invalid consul data]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Run_service/Service[consul]) Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/Consul::Run_service/Service[consul]) Skipping because of failed dependencies
Apr 11 11:59:44 node1 puppet-agent[2304]: (/Stage[main]/puppet_agent_run/File[/opt/cdtest/bin/execute-puppet.sh]/ensure) defined content as '{md5}9338f0e1238b4b2b60bb19493799aa36'

@solarkennedy
Copy link
Contributor

Could not execute posix command: No such file or directory - unzip is your smoking gun. Install unzip.

@induja0107
Copy link
Author

Thank you.

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