NPM Install is giving Error: connect ETIMEDOUT (Without proxy) - visual-studio

I just created a new .Net Core 2.0 Angualar project template and get a strange error on restoring the packages.
Part of the output:
npm ERR! fetch failed https://registry.npmjs.org/extend/-/extend-3.0.1.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.0.162:443
Later part of the output:
23980 error argv "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Web\\External\\Node.exe" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Web\\External\\node_modules\\npm\\bin\\npm-cli.js" "install"
23981 error node v5.4.1
23982 error npm v3.3.4
23983 error code ETIMEDOUT
23984 error errno ETIMEDOUT
23985 error syscall connect
23986 error network connect ETIMEDOUT 151.101.0.162:443
23986 error network This is most likely not a problem with npm itself
23986 error network and is related to network connectivity.
23986 error network In most cases you are behind a proxy or have bad network settings.
23986 error network
23986 error network If you are behind a proxy, please make sure that the
23986 error network 'proxy' config is set properly. See: 'npm help config'
23987 verbose exit [ 1, true ]
Most solutions I found was about setting up the proxy. I have no proxy.
I also found this answer:
npm config set proxy false
npm cache clean
Which does nothing change.
I also resetted my network adapter and pc. Also I tried ipconfig -flushdns.
tracert is also working fine:
Routenverfolgung zu a.sni.fastly.net [151.101.0.162]
über maximal 30 Hops:
1 4 ms 1 ms <1 ms 192.168.1.1
2 28 ms 28 ms 28 ms loopback0.80.rdsl.99.nue.de.net.telefonica.de [62.52.195.28]
3 34 ms 29 ms 27 ms bundle-ether3.0001.dbrx.01.nue.de.net.telefonica.de [62.53.3.154]
4 * * * Zeitüberschreitung der Anforderung.
5 34 ms 36 ms 32 ms ae14-0.0001.corx.01.fra.de.net.telefonica.de [62.53.22.86]
6 32 ms 32 ms 32 ms bundle-ether15.0002.dbrx.02.fra.de.net.telefonica.de [62.53.26.0]
7 31 ms 38 ms 36 ms ae6-0.0001.prrx.11.fra.de.net.telefonica.de [62.53.19.146]
8 31 ms 30 ms 31 ms fastly2.fra.ecix.net [62.69.146.89]
9 33 ms 31 ms 35 ms 151.101.0.162
Ablaufverfolgung beendet.
If I call https://registry.npmjs.org/extend/-/extend-3.0.1.tgz in browser, I get the package offered for download.
Any pointers?

I have no idea what is happening...
But as a workaround, I have installed the Node MSI, and configured visual studio to use this one instead.
Tools > Options > Projects & Solutions > Web Package Management > External Web Tools
Now it is working. But I feel wrong using this workaround. If anybody has some pointers, how to fix the root of the problem, I would be more than happy.

Related

How to fix AdsError 1792 (0X700) for TwinCAT 3

I am using a Windows PC as my Development PC (XAE) and another Windows PC as my Remote PC (XAR). I have connected them successfully. It is shown in the picture below.
But, this error appeared when I tried to Activate the configuration after connecting to the Runtime PC. This error AdsError: 1792 (0X700) appeared on both (Development PC and the Runtime PC simultaneously).
I have already done the TCP and UDP settings.
Kindly view the event viewer error picture.
Please reference the following link
https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_security_management/1850044555.html&id=
If you are using versioned C++ project, you should check the "Sign TwinCAT C++ executables (*.tmx)" checkbox. Otherwise you get an error such as
ERR | 12/14/2021 10:24:58 AM 051 ms | 'TCOM Server' (10): Error loading repository driver 'C:\TwinCAT\3.1\Boot\Repository\C++ Module Vendor\StateMachineDrv\0.0.0.1\StateMachineDrv' - hr = 0xc0000603

Visual Studio 2019 Installer keep failing to download package for offline installer?

I follow this instruction to create an offline installer for Visual Studio 2019.
I rerun the following cmd several times already:
vs_enterprise.exe --layout c:\vslayout --lang en-US
But after a long time of verifying packages, it keeps giving me the error:
...
Total packages to download: 1
Starting 'UpdateLayout' operation
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'. WebClient download failed: The request was aborted: Cou
ld not create SSL/TLS secure channel.. Bits download failed: File not found.. Wi
nInet download failed: Function: InternetOpenUrl, HR: -2147012867, Message: Unkn
own error 12029, Signature: PackageId=Linux.GCC.arm_none_eabi;PackageAction=Down
loadPackage;ReturnCode=0x80131500
UpdateLayout progress: 99.00%
Error: Setup completed with errors.
Error: One or more errors occurred.
Press any key to continue...
I try downloading the Linux.GCC.arm_none_eabi with cmd:
vs_Enterprise.exe --layout c:\test --add Linux.GCC.arm_none_eabi --lang en-US
But it gave me the error:
Download of 'https://aka.ms/vs/16/release/channel' succeeded using engine 'WebCl
ient'
Download of 'https://download.visualstudio.microsoft.com/download/pr/9efbe138-ff
42-4deb-95c9-1d78cdc1f98b/356b789dfa97d11956dc1a1c1ec3abad20ef3ca4d4cd34fae9df18
489b34d6aa/VisualStudio.vsman' succeeded using engine 'WebClient'
Catalog load operation correlation: {"id":"f4ca2719-dc4d-46c0-b458-a3169a2d57db"
}
Layout operation correlation: {"id":"7780b16c-7775-4ac1-92b2-8a47537f7784"}
Planning 'Layout' operation
Error: The package 'Linux.GCC.arm_none_eabi' is not recognized.
Error: Failed to plan for Layout.
Error: Setup completed with errors.
Error: The package 'Linux.GCC.arm_none_eabi' is not recognized.
Press any key to continue...
But if I enter the url https://aka.ms/AA9z5w0, I can download the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip so the link does work, but how can I add the final missing piece to my offline installer?
My question is how can I solve this error so that I can have the complete offline installer?
My current solution is create the folder c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1 and put the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip in it. But I wonder if this is the right way to solve it.
Update: My current solution works, after I manually download and put it into the offline installer, I re-run the cmd to verify the packages and it give me the OK result:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
The error said:
Error: Package 'Linux.GCC.arm_none_eabi,version=9.3.1' failed to download from '
https://aka.ms/AA9z5w0'.
So in Firefox browser, enter the url https://aka.ms/AA9z5w0, then I can download the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip
Create the folder c:\vslayout\Linux.GCC.arm_none_eabi,version=9.3.1 and put the file gcc-arm-none-eabi-9-2020-q2-update-win32.zip in it.
After I manually download and put it into the offline installer, I re-run the cmd vs_enterprise.exe --layout c:\vslayout --lang en-US to verify the packages and it gives me the OK result:
Total packages to download: 0
Starting 'UpdateLayout' operation
Setup completed successfully.
Press any key to continue...
Success!!!
I checked your command line(vs_enterprise.exe --layout c:\vslayout --lang en-US) and it is good, without any error. Not sure, but the prompt error may be caused by Microsoft Server side or CDN provider.
In my mind there were some similar issues reported before, which also mentioned "Could not create SSL/TLS secure channel…" or "Package XXXXX failed to download from XXXXX", like this thread, and this thread.
The solution you mentioned, maybe not a really "correct" solution, as this maybe a potential issue, but as you downloaded the package from the prompt link and it passed the verification, the installation should be good and complete.
Your solution is helpful and may benefit other forum members who meet the same/similar issue, so I just make a
summary:
Create a folder and name it with the name that error message mentioned, and then download the file/package from the link which error message prompt. Put it to this folder. Verify the installation by using command --verify.

Visual Studio Code blank terminal, can't enter/type anything [Windows 10]

I am facing this issue where I was working fine with Visual Studio Code, installed some extensions, and then my terminal is frozen (blank screen). I am not able to type anything inside terminal.
The image below shows how my terminal looks:
I even tried uninstalling VS Code (as well as all the extensions), updated Windows, and then reinstalled the fresh copy of VS code. But the problem is still there.
I tried some suggested methods in other threads to make the terminal work again, but the terminal problem does not go away.
Some of the suggested solutions that I already tried are:
Re-installing VS Code, updating, and restarting VS Code as well as Windows.
Changing the default Command Line Shell from CMD to Powershell and git bash and back again
Adding a new Command Line Shell
Resizing the terminal window
Zoom In/Out of the terminal
checked the "Use legacy console" option in Powershell options
changed Change inheritEnv to true as "terminal.integrated.inheritEnv": true
Inside the terminal window, Pressed Ctrl + c and hit enter
changed the explorer kind in VS Code form inherited to external "terminal.explorerKind": "external"
changing the renderer type from auto to DOM, canvas forth and back "terminal.integrated.rendererType": "canvas"
System Info:
Windows 10, version 1909
VS Code Info:
Version: 1.44.2 (user setup)
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T16:36:23.138Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 6.2.9200
Output of code --log trace:
https://justpaste.it/673hy
Output of code --version
1.44.2
ff915844119ce9485abfe8aa9076ec76b5300ddd
x64
Output of code --status
Version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:36:23.138Z)
OS Version: Windows_NT x64 6.2.9200
CPUs: Intel(R) Core(TM) i5-4200U CPU # 1.60GHz (4 x 2295)
Memory (System): 7.93GB (2.87GB free)
VM: 0%
Screen Reader: no
Process Argv: --log trace
GPU Status: 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
CPU % Mem MB PID Process
0 105 13036 code main
0 84 9172 shared-process
0 38 9916 utility
0 213 11576 window (Settings - adv_exe_6 - Visual Studio Code)
0 22 3760 winpty-process
0 7 7652 console-window-host (Windows internal process)
0 7 8760 C:\WINDOWS\System32\cmd.exe
0 20 6228 winpty-process
0 7 232 console-window-host (Windows internal process)
0 44 10196 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
0 78 7988 extensionHost
0 64 2840 electron_node tsserver.js
0 35 10444 electron_node typingsInstaller.js typesMap.js
0 60 13140 "C:\Users\ITKHAN\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\ITKHAN\AppD
ata\Local\Programs\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain" --node-
ipc --clientProcessId=7988
0 42 14272 electron_node tsserver.js
0 22 9492 winpty-process
0 68 5716 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
0 7 5724 console-window-host (Windows internal process)
0 11 12124 watcherService
0 7 14004 console-window-host (Windows internal process)
0 22 13552 winpty-process
0 7 10100 console-window-host (Windows internal process)
0 7 11960 C:\WINDOWS\System32\cmd.exe
0 143 13760 gpu-process
0 15 14188 electron-crash-reporter
Workspace Stats:
| Window (Settings - adv_exe_6 - Visual Studio Code)
| Folder (adv_exe_6): 8 files
| File types: js(4) stackdump(1) html(1) css(1)
| Conf files:
I would really appreciate if someone could help me in debugging this issue. Thanks.
Here's a video that helped me find a way to solve this issue.
I unchecked the compatibility mode in VS Code properties where it says Run this program in compatibility mode for:.
But this made the terminal open in an external window instead of being integrated in VS Code whenever I opened an new terminal inside VS Code.
So I also disabled the Conpty for Windows terminal inside VS code settings > Terminal > Inegrated:Windows Enable Conpty
"terminal.integrated.windowsEnableConpty": false
The interesting point to note here is that this solution didn't work for me when this problem first arose. At that time, I had my VS code with all the extensions installed. After updating Windows, reinstalling fresh copy of VS code without any extensions, this solution did do the trick for me.
So, the underlying issue was probably with the outdated Windows, or some extensions that I had installed.
I switched off git.autorefresh in the settings. In VS code, go to file --> Preferences ---> settings and in the search bar type git.autorefresher; then, uncheck whether auto refreshing is enabled. under Git:Autorefresh:
This way worked for me.
As I had the same problem but a different reason for it:
I had these lines in the ~/.zshrc file, which was added by the angular cli. Removing it resolved the issue
# Load Angular CLI autocompletion.
source <(ng completion script)
See also https://code.visualstudio.com/docs/supporting/faq#_resolving-shell-environment-fails

Using htaccess to configure Apache and Passenger for Ruby

I've been trying to install a ruby app called Openproject on my bluehost account. I followed the Openproject guide.
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/
I updated ruby and node using rbenv and nodenv. I was able to follow up to the section "Finish the Installation of OpenProject," and I didn't get any error up to this point.
However, I wasn't sure how to tackle the section "Servce OpenProject with Apache and Passenger." The guide asks to configure apache to load the right passenger, but Bluehost doesn't provide access to httpd.conf. Then I found the guide for Ruby from Bluehost indicating that I can use .htaccess to configure.
https://my.bluehost.com/cgi/help/rails
I copied the .htaccess from the guide and put it in openproject/public folder.
However, if I open mydomain.com/openproject, it displays the list of files inside openproject folder. If I open mydomain.com/openproject/public, I get the error below. I also tried to move .htaccess to openproject folder instead of openproject/public, but I get the same result.
I noticed a couple of things from the error message, but I'm not sure how to fix them.
1. The error indicates "No such file or directory - config.ru," even though openproject folder has the file config.ru.
2. The error indicates that Application root is /home5/account/public_html. Shouldn't it be /home5/account/public_html/openproject?
Anyways, here's the entire error message.
Ruby (Rack) application could not be started
These are the possible causes:
There may be a syntax error in the application's code. Please check for such errors and fix them.
A required library may not installed. Please install all libraries that this application requires.
The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
No such file or directory - config.ru Exception class:
Errno::ENOENT Application root: /home5/account/public_html
Backtrace: # File Line Location 0
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 675 in
lstat' 1
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 675 in
lower_privilege' 2
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 198 in
prepare_app_process' 3
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
156 inblock in initialize_server' 4
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 563 in
report_app_init_status' 5
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
154 ininitialize_server' 6
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
204 in start_synchronously' 7
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
180 instart' 8
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
129 in start' 9
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
253 inblock (2 levels) in spawn_rack_application' 10
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
132 in lookup_or_add' 11
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
246 inblock in spawn_rack_application' 12
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
82 in block in synchronize' 13 prelude> 10:insynchronize' 14
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
79 in synchronize' 15
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
244 inspawn_rack_application' 16
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
137 in spawn_application' 17
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
275 inhandle_spawn_application' 18
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
357 in server_main_loop' 19
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
206 instart_synchronously' 20
/etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server 99
in ` '
Powered by Phusion Passenger, mod_rails / mod_rack for Apache and Nginx.

H2 Console starts on IP address which is not mine

If I run
H2JAR=/common/home/jjs/.m2/repository/com/h2database/h2/1.3.168/h2-1.3.168.jar
java -cp $H2JAR org.h2.tools.Server $*
I get
Web Console server running at http://68.178.232.99:8082 (only local connections)
TCP server running at tcp://68.178.232.99:9092 (only local connections)
PG server running at pg://68.178.232.99:5435 (only local connections)
But I have
1004 ~\>traceroute 68.178.232.99
traceroute to 68.178.232.99 (68.178.232.99), 30 hops max, 60 byte packets
1 190.33.189.161 (190.33.189.161) 9.145 ms 9.023 ms 9.467 ms
2 172.31.36.254 (172.31.36.254) 171.169 ms 171.083 ms 170.976 ms
3 10.255.6.9 (10.255.6.9) 170.811 ms 170.641 ms 170.529 ms
4 ge-0-0-0.bal1-int-1.jf1-agr-1.cwpanama.net (201.224.254.237) 170.416 ms 170.306 ms 170.193 ms
5 so-7-1-3.mia11.ip4.tinet.net (216.221.158.49) 185.066 ms 186.763 ms 188.797 ms
6 xe-2-2-0.mia10.ip4.tinet.net (89.149.184.254) 189.751 ms xe-8-0-0.mia10.ip4.tinet.net (89.149.180.185) 202.777 ms xe-1-0-0.mia10.ip4.tinet.net (89.149.183.21) 202.611 ms
7 ge-0-2-2.mpr2.mia1.us.above.net (64.125.13.81) 211.130 ms 215.839 ms 217.518 ms
8 xe-4-0-0.cr2.iah1.us.above.net (64.125.30.202) 219.719 ms 221.003 ms 228.238 ms
9 xe-1-1-0.mpr4.phx2.us.above.net (64.125.30.149) 219.337 ms 225.518 ms 228.868 ms
10 209.66.64.6.t01121-04.above.net (209.66.64.6) 228.763 ms 214.909 ms 215.359 ms
my host file is:
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
H2 tries to detect the IP address of your computer. It seems it doesn't work correctly in your case. Could you run the network test of the H2 database? You would need to download the .zip file of H2, expand it, chmod the build.sh file, and then run:
./build.sh testNetwork
In my case the result is:
Target: testNetwork
localhost:
localhost/127.0.0.1
localhost/127.0.0.1
localhost/0:0:0:0:0:0:0:1
localhost/fe80:0:0:0:0:0:0:1%1
getLocalHost:Thomass-MacBook-Pro.local/192.168.0.104
/192.168.0.104
byName:/192.168.0.104
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=63498]
time: 0
server accepting
client:/192.168.0.104:63498
time: 8
server accepted:Socket[addr=/192.168.0.104,port=63499,localport=63498]
client:Socket[addr=/192.168.0.104,port=63498,localport=63499]
time: 2
server read:123
client read:234
server closing
server done
time: 202
done
Done in 1626 ms
This will not solve the problem, but it will give more information about what H2 tries to do to detect the IP address.

Resources