Spanning repeatable keys - functional-programming

from such:
[
{"Caerus1", "Ramses Refiner"},
{"Caerus1", "Jupiter Refiner"},
{"Caerus1", "Jupiter Other"},
{"Caerus1", "Trader 13"},
{"Caerus1", "Cathode Supplier 4"},
{"Dionysus3", "Cathode Supplier 4"},
{"Dionysus3", "Ramses Refiner"},
{"Dionysus3", "Trader 13"},
{"Dionysus3", "Jupiter Refiner"},
{"Dionysus3", "Jupiter Other"},
{"Prometheus2", "Jupiter Other"},
{"Prometheus2", "Ramses Refiner"},
{"Prometheus2", "Trader 13"},
{"Prometheus2", "Cathode Supplier 4"},
{"Prometheus2", "Jupiter Refiner"}
]
I'd like to achieve this:
[
{"Caerus1" => ["Ramses Refiner", "Jupiter Refiner", "Jupiter Other", "Trader 13", "Cathode Supplier 4"]},
.
.
.
]
So basically converting these tuples into a map with unique key - so it doesn't repeat (that I can do easily) the hard part is making a list of the 2nd element strings.
Thanks in advance

1> L_tup = [
1> {"Caerus1", "Ramses Refiner"},
1> {"Caerus1", "Jupiter Refiner"},
1> {"Caerus1", "Jupiter Other"},
1> {"Caerus1", "Trader 13"},
1> {"Caerus1", "Cathode Supplier 4"},
1> {"Dionysus3", "Cathode Supplier 4"},
1> {"Dionysus3", "Ramses Refiner"},
1> {"Dionysus3", "Trader 13"},
1> {"Dionysus3", "Jupiter Refiner"},
1> {"Dionysus3", "Jupiter Other"},
1> {"Prometheus2", "Jupiter Other"},
1> {"Prometheus2", "Ramses Refiner"},
1> {"Prometheus2", "Trader 13"},
1> {"Prometheus2", "Cathode Supplier 4"},
1> {"Prometheus2", "Jupiter Refiner"}
1> ].
[{"Caerus1","Ramses Refiner"},
{"Caerus1","Jupiter Refiner"},
{"Caerus1","Jupiter Other"},
{"Caerus1","Trader 13"},
{"Caerus1","Cathode Supplier 4"},
{"Dionysus3","Cathode Supplier 4"},
{"Dionysus3","Ramses Refiner"},
{"Dionysus3","Trader 13"},
{"Dionysus3","Jupiter Refiner"},
{"Dionysus3","Jupiter Other"},
{"Prometheus2","Jupiter Other"},
{"Prometheus2","Ramses Refiner"},
{"Prometheus2","Trader 13"},
{"Prometheus2","Cathode Supplier 4"},
{"Prometheus2","Jupiter Refiner"}]
2> F = fun({K,V},Acc) ->
2> case Acc of
2> [#{K:=L}|T] -> [#{K=>[V|L]}|T];
2> Acc -> [#{K => [V]}|Acc]
2> end
2> end.
#Fun<erl_eval.43.79398840>
3> lists:foldl(F,[],L_tup).
[#{"Prometheus2" =>
["Jupiter Refiner","Cathode Supplier 4","Trader 13",
"Ramses Refiner","Jupiter Other"]},
#{"Dionysus3" =>
["Jupiter Other","Jupiter Refiner","Trader 13",
"Ramses Refiner","Cathode Supplier 4"]},
#{"Caerus1" =>
["Cathode Supplier 4","Trader 13","Jupiter Other",
"Jupiter Refiner","Ramses Refiner"]}]
4>
if the initial list L_tup is not sorted it is necessary to use lists:sort(L_tup).
The former code will have a result looking like the example you give: a list of map. But it is not a map as described in the last sentence. To create a map you can use the next code (this version does not need a sorted input):
4> F1 = fun({K,V},M) ->
4> L = maps:get(K,M,[]),
4> M#{K=>[V|L]}
4> end.
#Fun<erl_eval.43.79398840>
5> lists:foldl(F1,#{},L_tup).
#{"Caerus1" =>
["Cathode Supplier 4","Trader 13","Jupiter Other",
"Jupiter Refiner","Ramses Refiner"],
"Dionysus3" =>
["Jupiter Other","Jupiter Refiner","Trader 13",
"Ramses Refiner","Cathode Supplier 4"],
"Prometheus2" =>
["Jupiter Refiner","Cathode Supplier 4","Trader 13",
"Ramses Refiner","Jupiter Other"]}
6> % could be written in a single line :o)
6> % lists:foldl(fun({K,V},M) -> M#{K=>[V|maps:get(K,M,[])]} end,#{},L_tup).

In Elixir it's quite easy with Enum.group_by/3:
iex> Enum.group_by(values, fn {key, _} -> key end, fn {_, value} -> value end)
%{
"Caerus1" => ["Ramses Refiner", "Jupiter Refiner", "Jupiter Other",
"Trader 13", "Cathode Supplier 4"],
"Dionysus3" => ["Cathode Supplier 4", "Ramses Refiner", "Trader 13",
"Jupiter Refiner", "Jupiter Other"],
"Prometheus2" => ["Jupiter Other", "Ramses Refiner", "Trader 13",
"Cathode Supplier 4", "Jupiter Refiner"]
}

Related

Google Analytics : Unique Purchases is not reflecting

I am referring to this site https://developers.google.com/analytics/devguides/collection/ua/gtm/enhanced-ecommerce to send e-commerce data from the Google tag manager to the Google analytics dashboard.
Below is the GTM tag for the order-receipt page. While other checkout operations are kept in separate tags.
I am trying to send the purchase event through custom HTML in GTM Tag:
<script>
ga('create', 'UA-random-id-12', 'auto', {'name': 'PurchasePage'});
ga('PurchasePage.require', 'ec');
ga('PurchasePage.set', 'dimension1', 'c4f0cab13b5537uid32yiu334f0354c18');
ga('PurchasePage.ec:addProduct', {
'id': '12345',
'name': 'App1',
'price': '10.0000000000',
'variant': '7364284628',
'quantity': 1,
'coupon': '',
'brand': 'EYUIYEI',
'currency': 'USD'
});
ga('PurchasePage.set', 'dimension2', 'ALL');
ga('PurchasePage.set', 'dimension3', 'Marketplace');
ga('PurchasePage.set', 'dimension4', true);
ga('PurchasePage.ec:setAction', 'purchase', {
'id': '12345', 'revenue': '110.0000000000', 'tax': '0.0000000000', 'coupon': null, 'step': 4,
});
ga('PurchasePage.ec:setAction', 'checkout', {
'step': 4
});
ga('PurchasePage.send', 'pageview', {
'title': 'Order Receipt Page'
});
</script>
I can see the debug logs on the chrome console where the purchase event is being sent
_ _ _ _
| | | | | | (_)
__ _ ___ ___ __ _| | ___ __ _ _ __ __ _| |_ _| |_ _ ___ ___
/ _` |/ _ \ / _ \ / _` | |/ _ \ / _` | '_ \ / _` | | | | | __| |/ __/ __|
| (_| | (_) | (_) | (_| | | __/ | (_| | | | | (_| | | |_| | |_| | (__\__ \
\__, |\___/ \___/ \__, |_|\___| \__,_|_| |_|\__,_|_|\__, |\__|_|\___|___/
__/ | __/ | __/ |
|___/ |___/ |___/
react_devtools_backend.js:4026 Running analytics_debug.js. This script is intended for testing and debugging only.
...
VM1232 analytics.js:30 Running command: ga("PurchasePage.require", "ec")
VM1232 analytics.js:30 Waiting on require of "ec" to be fulfilled.
VM1232 analytics.js:30 Executing Google Analytics commands.
VM1232 analytics.js:30 Running command: ga("PurchasePage.require", "ec")
VM1232 analytics.js:30 Waiting on require of "ec" to be fulfilled.
VM1232 analytics.js:30 Executing Google Analytics commands.
VM1232 analytics.js:30 Registered new plugin: ga(provide, "ec", Function)
VM1232 analytics.js:30 Running command: ga("PurchasePage.require", "ec")
VM1232 analytics.js:30 Plugin "ec" intialized on tracker "PurchasePage".
VM1232 analytics.js:30 Running command: ga("PurchasePage.set", "dimension1", "c4f0cab13b5537uid32yiu334f0354c18")
VM1232 analytics.js:30 Running command: ga("PurchasePage.ec:addProduct", {id: "310647", name: "App1", price: "10.0000000000", variant: "7364284628", quantity: 1, coupon: "", brand: "EYUIYEI", currency: "USD"})
VM1232 analytics.js:30 Running command: ga("PurchasePage.set", "dimension2", "ALL")
VM1232 analytics.js:30 Running command: ga("PurchasePage.set", "dimension3", "MP")
VM1232 analytics.js:30 Running command: ga("PurchasePage.set", "dimension4", true)
VM1232 analytics.js:30 Running command: ga("PurchasePage.ec:setAction", "purchase", {id: "6332d33fe8d5156c6bb6b68b", revenue: "110.0000000000", tax: "0.0000000000", coupon: null, step: 4})
VM1232 analytics.js:30 Running command: ga("PurchasePage.ec:setAction", "checkout", {step: 4})
VM1232 analytics.js:30 Running command: ga("PurchasePage.send", "pageview", {title: "Order Receipt Page"})
react_devtools_backend.js:4026 Tag Assistant debug signal detected for unsupported legacy tag.
...
VM1232 analytics.js:30 Setting throttling cookie: "_gat_OrderReceiptPage"
VM1232 analytics.js:30
Sent beacon:
v=1&_v=j97d&a=2039992036&t=pageview&_s=1&dl=https%3A%2F%2Ftestqwerty.qaz.com%2Freceipt%2F001965%3ForderUuid%3D12345%26gtm_debug%3D123&dr=https%3A%2F%2Ftagassistant.google.com%2F&ul=en-gb&de=UTF-8&dt=Order%20Receipt%20Page&sd=30-bit&sr=1792x1120&vp=1792x373&je=0&_u=yCCAAUIJAAAAAC~&jid=1383585562&gjid=1942449811&cid=296136795.1634033045&tid=UA-randomid-8&_gid=376555535.1664271026&_r=1&cd1=c4f0cab13b5537uid32yiu334f0354c18&cd2=ALL&cd3=MP&cd4=1&cos=4&pa=checkout&pr1id=12345&pr1nm=App1&pr1pr=10.0000000000&pr1va=7364284628&pr1qt=1&pr1cc=&pr1br=EYUIYEI&z=136380644
VM1232 analytics.js:30 _j1 (&jid) 1383585562
VM1232 analytics.js:30 _j2 (&gjid) 1942449811
VM1232 analytics.js:30 adSenseId (&a) 2039992036
VM1232 analytics.js:30 apiVersion (&v) 1
VM1232 analytics.js:30 clientId (&cid) 296136795.1634033045
VM1232 analytics.js:30 dimension1 (&cd1) c4f0cab13b5537uid32yiu334f0354c18
VM1232 analytics.js:30 dimension2 (&cd2) ALL
VM1232 analytics.js:30 dimension3 (&cd3) MP
VM1232 analytics.js:30 dimension4 (&cd4) 1
VM1232 analytics.js:30 ec:action (&pa) checkout
VM1232 analytics.js:30 ec:product "1" brand (&pr1br) EYUIYEI
VM1232 analytics.js:30 ec:product "1" coupon (&pr1cc)
VM1232 analytics.js:30 ec:product "1" id (&pr1id) 310647
VM1232 analytics.js:30 ec:product "1" name (&pr1nm) App1
VM1232 analytics.js:30 ec:product "1" price (&pr1pr) 10.0000000000
VM1232 analytics.js:30 ec:product "1" quantity (&pr1qt) 1
VM1232 analytics.js:30 ec:product "1" variant (&pr1va) 7364284628
VM1232 analytics.js:30 ec:step (&cos) 4
VM1232 analytics.js:30 encoding (&de) UTF-8
VM1232 analytics.js:30 hitType (&t) pageview
VM1232 analytics.js:30 javaEnabled (&je) 0
VM1232 analytics.js:30 language (&ul) en-gb
VM1232 analytics.js:30 location (&dl) https://testqwerty.qaz.com/receipt/001965?orderUuid=12345&gtm_debug=123
VM1232 analytics.js:30 referrer (&dr) https://tagassistant.google.com/
VM1232 analytics.js:30 screenColors (&sd) 30-bit
VM1232 analytics.js:30 screenResolution (&sr) 1792x1120
VM1232 analytics.js:30 title (&dt) Order Receipt Page
VM1232 analytics.js:30 trackingId (&tid) UA-randomid-8
VM1232 analytics.js:30 viewportSize (&vp) 1792x373
But on GA dashboard, the unique events are showing as blank.
After removing the PurchasePage.ec:setAction', 'checkout' from the script, I was able to see unique events on the analytics dashboard.
<script>
ga('create', 'UA-random-id-12', 'auto', {'name': 'PurchasePage'});
ga('PurchasePage.require', 'ec');
ga('PurchasePage.set', 'dimension1', 'c4f0cab13b5537uid32yiu334f0354c18');
ga('PurchasePage.ec:addProduct', {
'id': '12345',
'name': 'App1',
'price': '10.0000000000',
'variant': '7364284628',
'quantity': 1,
'coupon': '',
'brand': 'EYUIYEI',
'currency': 'USD'
});
ga('PurchasePage.set', 'dimension2', 'ALL');
ga('PurchasePage.set', 'dimension3', 'Marketplace');
ga('PurchasePage.set', 'dimension4', true);
ga('PurchasePage.ec:setAction', 'purchase', {
'id': '12345', 'revenue': '110.0000000000', 'tax': '0.0000000000', 'coupon': null, 'step': 4,
});
ga('PurchasePage.send', 'pageview', {
'title': 'Order Receipt Page'
});
</script>

Can't read csv-file: "no method matching Parsers.Options"

Reading in a csv file should be straight forward, right? But when I do this:
df = CSV.read("sources/diamonds2.csv")
I get some bad-ass error message:
ERROR: MethodError: no method matching Parsers.Options(::Missing, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool)
Closest candidates are:
Parsers.Options(::Union{Missing, Nothing, Array{String,1}}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Nothing, Char, UInt8, String}, ::Union{Char, UInt8}, ::Union{Nothing, Array{String,1}}, ::Union{Nothing, Array{String,1}}, ::Union{Nothing, String, Dates.DateFormat}, ::Any, ::Any, ::Any, ::Any, ::Any) at /home/js/.julia/packages/Parsers/GLY4Q/src/Parsers.jl:60
Parsers.Options(::Union{Missing, Nothing, Array{String,1}}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Nothing, Char, UInt8, String}, ::Union{Char, UInt8}, ::Union{Nothing, Array{String,1}}, ::Union{Nothing, Array{String,1}}, ::Union{Nothing, String, Dates.DateFormat}, ::Any, ::Any, ::Any, ::Any) at /home/js/.julia/packages/Parsers/GLY4Q/src/Parsers.jl:60
Parsers.Options(::Union{Missing, Nothing, Array{String,1}}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Char, UInt8}, ::Union{Nothing, Char, UInt8, String}, ::Union{Char, UInt8}, ::Union{Nothing, Array{String,1}}, ::Union{Nothing, Array{String,1}}, ::Union{Nothing, String, Dates.DateFormat}, ::Any, ::Any, ::Any) at /home/js/.julia/packages/Parsers/GLY4Q/src/Parsers.jl:60
Stacktrace:
[1] file(::String, ::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Int64, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Array{String,1}, ::String, ::Nothing, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Int8,Int8}, ::Bool, ::Float64, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing) at /home/js/.julia/packages/CSV/76SRf/src/CSV.jl:388
[2] #File#15(::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Int64, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Array{String,1}, ::String, ::Nothing, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Int8,Int8}, ::Bool, ::Float64, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Type{CSV.File}, ::String) at /home/js/.julia/packages/CSV/76SRf/src/CSV.jl:262
[3] CSV.File(::String) at /home/js/.julia/packages/CSV/76SRf/src/CSV.jl:262
[4] #read#70(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(CSV.read), ::String) at /home/js/.julia/packages/CSV/76SRf/src/CSV.jl:1156
[5] read(::String) at /home/js/.julia/packages/CSV/76SRf/src/CSV.jl:1156
[6] top-level scope at none:0
Am I doing something wrong here?
For the record: my Julia version is 1.3.1, package version of CSV is 0.6.1 and I am on a Linux system.
Output of ] st -m:
Status `~/.julia/environments/v1.3/Manifest.toml`
[1520ce14] AbstractTrees v0.3.3
[bf4720bc] AssetRegistry v0.1.0
[c52e3926] Atom v0.12.7
[b99e7846] BinaryProvider v0.5.9
[6e34b625] Bzip2_jll v1.0.6+2
[00ebfdb7] CSTParser v2.3.0
[336ed68f] CSV v0.6.1
[7057c7e9] Cassette v0.3.3
[324d7699] CategoricalArrays v0.7.7
[53a63b46] CodeTools v0.7.0
[da1fd8a2] CodeTracking v0.5.11
[3da002f7] ColorTypes v0.10.3
[5ae59095] Colors v0.12.0
[34da2185] Compat v3.9.0
[e66e0078] CompilerSupportLibraries_jll v0.3.3+0
[d38c429a] Contour v0.5.2
[9a962f9c] DataAPI v1.3.0
[a93c6f00] DataFrames v0.20.2
[864edb3b] DataStructures v0.17.15
[e2d170a0] DataValueInterfaces v1.0.0
[55939f99] DecFP v0.4.10
[b4f34e82] Distances v0.8.2
[33d173f1] DocSeeker v0.4.1
[c87230d0] FFMPEG v0.3.0
[b22a6f82] FFMPEG_jll v4.1.0+3
[5789e2e9] FileIO v1.3.0
[48062228] FilePathsBase v0.7.0
[53c48c17] FixedPointNumbers v0.8.0
[08572546] FlameGraphs v0.2.3
[d7e528f0] FreeType2_jll v2.10.1+2
[559328eb] FriBidi_jll v1.0.5+3
[de31a74c] FunctionalCollections v0.5.0
[28b8d3ca] GR v0.47.0
[4d00f742] GeometryTypes v0.7.6
[cd3eb016] HTTP v0.8.14
[9fb69e20] Hiccup v0.2.2
[9b13fd28] IndirectArrays v0.5.1
[83e8ac13] IniFile v0.5.0
[41ab1584] InvertedIndices v1.0.0
[c8e1da08] IterTools v1.3.0
[82899510] IteratorInterfaceExtensions v1.0.0
[682c06a0] JSON v0.21.0
[98e50ef6] JuliaFormatter v0.3.9
[aa1ae85d] JuliaInterpreter v0.7.14
[e5e0dc1b] Juno v0.8.0
[c1c5ebd0] LAME_jll v3.100.0+1
[7c4cb9fa] LNR v0.2.1
[50d2b5c4] Lazy v0.15.0
[1d6d02ad] LeftChildRightSiblingTrees v0.1.2
[dd192d2f] LibVPX_jll v1.8.1+1
[1914dd2f] MacroTools v0.5.5
[739be429] MbedTLS v1.0.2
[c8ffd9c3] MbedTLS_jll v2.16.0+2
[442fdcdd] Measures v0.3.1
[e89f7d12] Media v0.5.0
[e1d29d7a] Missings v0.4.3
[77ba4419] NaNMath v0.3.3
[be6f12e9] ODBC v0.9.0
[510215fc] Observables v0.3.1
[e7412a2a] Ogg_jll v1.3.4+0
[458c3c95] OpenSSL_jll v1.1.1+2
[efe28fd5] OpenSpecFun_jll v0.5.3+3
[91d4177d] Opus_jll v1.3.1+1
[bac558e1] OrderedCollections v1.2.0
[69de0a69] Parsers v1.0.3
[fa939f87] Pidfile v1.1.0
[b98c9c47] Pipe v1.2.0
[ccf2f8ad] PlotThemes v1.0.3
[995b91a9] PlotUtils v0.6.5
[91a5bcdd] Plots v0.29.3
[2dfb63ee] PooledArrays v0.5.3
[3cdcf5f2] RecipesBase v0.8.0
[189a3867] Reexport v0.2.0
[ae029012] Requires v1.0.1
[1277b4bf] ShiftedArrays v1.0.0
[992d4aef] Showoff v0.3.1
[a2af1166] SortingAlgorithms v0.3.1
[276daf66] SpecialFunctions v0.9.0
[90137ffa] StaticArrays v0.12.3
[2913bbd2] StatsBase v0.32.2
[88034a9c] StringDistances v0.6.4
[3783bdb8] TableTraits v1.0.0
[bd369af6] Tables v1.0.4
[0796e94c] Tokenize v0.5.8
[37b6cedf] Traceur v0.3.0
[a2a6695c] TreeViews v0.3.0
[30578b45] URIParser v0.4.1
[ea10d353] WeakRefStrings v0.6.2
[0f1e0344] WebIO v0.8.11
[104b5d7c] WebSockets v1.5.2
[cc8bc4a8] Widgets v0.6.2
[83775a58] Zlib_jll v1.2.11+9
[0ac62f75] libass_jll v0.14.0+2
[f638f0a6] libfdk_aac_jll v0.1.6+2
[f27f6e37] libvorbis_jll v1.3.6+4
[1270edf5] x264_jll v2019.5.25+2
[dfaa095f] x265_jll v3.0.0+1
[2a0f44e3] Base64
[ade2ca70] Dates
[8bb1440f] DelimitedFiles
[8ba89e20] Distributed
[7b1f6079] FileWatching
[9fa8497b] Future
[b77e0a4c] InteractiveUtils
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[a63ad114] Mmap
[44cfe95a] Pkg
[de0858da] Printf
[9abbd945] Profile
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA
[9e88b42a] Serialization
[1a1011a3] SharedArrays
[6462fe0b] Sockets
[2f01184e] SparseArrays
[10745b16] Statistics
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
Update the package:
using Pkg
pkg"update"
pkg"precompile"
Explanation
CSV.jl version has been realeased with read not quite working (see https://github.com/JuliaData/CSV.jl/issues/588)
Either updating to 0.6.2 or downgrading to 0.5.26 (when you are not able to update) should work like a charm.

Ecom tracking not showing up in Google Analytics

I integrated Google Analytics through GTM and now I´m trying to enable e-commerce tracking. However, for some reason is not working.
*sorry due to Company privacy I changed the URL
Here is the debug code
Initializing Google Analytics.
analytics_debug.js:24 Loading resource for plugin: ecommerce
analytics_debug.js:24 Loading script: "https://www.google-analytics.com/plugins/ua/ecommerce.js"
analytics_debug.js:24 Running command: ga("create", "UA-100134152-1", {name: "gtm1", cookieDomain: "auto"})
analytics_debug.js:24 Creating new tracker: gtm1
analytics_debug.js:24 Auto cookieDomain found: "bu.com"
analytics_debug.js:24 Running command: ga("gtm1.set", "&gtm", "2wg3b2TCH6J4M")
analytics_debug.js:24 Running command: ga("gtm1.set", "hitCallback", [function])
analytics_debug.js:24 Running command: ga("gtm1.require", "ecommerce", "//www.google-analytics.com/plugins/ua/ecommerce.js")
analytics_debug.js:24 Waiting on require of "ecommerce" to be fulfilled.
analytics_debug.js:24 Registered new plugin: ga(provide, "render", Function)
analytics_debug.js:24 Running command: ga("gtm1.require", "ecommerce", "//www.google-analytics.com/plugins/ua/ecommerce.js")
analytics_debug.js:24 Waiting on require of "ecommerce" to be fulfilled.
analytics_debug.js:24 Executing Google Analytics commands.
analytics_debug.js:24 Registered new plugin: ga(provide, "ecommerce", Function)
analytics_debug.js:24 Running command: ga("gtm1.require", "ecommerce", "//www.google-analytics.com/plugins/ua/ecommerce.js")
analytics_debug.js:24 Plugin "ecommerce" intialized on tracker "gtm1".
analytics_debug.js:24 Running command: ga("gtm1.ecommerce:addTransaction", {id: undefined, affiliation: undefined, revenue: undefined, shipping: undefined, tax: undefined})
analytics_debug.js:24 Running command: ga("gtm1.ecommerce:send")
analytics_debug.js:24 Running command: ga("create", "UA-100134152-1", {name: "gtm2", cookieDomain: "auto"})
analytics_debug.js:24 Running command: ga("gtm2.set", "&gtm", "2wg3b2TCH6J4M")
analytics_debug.js:24 Running command: ga("gtm2.set", "hitCallback", [function])
analytics_debug.js:24 Running command: ga("gtm2.send", "pageview")
analytics_debug.js:24
analytics_debug.js:24 <unknown> (&gtm) 2wg3b2TCH6J4M
analytics_debug.js:24 _j1 (&jid)
analytics_debug.js:24 _j2 (&gjid)
analytics_debug.js:24 adSenseId (&a) 1515998799
analytics_debug.js:24 apiVersion (&v) 1
analytics_debug.js:24 clientId (&cid) 1152172694.1552546478
analytics_debug.js:24 encoding (&de) UTF-8
analytics_debug.js:24 hitType (&t) pageview
analytics_debug.js:24 javaEnabled (&je) 0
analytics_debug.js:24 language (&ul) en-us
analytics_debug.js:24 location (&dl) https://www.bu.com/thank-you
analytics_debug.js:24 screenColors (&sd) 24-bit
analytics_debug.js:24 screenResolution (&sr) 1920x1080
analytics_debug.js:24 title (&dt) Thank You | Bu
analytics_debug.js:24 trackingId (&tid) UA-100134152-1
analytics_debug.js:24 viewportSize (&vp) 1903x215
iframe.e378e2e8.chunk.js:1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
dataLayer
1. ecommerce:
1. purchase:
1. actionField: {id: 35308, affiliation: null, revenue: 78, tax: 3.9}
2. products: Array(1)
1. 0: {name: "Buziness Vulnerability Scanning Assessment (ecomtesting.com)", id: 1506425543, brand: "Bu", category: "Bu Product", quantity: 1, …}
2. length: 1
3. __proto__: Array(0)
Its seems the Datalayes is firing, but no datas passing to Console or GA.
Please help

Error replacing network map and notary on corda

we have replaced our network map and one of our three notaries with new machine.
We stopped all nodes. Changed configuration in node.conf files to point to new notary and network map but after start all network environment is broke and we are not able to submit any transaction between nodes.
We see following errors:
1- In the New Newtwork Map
[ERROR] 2018-04-18T09:30:30,588Z [Thread-12
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3#2f07930a)]
core.client.createConnection - AMQ214016: Failed to create netty
connection javax.net.ssl.SSLException: handshake timed out at
io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source)
~[netty-all-4.1.9.Final.jar:4.1.9.Final] [WARN ]
2018-04-18T09:30:46,087Z [Thread-11
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3#2f07930a)]
core.client.fail - AMQ212037: Connection failure has been detected:
AMQ119014: Did not receive data from null within the 60,000ms
connection TTL. The connection will now be closed.
[code=CONNECTION_TIMEDOUT]
2- In one previous existing notary node:
[ERROR] 2018-04-18T10:22:05,682Z [main]
internal.ExceptionMapperStandardImpl.mapManagedFlushFailure -
HHH000346: Error during managed flush
[org.hibernate.exception.ConstraintViolationException: could not
execute statement] [ERROR] 2018-04-18T10:22:05,714Z [main]
internal.Node.run - Exception during node startup
javax.persistence.PersistenceException:
org.hibernate.exception.ConstraintViolationException: could not
execute statement at
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:162)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1434)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:484)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3190)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2404)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:467)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:146)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$100(JdbcResourceLocalTransactionCoordinatorImpl.java:38)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:220)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:68)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
net.corda.node.services.network.PersistentNetworkMapCache.updateInfoDB(PersistentNetworkMapCache.kt:287)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache.access$updateInfoDB(PersistentNetworkMapCache.kt:52)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache$addNode$$inlined$synchronized$lambda$2.invoke(PersistentNetworkMapCache.kt:169)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache$addNode$$inlined$synchronized$lambda$2.invoke(PersistentNetworkMapCache.kt:52)
~[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:84)
~[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:75)
~[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache.addNode(PersistentNetworkMapCache.kt:168)
~[corda-node-2.0.0.jar:?] at
net.corda.node.internal.AbstractNode.registerWithNetworkMapIfConfigured(AbstractNode.kt:512)
~[corda-node-2.0.0.jar:?] at
net.corda.node.internal.AbstractNode.start(AbstractNode.kt:221)
~[corda-node-2.0.0.jar:?] at
net.corda.node.internal.Node.start(Node.kt:312)
~[corda-node-2.0.0.jar:?] at
net.corda.node.internal.NodeStartup.startNode(NodeStartup.kt:95)
~[corda-node-2.0.0.jar:?] at
net.corda.node.internal.NodeStartup.run(NodeStartup.kt:74)
[corda-node-2.0.0.jar:?] at net.corda.node.Corda.main(Corda.kt:11)
[corda-node-2.0.0.jar:?] Caused by:
org.hibernate.exception.ConstraintViolationException: could not
execute statement at
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:207)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:45)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1323)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.action.internal.CollectionUpdateAction.execute(CollectionUpdateAction.java:80)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:586)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:460)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1428)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] ... 22 more Caused by:
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:
"UK_MH4X07LLMH7CQIHD64UPRW7TT_INDEX_2 ON
PUBLIC.""NODE_INFOS_NODEINFOSCHEMAV1$DBHOSTANDPORT""(ADDRESSES_HOST,
ADDRESSES_PORT) VALUES ('10.83.80.46', 10002, 48)"; SQL statement:
insert into node_infos_NodeInfoSchemaV1$DBHostAndPort
(NodeInfoSchemaV1$PersistentNodeInfo_node_info_id, addresses_host,
addresses_port) values (?, ?, ?) [23505-194] at
org.h2.engine.SessionRemote.done(SessionRemote.java:629)
~[h2-1.4.194.jar:1.4.194] at
org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:203)
~[h2-1.4.194.jar:1.4.194] at
org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:160)
~[h2-1.4.194.jar:1.4.194] at
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:146)
~[h2-1.4.194.jar:1.4.194] at
com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
~[HikariCP-2.5.1.jar:?] at
com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
~[HikariCP-2.5.1.jar:?] at
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:204)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:45)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1323)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.action.internal.CollectionUpdateAction.execute(CollectionUpdateAction.java:80)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:586)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:460)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1428)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final]
3- error on existing corda node:
[ERROR] 2018-04-18T08:50:39,726Z [Node thread]
network.PersistentNetworkMapCache.invoke - Exception processing update
from network map service javax.persistence.PersistenceException:
org.hibernate.exception.ConstraintViolationException: could not
execute statement at
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:162)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1434)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:484)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:3190)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2404)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:467)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:146)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$100(JdbcResourceLocalTransactionCoordinatorImpl.java:38)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:220)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:68)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
net.corda.node.services.network.PersistentNetworkMapCache.updateInfoDB(PersistentNetworkMapCache.kt:287)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache.access$updateInfoDB(PersistentNetworkMapCache.kt:52)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache$addNode$$inlined$synchronized$lambda$1.invoke(PersistentNetworkMapCache.kt:164)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache$addNode$$inlined$synchronized$lambda$1.invoke(PersistentNetworkMapCache.kt:52)
~[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:72)
~[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache.addNode(PersistentNetworkMapCache.kt:163)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache.processRegistration(PersistentNetworkMapCache.kt:223)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache.processUpdatePush(PersistentNetworkMapCache.kt:206)
~[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache$addMapService$1.invoke(PersistentNetworkMapCache.kt:137)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.network.PersistentNetworkMapCache$addMapService$1.invoke(PersistentNetworkMapCache.kt:52)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.messaging.NodeMessagingClient.callHandlers(NodeMessagingClient.kt:444)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.messaging.NodeMessagingClient.access$callHandlers(NodeMessagingClient.kt:76)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.messaging.NodeMessagingClient$deliver$1$1.invoke(NodeMessagingClient.kt:429)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.messaging.NodeMessagingClient$deliver$1$1.invoke(NodeMessagingClient.kt:76)
[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:84)
[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:75)
[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.messaging.NodeMessagingClient$deliver$1.invoke(NodeMessagingClient.kt:421)
[corda-node-2.0.0.jar:?] at
net.corda.node.services.messaging.NodeMessagingClient$deliver$1.invoke(NodeMessagingClient.kt:76)
[corda-node-2.0.0.jar:?] at
net.corda.node.utilities.AffinityExecutor$fetchFrom$1.get(AffinityExecutor.kt:44)
[corda-node-2.0.0.jar:?] at
java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
[?:1.8.0_162] at
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[?:1.8.0_162] at java.util.concurrent.FutureTask.run(Unknown Source)
[?:1.8.0_162] at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
Source) [?:1.8.0_162] at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source) [?:1.8.0_162] at
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[?:1.8.0_162] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[?:1.8.0_162] at
net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor$1$thread$1.run(AffinityExecutor.kt:69)
[corda-node-2.0.0.jar:?] Caused by:
org.hibernate.exception.ConstraintViolationException: could not
execute statement at
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:207)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:45)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1323)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:50)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:586)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:460)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1428)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] ... 37 more Caused by:
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:
"UK_MH4X07LLMH7CQIHD64UPRW7TT_INDEX_2 ON
PUBLIC.""NODE_INFOS_NODEINFOSCHEMAV1$DBHOSTANDPORT""(ADDRESSES_HOST,
ADDRESSES_PORT) VALUES ('10.83.80.5', 10001, 34)"; SQL statement:
insert into node_infos_NodeInfoSchemaV1$DBHostAndPort
(NodeInfoSchemaV1$PersistentNodeInfo_node_info_id, addresses_host,
addresses_port) values (?, ?, ?) [23505-194] at
org.h2.engine.SessionRemote.done(SessionRemote.java:629)
~[h2-1.4.194.jar:1.4.194] at
org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:203)
~[h2-1.4.194.jar:1.4.194] at
org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:160)
~[h2-1.4.194.jar:1.4.194] at
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:146)
~[h2-1.4.194.jar:1.4.194] at
com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
~[HikariCP-2.5.1.jar:?] at
com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
~[HikariCP-2.5.1.jar:?] at
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:204)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:45)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1323)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:50)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:586)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:460)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] at
org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1428)
~[hibernate-core-5.2.6.Final.jar:5.2.6.Final] ... 37 more [WARN ]
2018-04-18T08:51:17,425Z [Thread-1
(ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$3#319aa9ee)]
core.client.fail - AMQ212037: Connection failure has been detected:
AMQ119014: Did not receive data from null within the 60,000ms
connection TTL. The connection will now be closed.
[code=CONNECTION_TIMEDOUT]
is there a way to clean network / notaries to work with new scenario?
Thanks!!
Javier
You can use a Network bootstrapper to load out your network with the new conf file. Please take a look at: https://docs.corda.net/docs/corda-os/4.4/network-bootstrapper.html
In related to your original question, you can achieve the notary sway by follow the steps for: Adding a new node to the network section because it is virtually the same process: https://docs.corda.net/docs/corda-os/4.4/network-bootstrapper.html#adding-a-new-node-to-the-network

Arch Linux and slow Wi-Fi speed/connection. Broadcom BCM4313

I'm trying to figure out what is the reason of such a slow speed using wi-fi on Arch. I have Windows 8 installed alongside with the Arch and I can say for sure that at Windows the speed is ultimately higher. When I switch back to Arch and start surfing the Internet I feel like my internet speed is clipped half! I use Arch quite recently and many things I don't know (especially networking). So here are the steps of how I usually connect to the internet using wpa_supplicant:
cat wpa.conf
network={
ssid="Home"
#psk="pass"
psk=05a9b845b68a55291d1d5b94e50b9b1811706b0746d89e67f581cc5f7b88b758
}
sudo wpa_supplicant -B -iwlp10s0b1 -cwpa.conf
sudo dhcpcd wlp10s0b1
There are card details:
iwconfig (after connection to internet)
wlp10s0b1 IEEE 802.11bgn ESSID:"Home"
Mode:Managed Frequency:2.412 GHz Access Point: E0:CB:4E:ED:8F:48
Bit Rate=28.9 Mb/s Tx-Power=19 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-39 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2168 Invalid misc:12 Missed beacon:0
lspci -k
...
0a:00.0 Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter (rev 01)
Subsystem: Hewlett-Packard Company Device 1795
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma
The output of dmesg:
[ 12.123632] bcma: bus0: Found chip with id 0x4313, rev 0x01 and package 0x08
[ 12.123663] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x24, class 0x0)
[ 12.123689] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x18, class 0x0)
[ 12.123741] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x11, class 0x0)
[ 12.135277] bcma: bus0: Bus registered
[ 13.610907] b43: probe of bcma0:1 failed with error -524
[ 13.695776] brcmsmac bcma0:1: mfg 4bf core 812 rev 24 class 0 irq 19
[ 13.928846] brcmsmac bcma0:1 wlp10s0b1: renamed from wlan0
[ 104.737832] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
[ 104.737847] brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
[ 448.818973] brcmsmac bcma0:1: brcmsmac: brcms_ops_bss_info_changed: associated
[ 448.818982] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: true (implement)
[ 449.080594] brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211: txop exceeded phylen 159/256 dur 1778/1504
[ 449.085704] brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211: txop exceeded phylen 137/256 dur 1602/1504
[ 528.990763] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
[ 688.637057] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 0 addresses (implement)
[ 698.117592] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
[ 792.648850] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 792.668819] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 792.825554] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 1114.888310] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 1114.918308] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 1240.631071] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 2282.871425] brcmsmac bcma0:1: START: tid 1 is not agg'able
[ 2282.884764] brcmsmac bcma0:1: START: tid 1 is not agg'able
Some notes in advance, please do not suggest check the router settings (everything is set correctly and tested on different devices), so the problem isn't in the router nor the physical obstacles.

Resources