Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Not able to login #128

Open
georgifarashev opened this issue Apr 9, 2020 · 5 comments
Open

Not able to login #128

georgifarashev opened this issue Apr 9, 2020 · 5 comments

Comments

@georgifarashev
Copy link

I am trying to run cfdev on my local machine but I am unable to login.
(I have Intel Xeon 6 core cpu and 32gb of ram)

PS C:\WINDOWS\system32> cf dev version
CLI: 0.0.17
BUILD: 14 (b36c82e)

cf: v11.2.0
cf-mysql: 36.19.0

PS C:\WINDOWS\system32> cf dev start
Downloading Resources...
Progress: |====================>| 100.0%
Setting State...
Creating the VM...
Starting VPNKit...
Starting the VM...
Waiting for the VM...
Deploying the BOSH Director...
Deploying CF...
  Done (8m12s)

          ██████╗███████╗██████╗ ███████╗██╗   ██╗
         ██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
         ██║     █████╗  ██║  ██║█████╗  ██║   ██║
         ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
         ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
          ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
                     is now running!

        To begin using CF 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 deploy a particular service, please run:
            cf dev deploy-service <service-name> [Available services: mysql]

PS C:\WINDOWS\system32> cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
API endpoint: https://api.dev.cfdev.sh

Request error: Get https://api.dev.cfdev.sh: dial tcp 10.144.0.34:443: connectex: No connection could be made because the target machine actively refused it.
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.
FAILED

In the deploy-cf.log I see the following:

Task 71 Started  Thu Apr  9 11:34:23 UTC 2020
Task 71 Finished Thu Apr  9 11:42:22 UTC 2020
Task 71 Duration 00:07:59
Task 71 done

Succeeded
Setting api endpoint to api.dev.cfdev.sh...
Request error: Get https://api.dev.cfdev.sh/v2/info: dial tcp 10.144.0.34:443: connectex: No connection could be made because the target machine actively refused it.
TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.
FAILED
No API endpoint set. Use 'cf.exe login' or 'cf.exe api' to target an endpoint.
FAILED

I see logs in vpnkit.err.log similar to this one:

vpnkit.exe: [ERROR] Socket.TCPv4.bind: Socket.TCPv4.bind(10.144.0.34, 1035): address not available

and this one:

vpnkit.exe: [ERROR] Socket.Stream: caught Invalid argument
vpnkit.exe: [ERROR] Socket.UDPv4.read: udp -> 192.168.0.1:53 caught Lwt.Resolution_loop.Canceled returning Eof

I am not behind a proxy and I disabled my firewall during the startup and login.

@cf-gitbot
Copy link

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

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

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

@aemengo
Copy link
Contributor

aemengo commented Apr 9, 2020

The vpnkit.err.log looks fine. Can you verify that that aren't any firewall/networking rules in your environment stopping you from reaching 10.144.0.34 ?

@georgifarashev
Copy link
Author

As I mentioned I have disabled my firewall during startup and login. I am able to ping this IP.
I forgot to mention that I did not have this problem with cfdev 0.0.15. The issue seems to have occured in 0.0.16.

@Jojo134
Copy link

Jojo134 commented Apr 22, 2020

I had a similar error after shutting down and restarting the cfdev vm, my guess was this is related to hyperv networking. It got solved for me by running deleting the vm and creating a new using cf dev

@georgifarashev
Copy link
Author

I tried removing the vm and the whole .cfdev folder. I even tried reinstalling windows (not for this reason). None of it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants