Skip to content

Instantly share code, notes, and snippets.

View psturc's full-sized avatar
🎸

Pavel Sturc psturc

🎸
  • Red Hat
  • Brno, Czech Republic
  • 21:03 (UTC +01:00)
View GitHub Profile
@psturc
psturc / ups.log
Created May 10, 2018 13:36
ups, PR 1002
13:31:22,334 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 71) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./: java.lang.RuntimeException: RESTEASY003190: Could not find constructor for class: org.jboss.aerogear.unifiedpush.rest.registry.installations.ExportEndpoint
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.
@psturc
psturc / apb-minishift.log
Created May 9, 2018 13:40
APB error when using Minishift (3.9.0) & origin-ansible-service-broker:sprint147.2
λ ~/ oc projects
You have access to the following projects and can switch between them with 'oc project <projectname>':
ansible-service-broker
default
kube-public
kube-service-catalog
kube-system
* myproject - My Project
openshift
@psturc
psturc / mongo.log
Created May 2, 2018 13:34
api-server-mongo-pod log
=> sourcing 10-check-env-vars.sh ...
=> sourcing 20-setup-wiredtiger-cache.sh ...
=> [Wed May 02 13:33:55] wiredTiger cacheSizeGB set to 1
=> sourcing 30-set-config-file.sh ...
=> sourcing 35-setup-default-datadir.sh ...
=> sourcing 40-setup-keyfile.sh ...
=> Waiting for MongoDB daemon up
2018-05-02T13:33:55.872+0000 I CONTROL [initandlisten] MongoDB starting : pid=23 port=27017 dbpath=/var/lib/mongodb/data 64-bit host=mongodb-1-bn9rl
2018-05-02T13:33:55.872+0000 I CONTROL [initandlisten] db version v3.2.10
2018-05-02T13:33:55.872+0000 I CONTROL [initandlisten] git version: 79d9b3ab5ce20f51c272b4411202710a082d0317
@psturc
psturc / asb.log
Created April 20, 2018 10:47
ASB cannot be deployed
Using config file mounted to /etc/ansible-service-broker/config.yaml
============================================================
== Starting Ansible Service Broker... ==
============================================================
[2018-04-20T10:44:47.951Z] [NOTICE] - Initializing clients...
[2018-04-20T10:44:47.951Z] [DEBUG] - Trying to connect to etcd
[2018-04-20T10:44:47.952Z] [INFO] - == ETCD CX ==
[2018-04-20T10:44:47.952Z] [INFO] - EtcdHost: asb-etcd.ansible-service-broker.svc
[2018-04-20T10:44:47.952Z] [INFO] - EtcdPort: 2379
[2018-04-20T10:44:47.952Z] [INFO] - Endpoints: [https://asb-etcd.ansible-service-broker.svc:2379 ]
@psturc
psturc / install_asb.sh
Last active May 23, 2018 09:35
Install ASB on OpenShift
#!/bin/bash
# This script will delete remains of previous instance of Ansible Service Broker
# and installs a new one into project ansible-service-broker
#
# INSTRUCTIONS
# Login as admin via oc
# Delete projects containing previous instance of ASB if any
# Replace variables' values containing <REPLACE_ME>, also consider changing the version of ASB template (change value of TEMPLATE_VERSION variable)
# or ASB image (BROKER_IMAGE variable)
# Run this with 'bash install_asb.sh'
Using config file mounted to /etc/ansible-service-broker/config.yaml
============================================================
== Starting Ansible Service Broker... ==
============================================================
[2018-04-10T13:27:54.757Z] [NOTICE] - Initializing clients...
[2018-04-10T13:27:54.757Z] [DEBUG] - Trying to connect to etcd
[2018-04-10T13:27:54.757Z] [DEBUG] - Unable to get dao.etcd_ca_file from config
[2018-04-10T13:27:54.757Z] [DEBUG] - Unable to get dao.etcd_client_key from config
[2018-04-10T13:27:54.757Z] [DEBUG] - Unable to get dao.etcd_client_cert from config
[2018-04-10T13:27:54.757Z] [INFO] - == ETCD CX ==
@psturc
psturc / MetricsIntegrationTest.swift
Last active April 10, 2018 08:10
metrics integration testing
/*
To run those tests from commandline:
xcodebuild \
-workspace example/AeroGearSdkExample.xcworkspace \
-scheme AeroGearSdkExampleTests -sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 7' \
'-only-testing:AeroGearSdkExampleTests/MetricsIntegrationTests/_testPublishingDefaultMetricsShouldNotReturnError' \
'-only-testing:AeroGearSdkExampleTests/MetricsIntegrationTests/_testPublishingInvalidMetricsShouldReturnError' \
@psturc
psturc / mobile-services.json
Last active April 6, 2018 12:21
curl to metrics app
curl -X POST \
https://aerogear-app-metrics-test-android-sdk-8-1523001311096.ci.feedhenry.org/metrics \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 76a14738-976f-f0ea-4039-12efeebf4f1e' \
-d '{
"clientId": "123456",
"data": {
"app": {
"id": "com.example.someApp",
error: bundling failed: Error: While trying to resolve module `@aerogearservices/core` from file `/Users/psturc/work/aerogear/aerogear-js-sdk/example/react-native/src/components/StartScreen.js`, the package `/Users/psturc/work/aerogear/aerogear-js-sdk/example/react-native/node_modules/@aerogearservices/core/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/psturc/work/aerogear/aerogear-js-sdk/example/react-native/node_modules/@aerogearservices/core/dist/index.js`. Indeed, none of these files exist:
* `/Users/psturc/work/aerogear/aerogear-js-sdk/example/react-native/node_modules/@aerogearservices/core/dist/index.js(.native||.android.js|.native.js|.js|.android.json|.native.json|.json)`
* `/Users/psturc/work/aerogear/aerogear-js-sdk/example/react-native/node_modules/@aerogearservices/core/dist/index.js/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json)`
at PackageResolutionError (/Users/psturc/w
psturc@Pavels-MacBook-Pro ~/gocode/src/github.com/aerogear/aerogear-app-metrics [13:21:49]
> $ docker ps -a | grep sql ⬡ 6.11.3 [±fix-responses ✓]
psturc@Pavels-MacBook-Pro ~/gocode/src/github.com/aerogear/aerogear-app-metrics [13:22:02]
> $ make test-integration ⬡ 6.11.3 [±fix-responses ✓]
Running tests:
go test -v -race -cover -tags=integration \
github.c