sunggun-yu / docker-chef-server Goto Github PK
View Code? Open in Web Editor NEWDocker image for Chef Server : https://hub.docker.com/r/sunggun/chef-server/
License: MIT License
Docker image for Chef Server : https://hub.docker.com/r/sunggun/chef-server/
License: MIT License
How are the smtp endpoints for postfix set? I don't see anywhere to configure it at run time or a way to save the settings presistantly.
ran docker run --privileged -t --name chef-server -d -p 443:443 cbuisson/chef-server
then tail logs
docker logs -f chef-server
got
Recipe Compile Error in /opt/opscode-reporting/embedded/cookbooks/cache/cookbooks/opscode-reporting/recipes/default.rb
undefined method `[]' for nil:NilClass
/opt/opscode-reporting/embedded/cookbooks/cache/cookbooks/opscode-reporting/recipes/default.rb:34:in from_file' /opt/opscode-reporting/embedded/cookbooks/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/run_context.rb:347:in
load_recipe'
/opt/opscode-reporting/embedded/cookbooks/cache/cookbooks/opscode-reporting/recipes/default.rb:
27: action :nothing
28: end.run_action(:create)
29:
30: # We need to load the private chef configuration
31: if File.exists?("/etc/opscode/chef-server-running.json")
32: private_chef = JSON.parse(IO.read("/etc/opscode/chef-server-running.json"))
33: end
34>> node.consume_attributes({"private_chef" => private_chef['private_chef']})
35:
36: Reporting[:node] = node
37: if File.exists?("/etc/opscode-reporting/opscode-reporting.rb")
38: Reporting.from_file("/etc/opscode-reporting/opscode-reporting.rb")
39: end
40: node.consume_attributes(Reporting.generate_config(node['fqdn']))
41:
42: if File.exists?("/var/opt/opscode-reporting/bootstrapped")
43: node.normal['reporting']['bootstrap']['enable'] = false
x86_64-linux
[2017-11-16T00:41:51+00:00] ERROR: Running exception handlers
[2017-11-16T00:41:51+00:00] ERROR: Exception handlers complete
[2017-11-16T00:41:51+00:00] FATAL: Stacktrace dumped to /opt/opscode-reporting/embedded/cookbooks/cache/chef-stacktrace.out
[2017-11-16T00:41:51+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-11-16T00:41:51+00:00] ERROR: undefined method `[]' for nil:NilClass
[2017-11-16T00:41:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
++ chef-server-ctl user-list
ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
Error executing action delete
on resource 'directory[/opt/opscode/embedded/service/oc_id/log]'
Directory not empty @ dir_s_rmdir - /opt/opscode/embedded/service/oc_id/log
In /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/oc_id.rb
70: directory full_dir do
71: action :delete
72: recursive true
73: not_if { File.symlink?(full_dir) }
74: end
75: end
directory("/opt/opscode/embedded/service/oc_id/log") do
action [:delete]
retries 0
retry_delay 2
default_guard_interpreter :default
path "/opt/opscode/embedded/service/oc_id/log"
recursive true
declared_type :directory
cookbook_name "private-chef"
recipe_name "oc_id"
owner nil
group nil
mode nil
not_if { #code block }
end
x86_64-linux
[2017-11-16T00:42:32+00:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2017-11-16T00:42:32+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-11-16T00:42:32+00:00] FATAL: Errno::ENOTEMPTY: directory[/opt/opscode/embedded/service/oc_id/log] (private-chef::oc_id line 70) had an error: Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - /opt/opscode/embedded/service/oc_id/log
++ dpkg-query -l
++ grep postfix
++ wc -l
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.