Puppet update to 3.6.1 causes Error 400 on SERVER: no 'environments' in ...

518 views
Skip to first unread message

j...@rocketcitystudios.com

unread,
May 26, 2014, 5:21:31 PM5/26/14
to puppet...@googlegroups.com
After upgrading to Puppet 3.6.1 I get this error:

Warning: Error 400 on SERVER: no 'environments' in {:root_environment=>#<Puppet::Node::Environment:0x7f7453299a90 @config_version=nil, @manifest="/", @modulepath=[], @watching=true, @name=:"*root*">, :current_environment=>#<Puppet::Node::Environment:0x7f7453299a90 @config_version=nil, @manifest="/", @modulepath=[], @watching=true, @name=:"*root*">} at top of [[0, nil, nil]]

Any ideas?

Anton Lindstrom

unread,
May 27, 2014, 1:23:53 PM5/27/14
to puppet...@googlegroups.com
There's a ticket open for that issue at https://tickets.puppetlabs.com/browse/PUP-2659

// Anton


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/da9dc89b-0f5c-4807-b113-32d0bbd233fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Atom Powers

unread,
May 27, 2014, 4:01:34 PM5/27/14
to puppet...@googlegroups.com
I struggled with this for a while on Friday.
The error doesn't occur until a few minutes after WebBrick is started.
I found that if I don't define an environment for the host then the error doesn't occur.
I wasn't able to get it working with an environment, even with directory environments setup correctly.



For more options, visit https://groups.google.com/d/optout.



--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--

j...@rocketcitystudios.com

unread,
May 30, 2014, 3:06:52 PM5/30/14
to puppet...@googlegroups.com
How did you not define any environments. I've removed the /etc/puppet/environments folder and have no envs. set anywhere else. Still happens with WebRick.

Atom Powers

unread,
May 30, 2014, 3:24:14 PM5/30/14
to puppet...@googlegroups.com

Don't define an environment in your config file, master or client, and don't define an environment through your ENC or as a fact. (I think that is all the ways.)

Henrik Lindberg

unread,
Jun 2, 2014, 2:00:18 PM6/2/14
to puppet...@googlegroups.com
On 2014-27-05 15:23, Anton Lindstrom wrote:
> There's a ticket open for that issue at
> https://tickets.puppetlabs.com/browse/PUP-2659
>

Fix will be released in 3.6.2. Until then the recommendation is
to use Passenger (Note that Webrick is not recommended for production
even when this bug is fixed).

The problem is a concurrency issue, if you have more than one request
coming in at the same time the behavior is undefined until the fix
is available.

- henrik
>
>
> On Mon, May 26, 2014 at 7:21 PM, <j...@rocketcitystudios.com
> <mailto:j...@rocketcitystudios.com>> wrote:
>
> After upgrading to Puppet 3.6.1 I get this error:
>
> Warning: Error 400 on SERVER: no 'environments' in
> {:root_environment=>#<Puppet::Node::Environment:0x7f7453299a90
> @config_version=nil, @manifest="/", @modulepath=[], @watching=true,
> @name=:"*root*">,
> :current_environment=>#<Puppet::Node::Environment:0x7f7453299a90
> @config_version=nil, @manifest="/", @modulepath=[], @watching=true,
> @name=:"*root*">} at top of [[0, nil, nil]]
>
> Any ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> <https://groups.google.com/d/msgid/puppet-users/da9dc89b-0f5c-4807-b113-32d0bbd233fd%40googlegroups..com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAG_x02Y8B4kDhTsRqyaEMGa2U76ZzJ7MpMKqOVi2%3DTmeEOneig%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAG_x02Y8B4kDhTsRqyaEMGa2U76ZzJ7MpMKqOVi2%3DTmeEOneig%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Reply all
Reply to author
Forward
0 new messages