Giter VIP home page Giter VIP logo

cloudfoundry-tmate-buildpack's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cloudfoundry-tmate-buildpack's Issues

master.tmate.io lookup failure

I have recently deployed a dummy app using cloudfoundry-tmate-buildpack onto a number of private CF environment.

All but one of those environment are working fine. The exceptional one did not show any connection information in cf logs <APPNAME> --recent

2015-02-04T19:11:57.84+0900 [App/0]   ERR 2015/02/04 10:11:57 Starting tmate...
2015-02-04T19:11:57.84+0900 [App/0]   ERR 2015/02/04 10:11:57 1000
2015-02-04T19:11:57.84+0900 [App/0]   ERR 2015/02/04 10:11:57 1000

No following output was given in the log stream.

So I have managed to modify launch in cloudfoundry-tmate-buildpack to produce verbose logs and modify compile script to use given binary of launch if available.

After I made those changes, I deployed the dummy app with the modified cloudfoundry-tmate-buildpack, then I found following lines in tmux-server-45.log:

[tmate] master.tmate.io lookup failure. Retrying in 10 seconds (non-recoverable failure in name resolution)
[tmate] Looking up master.tmate.io...
[tmate] master.tmate.io lookup failure. Retrying in 10 seconds (nodename nor servname provided, or not known)
[tmate] Looking up master.tmate.io...
[tmate] master.tmate.io lookup failure. Retrying in 10 seconds (nodename nor servname provided, or not known)
...

The lines were repeated every 10 seconds.

I searched the web with "master.tmate.io lookup failure" and found this issue: tmate-io/tmate#32 .

And I have made some research on my own in an "OK" environment (a bosh-lite CF v194 running on my local machine) and the "NG" environment (a v172-based CF built by micro bosh on CloudStack-based VPC).

In both environments, name resolution of master.tmate.io, outbound HTTP access to the Internet, and outbound SSH connection to master.tmate.io are OK.

The only difference I've found so far is that I can't resolve the hostname of IP address by reverse DNS lookup from inside of the warden container where my dummy app is running in the NG env. Reverse DNS lookup works fine from the OK env's warden container. But I'm not sure it is related to the problem or not.

  • OK env
vcap@18clp6rlq2k:~$ curl http://portquiz.net:8080/
Port 8080 test successful!
Your IP: ***.***.***.***
vcap@18clp6rlq2k:~$ dig -x ***.***.***.***

; <<>> DiG 9.7.0-P1 <<>> -x ***.***.***.***
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54834
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;***.***.***.***.in-addr.arpa.  IN  PTR

;; ANSWER SECTION:
***.***.***.***.in-addr.arpa. 21599 IN  PTR ***.***.***.***.dy.bbexcite.jp.

;; Query time: 275 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Feb  6 04:34:11 2015
;; MSG SIZE  rcvd: 90
  • NG env
vcap@18e7k2hjjf4:~$ curl http://portquiz.net:8080/
Port 8080 test successful!
Your IP: ***.***.***.***
vcap@18e7k2hjjf4:~/app$ dig -x ***.***.***.***

; <<>> DiG 9.7.0-P1 <<>> -x ***.***.***.***
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47165
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;***.***.***.***.in-addr.arpa.  IN  PTR

;; Query time: 4 msec
;; SERVER: 10.0.0.177#53(10.0.0.177)
;; WHEN: Fri Feb  6 04:26:23 2015
;; MSG SIZE  rcvd: 46

(IP addresses are masked manually)

Any thoughts?
Thanks in advance.

ERR Failed to compile droplet

Need some help here.

I am following the README to the point where I can do the push, but then, seems like compiling libevent failed:

   2017-12-12T11:44:16.72-0800 [STG/0] OUT Creating container
   2017-12-12T11:44:17.25-0800 [STG/0] OUT Successfully created container
   2017-12-12T11:44:17.25-0800 [STG/0] OUT Downloading app package...
   2017-12-12T11:44:17.34-0800 [STG/0] OUT Downloaded app package (125B)
   2017-12-12T11:44:18.02-0800 [STG/0] OUT =====> No cached compile detected. Bulding...
   2017-12-12T11:44:18.02-0800 [STG/0] OUT -----> Compiling libevent v2.0.21...
   2017-12-12T11:44:18.06-0800 [STG/0] ERR Failed to compile droplet: Failed to compile droplet: exit status 6
   2017-12-12T11:44:18.08-0800 [STG/0] OUT Exit status 223
   2017-12-12T11:44:18.09-0800 [STG/0] OUT Stopping instance f16bc770-7123-4fb1-9d2d-7cb1d6d58d89
   2017-12-12T11:44:18.09-0800 [STG/0] OUT Destroying container
   2017-12-12T11:44:18.59-0800 [STG/0] OUT Successfully destroyed container

How shall I move forward from here?

Thanks,
Shin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.