cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 929 forks source link

cannot install pcfDev - File is not a valid cf CLI plugin binary. #1162

Closed tryingT closed 7 years ago

tryingT commented 7 years ago

Command

cf install-plugin pcfdev-v0.26.0+PCF1.10.0-windows.exe

What occurred

Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk. Do you want to install the plugin pcfdev-v0.26.0+PCF1.10.0-windows_NEW.exe? [yN] : y dial tcp 127.0.0.1:58160: socket: An invalid argument was supplied. exit status 1 File is not a valid cf CLI plugin binary.

What you expected to occur

CLI Version

cf.exe version 6.27.0+d26b32d.2017-06-08

CC API Endpoint Version

CF Trace

Platform & Shell Details

Windows 7 64 bit

Any other relevant information

same happened any other plugin from https://plugins.cloudfoundry.org/

cf install-plugin -r CF-Community "cflocal" Searching CF-Community for plugin cflocal... Plugin cflocal 0.12.0 found in: CF-Community Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk. Do you want to install the plugin cflocal? [yN]: y Starting download of plugin binary from repository CF-Community... = =1=2=.=6=9= =M=i=B= =/= =1=2=.]6 9 9M9i.B6 9[%= =0=s============================================= ==============] 100.00% 15s dial tcp 127.0.0.1:58553: socket: An invalid argument was supplied. exit status 1 File is not a valid cf CLI plugin binary. FAILED

cf-gitbot commented 7 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/146970091

The labels on this github issue will be updated when the story is started.

dkoper commented 7 years ago

Hi @tryingT

This is what I see on Windows 7 64 bit:

D:\Users\koperd\Downloads\bin\t>cf -v
cf version 6.27.0+d26b32d.2017-06-08

D:\Users\koperd\Downloads\bin\t>cf install-plugin cflocal -r CF-Community
Searching CF-Community for plugin cflocal...
Plugin cflocal 0.12.0 found in: CF-Community
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to uninstall the existing plugin and install cflocal 0.12.0? [yN]: y

Starting download of plugin binary from repository CF-Community...
 12.69 MiB / 12.69 MiB [=============================================================================================] 100.00% 9s
Installing plugin cflocal...
OK
Plugin cflocal 0.12.0 successfully installed.

Are you getting the error you see on the previous cf CLI release as well?

Regards, Dies Koper CF CLI PM

mkc-nick commented 7 years ago

I've got same issue on my Windows 7 64-bits platform.

dkoper commented 7 years ago

@mkc-nick Are you getting the error you see on the previous cf CLI release as well?

mkc-nick commented 7 years ago

@dkoper Ya, I've got the same error after I exec the pcfdev-v0.26.0+PCF1.10.0-windows.exe on my windows 7 64-bits laptop. Don't figure out why, it seems the installation package got some internal error or something..

dkoper commented 7 years ago

@mkc-nick Is this plugin somewhere publicly available for me to download and try? Is there a previous cf CLI version where this binary does work for you?

mkc-nick commented 7 years ago

@dkoper Just sign up a account in here : https://network.pivotal.io/, once you have signed in ,you will find a PCF Dev download menu. Yon could choose your favorite platform version such as Win, Linux or Mac. But I didn't work out a solution to solve this issue. Hope the Dev team could take a look at this issue. @ @cf-gitbot

dkoper commented 7 years ago

@mkc-nick I found a file called pcfdev-v0.26.0+PCF1.10.0-windows.zip, unzipped to pcfdev-v0.26.0+PCF1.10.0-windows.exe:

D:\Users\koperd\Downloads\bin>cf install-plugin D:\Users\koperd\Downloads\pcfdev-v0.26.0+PCF1.10.0-windows.exe
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin D:\Users\koperd\Downloads\pcfdev-v0.26.0+PCF1.
10.0-windows.exe? [yN]: y
Installing plugin pcfdev...
OK
Plugin pcfdev 0.26.0 successfully installed.

I'll ask my team to see where your error message could come from.

XenoPhex commented 7 years ago

I haven't been able to reproduce this on my Windows VMs, but there's a good chance that if it's happening on old versions of cf that the problem is with the plugin itself. It might be worth contacting the plugin developers for support first.

dkoper commented 7 years ago

Closing. We believe the issue could be with the plugin and without access to its source code there's nothing we can do to proceed investigating the isue.