Skip to content

Instantly share code, notes, and snippets.

@trastle
trastle / mirror-repo.sh
Last active December 19, 2015 22:49
Small script to mirror the OpenShift Origin nightly repos File locations openshift-origin-deps.repo -> /etc/yum.repos.d/openshift-origin-deps.repo openshift-origin-nightly.repo -> /etc/yum.repos.d/openshift-origin-nightly.repo
#!/bin/bash
LOG_FILE="/tmp/openshift-repo-mirror.log"
function doLog {
timestamp=`date +%Y/%m/%d\ %H:%M:%S\(%z\)`
echo "$timestamp | $@" >> "$LOG_FILE"
}
function doMirror()
@trastle
trastle / git-config.sh
Last active December 20, 2015 18:18
Configure git to be a bit more awesome.
#!/bin/bash
# Just correct my typos
git config --global help.autocorrect 1
# Configure git to cache HTTPS passwords for 6 hours
git config --global credential.helper cache
git config credential.helper 'cache --timeout=21600'
# Disable SSL checks if we are using self signed certs
@trastle
trastle / build log
Last active December 21, 2015 22:42
Building the UAA
tastle@tastle-w500 G=master uaa $ mvn clean install
[INFO] Scanning for projects...
[WARNING] The POM for org.springframework.build.aws:org.springframework.build.aws.maven:jar:3.0.0.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.cloudfoundry.identity:cloudfoundry-identity-common:jar:1.4.4
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ org.cloudfoundry.identity:cloudfoundry-identity-parent:1.4.4, /home/tastle/NotMyCode/uaa/pom.xml, line 155, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.cloudfoundry.identity:cloudfoundry-identity-scim:jar:1.4.4
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ org.cloudfoundry.identity:cloudfoundry-identity-parent:1.4.4, /home/tastle/NotMyCode/uaa/p
@trastle
trastle / Terminal command
Last active December 21, 2015 23:18
Failure to deploy app on new cloud foundry install
tastle@tastle-w500 play-hello-world $ cf target http://9.10.5.59:9022
Setting target to http://9.10.5.59:9022... OK
tastle@tastle-w500 play-hello-world $ cf login
target: http://9.10.5.59:9022
Email> admin
Password> *****
---
name: cf_ngis_v2
director_uuid: 124da01f-5593-4eb6-a7bb-8e3d9bbef034
release:
name: cf
version: latest #130.65-dev
compilation:
workers: 3
@trastle
trastle / cf.yml
Created August 29, 2013 18:22 — forked from fearoffish/cf.yml
---
name: cf
director_uuid: a6bede21-3374-4c8d-a29d-a330199d0d61
releases:
- name: cf
version: 138
networks:
- name: floating
@trastle
trastle / BuildRelease.sh
Created September 6, 2013 08:29
Build Cloud Foundry Release
git clone https://github.com/cloudfoundry/cf-release.git
cd cf-release
git fetch
git submodule update --init --recursive
#
bosh create release releases/cf-138.yml
@trastle
trastle / DisableSSLCheckUtil.java
Created September 6, 2013 10:51
Disable SSL Checks
package com.github.styx.config;
import javax.net.ssl.*;
import java.io.IOException;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.security.NoSuchAlgorithmException;
@trastle
trastle / mysql_gateway.stderr.log
Last active December 24, 2015 14:09
mysql_gateway.log
root@8871a70b-1d0c-4892-a779-53fbcb1c1ce6:/var/vcap/sys/log/mysql_gateway# cat mysql_gateway.stderr.log
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
/var/vcap/data/packages/mysql_gateway/0.1-dev.1/mysql_service/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.0/lib/base/service_error.rb:13: warning: already initialized constant HTTP_BAD_REQUEST
/var/vcap/data/packages/mysql_gateway/0.1-dev.1/mysql_service/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.0/lib/base/service_error.rb:14: warning: already initialized constant HTTP_NOT_AUTHORIZED
/var/vcap/data/packages/mysql_gateway/0.1-dev.1/mysql_service/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.0/lib/base/service_error.rb:15: warning: already initialized constant HTTP_FORBIDDEN
/var/vcap/data/packages/mysql_gateway/0.1-dev.1/mysql_service/vendor/bundle/ruby/1.9.1/gems/vcap_services_base-0.2.0/lib/base/service_error.rb:16: warning: already initialized constant HTTP_NOT_FOUND
/var/vcap/data/packages/mysql_gateway/0.1-dev.
@trastle
trastle / CF_Apps_Not_Staging_No_Available_Stagers.md
Last active December 27, 2015 10:19
CF custom buildpack failing to stage "Staging error: no available stagers"

Issue

After installing a new CF in AWS I am able to push and stage my first test app but not subsequent apps.

Failing environment:

  • AWS
  • CF[140|144|146]
  • Stemcell 1226

Debugging