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

Recipe nfs::_common breaks on Debian 9 #104

Open
Jim-Walk opened this issue Dec 8, 2017 · 1 comment
Open

Recipe nfs::_common breaks on Debian 9 #104

Jim-Walk opened this issue Dec 8, 2017 · 1 comment

Comments

@Jim-Walk
Copy link

Jim-Walk commented Dec 8, 2017

Encountered issue on Debian 9 host machine, running recipe on bento/debian-9. Error is reproducible every time and on MacOS Sierra too. After below is dumped, I can login to the machine, and get more info.

systemctl status nfs-common.service
● nfs-common.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)

If I try to unmask the service nothing happens.

Recipe: nfs::common
* apt_package[nfs-common] action install (up to date)
* apt_package[rpcbind] action install (up to date)
* directory[/etc/default] action create (skipped due to only_if)
* template[/etc/default/nfs-common] action create
- update content in file /etc/default/nfs-common from 7f86fe to d290a2
--- /etc/default/nfs-common 2016-12-15 13:30:00.000000000 +0000
+++ /etc/default/.chef-nfs-common20171208-1057-14p19z1 2017-12-08 18:52:31.278633301 +0000
@@ -1,20 +1,3 @@
-# If you do not set values for the NEED
options, they will be attempted
-# autodetected; this should be sufficient for most people. Valid alternatives
-# for the NEED_ options are "yes" and "no".
-
-# Do you want to start the statd daemon? It is not needed for NFSv4.
-NEED_STATD=
-
-# Options for rpc.statd.
-# Should rpc.statd listen on a specific port? This is especially useful
-# when you have a port-based firewall. To use a fixed port, set this
-# this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
-# For more information, see rpc.statd(8) or http://wiki.debian.org/SecuringNFS
-STATDOPTS=
-
-# Do you want to start the idmapd daemon? It is only needed for NFSv4.
-NEED_IDMAPD=
-
-# Do you want to start the gssd daemon? It is required for Kerberos mounts.
-NEED_GSSD=
+# Generated by Chef for broadcast-debian-9.vagrantup.com# Local modifications will be overwritten.
+STATDOPTS="--port 32765 --outgoing-port 32766"
* service[portmap] action restart
- restart service service[portmap]
* service[lock] action restart

       ================================================================================
       Error executing action `restart` on resource 'service[lock]'
       ================================================================================
       
       Mixlib::ShellOut::ShellCommandFailed
       ------------------------------------
       Expected process to exit with [0], but received '1'
       ---- Begin output of /bin/systemctl --system restart nfs-common ----
       STDOUT: 
       STDERR: Failed to restart nfs-common.service: Unit nfs-common.service is masked.
       ---- End output of /bin/systemctl --system restart nfs-common ----
       Ran /bin/systemctl --system restart nfs-common returned 1
       
       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/nfs/recipes/_common.rb
       
        46:   service component do
        47:     service_name node['nfs']['service'][component]
        48:     action [:start, :enable]
        49:     supports :status => true
        50:   end
        51: end
       
       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/nfs/recipes/_common.rb:46:in `block in from_file'
       
       service("lock") do
         provider Chef::Provider::Service::Systemd
         action [:start, :enable]
         default_guard_interpreter :default
         service_name "nfs-common"
         enabled nil
         running nil
         masked nil
         pattern "lock"
         declared_type :service
         cookbook_name "nfs"
         recipe_name "_common"
         supports {:status=>true}
       end
       
       System Info:
       ------------
       chef_version=13.6.4
       platform=debian
       platform_version=9.2
       ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
       program_name=chef-client worker: ppid=1052;start=18:52:22;
       executable=/opt/chef/bin/chef-client
       
   
   Running handlers:
   [2017-12-08T18:52:31+00:00] ERROR: Running exception handlers
   [2017-12-08T18:52:31+00:00] ERROR: Running exception handlers
   Running handlers complete
   [2017-12-08T18:52:31+00:00] ERROR: Exception handlers complete
   [2017-12-08T18:52:31+00:00] ERROR: Exception handlers complete
   Chef Client failed. 13 resources updated in 09 seconds
   [2017-12-08T18:52:31+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2017-12-08T18:52:31+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2017-12-08T18:52:31+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2017-12-08T18:52:31+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2017-12-08T18:52:31+00:00] ERROR: service[lock] (nfs::_common line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
   ---- Begin output of /bin/systemctl --system restart nfs-common ----
   STDOUT: 
   STDERR: Failed to restart nfs-common.service: Unit nfs-common.service is masked.
   ---- End output of /bin/systemctl --system restart nfs-common ----
   Ran /bin/systemctl --system restart nfs-common returned 1
   [2017-12-08T18:52:31+00:00] ERROR: service[lock] (nfs::_common line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
   ---- Begin output of /bin/systemctl --system restart nfs-common ----
   STDOUT: 
   STDERR: Failed to restart nfs-common.service: Unit nfs-common.service is masked.
   ---- End output of /bin/systemctl --system restart nfs-common ----
   Ran /bin/systemctl --system restart nfs-common returned 1
   [2017-12-08T18:52:31+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
   [2017-12-08T18:52:31+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@balazsadam
Copy link

+1

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