[FIX] Puppet Failed to load feature test for posix: can’t find user for 0

Dec 29 14:35:37 tesnia.company.local systemd[1]: Stopping puppetserver Service...
Dec 29 14:35:37 tesnia.company.local systemd[1]: Starting puppetserver Service...
Dec 29 14:35:58 tesnia.company.local java[3704]: io/console on JRuby shells out to stty for most operations
Dec 29 14:36:02 tesnia.company.local java[3704]: Failed to load feature test for posix: can't find user for 0
Dec 29 14:36:02 tesnia.company.local java[3704]: Cannot run on Microsoft Windows without the win32-process, win32-dir and win32-service gems: Win32API only supported on win32
Dec 29 14:36:02 tesnia.company.local java[3704]: Puppet::Error: Cannot determine basic system flavour
Dec 29 14:36:02 tesnia.company.local java[3704]: (root) at /usr/share/ruby/vendor_ruby/puppet/feature/base.rb:32
Dec 29 14:36:02 tesnia.company.local java[3704]: require at org/jruby/RubyKernel.java:1040
Dec 29 14:36:02 tesnia.company.local java[3704]: (root) at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
Dec 29 14:36:02 tesnia.company.local java[3704]: require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
Dec 29 14:36:02 tesnia.company.local java[3704]: Puppet at /usr/share/ruby/vendor_ruby/puppet.rb:75

Has to do with noexec on /tmp . Fix by editing /etc/sysconfig/puppetserver, add something like “-Djava.io.tmpdir=/var/puppettmp” , mkdir /var/puppettmp, chmod 1777 /var/puppettmp .