Windows batch scripting: Showing date, time and all output in logs - windows

I have made a script that I am going to call using windows scheduler to back up a Ruby on Rails app I have made.
When I call the command normally in a command window, the output looks like this
C:\Users\admin\Desktop\app>heroku db:pull --confirm app
Loaded Taps v0.3.23
Auto-detected local database: postgres://db:pass#127.0.0.1/app?encoding=utf8
Warning: Data in the database 'postgres://db:pass#127.0.0.1/app?encoding=utf8' will be overwritten and
will not be recoverable.
Receiving schema
Schema: 0% | | ETA: --:--:--
Schema: 20% |======== | ETA: 00:00:21
Schema: 40% |================ | ETA: 00:00:18
Schema: 60% |========================= | ETA: 00:00:12
Schema: 80% |================================= | ETA: 00:00:05
Schema: 100% |==========================================| Time: 00:00:29
Receiving indexes
schema_migrat: 0% | | ETA: --:--:--
schema_migrat: 100% |==========================================| Time: 00:00:05
users: 0% | | ETA: --:--:--
users: 50% |===================== | ETA: 00:00:05
users: 100% |==========================================| Time: 00:00:10
Receiving data
5 tables, 1,000 records
table1: 100% |==========================================| Time: 00:00:00
table2: 100% |==========================================| Time: 00:00:00
table3: 100% |==========================================| Time: 00:00:00
table4: 100% |==========================================| Time: 00:00:00
table5: 100% |==========================================| Time: 00:00:01
Resetting sequences
Here is my .bat:
heroku db:pull --confirm app >> log.txt
If I run this twice, this is the output that goes into a file, log.txt
Loaded Taps v0.3.23
Auto-detected local database: postgres://db:pass#127.0.0.1/webapp_development?encoding=utf8
Warning: Data in the database 'postgres://db:pass#127.0.0.1/webapp_development?encoding=utf8' will be overwritten and will not be recoverable.
Receiving schema
Receiving indexes
Receiving data
5 tables, 1,000 records
Resetting sequences
Loaded Taps v0.3.23
Auto-detected local database: postgres://db:pass#127.0.0.1/webapp_development?encoding=utf8
Warning: Data in the database 'postgres://db:pass#127.0.0.1/webapp_development?encoding=utf8' will be overwritten and will not be recoverable.
Receiving schema
Receiving indexes
Receiving data
5 tables, 1,000 records
Resetting sequences
Is there any way to include the exact console output, and also include dates and times of when the script was run? Thanks in advance.
UPDATE:
Start: 19/10/2012 12:08:04.90
Schema: 0% | | ETA: --:--:--Schema: 20% |======== | ETA: 00:00:24Schema: 40% |================ | ETA: 00:00:18Schema: 60% |========================= | ETA: 00:00:13Schema: 80% |================================= | ETA: 00:00:06Schema: 100% |==========================================| ETA: 00:00:00Schema: 100% |==========================================| Time: 00:00:32
schema_migrat: 0% | | ETA: --:--:--schema_migrat: 100% |==========================================| ETA: 00:00:00schema_migrat: 100% |==========================================| Time: 00:00:05
users: 0% | | ETA: --:--:--users: 50% |===================== | ETA: 00:00:05users: 100% |==========================================| ETA: 00:00:00users: 100% |==========================================| Time: 00:00:08
schema_migrat: 0% | | ETA: --:--:--schema_migrat: 7% |== | ETA: 00:00:06schema_migrat: 100% |==========================================| Time: 00:00:00
users: 0% | | ETA: --:--:--users: 3% |= | ETA: 00:00:11users: 100% |==========================================| Time: 00:00:00
projecttechno: 0% | | ETA: --:--:--projecttechno: 6% |== | ETA: 00:00:05projecttechno: 100% |==========================================| Time: 00:00:00
technols: 0% | | ETA: --:--:--technols: 7% |== | ETA: 00:00:05technols: 100% |==========================================| Time: 00:00:00
projects: 0% | | ETA: --:--:--projects: 1% | | ETA: 00:00:54projects: 100% |==========================================| Time: 00:00:00
Loaded Taps v0.3.23
Auto-detected local database: postgres://postgres:a#127.0.0.1/webapp_development?encoding=utf8
Warning: Data in the database 'postgres://postgres:a#127.0.0.1/webapp_development?encoding=utf8' will be overwritten and will not be recoverable.
Receiving schema
Receiving indexes
Receiving data
5 tables, 1,000 records
Resetting sequences

Adding the date and time is easy using %date% and %time%.
You could try to redirect stderr (2) to stdout (&1), perhaps that will capture the missing output.
echo Start: %date% %time% >>log.txt
heroku db:pull --confirm app >>log.txt 2>&1
echo Stop: %date% %time% >>log.txt

Related

Github Actions failing to install Libv8 gem on ubuntu-18.04.5

We are using Github Actions for our CI setup. all of sudden our Gem installation action stopped working when it is trying to install mini_racer gem which depends on libv8 gem. but when actions try to install and build extentions for this gem it fails there.
here are the configurations:
jobs:
spec:
runs-on: ubuntu-latest
services:
postgresql:
image: circleci/postgres:11.5-alpine-ram
ports: ["5432:5432"]
env:
POSTGRES_USER:
POSTGRES_DB:
POSTGRES_PASSWORD:
steps:
- uses: actions/checkout#v1
- name: Bundler/Gems Cache
uses: actions/cache#v2
with:
path: vendor/bundle
key: ${{ runner.os }}-bundle-v1-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-bundle-v1-
- name: Read nvm version
id: nvmrc
run: echo ::set-output "name=NODEVERSION::$(cat .nvmrc)"
- uses: ruby/setup-ruby#v1
- uses: actions/setup-node#v1
with:
node-version: "${{ steps.nvmrc.outputs.NODEVERSION }}"
- name: Install Gems
run: |
gem install --no-document bundler
bundle config path vendor/bundle
bundle config set without 'development'
bundle install --deployment --jobs 2
here are the logs:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/ext/libv8
/opt/hostedtoolcache/Ruby/2.6.6/x64/bin/ruby -I
/opt/hostedtoolcache/Ruby/2.6.6/x64/lib/ruby/2.6.0 -r
./siteconf20201214-2974-1gm42lz.rb extconf.rb
creating Makefile
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be
created.
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout
--progress https://chromium.googlesource.com/v8/v8.git
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor/_gclient_v8_msyeloop'
in
'/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor'
Cloning into
'/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor/_gclient_v8_msyeloop'...
remote: Sending approximately 777.22 MiB ...Counting objects: 1
remote: Counting objects: 1166
remote: Counting objects: 3144
remote: Counting objects: 7699, done
remote: Finding sources: 2% (1/38)
remote: Finding sources: 5%
(2/38)
remote: Finding sources: 7% (3/38)
remote:
Finding sources: 10% (4/38)
remote: Finding sources: 13% (5/38)
remote: Finding sources: 15% (6/38)
remote: Finding sources: 18%
(7/38)
remote: Finding sources: 21% (8/38)
remote:
Finding sources: 23% (9/38)
remote: Finding sources: 26% (10/38)
remote: Finding sources: 28% (11/38)
remote: Finding sources: 31%
(12/38)
remote: Finding sources: 34% (13/38)
remote:
Finding sources: 36% (14/38)
remote: Finding sources: 39% (15/38)
remote: Finding sources: 42% (16/38)
remote: Finding sources: 44%
(17/38)
remote: Finding sources: 47% (18/38)
remote:
Finding sources: 50% (19/38)
remote: Finding sources: 52% (20/38)
remote: Finding sources: 55% (21/38)
remote: Finding sources: 57%
(22/38)
remote: Finding sources: 60% (23/38)
remote:
Finding sources: 63% (24/38)
remote: Finding sources: 65% (25/38)
remote: Finding sources: 68% (26/38)
remote: Finding sources: 71%
(27/38)
remote: Finding sources: 73% (28/38)
remote:
Finding sources: 76% (29/38)
remote: Finding sources: 78% (30/38)
remote: Finding sources: 81% (31/38)
remote: Finding sources: 84%
(32/38)
remote: Finding sources: 86% (33/38)
remote:
Finding sources: 89% (34/38)
remote: Finding sources: 92% (35/38)
remote: Finding sources: 94% (36/38)
remote: Finding sources: 97%
(37/38)
remote: Finding sources: 100% (38/38)
remote:
Finding sources: 100% (38/38)
Receiving objects: 0% (1/806610)
Receiving objects: 1% (8067/806610)
Receiving objects: 2% (16133/806610)
Receiving objects: 3% (24199/806610)
Receiving objects: 4% (32265/806610), 10.18 MiB | 20.35 MiB/s
Receiving
objects: 5% (40331/806610), 10.18 MiB | 20.35 MiB/s
Receiving objects: 6%
(48397/806610), 10.18 MiB | 20.35 MiB/s
Receiving objects: 6% (49045/806610),
10.18 MiB | 20.35 MiB/s
Receiving objects: 7% (56463/806610), 21.73 MiB |
21.73 MiB/s
Receiving objects: 8% (64529/806610), 21.73 MiB | 21.73 MiB/s
Receiving objects: 9% (72595/806610), 21.73 MiB | 21.73 MiB/s
Receiving
objects: 10% (80661/806610), 32.48 MiB | 21.65 MiB/s
Receiving objects: 11%
(88728/806610), 32.48 MiB | 21.65 MiB/s
Receiving objects: 12% (96794/806610),
32.48 MiB | 21.65 MiB/s
Receiving objects: 13% (104860/806610), 32.48 MiB |
21.65 MiB/s
Receiving objects: 13% (105075/806610), 32.48 MiB | 21.65 MiB/s
Receiving objects: 14% (112926/806610), 48.31 MiB | 24.17 MiB/s
Receiving
objects: 15% (120992/806610), 48.31 MiB | 24.17 MiB/s
Receiving objects: 16%
(129058/806610), 48.31 MiB | 24.17 MiB/s
Receiving objects: 17%
(137124/806610), 66.43 MiB | 26.58 MiB/s
Receiving objects: 18%
(145190/806610), 66.43 MiB | 26.58 MiB/s
Receiving objects: 19%
(153256/806610), 66.43 MiB | 26.58 MiB/s
Receiving objects: 19%
(159896/806610), 66.43 MiB | 26.58 MiB/s
Receiving objects: 20%
(161322/806610), 83.43 MiB | 27.82 MiB/s
Receiving objects: 21%
(169389/806610), 83.43 MiB | 27.82 MiB/s
Receiving objects: 22%
(177455/806610), 83.43 MiB | 27.82 MiB/s
Receiving objects: 23%
(185521/806610), 83.43 MiB | 27.82 MiB/s
Receiving objects: 24%
(193587/806610), 101.47 MiB | 29.00 MiB/s
Receiving objects: 25%
(201653/806610), 101.47 MiB | 29.00 MiB/s
Receiving objects: 26%
(209719/806610), 101.47 MiB | 29.00 MiB/s
Receiving objects: 27%
(217785/806610), 101.47 MiB | 29.00 MiB/s
Receiving objects: 27%
(219562/806610), 101.47 MiB | 29.00 MiB/s
Receiving objects: 28%
(225851/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 29%
(233917/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 30%
(241983/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 31%
(250050/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 32%
(258116/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 33%
(266182/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 34%
(274248/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 35%
(282314/806610), 122.18 MiB | 30.55 MiB/s
Receiving objects: 36%
(290380/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 37%
(298446/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 38%
(306512/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 39%
(314578/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 40%
(322644/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 41%
(330711/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 42%
(338777/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 43%
(346843/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 44%
(354909/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 45%
(362975/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 46%
(371041/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 47%
(379107/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 48%
(387173/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 49%
(395239/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 50%
(403305/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 51%
(411372/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 52%
(419438/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 52%
(421222/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 53%
(427504/806610), 137.46 MiB | 30.53 MiB/s
Receiving objects: 54%
(435570/806610), 150.47 MiB | 31.15 MiB/s
Receiving objects: 55%
(443636/806610), 160.89 MiB | 30.90 MiB/s
Receiving objects: 55%
(444613/806610), 160.89 MiB | 30.90 MiB/s
Receiving objects: 56%
(451702/806610), 171.65 MiB | 30.90 MiB/s
Receiving objects: 57%
(459768/806610), 181.79 MiB | 29.64 MiB/s
Receiving objects: 57%
(459851/806610), 181.79 MiB | 29.64 MiB/s
Receiving objects: 57%
(465088/806610), 204.23 MiB | 26.82 MiB/s
Receiving objects: 58%
(467834/806610), 217.07 MiB | 25.67 MiB/s
Receiving objects: 58%
(471120/806610), 228.67 MiB | 23.64 MiB/s
Receiving objects: 59%
(475900/806610), 251.90 MiB | 22.54 MiB/s
Receiving objects: 59%
(476769/806610), 251.90 MiB | 22.54 MiB/s
Receiving objects: 59%
(482388/806610), 275.84 MiB | 23.15 MiB/s
Receiving objects: 60%
(483966/806610), 284.36 MiB | 22.79 MiB/s
Receiving objects: 60%
(488380/806610), 295.33 MiB | 22.85 MiB/s
Receiving objects: 61%
(492033/806610), 320.99 MiB | 23.09 MiB/s
Receiving objects: 61%
(494842/806610), 320.99 MiB | 23.09 MiB/s
Receiving objects: 62%
(500099/806610), 345.68 MiB | 23.37 MiB/s
Receiving objects: 62%
(502447/806610), 345.68 MiB | 23.37 MiB/s
Receiving objects: 63%
(508165/806610), 369.49 MiB | 23.53 MiB/s
Receiving objects: 63%
(508340/806610), 369.49 MiB | 23.53 MiB/s
Receiving objects: 63%
(515700/806610), 394.58 MiB | 24.49 MiB/s
Receiving objects: 64%
(516231/806610), 405.08 MiB | 24.39 MiB/s
Receiving objects: 64%
(524205/806610), 417.50 MiB | 24.35 MiB/s
Receiving objects: 65%
(524297/806610), 417.50 MiB | 24.35 MiB/s
Receiving objects: 66%
(532363/806610), 442.39 MiB | 24.23 MiB/s
Receiving objects: 66%
(532452/806610), 442.39 MiB | 24.23 MiB/s
Receiving objects: 66%
(540228/806610), 469.93 MiB | 24.90 MiB/s
Receiving objects: 67%
(540429/806610), 469.93 MiB | 24.90 MiB/s
Receiving objects: 67%
(546936/806610), 496.55 MiB | 25.57 MiB/s
Receiving objects: 68%
(548495/806610), 508.55 MiB | 25.33 MiB/s
Receiving objects: 68%
(553835/806610), 522.43 MiB | 26.08 MiB/s
Receiving objects: 69%
(556561/806610), 546.91 MiB | 26.00 MiB/s
Receiving objects: 69%
(558983/806610), 546.91 MiB | 26.00 MiB/s
Receiving objects: 70%
(564627/806610), 573.57 MiB | 25.97 MiB/s
Receiving objects: 70%
(564643/806610), 573.57 MiB | 25.97 MiB/s
Receiving objects: 70%
(571963/806610), 599.12 MiB | 25.72 MiB/s
Receiving objects: 71%
(572694/806610), 612.16 MiB | 25.70 MiB/s
Receiving objects: 71%
(579737/806610), 625.82 MiB | 26.06 MiB/s
Receiving objects: 72%
(580760/806610), 638.73 MiB | 25.84 MiB/s
Receiving objects: 72%
(584921/806610), 649.36 MiB | 25.58 MiB/s
Receiving objects: 73%
(588826/806610), 668.74 MiB | 24.09 MiB/s
Receiving objects: 73%
(589490/806610), 668.74 MiB | 24.09 MiB/s
Receiving objects: 73%
(592259/806610), 687.90 MiB | 22.62 MiB/s
Receiving objects: 74%
(596892/806610), 697.41 MiB | 21.84 MiB/s
Receiving objects: 74%
(598795/806610), 708.29 MiB | 21.36 MiB/s
Receiving objects: 75%
(604958/806610), 727.52 MiB | 19.73 MiB/s
Receiving objects: 75%
(609014/806610), 727.52 MiB | 19.73 MiB/s
Receiving objects: 76%
(613024/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 77%
(621090/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 78%
(629156/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 79%
(637222/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 80%
(645288/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 81%
(653355/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 82%
(661421/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 83%
(669487/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 84%
(677553/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 85%
(685619/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 86%
(693685/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 87%
(701751/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 88%
(709817/806610), 737.40 MiB | 19.56 MiB/s
Receiving objects: 89%
(717883/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 90%
(725949/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 91%
(734016/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 92%
(742082/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 93%
(750148/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 94%
(758214/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 94%
(760146/806610), 753.10 MiB | 21.03 MiB/s
Receiving objects: 95%
(766280/806610), 767.77 MiB | 22.01 MiB/s
Receiving objects: 96%
(774346/806610), 767.77 MiB | 22.01 MiB/s
Receiving objects: 97%
(782412/806610), 767.77 MiB | 22.01 MiB/s
Receiving objects: 98%
(790478/806610), 767.77 MiB | 22.01 MiB/s
Receiving objects: 99%
(798544/806610), 767.77 MiB | 22.01 MiB/s
remote: Total 806610 (delta 650490),
reused 806597 (delta 650490)
Receiving objects: 100% (806610/806610), 767.77 MiB | 22.01 MiB/s
Receiving
objects: 100% (806610/806610), 777.03 MiB | 24.82 MiB/s, done.
Resolving deltas: 0% (0/650490)
Resolving deltas: 1% (6505/650490)
Resolving
deltas: 2% (13010/650490)
Resolving deltas: 3% (19515/650490)
Resolving
deltas: 4% (26020/650490)
Resolving deltas: 5% (32525/650490)
Resolving
deltas: 6% (39030/650490)
Resolving deltas: 7% (45535/650490)
Resolving
deltas: 8% (52040/650490)
Resolving deltas: 8% (54023/650490)
Resolving
deltas: 9% (58545/650490)
Resolving deltas: 10% (65049/650490)
Resolving
deltas: 11% (71554/650490)
Resolving deltas: 12% (78059/650490)
Resolving
deltas: 12% (80547/650490)
Resolving deltas: 13% (84564/650490)
Resolving
deltas: 14% (91069/650490)
Resolving deltas: 15% (97574/650490)
Resolving
deltas: 16% (104079/650490)
Resolving deltas: 17% (110584/650490)
Resolving
deltas: 18% (117089/650490)
Resolving deltas: 19% (123594/650490)
Resolving
deltas: 19% (129563/650490)
Resolving deltas: 20% (130098/650490)
Resolving
deltas: 21% (136603/650490)
Resolving deltas: 22% (143108/650490)
Resolving
deltas: 23% (149613/650490)
Resolving deltas: 24% (156118/650490)
Resolving
deltas: 25% (162623/650490)
Resolving deltas: 26% (169128/650490)
Resolving
deltas: 26% (169669/650490)
Resolving deltas: 27% (175633/650490)
Resolving
deltas: 28% (182138/650490)
Resolving deltas: 29% (188643/650490)
Resolving
deltas: 30% (195147/650490)
Resolving deltas: 31% (201652/650490)
Resolving
deltas: 32% (208157/650490)
Resolving deltas: 33% (214662/650490)
Resolving
deltas: 34% (221167/650490)
Resolving deltas: 35% (227672/650490)
Resolving
deltas: 36% (234177/650490)
Resolving deltas: 37% (240682/650490)
Resolving
deltas: 37% (245257/650490)
Resolving deltas: 38% (247187/650490)
Resolving
deltas: 39% (253692/650490)
Resolving deltas: 40% (260196/650490)
Resolving
deltas: 41% (266701/650490)
Resolving deltas: 42% (273206/650490)
Resolving
deltas: 43% (279711/650490)
Resolving deltas: 44% (286216/650490)
Resolving
deltas: 45% (292721/650490)
Resolving deltas: 45% (295348/650490)
Resolving
deltas: 46% (299226/650490)
Resolving deltas: 47% (305731/650490)
Resolving
deltas: 48% (312236/650490)
Resolving deltas: 49% (318741/650490)
Resolving
deltas: 50% (325245/650490)
Resolving deltas: 51% (331750/650490)
Resolving
deltas: 51% (337204/650490)
Resolving deltas: 52% (338255/650490)
Resolving
deltas: 53% (344760/650490)
Resolving deltas: 53% (345131/650490)
Resolving
deltas: 53% (349618/650490)
Resolving deltas: 54% (351265/650490)
Resolving
deltas: 54% (355167/650490)
Resolving deltas: 55% (357770/650490)
Resolving
deltas: 55% (361674/650490)
Resolving deltas: 56% (364275/650490)
Resolving
deltas: 56% (368428/650490)
Resolving deltas: 57% (370780/650490)
Resolving
deltas: 57% (372062/650490)
Resolving deltas: 57% (373250/650490)
Resolving
deltas: 57% (374571/650490)
Resolving deltas: 58% (377285/650490)
Resolving
deltas: 58% (377414/650490)
Resolving deltas: 59% (383790/650490)
Resolving
deltas: 59% (389126/650490)
Resolving deltas: 60% (390294/650490)
Resolving
deltas: 61% (396799/650490)
Resolving deltas: 62% (403304/650490)
Resolving
deltas: 62% (408552/650490)
Resolving deltas: 63% (409809/650490)
Resolving
deltas: 64% (416314/650490)
Resolving deltas: 64% (416724/650490)
Resolving
deltas: 65% (422819/650490)
Resolving deltas: 65% (422953/650490)
Resolving
deltas: 65% (424227/650490)
Resolving deltas: 65% (424800/650490)
Resolving
deltas: 65% (425447/650490)
Resolving deltas: 65% (427050/650490)
Resolving
deltas: 66% (429324/650490)
Resolving deltas: 66% (432457/650490)
Resolving
deltas: 67% (435829/650490)
Resolving deltas: 67% (439483/650490)
Resolving
deltas: 67% (441258/650490)
Resolving deltas: 67% (441605/650490)
Resolving
deltas: 67% (441965/650490)
Resolving deltas: 68% (442334/650490)
Resolving
deltas: 68% (442339/650490)
Resolving deltas: 68% (442727/650490)
Resolving
deltas: 68% (443124/650490)
Resolving deltas: 68% (443538/650490)
Resolving
deltas: 68% (443952/650490)
Resolving deltas: 68% (444384/650490)
Resolving
deltas: 68% (444832/650490)
Resolving deltas: 68% (445306/650490)
Resolving
deltas: 68% (445811/650490)
Resolving deltas: 68% (446347/650490)
Resolving
deltas: 69% (448839/650490)
Resolving deltas: 69% (452594/650490)
Resolving
deltas: 70% (455343/650490)
Resolving deltas: 70% (457709/650490)
Resolving
deltas: 71% (461848/650490)
Resolving deltas: 71% (463195/650490)
Resolving
deltas: 71% (467863/650490)
Resolving deltas: 72% (468353/650490)
Resolving
deltas: 73% (474858/650490)
Resolving deltas: 73% (475812/650490)
Resolving
deltas: 74% (481363/650490)
Resolving deltas: 74% (482138/650490)
Resolving
deltas: 75% (487868/650490)
Resolving deltas: 75% (488741/650490)
Resolving
deltas: 76% (494373/650490)
Resolving deltas: 76% (494890/650490)
Resolving
deltas: 76% (500342/650490)
Resolving deltas: 77% (500878/650490)
Resolving
deltas: 78% (507383/650490)
Resolving deltas: 78% (507505/650490)
Resolving
deltas: 78% (511559/650490)
Resolving deltas: 79% (513888/650490)
Resolving
deltas: 79% (518262/650490)
Resolving deltas: 80% (520392/650490)
Resolving
deltas: 81% (526897/650490)
Resolving deltas: 81% (528295/650490)
Resolving
deltas: 82% (533402/650490)
Resolving deltas: 82% (535696/650490)
Resolving
deltas: 83% (539907/650490)
Resolving deltas: 83% (542594/650490)
Resolving
deltas: 84% (546412/650490)
Resolving deltas: 84% (547102/650490)
Resolving
deltas: 84% (548527/650490)
Resolving deltas: 84% (549571/650490)
Resolving
deltas: 84% (550455/650490)
Resolving deltas: 84% (551217/650490)
Resolving
deltas: 84% (551916/650490)
Resolving deltas: 85% (552917/650490)
Resolving
deltas: 85% (553610/650490)
Resolving deltas: 86% (559422/650490)
Resolving
deltas: 86% (559927/650490)
Resolving deltas: 86% (565509/650490)
Resolving
deltas: 87% (565927/650490)
Resolving deltas: 87% (569272/650490)
Resolving
deltas: 87% (571315/650490)
Resolving deltas: 88% (572432/650490)
Resolving
deltas: 88% (574885/650490)
Resolving deltas: 89% (578937/650490)
Resolving
deltas: 89% (582307/650490)
Resolving deltas: 90% (585441/650490)
Resolving
deltas: 90% (586843/650490)
Resolving deltas: 90% (590983/650490)
Resolving
deltas: 90% (591772/650490)
Resolving deltas: 91% (591946/650490)
Resolving
deltas: 91% (594285/650490)
Resolving deltas: 91% (598153/650490)
Resolving
deltas: 92% (598451/650490)
Resolving deltas: 92% (600602/650490)
Resolving
deltas: 92% (604791/650490)
Resolving deltas: 93% (604956/650490)
Resolving
deltas: 93% (608723/650490)
Resolving deltas: 94% (611461/650490)
Resolving
deltas: 94% (613848/650490)
Resolving deltas: 95% (617966/650490)
Resolving
deltas: 95% (620653/650490)
Resolving deltas: 95% (622468/650490)
Resolving
deltas: 95% (624007/650490)
Resolving deltas: 96% (624471/650490)
Resolving
deltas: 96% (625026/650490)
Resolving deltas: 96% (629694/650490)
Resolving
deltas: 97% (630976/650490)
Resolving deltas: 97% (634891/650490)
Resolving
deltas: 98% (637481/650490)
Resolving deltas: 98% (638946/650490)
Resolving
deltas: 99% (643986/650490)
Resolving deltas: 99% (644038/650490)
Resolving
deltas: 99% (646997/650490)
Resolving deltas: 100% (650490/650490)
Resolving
deltas: 100% (650490/650490), done.
[0:02:45] Still working on:
[0:02:45] v8
________ running 'vpython third_party/depot_tools/update_depot_tools_toggle.py
--disable' in
'/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor'
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor/depot_tools/.cipd_bin/.cipd/pkgs/0/fI6WggdkRyN1r91MnTeApc2_gyTtXfYpueHZVLcaF8gC/vpython:
could not resolve options: failed to resolve Python script: stat
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor/third_party/depot_tools/update_depot_tools_toggle.py:
no such file or directory
Error: Command 'vpython third_party/depot_tools/update_depot_tools_toggle.py
--disable' returned non-zero exit status 1 in
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/vendor
Running: gclient root
Running: gclient config --spec 'solutions = [
{
"name": "v8",
"url": "https://chromium.googlesource.com/v8/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {},
},
]
'
Running: gclient sync --with_branch_heads
Subprocess failed with return code 2.
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:83:in
`block in setup_build_deps!': unable to fetch v8 source (RuntimeError)
from
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:81:in
`chdir'
from
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:81:in
`setup_build_deps!'
from
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/ext/libv8/builder.rb:40:in
`build_libv8!'
from
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0/ext/libv8/location.rb:24:in
`install!'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in
/home/runner/work/vendor/bundle/ruby/2.6.0/gems/libv8-8.4.255.0
for inspection.
Results logged to
/home/runner/work/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/libv8-8.4.255.0/gem_make.out
An error occurred while installing libv8 (8.4.255.0), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '8.4.255.0' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
mini_racer was resolved to 0.3.1, which depends on
libv8
Error: Process completed with exit code 5.
This is caused by https://github.com/rubyjs/libv8/issues/310 and caused by upgrade from Bundler v2.1.x to v2.2.x Sorry, I don't have a simple fix for you. Maybe downgrade to Bundler 2.1.x for now?

github failed to clone repo on windows

Github failed to clone repo on windows.
I have tried to delete the entire directory and clone again but still the same error. It works in other OS like linux and Mac. I checked if it is because file path is too long or if it has windows incompatible characters. But error says .git doesn't point at a valid Git repository or workdir?
Most of the code still gets cloned over but the main error seems to be
LibGit2Sharp.RepositoryNotFoundException: Path 'G:\GitHub\CSE340cpp\.git' doesn't point at a valid Git repository or workdir.
at LibGit2Sharp.Core.Proxy.git_repository_open(String path)
at LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options)
at GitHub.Models.RepositoryModel.CreateRepositoryForConnection()
at GitHub.Models.RepositoryModel.<>c__DisplayClass7c`2.<RunConnectionOperation>b__75()
2017-10-24 13:28:22.4454|INFO|thread:19|AsyncReaderWriterLock|Released concurrent scheduler for operation: 1 at GitClient.cs:605 after blocking 0.0461216s
2017-10-24 13:28:22.4454|INFO|thread: 8|AsyncReaderWriterLock|Acquired exclusive scheduler for operation: 2 at GitClient.cs:583 after waiting 0.0450649s
2017-10-24 13:28:22.4454|WARN|thread: 8|RepositoryModel|exclusive connection for GitClient.cs:583 signalled RepositoryNotFoundException. Marked repository as lost on disk.
LibGit2Sharp.RepositoryNotFoundException: Path 'G:\GitHub\CSE340cpp\.git' doesn't point at a valid Git repository or workdir.
at LibGit2Sharp.Core.Proxy.git_repository_open(String path)
at LibGit2Sharp.Repository..ctor(String path, RepositoryOptions options)
at GitHub.Models.RepositoryModel.CreateRepositoryForConnection()
at GitHub.Models.RepositoryModel.<>c__DisplayClass7c`2.<RunConnectionOperation>b__75()
2017-10-24 13:28:22.4454|WARN|thread: 8|DashboardViewModel|Could not fix bad proxy setting as the repository does not exist.
2017-10-24 13:28:22.4454|INFO|thread: 8|AsyncReaderWriterLock|Released exclusive scheduler for operation: 2 at GitClient.cs:583 after blocking 0.0058503s
2017-10-24 13:28:22.5980|INFO|thread:11|SshProcessManager|Starting ssh-agent.exe
2017-10-24 13:28:22.5980|INFO|thread:11|PortablePackageManager|Already extracted lfs-amd64.7z, returning 100%
2017-10-24 13:28:22.6365|INFO|thread:15|DashboardViewModel|Selected repository 'echosys/CSE330c'
2017-10-24 13:28:22.6365|INFO|thread:15|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 3 at GitClient.cs:605
2017-10-24 13:28:22.6365|INFO|thread:15|AsyncReaderWriterLock|Acquiring exclusive scheduler for operation 4 at GitClient.cs:583
2017-10-24 13:28:22.6365|INFO|thread: 5|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 3 at GitClient.cs:605 after waiting 0.0002178s
2017-10-24 13:28:22.6775|INFO|thread:10|AsyncReaderWriterLock|Released concurrent scheduler for operation: 3 at GitClient.cs:605 after blocking 0.0403648s
2017-10-24 13:28:22.6775|INFO|thread: 5|AsyncReaderWriterLock|Acquired exclusive scheduler for operation: 4 at GitClient.cs:583 after waiting 0.0404997s
2017-10-24 13:28:22.8880|INFO|thread:28|GitEnvironment|Process set up with this SSH Agent info: 7136:/tmp/ssh-klrBWqcAJASj/agent.1820
2017-10-24 13:28:22.8880|INFO|thread:28|GitEnvironment|PATH is F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd;F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\bin;F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\share\git-tfs;F:\Users\Jean_Claude\AppData\Local\Apps\2.0\R88BMX93.5ZB\4QNCR5ZP.PEG\gith..tion_317444273a93ac29_0003.0003_5794af8169eeff14;F:\Users\Jean_Claude\AppData\Local\GitHub\lfs-amd64_1.5.5;F:\Windows\System32;F:\Program Files (x86)\MSBuild\14.0\bin\;F:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64
2017-10-24 13:28:22.8945|INFO|thread:28|ProcessWrapper|Starting: Process - FileName: 'F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\bin\ssh-add.exe', Args: '"F:\Users\Jean_Claude\.ssh\github_rsa"', Working Directory: F:\Users\Jean_Claude\AppData\Local\Temp\
2017-10-24 13:28:23.0325|INFO|thread: 5|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 5 at GitClient.cs:600
2017-10-24 13:28:23.1570|WARN|thread:19|DashboardViewModel|Repository 'CSE340cpp' is missing from disk - throwing a user error.
The more error code is below
< HTTP/1.1 401 Authorization Required
< Server: GitHub Babel 2.0
< Content-Type: text/plain
< Content-Length: 21
< WWW-Authenticate: Basic realm="GitHub"
< X-GitHub-Request-Id: CA13:33EA:5323DBE:7442473:59EFA2A8
< X-Frame-Options: DENY
<
* Ignoring the response-body
* Curl_http_done: called premature == 0
* Connection #0 to host github.com left intact
* Issue another request to this URL: 'https://github.com/echosys/CSE340cpp.git/info/refs?service=git-upload-pack'
* Couldn't find host github.com in the _netrc file; using defaults
* Found bundle for host github.com: 0xce60d0 [can pipeline]
* Re-using existing connection! (#0) with host github.com
* Connected to github.com (192.30.253.112) port 443 (#0)
* Server auth using Basic with user '[redacted]'
> GET /echosys/CSE340cpp.git/info/refs?service=git-upload-pack HTTP/1.1
Host: github.com
Authorization: Basic [redacted]
User-Agent: git/2.11.0.windows.3
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache
< HTTP/1.1 401 Authorization Required
< Server: GitHub Babel 2.0
< Content-Type: text/plain
< Content-Length: 21
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="GitHub"
< X-GitHub-Request-Id: CA13:33EA:5323DCF:744248E:59EFA2A8
< X-Frame-Options: DENY
<
* Curl_http_done: called premature == 0
* Connection #0 to host github.com left intact
13:29:33.180468 run-command.c:350 trace: run_command: 'github --credentials store'
* Couldn't find host github.com in the _netrc file; using defaults
* Found bundle for host github.com: 0xce60d0 [can pipeline]
* NTLM-proxy picked AND auth done set, clear picked!
* timeout on name lookup is not supported
* Hostname github.com was found in DNS cache
* Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#1)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:#STRENGTH
* successfully set certificate verify locations:
* CAfile: F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\mingw32/ssl/certs/ca-bundle-ghfw.crt
CApath: none
* SSL re-using session ID
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: businessCategory=Private Organization; jurisdictionC=US; jurisdictionST=Delaware; serialNumber=5157550; street=88 Colin P Kelly, Jr Street; postalCode=94107; C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
* start date: Mar 10 00:00:00 2016 GMT
* expire date: May 17 12:00:00 2018 GMT
* subjectAltName: host "github.com" matched cert's "github.com"
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 Extended Validation Server CA
* SSL certificate verify ok.
* Server auth using Basic with user 'b7d881bfd1412bb946280eca716fa19050e9f1c2'
> GET /echosys/CSE340cpp.git/info/refs?service=git-upload-pack HTTP/1.1
Host: github.com
Authorization: Basic [redacted]
User-Agent: git/2.11.0.windows.3
Accept: */*
Accept-Encoding: gzip
Pragma: no-cache
< HTTP/1.1 200 OK
< Server: GitHub Babel 2.0
< Content-Type: application/x-git-upload-pack-advertisement
< Transfer-Encoding: chunked
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< Vary: Accept-Encoding
< X-GitHub-Request-Id: CA15:33E9:3D30E78:57142FE:59EFA2A9
< X-Frame-Options: DENY
<
* Curl_http_done: called premature == 0
* Connection #1 to host github.com left intact
13:29:34.416625 run-command.c:350 trace: run_command: 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--thin' '--check-self-contained-and-connected' '--cloning' 'https://github.com/echosys/CSE340cpp.git/'
13:29:34.430627 git.c:371 trace: built-in: git 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--thin' '--check-self-contained-and-connected' '--cloning' 'https://github.com/echosys/CSE340cpp.git/'
remote: Counting objects: 394, done.
remote: Compressing objects: 10% (1/10)
remote: Compressing objects: 20% (2/10)
remote: Compressing objects: 30% (3/10)
remote: Compressing objects: 40% (4/10)
remote: Compressing objects: 50% (5/10)
remote: Compressing objects: 60% (6/10)
remote: Compressing objects: 70% (7/10)
remote: Compressing objects: 80% (8/10)
remote: Compressing objects: 90% (9/10)
remote: Compressing objects: 100% (10/10)
remote: Compressing objects: 100% (10/10), done.
13:29:34.651655 run-command.c:350 trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 6200 on Jean_Claude-PC' '--check-self-contained-and-connected' '--pack_header=2,394'
13:29:34.665657 git.c:371 trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 6200 on Jean_Claude-PC' '--check-self-contained-and-connected' '--pack_header=2,394'
Receiving objects: 0% (1/394)
Receiving objects: 1% (4/394)
Receiving objects: 2% (8/394)
Receiving objects: 3% (12/394)
Receiving objects: 4% (16/394)
Receiving objects: 5% (20/394)
Receiving objects: 6% (24/394)
Receiving objects: 7% (28/394)
Receiving objects: 8% (32/394)
Receiving objects: 9% (36/394)
Receiving objects: 10% (40/394)
Receiving objects: 11% (44/394)
Receiving objects: 12% (48/394)
Receiving objects: 13% (52/394)
Receiving objects: 14% (56/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 15% (60/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 16% (64/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 17% (67/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 18% (71/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 19% (75/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 20% (79/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 21% (83/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 22% (87/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 23% (91/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 24% (95/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 25% (99/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 26% (103/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 27% (107/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 28% (111/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 29% (115/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 30% (119/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 31% (123/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 32% (127/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 33% (131/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 34% (134/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 35% (138/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 36% (142/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 37% (146/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 38% (150/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 39% (154/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 40% (158/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 41% (162/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 42% (166/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 43% (170/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 44% (174/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 45% (178/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 46% (182/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 47% (186/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 48% (190/394), 212.01 KiB | 406.00 KiB/s
Receiving objects: 48% (190/394), 572.01 KiB | 555.00 KiB/s
Receiving objects: 49% (194/394), 836.01 KiB | 543.00 KiB/s
Receiving objects: 49% (196/394), 836.01 KiB | 543.00 KiB/s
Receiving objects: 50% (197/394), 1.29 MiB | 497.00 KiB/s
Receiving objects: 50% (197/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 51% (201/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 52% (205/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 53% (209/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 54% (213/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 55% (217/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 56% (221/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 57% (225/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 58% (229/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 59% (233/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 60% (237/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 61% (241/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 62% (245/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 63% (249/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 64% (253/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 65% (257/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 66% (261/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 67% (264/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 68% (268/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 69% (272/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 70% (276/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 71% (280/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 72% (284/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 73% (288/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 74% (292/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 75% (296/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 76% (300/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 77% (304/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 78% (308/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 79% (312/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 80% (316/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 81% (320/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 82% (324/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 83% (328/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 84% (331/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 85% (335/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 86% (339/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 87% (343/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 88% (347/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 89% (351/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 90% (355/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 91% (359/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 92% (363/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 93% (367/394), 1.62 MiB | 510.00 KiB/s
Receiving objects: 93% (370/394), 1.86 MiB | 428.00 KiB/s
Receiving objects: 93% (370/394), 2.04 MiB | 405.00 KiB/s
Receiving objects: 93% (370/394), 2.07 MiB | 305.00 KiB/s
Receiving objects: 93% (370/394), 2.17 MiB | 262.00 KiB/s
Receiving objects: 93% (370/394), 2.28 MiB | 221.00 KiB/s
Receiving objects: 94% (371/394), 2.57 MiB | 224.00 KiB/s
Receiving objects: 94% (372/394), 2.88 MiB | 244.00 KiB/s
Receiving objects: 94% (373/394), 3.11 MiB | 231.00 KiB/s
Receiving objects: 95% (375/394), 3.11 MiB | 231.00 KiB/s
Receiving objects: 96% (379/394), 3.11 MiB | 231.00 KiB/s
Receiving objects: 97% (383/394), 3.11 MiB | 231.00 KiB/s
Receiving objects: 98% (387/394), 3.11 MiB | 231.00 KiB/s
Receiving objects: 99% (391/394), 3.11 MiB | 231.00 KiB/s
remote: Total 394 (delta 0), reused 8 (delta 0), pack-reused 383
Receiving objects: 100% (394/394), 3.32 MiB | 233.00 KiB/s
Receiving objects: 100% (394/394), 3.32 MiB | 252.00 KiB/s, done.
Resolving deltas: 0% (0/142)
Resolving deltas: 10% (15/142)
Resolving deltas: 12% (18/142)
Resolving deltas: 14% (20/142)
Resolving deltas: 15% (22/142)
Resolving deltas: 16% (23/142)
Resolving deltas: 17% (25/142)
Resolving deltas: 18% (26/142)
Resolving deltas: 19% (27/142)
Resolving deltas: 26% (37/142)
Resolving deltas: 27% (39/142)
Resolving deltas: 30% (44/142)
Resolving deltas: 31% (45/142)
Resolving deltas: 35% (50/142)
Resolving deltas: 36% (52/142)
Resolving deltas: 37% (53/142)
Resolving deltas: 38% (55/142)
Resolving deltas: 39% (56/142)
Resolving deltas: 42% (61/142)
Resolving deltas: 44% (63/142)
Resolving deltas: 54% (78/142)
Resolving deltas: 64% (91/142)
Resolving deltas: 65% (93/142)
Resolving deltas: 68% (97/142)
Resolving deltas: 70% (100/142)
Resolving deltas: 72% (103/142)
Resolving deltas: 73% (105/142)
Resolving deltas: 74% (106/142)
Resolving deltas: 75% (107/142)
Resolving deltas: 76% (108/142)
Resolving deltas: 80% (115/142)
Resolving deltas: 100% (142/142)
Resolving deltas: 100% (142/142), done.
13:29:45.100982 run-command.c:350 trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' '--progress=Checking connectivity'
13:29:45.116984 git.c:371 trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' '--progress=Checking connectivity'
* Couldn't find host github.com in the _netrc file; using defaults
* Found bundle for host github.com: 0xce60d0 [can pipeline]
* Re-using existing connection! (#1) with host github.com
* Connected to github.com (192.30.253.112) port 443 (#1)
* Server auth using Basic with user 'b7d881bfd1412bb946280eca716fa19050e9f1c2'
> POST /echosys/CSE340cpp.git/git-upload-pack HTTP/1.1
Host: github.com
Authorization: Basic [redacted]
User-Agent: git/2.11.0.windows.3
Accept-Encoding: gzip
Content-Type: application/x-git-upload-pack-request
Accept: application/x-git-upload-pack-result
Content-Length: 325
* upload completely sent off: 325 out of 325 bytes
< HTTP/1.1 200 OK
< Server: GitHub Babel 2.0
< Content-Type: application/x-git-upload-pack-result
< Transfer-Encoding: chunked
< Expires: Fri, 01 Jan 1980 00:00:00 GMT
< Pragma: no-cache
< Cache-Control: no-cache, max-age=0, must-revalidate
< Vary: Accept-Encoding
< X-GitHub-Request-Id: CA15:33E9:3D30FB2:5714314:59EFA2A9
< X-Frame-Options: DENY
<
* Curl_http_done: called premature == 0
* Connection #1 to host github.com left intact
error: unable to create file Pj2/Icon
: Invalid argument
error: unable to create file Pj2/v0/Icon
: Invalid argument
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
2017-10-24 13:29:45.2660|INFO|thread:15|DashboardViewModel|Selected repository 'echosys/bonjour_proj'
2017-10-24 13:29:45.2835|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 84 at GitClient.cs:195
2017-10-24 13:29:45.2835|INFO|thread:25|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 84 at GitClient.cs:195 after waiting 3.53E-05s
2017-10-24 13:29:45.2835|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 85 at RepositoryModel.cs:596
2017-10-24 13:29:45.2835|INFO|thread:44|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 85 at RepositoryModel.cs:596 after waiting 1.25E-05s
2017-10-24 13:29:45.2835|INFO|thread:11|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 86 at GitClient.cs:267
2017-10-24 13:29:45.2835|INFO|thread:11|AsyncReaderWriterLock|Released concurrent scheduler for operation: 85 at RepositoryModel.cs:596 after blocking 0.0035651s
2017-10-24 13:29:45.2835|INFO|thread:11|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 86 at GitClient.cs:267 after waiting 0.0003029s
2017-10-24 13:29:45.2925|INFO|thread:11|GitEnvironment|Process set up with this SSH Agent info: 7136:/tmp/ssh-klrBWqcAJASj/agent.1820
2017-10-24 13:29:45.2925|INFO|thread:11|GitEnvironment|PATH is F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd;F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\bin;F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\share\git-tfs;F:\Users\Jean_Claude\AppData\Local\Apps\2.0\R88BMX93.5ZB\4QNCR5ZP.PEG\gith..tion_317444273a93ac29_0003.0003_5794af8169eeff14;F:\Users\Jean_Claude\AppData\Local\GitHub\lfs-amd64_1.5.5;F:\Windows\System32;F:\Program Files (x86)\MSBuild\14.0\bin\;F:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64
2017-10-24 13:29:45.2925|INFO|thread:11|ProcessWrapper|Starting: Process - FileName: 'F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd\git.exe', Args: 'status --untracked-files=all --porcelain -z ', Working Directory: G:\GitHub\bonjour_proj\
2017-10-24 13:29:45.2925|INFO|thread:43|AsyncReaderWriterLock|Released concurrent scheduler for operation: 84 at GitClient.cs:195 after blocking 0.0129733s
2017-10-24 13:29:45.3585|INFO|thread:39|ConcurrentRepositoryConnection|Took 64ms to git status
2017-10-24 13:29:45.3585|INFO|thread:39|ConcurrentRepositoryConnection|Took 64ms to git status and parse output
2017-10-24 13:29:45.3585|INFO|thread:39|NewCommitViewModel|Took 72ms to load files for G:\GitHub\bonjour_proj
2017-10-24 13:29:45.3585|INFO|thread:39|AsyncReaderWriterLock|Released concurrent scheduler for operation: 86 at GitClient.cs:267 after blocking 0.0718155s
2017-10-24 13:29:45.5590|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 87 at OpenInExistingProgramViewModel.cs:266
2017-10-24 13:29:45.5590|INFO|thread:30|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 87 at OpenInExistingProgramViewModel.cs:266 after waiting 4.48E-05s
2017-10-24 13:29:45.5590|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 88 at GitClient.cs:588
2017-10-24 13:29:45.5590|INFO|thread:48|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 88 at GitClient.cs:588 after waiting 5.2E-05s
2017-10-24 13:29:45.5590|INFO|thread:42|AsyncReaderWriterLock|Released concurrent scheduler for operation: 88 at GitClient.cs:588 after blocking 0.0018408s
2017-10-24 13:29:45.6285|INFO|thread: 5|OpenInExistingProgramViewModel|Took 69ms to load solution files at G:\GitHub\bonjour_proj
2017-10-24 13:29:45.6285|INFO|thread: 5|AsyncReaderWriterLock|Released concurrent scheduler for operation: 87 at OpenInExistingProgramViewModel.cs:266 after blocking 0.0690201s
2017-10-24 13:29:46.2051|INFO|thread: 1|NewCommitViewModel|Took 845ms to render file list for G:\GitHub\bonjour_proj
2017-10-24 13:29:46.2051|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 89 at RepositoryViewModel.cs:319
2017-10-24 13:29:46.2051|INFO|thread:30|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 89 at RepositoryViewModel.cs:319 after waiting 4.18E-05s
2017-10-24 13:29:46.2181|INFO|thread:10|AsyncReaderWriterLock|Released concurrent scheduler for operation: 89 at RepositoryViewModel.cs:319 after blocking 0.0104839s
2017-10-24 13:29:48.2803|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 90 at GitClient.cs:195
2017-10-24 13:29:48.2803|INFO|thread:39|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 90 at GitClient.cs:195 after waiting 6E-05s
2017-10-24 13:29:48.2803|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 91 at RepositoryModel.cs:596
2017-10-24 13:29:48.3088|INFO|thread:25|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 91 at RepositoryModel.cs:596 after waiting 0.0283676s
2017-10-24 13:29:48.3088|INFO|thread:27|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 92 at GitClient.cs:267
2017-10-24 13:29:48.3088|INFO|thread:44|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 92 at GitClient.cs:267 after waiting 5.66E-05s
2017-10-24 13:29:48.3088|INFO|thread:27|AsyncReaderWriterLock|Released concurrent scheduler for operation: 91 at RepositoryModel.cs:596 after blocking 0.00484s
2017-10-24 13:29:48.3088|INFO|thread: 5|AsyncReaderWriterLock|Released concurrent scheduler for operation: 90 at GitClient.cs:195 after blocking 0.0359212s
2017-10-24 13:29:48.3183|INFO|thread:11|GitEnvironment|Process set up with this SSH Agent info: 7136:/tmp/ssh-klrBWqcAJASj/agent.1820
2017-10-24 13:29:48.3183|INFO|thread:11|GitEnvironment|PATH is F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd;F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\bin;F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\usr\share\git-tfs;F:\Users\Jean_Claude\AppData\Local\Apps\2.0\R88BMX93.5ZB\4QNCR5ZP.PEG\gith..tion_317444273a93ac29_0003.0003_5794af8169eeff14;F:\Users\Jean_Claude\AppData\Local\GitHub\lfs-amd64_1.5.5;F:\Windows\System32;F:\Program Files (x86)\MSBuild\14.0\bin\;F:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64
2017-10-24 13:29:48.3183|INFO|thread:11|ProcessWrapper|Starting: Process - FileName: 'F:\Users\Jean_Claude\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd\git.exe', Args: 'status --untracked-files=all --porcelain -z ', Working Directory: G:\GitHub\bonjour_proj\
2017-10-24 13:29:48.3853|INFO|thread:48|ConcurrentRepositoryConnection|Took 65ms to git status
2017-10-24 13:29:48.3853|INFO|thread:48|ConcurrentRepositoryConnection|Took 65ms to git status and parse output
2017-10-24 13:29:48.3853|INFO|thread:48|NewCommitViewModel|Took 73ms to load files for G:\GitHub\bonjour_proj
2017-10-24 13:29:48.3853|INFO|thread:48|AsyncReaderWriterLock|Released concurrent scheduler for operation: 92 at GitClient.cs:267 after blocking 0.0734329s
2017-10-24 13:29:48.3853|INFO|thread: 1|NewCommitViewModel|Took 0ms to render file list for G:\GitHub\bonjour_proj
2017-10-24 13:29:48.3853|INFO|thread: 1|AsyncReaderWriterLock|Acquiring concurrent scheduler for operation 93 at RepositoryViewModel.cs:319
2017-10-24 13:29:48.3853|INFO|thread:27|AsyncReaderWriterLock|Acquired concurrent scheduler for operation: 93 at RepositoryViewModel.cs:319 after waiting 1.74E-05s

bash - getting a number from a stream

The typical output recorded into chk file from the command:
wget -O - http://website/file > /dev/null 2>chk &
is something like :
0K .......... .......... .......... .......... .......... 0% 143K 62s
50K .......... .......... .......... .......... .......... 1% 433K 41s
100K .......... .......... .......... .......... .......... 1% 1.20M 30s
150K .......... .......... .......... .......... .......... 2% 259K 31s
200K .......... .......... .......... .......... .......... 2% 83.2M 24s
...
8800K .......... .......... .......... .......... .......... 98% 260K 1s
8850K .......... .......... .......... .......... .......... 98% 329K 0s
8900K .......... .......... .......... .......... .......... 99% 433K 0s
8950K .......... .......... .......... .......... ......... 100% 331K=31s
2017-01-13 13:16:59 (288 KB/s) - written to stdout [9215609/9215609]
The file is updated, line after line, during the whole download process.
Well, I need to get only the percentage: 0, 1, 2 ... 99 and nothing more.
The following script do the job, even if not perfectly:
tail -n 5 chk | tail -n 1 | colrm 1 63 | cut -d '%' -f 1
The problem arises when I need to do the same into a bash script, as in the following:
#!/bin/bash
# Test script for getting the percentage number from 'wget' output
i=0
wget -O - http://website/file > /dev/null 2>chk &
sleep 1
while (( $i < 90 ))
do
i=`tail -n 5 chk | tail -n 1 | colrm 1 63 | cut -d '%' -f 1`
echo $i
done
The script starts getting the wanted file, it writes out the chk file, but stops with the error message:
line 9: ((: < 90 : syntax error: operand expected (error token is "< 90 ")
I have tried by using [[ ]], quotes... but doesn't work.
Any idea here to do a better job?
Progress bar with wget, whiptail and GNU sed:
wget --progress=dot 'URL' 2>&1 | sed -un 's/.* \([0-9]\+\)% .*/\1/p' | whiptail --gauge "Download" 7 50 0

How to find SUMPRODUCT of two columns in DAX

I am new to DAX formulas. I am looking to see how I can do an excel equivalent of a SUMPRODUCT for the following data:
Id | Metric | Weight | Metric times Weight |
1 | 20% | 30% | 6.0%
2 | 10% | 20% | 2.0%
3 | 25% | 20% | 5.0%
4 | 12% | 10% | 1.2%
5 | 15% | 10% | 1.5%
6 | 2% | 10% | 0.2% | |
Net | 84.0% | 100.0% | 84.0% (expected Metric*Weight)
I need 15.9% which is SUMPRODUCT(col1, col2).
The row total needs to be a sumproduct() versus the expected cross product above.
Any hints how I can achieve this?
If the data is on a table called Table1 then the following DAX formula should work:
WeightedAvg := SUMX(Table1, Table1[Metric] * Table1[Weight])
Basically, the function SUMX is iterating over the table Table 1 doing the product of [Metric] * [Weight] then once all the iterations are done, the results are added.
If you have a column with the product (as in your example), then you just need to drag that field to the values area of the PivotTable.
Hope this helps!

Script only copying one file

I am trying to scp to transfer all files in a directory to a different box - however I seem to only be receiving one file on the other machine. The script I am using is as follows;
#!/usr/bin/expect -f
# connect via scp
spawn scp -r /var/opt/backup/mariadb/ user#ip:address:of:box:/var/opt/backup/
#######################
expect {
-re ".*es.*o.*" {
exp_send "yes\r"
exp_continue
}
-re ".*sword.*" {
exp_send "password\r"
}
}
expect eof
echo "copy completed"
echo "removing backup files now"
rm -rf /var/opt/backup/mariadb
echo "remove completed"
echo "finished!"
From what I have read the recursive command is as I have implemented it so I am not so sure as to why i might only be receiving one file.
Can anyone see any issues with my code.
More information added : I've found that the copy is actually getting stuck on the following line events_waits_summary_global_by_event_name.frm
Thanks
output of less command on redirected log
^MSwifteHots.frm 0% 0 0.0KB/s --:-- ETA^MSwifteHots.frm 100% 8600 8.4KB/s 00:00
^MChatSessions.frm 0% 0 0.0KB/s --:-- ETA^MChatSessions.frm 100% 8626 8.4KB/s 00:00
^MMessages.frm 0% 0 0.0KB/s --:-- ETA^MMessages.frm 100% 8640 8.4KB/s 00:00
^MApnsDevices.frm 0% 0 0.0KB/s --:-- ETA^MApnsDevices.frm 100% 8670 8.5KB/s 00:00
^MAvailableHots.frm 0% 0 0.0KB/s --:-- ETA^MAvailableHots.frm 100% 8604 8.4KB/s 00:00
^Mdb.opt 0% 0 0.0KB/s --:-- ETA^Mdb.opt 100% 65 0.1KB/s 00:00
^MShortlist.frm 0% 0 0.0KB/s --:-- ETA^MShortlist.frm 100% 8598 8.4KB/s 00:00
^MProfileImages.frm 0% 0 0.0KB/s --:-- ETA^MProfileImages.frm 100% 8896 8.7KB/s 00:00
^MPendingProfile.frm 0% 0 0.0KB/s --:-- ETA^MPendingProfile.frm 100% 8674 8.5KB/s 00:00
^MUserAccount.frm 0% 0 0.0KB/s --:-- ETA^MUserAccount.frm 100% 9111 8.9KB/s 00:00
^Mibdata1 0% 0 0.0KB/s --:-- ETA^Mibdata1 32% 3280KB 3.2MB/s 00:02 ETA^Mibdata1 45% 4688KB 3.0MB/s 00:01 ETA^Mibdata1 58% 5968KB 2.8MB/s 00:01 ETA^Mibdata1 72% 7376KB 2.7MB/s 00:01 ETA^Mibdata1 84% 8656KB 2.6MB/s 00:00 ETA^Mibdata1 98% 10MB 2.4MB/s 00:00 ETA^Mibdata1 100% 10MB 1.7MB/s 00:06
^Mxtrabackup_logfile 0% 0 0.0KB/s --:-- ETA^Mxtrabackup_logfile 100% 2048KB 2.0MB/s 00:00
^Mevents_waits_history.frm 0% 0 0.0KB/s --:-- ETA^Mevents_waits_history.frm 100% 9220 9.0KB/s 00:00
/var/tmp/cron.log (END)
I would just use rsync instead of scp.
rsync -aP ~/dir1 username#remote_host:destination_directory
here, the "-a" stands for "archive" and syncs recursively and preserves symbolic links, special and device files, modification times, group, owner, and permissions.
The "-P" shows you progress.
Note that there is no trailing slash from your source directory (a slash is used when doing local to local with rsync).

Resources