Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.
This repository was archived by the owner on May 31, 2021. It is now read-only.

Error 400 in RPC Manifest for pwgen #2

@darkyat

Description

@darkyat

Unluckily it seems something broke in the commit 5040444 by using pwgen.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: wrong number of arguments (1 for 0) at /etc/puppet/modules/kickstack/manifests/rpc.pp:8 on node puppetclient

It seems like he is interpreting "pwgen()" as being filled with an argument even if it's empty?

I've spent now nearly 2 hours trying to fix this problem.

Activity

fghaas

fghaas commented on Jan 2, 2014

@fghaas
Contributor

@darkyat, thanks for reporting this. I'll look into it.

darkyat

darkyat commented on Jan 3, 2014

@darkyat
Author

Thanks for taking care of this!

This happens to me everywhere pwgen() is used.
I'm now locally removing the pwgen lines and set them "oldstyle" as fixed variables inside the params for the time being even if this means an exposure of the password in plaintext. Since I'm pretty sure you will have a clean solution I will not open a pull request.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: wrong number of arguments (1 for 0) at /etc/puppet/modules/kickstack/manifests/db.pp:16 on node puppetclient

Here some additional informations:

OS: Ubuntu 13.10 (Saucy Salamander)
Package: pwgen (Version: 2.06-1ubuntu4)
Puppet Module: rgevaert-pwgen (v0.0.1)

darkyat

darkyat commented on Jan 3, 2014

@darkyat
Author

In my opinion pwgen() should be simply run as pwgen without brackets since no arguments are specified. Even if this looks odd for every other programming language it seems to be perfectly normal for ruby.

My ruby knowledge is very low so you are invited to tell me something completely different.

dlsmartins

dlsmartins commented on Mar 28, 2014

@dlsmartins

In my case this is causing an even weirder and cryptic error: Error 400 on SERVER: Must provide non empty value.
Replacing pwgen() with just pwgen, as suggested by darkyat, seems to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @darkyat@fghaas@dlsmartins

        Issue actions

          Error 400 in RPC Manifest for pwgen · Issue #2 · hastexo/kickstack