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

Plugin logging missing output #10

Closed
mitchellh opened this issue May 8, 2013 · 2 comments
Closed

Plugin logging missing output #10

mitchellh opened this issue May 8, 2013 · 2 comments
Labels
Milestone

Comments

@mitchellh
Copy link
Contributor

Currently, the plugin output is missing some log data. For example, in the output below, it should output "Serving connection" or something like that at some point but it never does. WAT?!

This will be critical to investigate and fix. I have no ideas.

packer master → bin/packer
usage: packer [--version] [--help] <command> [<args>]

Available commands are:
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer.go:28: Loading command: build
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:168: 2013/05/08 12:44:00 Preparing to serve a command plugin...
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:168: 2013/05/08 12:44:00 Plugin minimum port: 10000
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:168: 2013/05/08 12:44:00 Plugin maximum port: 10000
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:168: 2013/05/08 12:44:00 Plugin address: :10000
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:168: 2013/05/08 12:44:00 Waiting for connection...
    build     build image(s) from tempate
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:41: waiting for all plugin processes to complete...
2013/05/08 12:44:00 /Users/mitchellh/go/src/pkg/net/rpc/client.go:145: rpc: client protocol error: unexpected EOF
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:95: plugin process exited
2013/05/08 12:44:00 /Users/mitchellh/code/go/src/github.com/mitchellh/packer/packer/plugin/client.go:168: 2013/05/08 12:44:00 Preparing to serve a command pl
@mitchellh
Copy link
Contributor Author

If I redirect the logger to a file from the plugin, it comes out fine:

packer master → cat /tmp/what
2013/05/08 12:47:10 Preparing to serve a command plugin...
2013/05/08 12:47:10 Plugin minimum port: 10000
2013/05/08 12:47:10 Plugin maximum port: 10000
2013/05/08 12:47:10 Plugin address: :10000
2013/05/08 12:47:10 Waiting for connection...
2013/05/08 12:47:10 Serving a plugin connection...

@mitchellh
Copy link
Contributor Author

Fixed it with the above commit but really unsure why.

devcamcar pushed a commit to devcamcar/packer that referenced this issue Feb 8, 2014
Support stock openstack instead of rackspace
gaserre pushed a commit to gaserre/packer that referenced this issue May 15, 2017
Split ISO and XVA builders, add documentation
SwampDragons pushed a commit that referenced this issue Feb 13, 2018
merge with hashicorp/packer master branch
@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
outscale-mgo added a commit to outscale-mgo/packer that referenced this issue Apr 20, 2021
fix hashicorp#10

Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant