Corda V1.0 Notary clusters config issue with Gradle - corda
I use below config to construct Notary Cluster and launch them. I used like this kind script into V14 version that's ok. but in V1 pop up that error. please help me to check.
task deployNodesRAFT(type: net.corda.plugins.Cordform, dependsOn: ['jar']) {
directory "./build/nodes"
networkMap "C=CH,L=Zurich,O=NotaryService0"
node {
name "C=CH,L=Zurich,O=NotaryService0"
advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"]
p2pPort 10002
rpcPort 10003
notaryNodePort 10001
cordapps = []
}
node {
name "C=CH,L=Zurich,O=NotaryService1"
advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"]
p2pPort 10091
rpcPort 10092
cordapps = []
notaryNodePort 10093
notaryClusterAddresses = ["localhost:10001"]
}
node {
name "C=CH,L=Zurich,O=NotaryService2"
advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"]
p2pPort 10094
rpcPort 10095
cordapps = []
notaryNodePort 10096
notaryClusterAddresses = ["localhost:10001"]
}
log:
[ERROR] 2017-10-17T05:42:31,180Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - name constraints check failed
[ERROR] 2017-10-17T05:42:31,181Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - Path =
[ERROR] 2017-10-17T05:42:31,181Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - CN=Corda Node Root CA,O=R3,OU=corda,L=London,C=UK
[ERROR] 2017-10-17T05:42:31,182Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - CN=Corda Node Intermediate CA,O=R3,OU=corda,L=London,C=UK
[ERROR] 2017-10-17T05:42:31,184Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - C=CH,L=Zurich,O=NotaryService0,CN=Corda Client CA Certificate
[ERROR] 2017-10-17T05:42:31,185Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft
[ERROR] 2017-10-17T05:42:31,189Z [main] internal.Node.run - Exception during node startup
rx.exceptions.OnErrorNotImplementedException: name constraints check failed
at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:153) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115) ~[rxjava-1.2.4.jar:1.2.4]
at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:216) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.Subscribers$5.onNext(Subscribers.java:235) ~[rxjava-1.2.4.jar:1.2.4]
at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber$onNext$1.invoke(CordaPersistence.kt:159) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber$onNext$1.invoke(CordaPersistence.kt:143) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber$forEachSubscriberWithDbTx$1.invoke(CordaPersistence.kt:150) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber$forEachSubscriberWithDbTx$1.invoke(CordaPersistence.kt:143) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:84) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:75) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber.forEachSubscriberWithDbTx(CordaPersistence.kt:148) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber.onNext(CordaPersistence.kt:159) ~[corda-node-1.0.0.jar:?]
at rx.subjects.PublishSubject$PublishSubjectProducer.onNext(PublishSubject.java:304) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.PublishSubject$PublishSubjectState.onNext(PublishSubject.java:219) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.PublishSubject.onNext(PublishSubject.java:72) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.util.ObserverSubscriber.onNext(ObserverSubscriber.java:34) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:134) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.Subscribers$5.onNext(Subscribers.java:235) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.UnicastSubject$State.replay(UnicastSubject.java:295) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.UnicastSubject$State.request(UnicastSubject.java:237) ~[rxjava-1.2.4.jar:1.2.4]
at rx.Subscriber.setProducer(Subscriber.java:209) ~[rxjava-1.2.4.jar:1.2.4]
at rx.Subscriber.setProducer(Subscriber.java:205) ~[rxjava-1.2.4.jar:1.2.4]
at rx.Subscriber.setProducer(Subscriber.java:205) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.UnicastSubject$State.call(UnicastSubject.java:252) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.UnicastSubject$State.call(UnicastSubject.java:115) ~[rxjava-1.2.4.jar:1.2.4]
at rx.Observable.unsafeSubscribe(Observable.java:10142) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.operators.OnSubscribeDelaySubscriptionOther$1.onCompleted(OnSubscribeDelaySubscriptionOther.java:74) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.operators.OnSubscribeDelaySubscriptionOther$1.onNext(OnSubscribeDelaySubscriptionOther.java:53) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.producers.SingleProducer.request(SingleProducer.java:65) ~[rxjava-1.2.4.jar:1.2.4]
at rx.Subscriber.setProducer(Subscriber.java:209) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.operators.OperatorSingle$ParentSubscriber.onCompleted(OperatorSingle.java:110) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.operators.OperatorTake$1.onNext(OperatorTake.java:80) ~[rxjava-1.2.4.jar:1.2.4]
at rx.internal.operators.OnSubscribeFilter$FilterSubscriber.onNext(OnSubscribeFilter.java:76) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.PublishSubject$PublishSubjectProducer.onNext(PublishSubject.java:304) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.PublishSubject$PublishSubjectState.onNext(PublishSubject.java:219) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.PublishSubject.onNext(PublishSubject.java:72) ~[rxjava-1.2.4.jar:1.2.4]
at rx.observers.SerializedObserver.onNext(SerializedObserver.java:91) ~[rxjava-1.2.4.jar:1.2.4]
at rx.subjects.SerializedSubject.onNext(SerializedSubject.java:67) ~[rxjava-1.2.4.jar:1.2.4]
at net.corda.node.utilities.DatabaseTransaction.close(DatabaseTransactionManager.kt:60) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:100) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:75) ~[corda-node-1.0.0.jar:?]
at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65) ~[corda-node-1.0.0.jar:?]
at net.corda.node.services.network.PersistentNetworkMapCache.addNode(PersistentNetworkMapCache.kt:163) ~[corda-node-1.0.0.jar:?]
at net.corda.node.internal.AbstractNode.registerWithNetworkMapIfConfigured(AbstractNode.kt:511) ~[corda-node-1.0.0.jar:?]
at net.corda.node.internal.AbstractNode.start(AbstractNode.kt:220) ~[corda-node-1.0.0.jar:?]
at net.corda.node.internal.Node.start(Node.kt:312) ~[corda-node-1.0.0.jar:?]
at net.corda.node.internal.NodeStartup.startNode(NodeStartup.kt:95) ~[corda-node-1.0.0.jar:?]
at net.corda.node.internal.NodeStartup.run(NodeStartup.kt:74) [corda-node-1.0.0.jar:?]
at net.corda.node.Corda.main(Corda.kt:11) [corda-node-1.0.0.jar:?]
Caused by: java.security.cert.CertPathValidatorException: name constraints check failed
As you mention in your second comment, the node configs are fine, but you haven't generated the distributedService certificate.
To generate this certificate automatically, take a look at the Gradle task defined here, that creates a cluster of RAFT notaries for you: https://github.com/corda/corda/blob/release-V1/samples/notary-demo/src/main/kotlin/net/corda/notarydemo/RaftNotaryCordform.kt. The shared certificate is generated on line 65.
Related
Firebase CLI: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
On firebase cli version 7.11.0 I am getting this error when running firebase serve or firebase deploy. // terminal error owner#G700:~/PhpstormProjects/shopify/buyUsedServer$ firebase serve --debug [2020-01-10T21:56:29.047Z] ---------------------------------------------------------------------- [2020-01-10T21:56:29.060Z] Command: /home/owner/.nvm/versions/node/v10.16.3/bin/node /usr/local/bin/firebase serve --debug [2020-01-10T21:56:29.061Z] CLI Version: 7.11.0 [2020-01-10T21:56:29.061Z] Platform: linux [2020-01-10T21:56:29.061Z] Node Version: v10.16.3 [2020-01-10T21:56:29.062Z] Time: Sat Jan 11 2020 04:56:29 GMT+0700 (Indochina Time) [2020-01-10T21:56:29.064Z] ---------------------------------------------------------------------- [2020-01-10T21:56:29.064Z] [2020-01-10T21:56:29.083Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] [2020-01-10T21:56:29.083Z] > authorizing via signed-in user [2020-01-10T21:56:29.084Z] [iam] checking project buyusedshopify for permissions ["firebase.projects.get"] [2020-01-10T21:56:29.087Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/buyusedshopify:testIamPermissions permissions=[firebase.projects.get] [2020-01-10T21:56:30.516Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Fri, 10 Jan 2020 21:56:30 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, server-timing=gfet4t7; dur=1191, alt-svc=quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000, accept-ranges=none, transfer-encoding=chunked [2020-01-10T21:56:30.519Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/buyusedshopify [2020-01-10T21:56:31.188Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Fri, 10 Jan 2020 21:56:31 GMT, server=ESF, cache-control=private, x-xss-protection=0, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000, accept-ranges=none, transfer-encoding=chunked === Serving from '/home/owner/PhpstormProjects/shopify/buyUsedServer'... [2020-01-10T21:56:31.194Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/buyusedshopify/webApps/-/config [2020-01-10T21:56:31.197Z] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at validateString (internal/validators.js:125:11) at Object.join (path.js:1147:7) at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/lib/serve/functions.js:20:39) at Generator.next (<anonymous>) at /usr/local/lib/node_modules/firebase-tools/lib/serve/functions.js:7:71 at new Promise (<anonymous>) at __awaiter (/usr/local/lib/node_modules/firebase-tools/lib/serve/functions.js:3:12) at Object.start (/usr/local/lib/node_modules/firebase-tools/lib/serve/functions.js:18:16) at /usr/local/lib/node_modules/firebase-tools/lib/serve/index.js:15:23 at arrayMap (/usr/local/lib/node_modules/firebase-tools/node_modules/lodash/lodash.js:639:23) at Function.map (/usr/local/lib/node_modules/firebase-tools/node_modules/lodash/lodash.js:9554:14) at _serve (/usr/local/lib/node_modules/firebase-tools/lib/serve/index.js:13:26) at Command.module.exports.Command.description.option.option.option.option.before.action [as actionFn] (/usr/local/lib/node_modules/firebase-tools/lib/commands/serve.js:58:12) at Command.<anonymous> (/usr/local/lib/node_modules/firebase-tools/lib/command.js:156:25) at Generator.next (<anonymous>) at fulfilled (/usr/local/lib/node_modules/firebase-tools/lib/command.js:4:58) Error: An unexpected error has occurred. Does anyone know what may cause this? Here is also my firebase.json: // firebase.json { "firestore": { "rules": "firestore.rules", "indexes": "firestore.indexes.json" }, "functions": { "predeploy": [ "npm --prefix \"$RESOURCE_DIR\" run lint", "npm --prefix \"$RESOURCE_DIR\" run build" ] }, "hosting": { "public": "public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ] }, "emulators": { "functions": { "port": 5001 }, "firestore": { "port": 8080 }, "hosting": { "port": 5000 } } }
FirebaseAuth.instance.signInWithEmailAndPassword(email, password) makes flutter crash
Flutter App crashes when executing firebase auth function signInWithEmailAndPassword I suggest the problem has someting to do with incompatible versions. But with lower versions, we have a problem with androidx. Future<String> signInWithEmailAndPassword(String email, String password)async{ FirebaseUser user = (await _firebaseAuth.signInWithEmailAndPassword(email: email, password: password)).user; //Here it crashes return user.uid; } The dependencies in pubspec.yaml: dependencies: flutter: sdk: flutter cloud_firestore: any firebase_auth: 0.14.0+5 My dependencies in project level .gradle: dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.2.0' } In app level .gradle defaultConfig { applicationId "com.example.testtool" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } and the dependencies (also in app level .gradle): dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation 'com.google.firebase:firebase-analytics:17.0.1' implementation 'androidx.multidex:multidex:2.0.1' } apply plugin: 'com.google.gms.google-services' And this is the error: I/flutter (25442): Another exception was thrown: NoSuchMethodError: The getter 'position' was called on null. I/chatty (25442): uid=10234(com.example.testtool) 2.ui identical 8 lines I/flutter (25442): Another exception was thrown: NoSuchMethodError: The getter 'position' was called on null. W/BiChannelGoogleApi(25442): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzak#98a1ffc E/JavaBinder(25442): *** Uncaught remote exception! (Exceptions are not yet supported across processes.) E/JavaBinder(25442): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap; E/JavaBinder(25442): at com.google.firebase.auth.internal.zzam.zzc(Unknown Source:22) E/JavaBinder(25442): at com.google.firebase.auth.internal.zzam.zzde(Unknown Source:17) E/JavaBinder(25442): at com.google.firebase.auth.internal.zzam.zzdd(Unknown Source:8) E/JavaBinder(25442): at com.google.firebase.auth.internal.zzan.zzdf(Unknown Source:1) E/JavaBinder(25442): at com.google.firebase.auth.internal.zzm.isAnonymous(Unknown Source:47) E/JavaBinder(25442): at com.google.firebase.auth.api.internal.zzep.zza(Unknown Source:9) E/JavaBinder(25442): at com.google.firebase.auth.api.internal.zzdx.dispatchTransaction(Unknown Source:9) E/JavaBinder(25442): at com.google.android.gms.internal.firebase_auth.zza.onTransact(Unknown Source:13) E/JavaBinder(25442): at android.os.Binder.execTransact(Binder.java:731) E/JavaBinder(25442): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/com.example.testtool-H8ql3WqJ13OCb4aCfdLNsQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.testtool-H8ql3WqJ13OCb4aCfdLNsQ==/lib/arm64, /data/app/com.example.testtool-H8ql3WqJ13OCb4aCfdLNsQ==/base.apk!/lib/arm64-v8a, /system/lib64]] E/JavaBinder(25442): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) E/JavaBinder(25442): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) E/JavaBinder(25442): at java.lang.ClassLoader.loadClass(ClassLoader.java:312) E/JavaBinder(25442): ... 16 more E/AndroidRuntime(25442): FATAL EXCEPTION: Binder:25442_2 E/AndroidRuntime(25442): at com.google.firebase.auth.internal.zzat.zzi(Unknown Source:57) E/AndroidRuntime(25442): at com.google.firebase.auth.internal.zzat.zzg(Unknown Source:10) E/AndroidRuntime(25442): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:62) E/AndroidRuntime(25442): at com.google.firebase.auth.FirebaseAuth$zzb.zza(Unknown Source:5) E/AndroidRuntime(25442): at com.google.firebase.auth.api.internal.zzcr.zzdx(Unknown Source:15) E/AndroidRuntime(25442): at com.google.firebase.auth.api.internal.zzen.zzen(Unknown Source:35) E/AndroidRuntime(25442): at com.google.firebase.auth.api.internal.zzen.zza(Unknown Source:41) E/AndroidRuntime(25442): at com.google.firebase.auth.api.internal.zzep.zza(Unknown Source:9) E/AndroidRuntime(25442): at com.google.firebase.auth.api.internal.zzdx.dispatchTransaction(Unknown Source:9) E/AndroidRuntime(25442): at com.google.android.gms.internal.firebase_auth.zza.onTransact(Unknown Source:13) E/AndroidRuntime(25442): at android.os.Binder.execTransact(Binder.java:731) E/AndroidRuntime(25442): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.util.ArrayMap" on path: DexPathList[[zip file "/data/app/com.example.testtool-H8ql3WqJ13OCb4aCfdLNsQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.testtool-H8ql3WqJ13OCb4aCfdLNsQ==/lib/arm64, /data/app/com.example.testtool-H8ql3WqJ13OCb4aCfdLNsQ==/base.apk!/lib/arm64-v8a, /system/lib64]] E/AndroidRuntime(25442): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) E/AndroidRuntime(25442): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) E/AndroidRuntime(25442): at java.lang.ClassLoader.loadClass(ClassLoader.java:312) E/AndroidRuntime(25442): ... 16 more I/Process (25442): Sending signal. PID: 25442 SIG: 9 Lost connection to device.
The problem was an incompability with androidx. If something similar happens to you, try to migrate your project to androidx https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility
Is your google-services.json file in your project?
Corda: deploy node on a docker and cannot reach to it
I am trying to deploy node with the official docker image with following command docker run -ti \ --memory=2048m \ --cpus=2 \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/config:/etc/corda \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/certificates:/opt/corda/certificates \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/persistence:/opt/corda/persistence \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/logs:/opt/corda/logs \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/cordapps:/opt/corda/cordapps \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/additional-node-infos:/opt/corda/additional-node-infos \ -v /Users/aliceguo/IdeaProjects/car-cordapp/build/nodes/PartyC/network-parameters:/opt/corda/network-parameters \ -p 10011:10011 \ -p 10012:10012 \ corda/corda-corretto-5.0-snapshot. And the node seems to start successfully, but I cannot connect to it via rpc from my laptop (the docker container is on my laptop as well). I will attach some log and screenshot below. Any help would be appreciated! Node Log: [INFO ] 2019-07-19T03:21:23,163Z [main] cliutils.CordaCliWrapper.call - Application Args: --base-directory /opt/corda --config-file /etc/corda/node.conf [INFO ] 2019-07-19T03:21:24,146Z [main] manifests.Manifests.info - 115 attributes loaded from 152 stream(s) in 61ms, 115 saved, 2353 ignored: ["ActiveMQ-Version", "Agent-Class", "Ant-Version", "Application-Class", "Application-ID", "Application-Library-Allowable-Codebase", "Application-Name", "Application-Version", "Archiver-Version", "Automatic-Module-Name", "Bnd-LastModified", "Branch", "Build-Date", "Build-Host", "Build-Id", "Build-Java-Version", "Build-Jdk", "Build-Job", "Build-Number", "Build-Timestamp", "Built-By", "Built-OS", "Built-Status", "Bundle-Activator", "Bundle-Category", "Bundle-ClassPath", "Bundle-Copyright", "Bundle-Description", "Bundle-DocURL", "Bundle-License", "Bundle-ManifestVersion", "Bundle-Name", "Bundle-NativeCode", "Bundle-RequiredExecutionEnvironment", "Bundle-SymbolicName", "Bundle-Vendor", "Bundle-Version", "Caller-Allowable-Codebase", "Can-Redefine-Classes", "Can-Retransform-Classes", "Can-Set-Native-Method-Prefix", "Caplets", "Change", "Class-Path", "Codebase", "Corda-Platform-Version", "Corda-Release-Version", "Corda-Revision", "Corda-Vendor", "Created-By", "DynamicImport-Package", "Eclipse-BuddyPolicy", "Eclipse-LazyStart", "Export-Package", "Extension-Name", "Fragment-Host", "Gradle-Version", "Hibernate-JpaVersion", "Hibernate-VersionFamily", "Implementation-Build", "Implementation-Build-Date", "Implementation-Title", "Implementation-URL", "Implementation-Url", "Implementation-Vendor", "Implementation-Vendor-Id", "Implementation-Version", "Import-Package", "Include-Resource", "JCabi-Build", "JCabi-Date", "JCabi-Version", "JVM-Args", "Java-Agents", "Java-Vendor", "Java-Version", "Kotlin-Runtime-Component", "Kotlin-Version", "Liquibase-Package", "Log4jReleaseKey", "Log4jReleaseManager", "Log4jReleaseVersion", "Main-Class", "Main-class", "Manifest-Version", "Min-Java-Version", "Min-Update-Version", "Module-Email", "Module-Origin", "Module-Owner", "Module-Source", "Multi-Release", "Originally-Created-By", "Os-Arch", "Os-Name", "Os-Version", "Permissions", "Premain-Class", "Private-Package", "Provide-Capability", "Require-Capability", "SCM-Revision", "SCM-url", "Scm-Connection", "Scm-Revision", "Scm-Url", "Service-Component", "Specification-Title", "Specification-Vendor", "Specification-Version", "System-Properties", "Tool", "Trusted-Library", "X-Compile-Source-JDK", "X-Compile-Target-JDK"] [INFO ] 2019-07-19T03:21:24,188Z [main] BasicInfo.printBasicNodeInfo - Logs can be found in : /opt/corda/logs [INFO ] 2019-07-19T03:21:25,096Z [main] subcommands.ValidateConfigurationCli.logRawConfig$node - Actual configuration: { "additionalNodeInfoPollingFrequencyMsec" : 5000, "additionalP2PAddresses" : [], "attachmentCacheBound" : 1024, "baseDirectory" : "/opt/corda", "certificateChainCheckPolicies" : [], "cordappSignerKeyFingerprintBlacklist" : [ "56CA54E803CB87C8472EBD3FBC6A2F1876E814CEEBF74860BD46997F40729367", "83088052AF16700457AE2C978A7D8AC38DD6A7C713539D00B897CD03A5E5D31D", "6F6696296C3F58B55FB6CA865A025A3A6CC27AD17C4AFABA1E8EF062E0A82739" ], "crlCheckSoftFail" : true, "dataSourceProperties" : "*****", "database" : { "exportHibernateJMXStatistics" : false, "initialiseAppSchema" : "UPDATE", "initialiseSchema" : true, "mappedSchemaCacheSize" : 100, "transactionIsolationLevel" : "REPEATABLE_READ" }, "detectPublicIp" : false, "devMode" : true, "emailAddress" : "admin#company.com", "extraNetworkMapKeys" : [], "flowMonitorPeriodMillis" : { "nanos" : 0, "seconds" : 60 }, "flowMonitorSuspensionLoggingThresholdMillis" : { "nanos" : 0, "seconds" : 60 }, "flowTimeout" : { "backoffBase" : 1.8, "maxRestartCount" : 6, "timeout" : { "nanos" : 0, "seconds" : 30 } }, "jarDirs" : [], "jmxReporterType" : "JOLOKIA", "keyStorePassword" : "*****", "lazyBridgeStart" : true, "myLegalName" : "O=PartyC,L=New York,C=US", "noLocalShell" : false, "p2pAddress" : "localhost:10011", "rpcSettings" : { "address" : "localhost:10012", "adminAddress" : "localhost:10052", "standAloneBroker" : false, "useSsl" : false }, "rpcUsers" : [], "security" : { "authService" : { "dataSource" : { "passwordEncryption" : "NONE", "type" : "INMEMORY", "users" : [ { "ignoresFallbacks" : false, "resolved" : true, "value" : { "loadFactor" : 0.75, "modCount" : 3, "size" : 3, "table" : {}, "threshold" : 3 } } ] } } }, "trustStorePassword" : "*****", "useTestClock" : false, "verifierType" : "InMemory" } [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Vendor: Corda Open Source [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Release: 5.0-SNAPSHOT [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Platform Version: 5 [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - Revision: df19b444ddd32d3afd10ed0b76c1b2f68d985968 [INFO ] 2019-07-19T03:21:25,119Z [main] internal.Node.logStartupInfo - PID: 19 [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - Main class: /opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-node-5.0-SNAPSHOT.jar [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - CommandLine Args: -Xmx512m -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -javaagent:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/quasar-core-0.7.10-jdk8.jar=x(antlr**;bftsmart**;co.paralleluniverse**;com.codahale**;com.esotericsoftware**;com.fasterxml**;com.google**;com.ibm**;com.intellij**;com.jcabi**;com.nhaarman**;com.opengamma**;com.typesafe**;com.zaxxer**;de.javakaffee**;groovy**;groovyjarjarantlr**;groovyjarjarasm**;io.atomix**;io.github**;io.netty**;jdk**;junit**;kotlin**;net.bytebuddy**;net.i2p**;org.apache**;org.assertj**;org.bouncycastle**;org.codehaus**;org.crsh**;org.dom4j**;org.fusesource**;org.h2**;org.hamcrest**;org.hibernate**;org.jboss**;org.jcp**;org.joda**;org.junit**;org.mockito**;org.objectweb**;org.objenesis**;org.slf4j**;org.w3c**;org.xml**;org.yaml**;reflectasm**;rx**;org.jolokia**;com.lmax**;picocli**;liquibase**;com.github.benmanes**;org.json**;org.postgresql**;nonapi.io.github.classgraph**) -Dcorda.dataSourceProperties.dataSource.url=jdbc:h2:file:/opt/corda/persistence/persistence;DB_CLOSE_ON_EXIT=FALSE;WRITE_DELAY=0;LOCK_TIMEOUT=10000 -Dvisualvm.display.name=Corda -Djava.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT -Dcapsule.app=net.corda.node.Corda_5.0-SNAPSHOT -Dcapsule.dir=/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT -Dcapsule.jar=/opt/corda/bin/corda.jar -Djava.security.egd=file:/dev/./urandom [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - bootclasspath: /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/classes [INFO ] 2019-07-19T03:21:25,120Z [main] internal.Node.logStartupInfo - classpath: /opt/corda/bin/corda.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-shell-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-rpc-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-node-api-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-tools-cliutils-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-common-configuration-parsing-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-common-validation-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-common-logging-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-confidential-identities-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/log4j-slf4j-impl-2.9.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/log4j-web-2.9.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/jul-to-slf4j-1.7.25.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-jackson-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-serialization-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/corda-core-5.0-SNAPSHOT.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kotlin-stdlib-jdk8-1.2.71.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/jackson-module-kotlin-2.9.5.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kotlin-reflect-1.2.71.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/quasar-core-0.7.10-jdk8.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kryo-serializers-0.42.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/kryo-4.0.0.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/jimfs-1.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/metrics-new-relic-1.1.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/guava-25.1-jre.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/caffeine-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/disruptor-3.4.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/commons-collections4-4.1.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-amqp-protocol-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-server-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-jdbc-store-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/artemis-journal-2.6.2.jar:/opt/corda/.capsule/apps/net.corda.node.Corda_5.0-SNAPSHOT/art...
In order to solve this, you need to bind the ports to 0.0.0.0:xxxx instead of localhost:xxxx in the node.conf "p2pAddress" : "localhost:10011", "rpcSettings" : { "address" : "localhost:10012", "adminAddress" : "localhost:10052", "standAloneBroker" : false, "useSsl" : false },
Schema `boxfuse-dev-db` contains a failed migration to version 10 ! The migration works locally but not in production nor on dev
I'm working on a web app that uses Springboot, Boxfuse and Flyway. I created the following migration: V10__UpdateProperty.sql which contains the following: ALTER TABLE property MODIFY COLUMN long_description TEXT DEFAULT ''; And added the #Lob annotation to the Java property longDescription: #Entity public class Property { private #Lob String longDescription; // Other properties and getters and setters } When I run the app locally it works. But when I run the boxfuse command: boxfuse run -env=prod It fails.... I get the following error: (Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Schema boxfuse-dev-db contains a failed migration to version 10 !) vb-18d089ff => 2017-06-21 17:04:21.747 :: Spring Boot :: (v1.4.2.RELEASE) vb-18d089ff => 2017-06-21 17:04:21.747 vb-18d089ff => 2017-06-21 17:04:21.904 2017-06-21 16:04:21.900 INFO 713 --- [ main] co.easymatch.Em2Application : Starting Em2Application v0.7.12 on vb-18d089ff with PID 713 (/app/em2-0.7.12.jar started by root in /app) vb-18d089ff => 2017-06-21 17:04:21.904 2017-06-21 16:04:21.904 INFO 713 --- [ main] co.easymatch.Em2Application : The following profiles are active: boxfuse vb-18d089ff => 2017-06-21 17:04:22.123 2017-06-21 16:04:22.123 INFO 713 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext#2077d4de: startup date [Wed Jun 21 16:04:22 GMT 2017]; root of context hierarchy vb-18d089ff => 2017-06-21 17:04:27.930 2017-06-21 16:04:27.930 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'scopedTarget.oauth2ClientContext' with a different definition: replacing [Root bean: class [null]; scope=session; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.security.oauth2.config.annotation.web.configuration.OAuth2ClientConfiguration$OAuth2ClientContextConfiguration; factoryMethodName=oauth2ClientContext; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.security.oauth2.config.annotation.web.configuration.OAuth2ClientConfiguration$OAuth2ClientContextConfiguration] with [Root bean: class [null]; scope=session; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2RestOperationsConfiguration$SessionScopedConfiguration$ClientContextConfiguration; factoryMethodName=oauth2ClientContext; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration$SessionScopedConfiguration$ClientContextConfiguration.class]] vb-18d089ff => 2017-06-21 17:04:27.934 2017-06-21 16:04:27.934 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'oauth2ClientFilterRegistration' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=em2Application; factoryMethodName=oauth2ClientFilterRegistration; initMethodName=null; destroyMethodName=(inferred); defined in co.easymatch.Em2Application] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2RestOperationsConfiguration$SessionScopedConfiguration; factoryMethodName=oauth2ClientFilterRegistration; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration$SessionScopedConfiguration.class]] vb-18d089ff => 2017-06-21 17:04:28.046 2017-06-21 16:04:28.046 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'ignoredPathsWebSecurityConfigurerAdapter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.SpringBootWebSecurityConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/SpringBootWebSecurityConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.class]] vb-18d089ff => 2017-06-21 17:04:28.353 2017-06-21 16:04:28.352 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'managementServletContext' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.EndpointWebMvcHypermediaManagementContextConfiguration; factoryMethodName=managementServletContext; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/EndpointWebMvcHypermediaManagementContextConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration; factoryMethodName=managementServletContext; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfiguration.class]] vb-18d089ff => 2017-06-21 17:04:31.055 2017-06-21 16:04:31.034 INFO 713 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring vb-18d089ff => 2017-06-21 17:04:31.321 2017-06-21 16:04:31.319 INFO 713 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$7419792e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) vb-18d089ff => 2017-06-21 17:04:32.408 2017-06-21 16:04:32.407 INFO 713 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http) vb-18d089ff => 2017-06-21 17:04:32.425 2017-06-21 16:04:32.425 INFO 713 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat vb-18d089ff => 2017-06-21 17:04:32.426 2017-06-21 16:04:32.426 INFO 713 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.6 vb-18d089ff => 2017-06-21 17:04:32.593 2017-06-21 16:04:32.592 INFO 713 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext vb-18d089ff => 2017-06-21 17:04:32.593 2017-06-21 16:04:32.592 INFO 713 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 10471 ms vb-18d089ff => 2017-06-21 17:04:33.349 2017-06-21 16:04:33.334 WARN 713 --- [ost-startStop-1] .s.b.d.a.RemoteDevToolsAutoConfiguration : Listening for remote debug traffic on /.~~spring-boot!~/debug vb-18d089ff => 2017-06-21 17:04:33.380 2017-06-21 16:04:33.380 WARN 713 --- [ost-startStop-1] .s.b.d.a.RemoteDevToolsAutoConfiguration : Listening for remote restart updates on /.~~spring-boot!~/restart vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'metricsFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'OAuth2ClientContextFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'remoteDevToolsDispatcherFilter' to: [/*] vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/] vb-18d089ff => 2017-06-21 17:04:33.440 2017-06-21 16:04:33.437 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'webServlet' to [/h2-console/*] vb-18d089ff => 2017-06-21 17:04:33.934 2017-06-21 16:04:33.934 INFO 713 --- [ main] o.f.core.internal.util.VersionPrinter : Flyway 3.2.1 by Boxfuse vb-18d089ff => 2017-06-21 17:04:34.266 2017-06-21 16:04:34.266 INFO 713 --- [ main] o.f.c.i.dbsupport.DbSupportFactory : Database: jdbc:mysql://10.0.2.2:3306/boxfuse-dev-db (MySQL 5.6) vb-18d089ff => 2017-06-21 17:04:34.807 2017-06-21 16:04:34.807 INFO 713 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema `boxfuse-dev-db`: 10 vb-18d089ff => 2017-06-21 17:04:34.810 2017-06-21 16:04:34.810 WARN 713 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Schema `boxfuse-dev-db` contains a failed migration to version 10 ! vb-18d089ff => 2017-06-21 17:04:34.819 2017-06-21 16:04:34.819 INFO 713 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat vb-18d089ff => 2017-06-21 17:04:34.834 2017-06-21 16:04:34.834 WARN 713 --- [ main] o.s.boot.SpringApplication : Error handling failed (Error creating bean with name 'delegatingApplicationListener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available) vb-18d089ff => 2017-06-21 17:04:34.841 2017-06-21 16:04:34.840 ERROR 713 --- [ main] o.s.boot.SpringApplication : Application startup failed vb-18d089ff => 2017-06-21 17:04:34.841 vb-18d089ff => 2017-06-21 17:04:34.841 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Schema `boxfuse-dev-db` contains a failed migration to version 10 ! vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081) ~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856) ~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at co.easymatch.Em2Application.main(Em2Application.java:44) [classes!/:0.7.12] vb-18d089ff => 2017-06-21 17:04:34.841 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0-8u131] vb-18d089ff => 2017-06-21 17:04:34.841 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0-8u131] vb-18d089ff => 2017-06-21 17:04:34.841 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0-8u131] vb-18d089ff => 2017-06-21 17:04:34.841 at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0-8u131] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [em2-0.7.12.jar:0.7.12] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [em2-0.7.12.jar:0.7.12] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [em2-0.7.12.jar:0.7.12] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58) [em2-0.7.12.jar:0.7.12] vb-18d089ff => 2017-06-21 17:04:34.841 Caused by: org.flywaydb.core.api.FlywayException: Schema `boxfuse-dev-db` contains a failed migration to version 10 ! vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:196) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway$1.execute(Flyway.java:1059) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway.execute(Flyway.java:1418) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) ~[flyway-core-3.2.1.jar!/:na] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66) ~[spring-boot-autoconfigure-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] vb-18d089ff => 2017-06-21 17:04:34.841 ... 26 common frames omitted I can't figure out what's wrong with the migration. I even tried using ALTER TABLE property DROP COLUMN long_description; ALTER TABLE property ADD long_description TEXT DEFAULT ''; But the same error happens. Any help?
The migration is marked as failed in the schema_version table. You have to issue a Flyway.repair() to fix it. ALternatively you can also drop the database with Flyway.clean() and let it recreate it on the next call to Flyway.migrate().
Show all the Flyway data migration by SELECT * FROM schema_version; Then delete the failed migration by DELETE FROM schema_version WHERE version = '10';
Gulp VS2015 .Net5
Im trying to learn Gulp and have been unable to successfully run tasks via the Task Run Explorer. No tasks appear and the Explorer shows the error: Failed to load, see output window for more information. When checking the output window it appears that it cant find my project.json. Failed to run "F:\Projects\NewInventory\src\NewInventory\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: Cannot find module ' ./project.json' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (F:\Projects\NewInventory\src\NewInventory\gulpfile.js:12:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) Failed to run "F:\Projects\NewInventory\src\NewInventory\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: Cannot find module ' ./project.json' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (F:\Projects\NewInventory\src\NewInventory\gulpfile.js:12:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) However, I also created a new .Net5 web application from scratch and compared with my current project to ensure that the project.json was in the correct directory location. My project.json is as follows: "webroot": "wwwroot", "userSecretsId": "aspnet5-NewInventory-f5a8bab7-e95b-485b-97e9-9a072438b107", "version": "1.0.0-*", "dependencies": { "EntityFramework.SqlServer": "7.0.0-beta8", "EntityFramework.Commands": "7.0.0-beta8", "Microsoft.AspNet.Mvc": "6.0.0-beta8", "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta8", "Microsoft.AspNet.Http.Features": "1.0.0-beta8", "Microsoft.AspNet.Http.Abstractions": "1.0.0-beta8", "Microsoft.AspNet.Authentication.Cookies": "1.0.0-beta8", "Microsoft.AspNet.Authentication.Facebook": "1.0.0-beta8", "Microsoft.AspNet.Authentication.Google": "1.0.0-beta8", "Microsoft.AspNet.Authentication.MicrosoftAccount": "1.0.0-beta8", "Microsoft.AspNet.Authentication.Twitter": "1.0.0-beta8", "Microsoft.AspNet.Diagnostics": "1.0.0-beta8", "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta8", "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta8", "Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8", "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8", "Microsoft.AspNet.StaticFiles": "1.0.0-beta8", "Microsoft.AspNet.Tooling.Razor": "1.0.0-beta8", "Microsoft.Framework.Configuration": "1.0.0-beta8", "Microsoft.Framework.Configuration.Abstractions": "1.0.0-beta8", "Microsoft.Framework.Configuration.Binder": "1.0.0-beta8", "Microsoft.Framework.Configuration.Json": "1.0.0-beta8", "Microsoft.Framework.Configuration.UserSecrets": "1.0.0-beta8", "Microsoft.Framework.Logging": "1.0.0-beta8", "Microsoft.Framework.Logging.Console": "1.0.0-beta8", "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta8", "Microsoft.Framework.Logging.Debug": "1.0.0-beta8" }, "commands": { "web": "Microsoft.AspNet.Server.Kestrel", "ef": "EntityFramework.Commands" }, "frameworks": { "dnx451": { }, "dnxcore50": { } }, "exclude": [ "wwwroot", "node_modules", "bower_components" ], "publishExclude": [ "node_modules", "bower_components", "**.xproj", "**.user", "**.vspscc" ], "scripts": { "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ] }, "configurations": { } } Package.json { "name": "ASP.NET", "version": "0.0.0", "devDependencies": { "gulp": "3.8.11", "gulp-concat": "2.5.2", "gulp-cssmin": "0.1.7", "gulp-uglify": "1.2.0", "gulp-jshint": "1.11.2", "rimraf": "2.2.8", "del": "2.0.2", "gulp-bower": "0.0.10", "npm-check-updates": "2.3.2" } } Gulpfile.js var gulp = require("gulp"), rimraf = require("rimraf"), concat = require("gulp-concat"), cssmin = require("gulp-cssmin"), uglify = require("gulp-uglify"), project = require("./project.json"); var bower = require('gulp-bower'); var del = require('del'); var project = require(' ./project.json'); var lib = project.webroot + '/lib'; var paths = { webroot: "./" + project.webroot + "/" }; paths.js = paths.webroot + "js/**/*.js"; paths.minJs = paths.webroot + "js/**/*.min.js"; paths.css = paths.webroot + "css/**/*.css"; paths.minCss = paths.webroot + "css/**/*.min.css"; paths.concatJsDest = paths.webroot + "js/site.min.js"; paths.concatCssDest = paths.webroot + "css/site.min.css"; gulp.task('default', ['bower:install'], function () { return; }); gulp.task('bower:install', ['clean'], function () { return bower({ directory: lib }); }); gulp.task('clean', function (done) { del(lib, done); }); gulp.task("clean:js", function (cb) { rimraf(paths.concatJsDest, cb); }); gulp.task("clean:css", function (cb) { rimraf(paths.concatCssDest, cb); }); gulp.task("clean", ["clean:js", "clean:css"]); gulp.task("min:js", function () { gulp.src([paths.js, "!" + paths.minJs], { base: "." }) .pipe(concat(paths.concatJsDest)) .pipe(uglify()) .pipe(gulp.dest(".")); }); gulp.task("min:css", function () { gulp.src([paths.css, "!" + paths.minCss]) .pipe(concat(paths.concatCssDest)) .pipe(cssmin()) .pipe(gulp.dest(".")); }); gulp.task("min", ["min:js", "min:css"]);
You can fix the error by removing the line var project = require(' ./project.json'); The space at the beginning of the path literal means it is not pointing at project.json. There is a line before doing what you need it to do; var gulp = require("gulp"), rimraf = require("rimraf"), concat = require("gulp-concat"), cssmin = require("gulp-cssmin"), uglify = require("gulp-uglify"), project = require("./project.json"); <---- This is doing what you expected.