[cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
Not able to login cf login -a https://api.dev.cfdev.sh --skip-ssl-validation. and Configured the https_proxy and getting 502 bad gateway error.

I am able to install Hyper-V, PCF dev in my local system and able to see the logo and password..

I am able tp ing api.dev.cfdev.sh -> i am getting reply 10.144.0.34 and I am also able to see CFdev in Hyper-V terminal is owly.

Thanks
Ganesh
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8281) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

Liu Liming
Hi Ganesh,
could you please provide more information?
say,
1. the cfdev plugin version.
2. the memory size of your machine.
3. the output of the "cf dev start" command.

and I think it worth testing get rid off the https_proxy, and run the command on the windows 10 hyper-v host directly,
so see whether it's due to the proxy.

Thanks,
Andy
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8282) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
1. the cfdev plugin version. - cf version 6.39.1+efdd631d2.2018-09-18
2. the memory size of your machine. - 32 GB
3. the output of the "cf dev start" command.

Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
Downloading Resources...
Creating the VM...=============>| 100.0%
Starting VPNKit...
Starting the VM...
Waiting for Garden...
Deploying the BOSH Director...
Deploying CF...
  Uploading ReleasesDeploying Apps-Manager...
  Done (7m40s)
Deploying Mysql...
  Done (5m52s)
Deploying RabbitMQ...
  Done (3m28s)
Deploying Redis...
  Done (1m48s)
 
         ██████╗  ██████╗███████╗██████╗ ███████╗██╗   ██╗
         ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
         ██████╔╝██║     █████╗  ██║  ██║█████╗  ██║   ██║
         ██╔═══╝ ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
         ██║     ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
         ╚═╝      ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
                     is now running!
 
        To begin using PCF Dev, please run:
            cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
 
        Admin user => Email: admin / Password: admin
        Regular user => Email: user / Password: pass
 
        To access Apps Manager, navigate here: https://apps.dev.cfdev.sh
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8283) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

Liu Liming
Hi Ganesh,
from the output, the cf-dev should already up.

what's the output after you run 
"
cf login -a https://api.dev.cfdev.sh --skip-ssl-validation"?
got 502 error?

what if open "
https://apps.dev.cfdev.sh" in the browser?

did you try to get rid of the https proxy, and retry?

Thanks,
Andy
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8284) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
I am working behind proxy, so I set the https_proxy with credentials then I got 502 error. If we don't set the credentials in the Proxy, I am getting authentication error.
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8285) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
Hi Liu,

my https_proxy look like below

http://DOMAIN%5Cganeshxxxxx.xxx:PPPP%23@PROXY-DOMAIN:PORT

%5 => /
%23 => #  My password has # symbol

without http encode => http://DOMAIN/myName:password#@xxx-ddi:8888.

I am getting below error 

API endpoint: https://api.dev.cfdev.sh
FAILED
Server error, status code: 502, error code: 0, message:

Error is so quick, I suspect some problem with Proxy given.

Thanks
Ganesh

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8286) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

Liu Liming
Hi Ganesh,
the api.dev.cfdev.sh will be resolved to 10.144.0.34, and it's a local nic should be bypassed for the proxy.
 
here's one link to how to use pcf-dev in a http proxy environment.
https://docs.pivotal.io/pcf-dev/proxy.html
but i think it should apply to cf-dev too.
 
##############
For Windows PowerShell:
>> $env:NO_PROXY = ".dev.cfdev.sh,dev.cfdev.sh,OTHER-DOMAINS"
>> cf login -a https://api.ldev.cfdev.sh --skip-ssl-validation
##############

Thanks,
Andy
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8287) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
On Thu, Sep 27, 2018 at 07:34 PM, Liu Liming wrote:
.dev.cfdev.sh,dev.cfdev.sh,OTHER-DOMAINS
I Set NO_PROXY in Environment variable. I got below and tried everything.

Error performing request: Get https://api.dev.cfdev.sh/v2/info: dial tcp 10.144.0.34:443: i/o timeout
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly
t. Else, check your network connection.
PS C:> telnet 10.144.0.34 443
Connecting To 10.144.0.34...Could not open connection to the host, on port 443: Connect failed
PS C:> telnet 10.144.0.34 80
Connecting To 10.144.0.34...Could not open connection to the host, on port 80: Connect failed
 
PS C:> ping 10.144.0.34
 
Pinging 10.144.0.34 with 32 bytes of data:
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128
Reply from 10.144.0.34: bytes=32 time<1ms TTL=128
 
Ping statistics for 10.144.0.34:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms


TCP    10.144.0.34:80         XXXXXXXXX           LISTENING
TCP    10.144.0.34:139       XXXXXXXXX           LISTENING
TCP    10.144.0.34:443       XXXXXXXXX           LISTENING


_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8288) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
all port from 10.144.0.34 is blocked by the firewall :(

Thanks
Ganesh
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8289) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
can we remap the ip address/ port to 127.0.0.1 which is allowed ?

Thanks
Ganesh
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8290) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

Anthony Emengo
In reply to this post by ganeshbabu.rajan

Unfortunately, 10.144.0.34 is being contacted by components both inside the VM and outside. Changing it to 127.0.0.1 would break functionality as these aforementioned components would then be contacting themselves.

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8294) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
Yes, I got the point.. but behind corporate proxy and firewall, it is difficult to install pcf dev. :(..
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8295) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
In reply to this post by Anthony Emengo
I create firewall inbound/outbound rule to enable to ip address and port.. But it is not working.. still I am getting 502 bad gateway error.
I am not sure about the issue. Could you please help me out on this ?
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8296) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_
Reply | Threaded
Open this post in threaded view
|

Re: [cf-dev] Not able to Login CFDev using windows 10 Hyper-V #cf

ganeshbabu.rajan
Where do I see my logs ?
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8297) | [hidden email] | [hidden email] | Mute This Topic | New Topic
Mute #cf
Your Subscription | [hidden email] | Unsubscribe [[hidden email]]

_._,_._,_