-
Notifications
You must be signed in to change notification settings - Fork 23
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
using pdk-docker getting Unable to open /.config/puppet/analytics.yml for writing (PDK::Config::LoadError) #35
Comments
I'm having the same problem when running the pdk container with |
Would love to use this over installing pdk, but I have the same issue. Seems like it would be an easy fix Update: I got some of this to work, need suggestions
|
this should be fixed by #59 |
closing inline with above comment |
Describe the Bug
We are trying to utilize the pdk-docker image to implement pdk test unit automated checks on our module branches.
When we run pdk test unit, we get the following error:
[Pipeline] sh
Inside stage
pdk (WARN): This module is compatible with an older version of PDK. Run
pdk update
to update it to your version of PDK./opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config/namespace.rb:331:in
rescue in save_data': Unable to open /.config/puppet/analytics.yml for writing (PDK::Config::LoadError) from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config/namespace.rb:324:in
save_data'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config/namespace.rb:106:in
[]' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config.rb:291:in
traverse_object'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config.rb:297:in
traverse_object' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config.rb:156:in
block in get_within_scopes'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config.rb:155:in
each' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/config.rb:155:in
get_within_scopes'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk.rb:68:in
analytics' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/cli/util.rb:300:in
analytics_screen_view'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/cli/test/unit.rb:36:in
block (2 levels) in <module:CLI>' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/cri-2.10.1/lib/cri/command.rb:329:in
run_this'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/cri-2.10.1/lib/cri/command.rb:269:in
run' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/cri-2.10.1/lib/cri/command.rb:287:in
run'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/cri-2.10.1/lib/cri/command.rb:287:in
run' from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/lib/pdk/cli.rb:71:in
run'from /opt/puppetlabs/pdk/private/ruby/2.5.9/lib/ruby/gems/2.5.0/gems/pdk-2.3.0/exe/pdk:6:in
<top (required)>' from /opt/puppetlabs/pdk/private/ruby/2.5.9/bin/pdk:23:in
load'from /opt/puppetlabs/pdk/private/ruby/2.5.9/bin/pdk:23:in `'
[Pipeline] }
[Pipeline] // container
[Pipeline] }
Expected Behavior
We expect to get the output of a pass or failed pdk test unit
Steps to Reproduce
Steps to reproduce the behavior:
Here is our pipeline:
Environment
Additional Context
When we initially got this error, we tried disabling analytics (as you can see in the above code) as per: https://puppet.com/docs/pdk/1.x/pdk_install.html
The text was updated successfully, but these errors were encountered: