No authorization to view the ICP UI - ibm-cloud-private

I try to deploy ICP-CE env on single centos 7.3 server, the installation and setup is successful, ansible script not throw any error or warning.
But when I open ICP UI on browser and login by default admin user, the UI throw error "You are unauthorized to view this page.":
Does anyone can tell me why this happend, or how to troubleshooting?
Thanks.

Please see command "kubectl -s 127.0.0.1:8888 -n kube-system get pods" output as below:
[root#host-10-1-241-74 ~]# kubectl -s 127.0.0.1:8888 -n kube-system get pods
NAME READY STATUS RESTARTS AGE
auth-apikeys-0w95b 1/1 Running 0 7d
auth-idp-t9mx4 3/3 Running 0 7d
auth-pap-0tr3k 1/1 Running 0 7d
auth-pdp-bbvjl 1/1 Running 0 7d
calico-node-amd64-mx87h 2/2 Running 0 9d
calico-policy-controller-1048521425-dw59l 1/1 Running 0 9d
catalog-catalog-apiserver-c5dfm 1/1 Running 0 9d
catalog-catalog-controller-manager-3100032879-skgwn 1/1 Running 0 9d
catalog-ui-fk7wh 1/1 Running 0 9d
default-http-backend-198681862-3zw25 1/1 Running 0 9d
elasticsearch-client-3479638665-srh08 2/2 Running 0 9d
elasticsearch-data-0 1/1 Running 0 9d
elasticsearch-master-1570256108-l9b56 1/1 Running 0 9d
filebeat-ds-amd64-1kkl2 1/1 Running 0 9d
heapster-1250025240-clrpr 2/2 Running 2 9d
helm-api-817699605-gw5b0 1/1 Running 0 9d
helmrepo-1682907142-57lhq 1/1 Running 0 9d
icp-ds-0 1/1 Running 0 7d
icp-router-dql5m 1/1 Running 3 7d
image-manager-0 2/2 Running 0 9d
k8s-etcd-10.1.241.74 1/1 Running 0 9d
k8s-mariadb-10.1.241.74 1/1 Running 0 9d
k8s-master-10.1.241.74 3/3 Running 0 9d
k8s-proxy-10.1.241.74 1/1 Running 0 9d
kube-dns-1038623989-8sg4h 3/3 Running 0 9d
logstash-4245234969-gtwg3 1/1 Running 0 9d
metering-dm-653503904-56cx5 1/1 Running 0 9d
metering-reader-amd64-rj35v 1/1 Running 0 9d
metering-server-1157299371-wqgqk 1/1 Running 0 9d
metering-ui-1867742967-6xn1n 1/1 Running 0 9d
monitoring-exporter-3293343457-bddpn 1/1 Running 0 9d
monitoring-grafana-2476181526-rr380 2/2 Running 0 9d
monitoring-prometheus-2422752664-d42jr 2/2 Running 0 9d
monitoring-prometheus-alertmanager-3766402458-wsmkr 2/2 Running 0 9d
monitoring-prometheus-kubestatemetrics-3025976457-9g74s 1/1 Running 0 9d
monitoring-prometheus-nodeexporter-amd64-ksnr7 1/1 Running 0 9d
nginx-ingress-lb-amd64-qbnsq 1/1 Running 0 9d
platform-api-hz8l7 1/1 Running 0 7d
platform-ui-qctx4 1/1 Running 0 7d
rescheduler-5tj7h 1/1 Running 0 9d
tiller-deploy-2307655136-q8z8z 1/1 Running 0 9d
unified-router-150v5 1/1 Running 0 7d

Related

Elasticsearch one specific shard keep initializing in different data nodes

I am getting ElasticsearchStatusWarning saying that the cluster state is yellow. Upon running the health check API, I see below
curl -X GET http://localhost:9200/_cluster/health/
{"cluster_name":"my-elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":8,"number_of_data_nodes":3,"active_primary_shards":220,"active_shards":438,"relocating_shards":0,"initializing_shards":2,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":99.54545454545455}
initializing_shards is 2. So, I further run the below call
curl -X GET
http://localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason
|grep INIT
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 33457 100 33457 0 graph_vertex_24_18549 0 r INITIALIZING ALLOCATION_FAILED
0 79609 0 --:--:-- --:--:-- --:--:-- 79659
curl -X GET http://localhost:9200/_cat/shards/graph_vertex_24_18549
graph_vertex_24_18549 0 p STARTED 8373375 8.4gb IP1 elasticsearch-data-1
graph_vertex_24_18549 0 r INITIALIZING IP2 elasticsearch-data-2
And rerunning the same command in few mins, shows now it's being initialized in elasticsearch-data-0. See below
graph_vertex_24_18549 0 p STARTED 8373375 8.4gb IP1 elasticsearch-data-1
graph_vertex_24_18549 0 r INITIALIZING IP0 elasticsearch-data-0
If i rerun it again in few mins, I can see it's again being initialized in elasticsearch-data-2 again. But it never gets STARTED.
curl -X GET http://localhost:9200/_cat/allocation?v
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
147 162.2gb 183.8gb 308.1gb 492gb 37 IP1 IP1 elasticsearch-data-2
146 217.3gb 234.2gb 257.7gb 492gb 47 IP2 IP2 elasticsearch-data-1
147 216.6gb 231.2gb 260.7gb 492gb 47 IP3 IP3 elasticsearch-data-0
curl -X GET http://localhost:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
IP1 7 77 20 4.17 4.57 4.88 mi - elasticsearch-master-2
IP2 72 59 7 2.59 2.38 2.19 i - elasticsearch-5f4bd5b88f-4lvxz
IP3 57 49 3 0.75 1.13 1.09 di - elasticsearch-data-2
IP4 63 57 21 2.69 3.58 4.11 di - elasticsearch-data-0
IP5 5 59 7 2.59 2.38 2.19 mi - elasticsearch-master-0
IP6 69 53 13 4.67 4.60 4.66 di - elasticsearch-data-1
IP7 8 70 14 2.86 3.20 3.09 mi * elasticsearch-master-1
IP8 30 77 20 4.17 4.57 4.88 i - elasticsearch-5f4bd5b88f-wnrl4
curl -s -XGET http://localhost:9200/_cluster/allocation/explain -d '{
"index": "graph_vertex_24_18549", "shard":
0, "primary": false }' -H 'Content-type: application/json'
{"index":"graph_vertex_24_18549","shard":0,"primary":false,"current_state":"initializing","unassigned_info":{"reason":"ALLOCATION_FAILED","at":"2020-11-04T08:21:45.756Z","failed_allocation_attempts":1,"details":"failed shard on node [1XEXS92jTK-wwanNgQrxsA]: failed to perform indices:data/write/bulk[s] on replica [graph_vertex_24_18549][0], node[1XEXS92jTK-wwanNgQrxsA], [R], s[STARTED], a[id=RnTOlfQuQkOumVuw_NeuTw], failure RemoteTransportException[[elasticsearch-data-2][IP:9300][indices:data/write/bulk[s][r]]]; nested: CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [4322682690/4gb], which is larger than the limit of [4005632409/3.7gb], real usage: [3646987112/3.3gb], new bytes reserved: [675695578/644.3mb]]; ","last_allocation_status":"no_attempt"},"current_node":{"id":"o_9jyrmOSca9T12J4bY0Nw","name":"elasticsearch-data-0","transport_address":"IP:9300"},"explanation":"the shard is in the process of initializing on node [elasticsearch-data-0], wait until initialization has completed"}
Thing is I was earlier getting alerted for Unassigned Shards due to the same exception as above - "CircuitBreakingException[[parent] Data too large, data for [<transport_request>] would be [4322682690/4gb], which is larger than the limit of [4005632409/3.7gb]"
But back then heap was only 2G. I increased it to 4G. And now I am seeing same error, but this time with respect to Initialising shards instead of Unallocated shards.
How can I remediate this?

APDU command to read Track1/track2 data from NFC card and MobileApp

Application is in C, to read only NFC card details(card number & date). Following the steps below
CardRead("1PAY.SYS.DDF01", "PSE1");
Ex:APDU - (0x00, 0xA4, 0x04, 0x00, PSE1,00) or
CardRead("2PAY.SYS.DDF01", "PSE2");
Ex:APDU - (0x00, 0xA4, 0x04, 0x00, PSE2,00)
Select the AID Get the AID from response data.
Ex:APDU - (0x00, 0xA4, 0x04, 0x00, AID,00)
ReadRecord - Want to know how to calculate SFI & P1,P2 values.
Is PDOL required or only Read Record command is enough to read track1/2 data?
After step 3 data received is 3 6F 38 84 7 A0 0 0 0 4 10 10 A5 2D 50 A 4D 41 53 54 45 52 43 41 52 44 87 1 1 5F 2D 2 65 6E 9F 38 9 9F 1D 8 9F 1A 2 9F 35 1 BF C A 9F 6E 7 8 40 0 0 32 31 0 90 0 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 9F 65 2 0 E0 9F 66 2 F 1E 9F 67 1 4 9F 6B 13 51 80 84 8 2 59 9 27 D2 20 92 1 0 0 0 0 0 0.
This is PDOL information: 9F 38 9 9F 1D 8 9F 1A 2 9F 35 1.
Please let me know how to frame next command PDOL/ReadRecord from the above data to read track1/track2 data.
Download EMV Book 3, read section 10.2 Read Application Data. It has it all. Find below in case you cant get the document.

Find a match between two columns of two files

I have two files:
file 1:
a1 45 1/1 895
a1 65 0/1 478
a1 80 1/1 474
a2 45 0/1 145
a3 50 1/1 415
a3 32 0/1 547
file 2:
a1 45 1/1 784
a1 65 0/1 454
a1 89 1/1 354
a1 105 0/1 365
a2 45 0/1 478
a2 65 0/1 985
a3 32 0/1 658
a3 65 0/1 985
I want to compare both columns of file 1 with file 2 and only if both match, then I want to print the whole line in file 1.
output:
a1 45 1/1 895
a1 65 0/1 478
a2 45 0/1 145
a3 32 0/1 547
This is the solution I am thinking about in awk:
awk 'FNR==NR{a[$1$2];next} (($1$2 in a))' file1 file2
I was wondering whether there are other ways of doing this in bash.
Thanks!
If full line needs to be matched then grep -f is simpler option:
grep -Ff file1 file2
a1 45
a1 65
a2 45
a3 32
EDIT:
awk 'FNR==NR{a[$1,$2];next} (($1,$2) in a)' file1 file2
a1 45 1/1 784
a1 65 0/1 454
a2 45 0/1 478
a3 32 0/1 658

Error installing Ruby on a Mac using RVM

I am completely new to Ruby, and I am having issues installing it on my Mac running Mountain Lion OS... any help would be great!!!
I have followed a tutorial, and I have installed GIT, curl and RVM. Next step is installing Ruby, which I tried but i got the following error
$ rvm install 1.9.2
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.2-p320.
It is not possible to build movable binaries for rubies 1.8-1.9.2, but you can do it for your system only.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing macports............
Error running 'requirements_osx_port_install_port',
showing last 15 lines of /Users/mikelgainza/.rvm/log/1388506081_ruby-1.9.2-p320/port_install.log
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes
checking if linking libobjc requires pthreads... no
checking for Apple Objective-C runtime... yes
checking for GNU Objective C runtime... no
configure: Using Apple Objective-C runtime
checking for Apple Foundation library... no
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: error: Could not find a working Foundation implementation
Requirements installation failed with status: 1.
I also tried to install 2.1.0 . It finds the remote but then it gives some errors
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.0.tar.bz2
Checking requirements for osx.
Installing macports............
Error running 'requirements_osx_port_install_port',
showing last 15 lines of /Users/mikelgainza/.rvm/log/1388512995_ruby-2.1.0/port_install.log
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking objc/objc.h usability... yes
checking objc/objc.h presence... yes
checking for objc/objc.h... yes
checking if linking libobjc requires pthreads... no
checking for Apple Objective-C runtime... yes
checking for GNU Objective C runtime... no
configure: Using Apple Objective-C runtime
checking for Apple Foundation library... no
configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library
configure: error: Could not find a working Foundation implementation
Requirements installation failed with status: 1.
Any idea of what am I doing wrong?
Thanks!
First, you'll need to install the Apple Developers Toolkit (XCode) from the Mac App Store (it's free)
Once that's installed, you'll need to install the CLI command line utilities by running:
xcode-select --install
Then try your install again, and it should work for you.
Additionally, you may want to install the latest version of Ruby, which at the time of this writing is 2.1.0 (via rvm install 2.1.0)
Finally, if you haven't already, I would recommend installing homebrew as well, as this has the added benefit of checking your runtime environment for errors (via brew doctor). You can find instructions here: http://brew.sh/
Good luck!
I have come across to similar problem
➜ ~ rvm install 2.3.0
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.3.0.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system - please wait
Error running 'requirements_osx_brew_update_system ruby-2.3.0',
showing last 15 lines of /Users/admin/.rvm/log/1481339734_ruby-2.3.0/update_system.log
+rvm_error:2> rvm_pretty_print stderr
+rvm_pretty_print:2> case auto (0|no)
+rvm_pretty_print:2> case auto (1|auto)
+rvm_pretty_print:7> case xterm-256color (dumb|unknown)
+rvm_pretty_print:10> case stderr (stdout)
+rvm_pretty_print:10> case stderr (stderr)
+rvm_pretty_print:12> [[ -t 2 ]]
+rvm_pretty_print:12> return 1
+rvm_error:4> printf %b 'Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
+requirements_osx_brew_update_system:25> return 1
Requirements installation failed with status: 1.
As been told in Jekyll's Doc,
I install Xcode Command-Line Tools
Installing Xcode Command-Line Tools
If you run into issues installing Jekyll's dependencies which make use of native extensions and are using macOS, you will need to install Xcode and the Command-Line Tools it ships with. Download them in Preferences → Downloads → Components.
And after install xcode-select:
xcode-select --install
then I install ruby 2.3.0 successfully.
➜ ~ rvm install 2.3.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/admin/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0 13.5M 0 32283 0 0 4495 0 0:52:35 0:00:07 0:52:28 6 1 13.5M 1 143k 0 0 17673 0 0:13:22 0:00:08 0:13:14 28 1 13.5M 1 255k 0 0 28487 0 0:08:17 0:00:09 0:08:08 53 2 13.5M 2 351k 0 0 35391 0 0:06:40 0:00:10 0:06:30 80 3 13.5M 3 436k 0 0 39080 0 0:06:02 0:00:11 0:05:51 89 3 13.5M 3 495k 0 0 41702 0 0:05:40 0:00:12 0:05:28 95 4 13.5M 4 564k 0 0 43882 0 0:05:23 0:00:13 0:05:10 88 4 13.5M 4 623k 0 0 44999 0 0:05:15 0:00:14 0:05:01 75 4 13.5M 4 684k 0 0 46202 0 0:05:07 0:00:15 0:04:52 68 5 13.5M 5 735k 0 0 46462 0 0:05:05 0:00:16 0:04:49 64 5 13.5M 5 804k 0 0 47975 0 0:04:55 0:00:17 0:04:38 63 6 13.5M 6 879k 0 0 47817 0 0:04:56 0:00:18 0:04:38 56 6 13.5M 6 895k 0 0 47642 0 0:04:57 0:00:19 0:04:38 55 6 13.5M 6 948k 0 0 48109 0 0:04:54 0:00:20 0:04:34 53 7 13.5M 7 975k 0 0 47097 0 0:05:01 0:00:21 0:04:40 49 7 13.5M 7 1023k 0 0 47044 0 0:05:01 0:00:22 0:04:39 43 7 13.5M 7 1068k 0 0 47241 0 0:05:00 0:00:23 0:04:37 44 8 13.5M 8 1119k 0 0 47383 0 0:04:59 0:00:24 0:04:35 46 8 13.5M 8 1191k 0 0 48443 0 0:04:52 0:00:25 0:04:27 49 9 13.5M 9 1263k 0 0 49386 0 0:04:47 0:00:26 0:04:21 59 9 13.5M 9 1375k 0 0 51833 0 0:04:33 0:00:27 0:04:06 73 11 13.5M 11 1551k 0 0 56396 0 0:04:11 0:00:28 0:03:43 98 12 13.5M 12 1711k 0 0 59078 0 0:04:00 0:00:29 0:03:31 1 13 13.5M 13 1855k 0 0 62986 0 0:03:45 0:00:30 0:03:15 1 14 13.5M 14 1983k 0 0 65162 0 0:03:37 0:00:31 0:03:06 1 15 13.5M 15 2079k 0 0 66197 0 0:03:34 0:00:32 0:03:02 1 15 13.5M 15 2191k 0 0 67639 0 0:03:29 0:00:33 0:02:56 1 16 13.5M 16 2303k 0 0 69036 0 0:03:25 0:00:34 0:02:51 1 17 13.5M 17 2402k 0 0 69928 0 0:03:22 0:00:35 0:02:47 1 18 13.5M 18 2495k 0 0 70618 0 0:03:20 0:00:36 0:02:44 1 18 13.5M 18 2602k 0 0 71652 0 0:03:17 0:00:37 0:02:40 1 19 13.5M 19 2703k 0 0 72495 0 0:03:15 0:00:38 0:02:37 1 20 13.5M 20 2794k 0 0 72980 0 0:03:14 0:00:39 0:02:35 99 20 13.5M 20 2847k 0 0 72375 0 0:03:16 0:00:40 0:02:36 89 21 13.5M 21 2927k 0 0 72822 0 0:03:14 0:00:41 0:02:33 88 21 13.5M 21 3007k 0 0 73038 0 0:03:14 0:00:42 0:02:32 83 22 13.5M 22 3103k 0 0 73612 0 0:03:12 0:00:43 0:02:29 82 22 13.5M 22 3183k 0 0 73797 0 0:03:12 0:00:44 0:02:28 80 23 13.5M 23 3279k 0 0 74314 0 0:03:10 0:00:45 0:02:25 90 24 13.5M 24 3407k 0 0 75558 0 0:03:07 0:00:46 0:02:21 98 25 13.5M 25 3519k 0 0 76375 0 0:03:05 0:00:47 0:02:18 1 25 13.5M 25 3599k 0 0 76494 0 0:03:05 0:00:48 0:02:17 26 13.5M 26 3679k 0 0 76602 0 0:03:05 0:00:49 0:02:16 27 13.5M 27 3759k 0 0 76669 0 0:03:05 0:00:50 0:02:15 97 27 13.5M 27 3839k 0 0 76825 0 0:03:04 0:00:51 0:02:13 88 28 13.5M 28 3887k 0 0 76282 0 0:03:05 0:00:52 0:02:13 75 28 13.5M 28 3999k 0 0 77020 0 0:03:04 0:00:53 0:02:11 82 29 13.5M 29 4063k 0 0 76776 0 0:03:04 0:00:54 0:02:10 78 29 13.5M 29 4111k 0 0 75849 0 0:03:07 0:00:55 0:02:12 68 30 13.5M 30 4159k 0 0 75808 0 0:03:07 0:00:56 0:02:11 65 30 13.5M 30 4207k 0 0 75343 0 0:03:08 0:00:57 0:02:11 65 30 13.5M 30 4239k 0 0 74601 0 0:03:10 0:00:58 0:02:12 48 30 13.5M 30 4287k 0 0 74154 0 0:03:11 0:00:59 0:02:12 45 31 13.5M 31 4319k 0 0 73287 0 0:03:13 0:01:00 0:02:13 43 31 13.5M 31 4351k 0 0 72825 0 0:03:14 0:01:01 0:02:13 39 31 13.5M 31 4383k 0 0 72115 0 0:03:16 0:01:02 0:02:14 35 31 13.5M 31 4399k 0 0 71294 0 0:03:18 0:01:03 0:02:15 32 31 13.5M 31 4415k 0 0 70378 0 0:03:21 0:01:04 0:02:17 26 32 13.5M 32 4447k 0 0 69827 0 0:03:23 0:01:05 0:02:18 26 32 13.5M 32 4479k 0 0 69306 0 0:03:24 0:01:06 0:02:18 26 32 13.5M 32 4543k 0 0 69239 0 0:03:24 0:01:07 0:02:17 33 33 13.5M 33 4639k 0 0 69685 0 0:03:23 0:01:08 0:02:15 49 34 13.5M 34 4815k 0 0 71290 0 0:03:18 0:01:09 0:02:09 83 36 13.5M 36 5007k 0 0 72688 0 0:03:15 0:01:10 0:02:05 1 37 13.5M 37 5167k 0 0 74004 0 0:03:11 0:01:11 0:02:00 1 38 13.5M 38 5295k 0 0 74998 0 0:03:09 0:01:12 0:01:57 1 38 13.5M 38 5383k 0 0 74963 0 0:03:09 0:01:13 0:01:56 1 39 13.5M 39 5487k 0 0 75742 0 0:03:07 0:01:14 0:01:53 1 40 13.5M 40 5594k 0 0 76197 0 0:03:06 0:01:15 0:01:51 1 41 13.5M 41 5695k 0 0 76553 0 0:03:05 0:01:16 0:01:49 1 41 13.5M 41 5807k 0 0 77066 0 0:03:04 0:01:17 0:01:47 1 42 13.5M 42 5935k 0 0 77757 0 0:03:02 0:01:18 0:01:44 1 43 13.5M 43 6079k 0 0 78637 0 0:03:00 0:01:19 0:01:41 1 44 13.5M 44 6223k 0 0 79253 0 0:02:58 0:01:20 0:01:38 1 46 13.5M 46 6399k 0 0 80726 0 0:02:55 0:01:21 0:01:34 1 47 13.5M 47 6559k 0 0 81744 0 0:02:53 0:01:22 0:01:31 1 48 13.5M 48 6722k 0 0 82764 0 0:02:51 0:01:23 0:01:28 1 49 13.5M 49 6831k 0 0 83107 0 0:02:50 0:01:24 0:01:26 1 50 13.5M 50 6927k 0 0 83273 0 0:02:50 0:01:25 0:01:25 1 50 13.5M 50 7023k 0 0 83450 0 0:02:49 0:01:26 0:01:23 1 51 13.5M 51 7135k 0 0 83804 0 0:02:49 0:01:27 0:01:22 1 52 13.5M 52 7231k 0 0 83958 0 0:02:48 0:01:28 0:01:20 1 53 13.5M 53 7343k 0 0 84334 0 0:02:48 0:01:29 0:01:19 1 53 13.5M 53 7479k 0 0 84938 0 0:02:47 0:01:30 0:01:17 1 54 13.5M 54 7599k 0 0 85342 0 0:02:46 0:01:31 0:01:15 1 55 13.5M 55 7695k 0 0 85379 0 0:02:46 0:01:32 0:01:14 1 56 13.5M 56 7823k 0 0 85975 0 0:02:44 0:01:33 0:01:11 1 57 13.5M 57 7935k 0 0 86290 0 0:02:44 0:01:34 0:01:10 1 58 13.5M 58 8055k 0 0 86671 0 0:02:43 0:01:35 0:01:08 1 59 13.5M 59 8175k 0 0 86628 0 0:02:43 0:01:36 0:01:07 1 59 13.5M 59 8234k 0 0 86396 0 0:02:44 0:01:37 0:01:07 1 59 13.5M 59 8287k 0 0 86436 0 0:02:44 0:01:38 0:01:06 95 60 13.5M 60 8351k 0 0 86214 0 0:02:44 0:01:39 0:01:05 84 60 13.5M 60 8399k 0 0 85853 0 0:02:45 0:01:40 0:01:05 70 61 13.5M 61 8463k 0 0 85643 0 0:02:45 0:01:41 0:01:04 64 61 13.5M 61 8511k 0 0 85280 0 0:02:46 0:01:42 0:01:04 61 61 13.5M 61 8575k 0 0 84797 0 0:02:47 0:01:43 0:01:04 54 62 13.5M 62 8620k 0 0 84728 0 0:02:47 0:01:44 0:01:03 55 62 13.5M 62 8655k 0 0 84260 0 0:02:48 0:01:45 0:01:03 52 62 13.5M 62 8703k 0 0 83934 0 0:02:49 0:01:46 0:01:03 49 63 13.5M 63 8751k 0 0 83619 0 0:02:49 0:01:47 0:01:02 49 63 13.5M 63 8820k 0 0 83499 0 0:02:49 0:01:48 0:01:01 54 64 13.5M 64 8879k 0 0 83277 0 0:02:50 0:01:49 0:01:01 52 64 13.5M 64 8975k 0 0 83237 0 0:02:50 0:01:50 0:01:00 62 65 13.5M 65 9103k 0 0 83823 0 0:02:49 0:01:51 0:00:58 81 66 13.5M 66 9215k 0 0 84123 0 0:02:48 0:01:52 0:00:56 94 67 13.5M 67 9311k 0 0 84196 0 0:02:48 0:01:53 0:00:55 99 67 13.5M 67 9383k 0 0 84155 0 0:02:48 0:01:54 0:00:54 1 69 13.5M 69 9562k 0 0 85022 0 0:02:46 0:01:55 0:00:51 1 69 13.5M 69 9647k 0 0 85034 0 0:02:46 0:01:56 0:00:50 1 70 13.5M 70 9743k 0 0 85136 0 0:02:46 0:01:57 0:00:49 1 70 13.5M 70 9807k 0 0 84892 0 0:02:47 0:01:58 0:00:49 71 13.5M 71 9871k 0 0 84803 0 0:02:47 0:01:59 0:00:48 99 71 13.5M 71 9951k 0 0 84732 0 0:02:47 0:02:00 0:00:47 78 72 13.5M 72 9.7M 0 0 84620 0 0:02:47 0:02:01 0:00:46 75 72 13.5M 72 9.8M 0 0 84319 0 0:02:48 0:02:02 0:00:46 65 73 13.5M 73 9.9M 0 0 84331 0 0:02:48 0:02:03 0:00:45 70 73 13.5M 73 9.9M 0 0 84179 0 0:02:48 0:02:04 0:00:44 69 74 13.5M 74 10.0M 0 0 84134 0 0:02:48 0:02:05 0:00:43 69 74 13.5M 74 10.1M 0 0 84139 0 0:02:48 0:02:06 0:00:42 72 75 13.5M 75 10.1M 0 0 83940 0 0:02:48 0:02:07 0:00:41 74 75 13.5M 75 10.2M 0 0 83849 0 0:02:49 0:02:08 0:00:41 71 76 13.5M 76 10.3M 0 0 83963 0 0:02:48 0:02:09 0:00:39 78 77 13.5M 77 10.4M 0 0 83941 0 0:02:48 0:02:10 0:00:38 79 77 13.5M 77 10.5M 0 0 84059 0 0:02:48 0:02:11 0:00:37 82 78 13.5M 78 10.6M 0 0 84159 0 0:02:48 0:02:12 0:00:36 89 79 13.5M 79 10.7M 0 0 84391 0 0:02:48 0:02:13 0:00:35 98 80 13.5M 80 10.8M 0 0 84570 0 0:02:47 0:02:14 0:00:33 98 81 13.5M 81 10.9M 0 0 85208 0 0:02:46 0:02:15 0:00:31 1 82 13.5M 82 11.1M 0 0 85664 0 0:02:45 0:02:16 0:00:29 1 83 13.5M 83 11.2M 0 0 86230 0 0:02:44 0:02:17 0:00:27 1 84 13.5M 84 11.4M 0 0 86908 0 0:02:43 0:02:18 0:00:25 1 85 13.5M 85 11.6M 0 0 87583 0 0:02:41 0:02:19 0:00:22 1 86 13.5M 86 11.7M 0 0 87985 0 0:02:41 0:02:20 0:00:21 1 87 13.5M 87 11.8M 0 0 87953 0 0:02:41 0:02:21 0:00:20 1 88 13.5M 88 11.9M 0 0 88270 0 0:02:40 0:02:22 0:00:18 1 89 13.5M 89 12.0M 0 0 88200 0 0:02:40 0:02:23 0:00:17 1 89 13.5M 89 12.1M 0 0 88115 0 0:02:40 0:02:24 0:00:16 1 89 13.5M 89 12.1M 0 0 87903 0 0:02:41 0:02:25 0:00:16 85 90 13.5M 90 12.2M 0 0 87757 0 0:02:41 0:02:26 0:00:15 82 90 13.5M 90 12.3M 0 0 87450 0 0:02:42 0:02:27 0:00:15 65 91 13.5M 91 12.3M 0 0 87557 0 0:02:42 0:02:28 0:00:14 69 91 13.5M 91 12.4M 0 0 87413 0 0:02:42 0:02:29 0:00:13 67 92 13.5M 92 12.5M 0 0 87388 0 0:02:42 0:02:30 0:00:12 72 93 13.5M 93 12.5M 0 0 87348 0 0:02:42 0:02:31 0:00:11 75 93 13.5M 93 12.6M 0 0 87195 0 0:02:42 0:02:32 0:00:10 79 94 13.5M 94 12.7M 0 0 87167 0 0:02:42 0:02:33 0:00:09 75 94 13.5M 94 12.8M 0 0 87134 0 0:02:42 0:02:34 0:00:08 78 95 13.5M 95 12.8M 0 0 87050 0 0:02:42 0:02:35 0:00:07 76 95 13.5M 95 12.9M 0 0 86859 0 0:02:43 0:02:36 0:00:07 72 96 13.5M 96 12.9M 0 0 86694 0 0:02:43 0:02:37 0:00:06 71 96 13.5M 96 13.0M 0 0 86546 0 0:02:43 0:02:38 0:00:05 67 96 13.5M 96 13.1M 0 0 86347 0 0:02:44 0:02:39 0:00:05 62 97 13.5M 97 13.1M 0 0 86325 0 0:02:44 0:02:40 0:00:04 63 98 13.5M 98 13.2M 0 0 86303 0 0:02:44 0:02:41 0:00:03 68 99 13.5M 99 13.4M 0 0 86680 0 0:02:43 0:02:42 0:00:01 86100 13.5M 100 13.5M 0 0 87104 0 0:02:42 0:02:42 --:--:-- 103k
ruby-2.3.0 - #extracting ruby-2.3.0 to /Users/admin/.rvm/src/ruby-2.3.0 - please wait
ruby-2.3.0 - #configuring - please wait
ruby-2.3.0 - #post-configuration - please wait
ruby-2.3.0 - #compiling - please wait
ruby-2.3.0 - #installing - please wait
ruby-2.3.0 - #making binaries executable - please wait
Installed rubygems 2.5.1 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.
ruby-2.3.0 - #gemset created /Users/admin/.rvm/gems/ruby-2.3.0#global
ruby-2.3.0 - #importing gemset /Users/admin/.rvm/gemsets/global.gems - please wait
ruby-2.3.0 - #generating global wrappers - please wait
ruby-2.3.0 - #gemset created /Users/admin/.rvm/gems/ruby-2.3.0
ruby-2.3.0 - #importing gemsetfile /Users/admin/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.3.0 - #generating default wrappers - please wait
ruby-2.3.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.3.0 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
Error running 'requirements_debian_update_system ruby-2.5.1',
please read /home/ivliev/.rvm/log/1525444837_ruby-2.5.1/update_system.log
Requirements installation failed with status: 1.
decision:
sudo apt-get update
delete the falling packages, and then run it again
 
look at the available packages
rvm list known
if necessary there is no. update package list
rvm get master
install the desired ruby
rvm install "ruby-2.5.1"
I got the same error - for me it was a problem with Homebrew - the last lines of the command logs said:
++ printf %b 'Failed to update Homebrew, follow instructions here:
https://github.com/Homebrew/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.\n'
So then I ran brew update which then gave me another error message with instructions on how to fix it. After I followed brew's instructions I was able to install Ruby.

ISO 14443a Card Will Not Connect - Strange Error Code

I am getting a strange output when I try to connect my ISO 14443a card to an NFC reader.
0: : 26
0: 0: TAG 04 00
0: : 93 20
0: 0: TAG 47 82 db b3 ad
0: : 93 70 47 82 db b3 ad 3a f4
0: 0: TAG 28 b4 fc
0: : e0 50 bc a5
0: 0: TAG 13 78 80 82 02 80 31 80 66 b0 84 16 01 6e 01 83 00 90 00 03 d1
0: : e0 50 bc a5
0: 0: TAG 13 78 80 82 02 80 31 80 66 b0 84 16 01 6e 01 83 00 90 00 03 d1
0: : c2 e0 b4 <<<< WHAT??
0: 0: TAG 03 6a 82 4f 75
0: : 26
0: 0: TAG 04 00
0: : 78
You can see that the cards is woken up, performs the anti-collision, then sends its ATS when requested (it gets asked twice for some reason?).
After this, the reader sends a strange command (marked above) and the card responds with an 'Operation not supported' response.
The wake-up, anti-collision protocol then restarts, and this goes on and on.
My question is, what does the command (c2 e0 b4) sent from the reader mean?
Thanks in advance.
I do not know if you are still interested in the response, I will just save time for anyone else who might be looking for the solution(like I was).
This is nothing else but S(Deselect) block sent from the reader, consisting of Protcol Contol Byte(PCB) and 2 bytes of CRC_A
C2 E0 B4
The same applies for anyone who might be looking for this command coming from the reader:
B2 67 C7
It is R(NACK) block, consisting of Protcol Contol Byte(PCB) and 2 bytes of CRC_A
They both are a fundamental part of ISO-DEP protocol(Type 4A or Type 4B tags), so read description and how to properly handle them in the "NFC Digital Protocol" spec, chapter "13 ISO-DEP Protocol"

Resources