danhigham / cloudfoundry-tmate-buildpack Goto Github PK
View Code? Open in Web Editor NEWA buildpack to install tmate to enable remote tmux sessions
A buildpack to install tmate to enable remote tmux sessions
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.
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
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.
Amazon returns a redirect on http:// and the build pack fails to install
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.