Skip to content

Instantly share code, notes, and snippets.

@olblak
olblak / gist:9a452e0a24fe1875e4dc57345186a2fd
Created March 22, 2017 09:49
Cannot index with new data. More than likely the application needs to be rebuilt and deployed first
2017-03-22 09:47:19,498 CRIT Supervisor running as root (no user in config file)
2017-03-22 09:47:19,500 INFO supervisord started with pid 5
2017-03-22 09:47:20,501 INFO spawned: 'frontend' with pid 8
2017-03-22 09:47:20,503 INFO spawned: 'jetty' with pid 9
yarn server v0.21.3
2017-03-22 09:47:20.989:INFO::main: Logging initialized @479ms
$ run-s build server:run
2017-03-22 09:47:21.296:INFO:oejs.SetUIDListener:main: Setting umask=02
2017-03-22 09:47:21.341:INFO:oejs.SetUIDListener:main: Opened ServerConnector@96532d6{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2017-03-22 09:47:21.341:INFO:oejs.SetUIDListener:main: Setting GID=101
$ node dist/server/server.js
/plugins/node_modules/chart.js/src/core/core.helpers.js:672
return window.requestAnimationFrame ||
^
ReferenceError: window is not defined
at /plugins/node_modules/chart.js/src/core/core.helpers.js:672:10
at module.exports (/plugins/node_modules/chart.js/src/core/core.helpers.js:680:3)
at Object.<anonymous> (/plugins/node_modules/chart.js/src/chart.js:6:31)
at Module._compile (module.js:570:32)
[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()
HTTP ERROR 500
Problem accessing /. Reason:
Server Error
Caused by:
javax.servlet.ServletException: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: file:/tmp/jetty-0.0.0.0-8080-ROOT.war-_-any-6578511201239825727.dir/webapp/WEB-INF/classes/org/jenkinsci/account/Application/index.jelly:1:71: <j:jelly> tried to access class org.apache.commons.jelly.impl.ExpressionAttribute from class org.kohsuke.stapler.jelly.CallTagLibScript
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:138)
@olblak
olblak / gist:5253c1399a56a67f5b6b740ad010f6ee
Created June 14, 2017 07:44
Additional XSRF checks failed
2017-06-14 07:38:20,822 WARN [http-nio-0.0.0.0-8080-exec-139] [common.security.jersey.XsrfResourceFilter] passesAdditionalBrowserChecks Additional XSRF checks failed for request: https://wiki.jenkins.io/rest/analytics/1.0/publish/bulk , origin: https://wiki.jenkins-ci.org , referrer: https://wiki.jenkins-ci.org/display/JENKINS/Disable+security , credentials in request: true , allowed via CORS: false
curl -sSL https://get.docker.com/ > /docker-bootstrap.sh
sudo sh /docker-bootstrap.sh
sudo apt-get install -qy default-jre zip make
sudo usermod -aG docker jenkins
curl -sSL https://get.docker.com/ > /docker-bootstrap.sh
sudo sh /docker-bootstrap.sh
sudo apt-get install -qy default-jre zip make
sudo usermod -aG docker jenkins
@olblak
olblak / k8s_upgrade.2017-08-24.adoc
Last active September 1, 2017 23:49
2017-08-24 - K8s upgrade

To Do

Step 1: Backup

  • ✓ Backup prodmgmt ssl certificates

.bin/kubectl get secret repo-proxy-tls --export=true --kubeconfig .kube/config -o yaml > ~/backup/prodmgmt/secret.repo_proxy-tls.yaml
.bin/kubectl get secret pluginsite-tls --export=true --kubeconfig .kube/config -o yaml > ~/backup/prodmgmt/secret.pluginsite-tls.yaml
  • ✓ Create secret 'accountapp-tls' containing letsencrypt certificate for accounts.jenkins.io

# Parallel Stages (Before Declarative Pipeline 1.2)
/* .. snip .. */
stage('run-parallel-branches') {
steps {
parallel(
BranchA: {
echo "This is branch a"
},
BranchB: {
echo "This is branch b"
public static final String SPAM_MESSAGE = "Due to the spam problem, we will need additional verification for your sign-up request. " +
"More details are found on <a href='https://wiki.jenkins-ci.org/display/JENKINS/User+Account+on+Jenkins'>our wiki</a> on how to get your account created.";