-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Error: Cannot create /opt/consul/archives; parent directory /opt/consul does not exist #311
Comments
Can you try master? I'm pretty sure I fixed this in #308. |
@solarkennedy I'm hitting this as well, when the new version (with #308) will be released? |
Released. Try 2.1.0. |
We're still seeing this issue with
|
This appears to be an ordering issue - we're seeing this happening in our integration testing for a few of our profile modules, but not all of them. When the catalog ordering is such that the file resource for the |
Please ignore the above, looks like we've not been setting |
This isn't resolved. There is an ordering issue between the creation of /opt/consul and its use on the install path, but it appears to be caused by the 'archive' action;
Module Version: v2.1.1 |
I am seeing this error on the latest release (3.0.0). I was able to work around it by setting |
Hmm. Is there a commonality amongst these other bug reports? What is your data_dir and what is your install method? |
I think I've managed to narrow it down. It seems to occur when |
I've just come across the same issue. I believe this is due to the code: This only uses the data_dir from $config_hash, not $config_defaults or even the $config_defaults_real hash which actually contains the full config. I've worked around it by creating a profile module for consul and adding a file { '/opt/consul': ensure => directory } resource. |
I set my consul::config_hash::data_dir to '/var/lib/consul' in hiera so after upgrading to 2.0.0 I'm now getting the following error:
Error: Cannot create /opt/consul/archives; parent directory /opt/consul does not exist
Error: /Stage[main]/Consul::Install/File[/opt/consul/archives]/ensure: change from absent to directory failed: Cannot create /opt/consul/archives; parent directory /opt/consul does not exist
I initially changed consul::archive_path: '/tmp' but that made the /tmp dir on all my nodes 'a-w' so then I changed it to what used to be the default: consul::archive_path: '/opt/puppet-archive'
The text was updated successfully, but these errors were encountered: