I have setup GitLab runner on winserver 2016.
Everything works fine, except output of runner on gitlab.
Locale of winserver is RU.
I'm trying to build projects with MSBUILD, which outputs russian characters:
Checking out e5ec41d1 as release-2...
Skipping Git submodules setup
$ echo "начинается билд %PROJECT_NAME%"
"начинается билд PEPSolution"
$ echo "Релизная сборка... "
"Релизная сборка... "
$ "C:\Program Files ^(x86^)\MSBuild\14.0\Bin\amd64\MSBuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet "%PROJECT_NAME%.sln"
C:\Program Files (x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(2398,5): error MSB3091: ������ �� �믮�����, ⠪ ��� �� �����㦥�
Russian symbols from yml file are displayed correctly. But from output of MSBUILD is wrong
So questions are:
How to make it to show in correctly?
May be I violate some best practices?
Regards
Add before "stages:" command "- CHCP 65001" in "before_script:"
before_script:
- CHCP 65001
stages:
- build
- test
- deploy
...
Found finaly solution!
just add
- chcp 65001
into yml file before calling msbuild
it tells change default codepage of cmd to utf8
I have same issue (Windows 10 Home for one language - russian, v.1903, build 18362.535).
Result of gitlab runner:
1 Running with gitlab-runner 12.6.0 (ac8e767a)
2 on gitlab-unity-runner vzC5L735
3 Using Shell executor...
4 Running on DESKTOP-LOSJ2JN...
5 Fetching changes with git depth set to 50...
6 & : ��� "git" �� ��ᯮ����� ��� ��� ����������, �㭪樨, 䠩�� �業���� ��� �믮��塞�� �ணࠬ��. ������ �ࠢ��쭮�
7 �� ����ᠭ�� �����, � ⠪�� ����稥 � �ࠢ��쭮��� ����, �� 祣� ��������� �������.
8 C:\WINDOWS\TEMP\build_script960183957\script.ps1:163 ����:3
9 + & "git" "config" "-f" "C:\<user>\GitLab-Runner\builds\vzC5L735\0\ga ...
10 + ~~~~~
11 + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException
12 + FullyQualifiedErrorId : CommandNotFoundException
13
14 cd : �� 㤠���� ����� ���� "C:\<user>\GitLab-Runner\builds\vzC5L735\0\<user>\test_unity_ci_project", ⠪ ��� �� ��
15 ����������.
16 C:\WINDOWS\TEMP\build_script063808752\script.ps1:159 ����:1
17 + cd "C:\<user>\GitLab-Runner\builds\vzC5L735\0\<user>\test_unity_c ...
18 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 + CategoryInfo : ObjectNotFound: (C:\<user>\Git...nity_ci_project:String) [Set-Location], ItemNotFoundE
20 xception
21 + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
22
23 ERROR: Job failed: exit status 1
I've set language for non unicode programs:
Control panel -> Regional standards -> Additional -> Language for non unicode programs -> Change system language -> change to 'English (USA)' -> reboot.
scr1
scr2
After that I've got correct gitlab runner message:
1 Running with gitlab-runner 12.6.0 (ac8e767a)
2 on gitlab-unity-runner vzC5L735
3 Using Shell executor...
5 Running on DESKTOP-LOSJ2JN...
7 Fetching changes with git depth set to 50...
8 & : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spe
9 lling of the name, or if a path was included, verify that the path is correct and try again.
10 At C:\WINDOWS\TEMP\build_script179741393\script.ps1:163 char:3
11 + & "git" "config" "-f" "C:\<user>\GitLab-Runner\builds\vzC5L735\0\ga ...
12 + ~~~~~
13 + CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException
14 + FullyQualifiedErrorId : CommandNotFoundException
15
17 cd : Cannot find path 'C:\<user>\GitLab-Runner\builds\vzC5L735\0\<user>\test_unity_ci_project' because it does not
18 exist.
19 At C:\WINDOWS\TEMP\build_script677283324\script.ps1:159 char:1
20 + cd "C:\<user>\GitLab-Runner\builds\vzC5L735\0\<user>\test_unity_c ...
21 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 + CategoryInfo : ObjectNotFound: (C:\<user>\Git...nity_ci_project:String) [Set-Location], ItemNotFoundE
23 xception
24 + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
25
27 ERROR: Job failed: exit status 1
Related
I'm facing issue while installing amazon-cloud-watch-agent through AWS system manager.Error details as follows.
install errors: & : The term 'C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1' is not recognized as the
name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At C:\ProgramData\Amazon\SSM\Packages_arnawsssmpackageamazoncloudwatchagent_2B_HP6ASKUGHXDL73H24T7UUUKNWXRDTKWGMMX5YMX
LDHWGQE2KUPXA====\1.247357.0b252275\install.ps1:23 char:3
& "${Cmd}" -Action cond-restart
+ CategoryInfo : ObjectNotFound: (C:\Program File...h-agent-ctl.ps1:String) [], ParentContainsErrorRecord
Exception
+ FullyQualifiedErrorId : CommandNotFoundException
failed to run commands: exit status 1
Failed to install package; install status Failed
I have tried install it manually.It also didn't work.
The error message you are seeing indicates that the installation script is having trouble locating the script included in the CloudWatch Agent installation package called amazon-cloudwatch-agent-ctl.ps1. This could occur if the CloudWatch Agent installation package was not downloaded completely or was downloaded to an unexpected location.
when i try to run any command at cli it gives this error:
vue : File C:\Users\john\AppData\Roaming\npm\vue.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
vue create app1
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
any solution to solve it
If you only tried to run it with PowerShell, switch to CMD and run the command.
I've followed the instructions from the OSRM backend GitHub here and when I go to run the command build-local.bat, I get the following message "CMAKE NOT OK - downloading new CMake 3.9.2"
I've tried the x64 and x86 versions of cmake 3.15.0-rc2 and 3.14.5 that can be downloaded from their website.
When I run build-local.dat as per the project OSRM instructions on [GitHub](https://github.com/Project-OSRM/osrm-backend/wiki/Windows-Compilation
), the output is as follows:
C:\Users\Derek\Documents\osrm\osrm-backend>build-local.bat
APPVEYOR_REPO_BRANCH: master
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PROJECT_DIR: C:\Users\Derek\Documents\osrm\osrm-backend
NUMBER_OF_PROCESSORS: 4
cmake:
cmake version 3.14.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMAKE NOT OK - downloading new CMake 3.9.2
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:1
+ Invoke-WebRequest https://cmake.org/files/v3.9/cmake-3.9.2-win32-x86. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:\Users\Derek\Documents\osrm\osrm-backend\build-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:\Users\Derek\Documents\osrm\osrm-backend\build-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thats because you installed the new version of cmake 3.15.0 and 3.14. But on the appveyor-build.bat it checks for CMake version 3.9.2 only.
You can go to appveyor-build.bat to edit SET CMAKE_VERSION=3.15.0
Even after running Powershell as Administrator.
Version is 3.0.
Set-Executionpolicy RemoteSigned/Bypass/Unrestricted all 3 tried but no success.
Error:
At C:\MRMReport.ps1:74 char:11
+ #requires -runasadministrator
+ ~~~~~~~~~~~~~~~~~~~
Parameter runasadministrator requires an argument.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : ParameterRequiresArgument
remove the #requires -runasadministrator and run the script into cmd administrator ;
you can try by add "-file fullpathofthescript" to #requires -runasadministrator;
PS D:\> install npm
install : The term 'install' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ install npm
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (install:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
When trying to install npm in vscode version VSCodeSetup-x64-1.17.2 in windows 10 OS, I am getting the error.
Error Code from debugger is as below
3221225477 Signal: null
e._onExtensionHostCrashed # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:29
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
Please advise how to resolve this error.
Thanks and Regards
Vijay
You're typing 'install npm install' but the first 'install' is not a binary for the CMD.
Try to install node (which includes npm):
https://nodejs.org/en/download/
Goto the environment path settings, at the "Path" in both user path and system path, there is a more ";" for visual studio code, remove the ";" and restart the VS code, everything is ok now.
I think it's a Microsoft bug.