Unable to install SQL Server 2008 R2 by chocolatey - sql-server-2008-r2

Unable to install SQL Server 2008 R2 Management Studio by chocolatey. Ran the command below:
choco install sqlserver2008r2express-managementstudio --version 10.50.4000.1 -y --force
Getting output as below:
Chocolatey v0.10.15
Installing the following packages:
sqlserver2008r2express-managementstudio
By installing you accept licenses for the packages.
Progress: Downloading sqlserver2008r2express-managementstudio 10.50.4000.1... 100%
sqlserver2008r2express-managementstudio v10.50.4000.1 (forced) [Approved]
sqlserver2008r2express-managementstudio package files install completed. Performing other installation steps.
The installation of sqlserver2008r2express-managementstudio failed, please see installer log files at "C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log" and "C:\Users\devopsadmin\AppData\Local\Temp\chocolatey\sqlsetup.log" for more details.
The install of sqlserver2008r2express-managementstudio was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
chocolatey log is not insightful, last few lines from log read like this:
2019-10-09 16:51:36,603 7552 [DEBUG] - Running 'ChocolateyScriptRunner' for sqlserver2008r2express-managementstudio v10.50.4000.1 with packageScript 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio', installArguments: '', packageParameters: '',
2019-10-09 16:51:36,603 7552 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1'
2019-10-09 16:51:37,607 7552 [INFO ] - The installation of sqlserver2008r2express-managementstudio failed, please see installer log files at "C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log" and "C:\Users\devopsadmin\AppData\Local\Temp\chocolatey\sqlsetup.log" for more details.
2019-10-09 16:51:37,623 7552 [DEBUG] - ----------------------------------------------------------------------
2019-10-09 16:51:37,639 7552 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2019-10-09 16:51:37,639 7552 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-10-09 16:51:37,712 7552 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-10-09 16:51:37,774 7552 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio'
2019-10-09 16:51:37,790 7552 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\sqlserver2008r2express-managementstudio.nupkg'
with checksum '42BF1341CA54DF9C7275BC9978B7305E'
2019-10-09 16:51:37,790 7552 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\sqlserver2008r2express-managementstudio.nuspec'
with checksum 'AA8FC96E1C313E7C56B0E693A0847A6F'
2019-10-09 16:51:37,790 7552 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\tools\chocolateyInstall.ps1'
with checksum '6F432752E869F3D15285952C1E92303C'
2019-10-09 16:51:37,837 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.arguments".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.extra".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.version".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.sxs".
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sqlserver2008r2express-managementstudio.10.50.4000.1\.pin".
2019-10-09 16:51:37,853 7552 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-10-09 16:51:37,853 7552 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\sqlserver2008r2express-managementstudio\.chocolateyPending".
2019-10-09 16:51:37,869 7552 [INFO ] - The install of sqlserver2008r2express-managementstudio was successful.
2019-10-09 16:51:37,869 7552 [INFO ] - Software install location not explicitly set, could be in package or
default install location if installer.
2019-10-09 16:51:37,869 7552 [DEBUG] - Attempting to delete file "C:\Users\devopsadmin\AppData\Local\NuGet\Cache\sqlserver2008r2express-managementstudio.10.50.4000.1.nupkg".
2019-10-09 16:51:37,884 7552 [WARN ] -
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-10-09 16:51:37,884 7552 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-10-09 16:51:37,901 7552 [DEBUG] - Exiting with 0
Wondering what is the issue and how to have it fixed?

Can you check the other two logs also - "C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log" and "C:\Users\devopsadmin\AppData\Local\Temp\chocolatey\sqlsetup.log"

Related

elastic beanstalk error when use sh ./platform/hooks/prebuild : no such file or directory

I'm trying to deploy simple front-end web by elastic beanstalk.
When I deploy my app by eb deploy or eb create --elb-type application --instance-type t3.micro, There are an error when executing an sh that I add to prevent Out Of Memory.
2022/12/10 08:20:43.618277 [INFO] Executing instruction: StageApplication
2022/12/10 08:20:43.620012 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/
2022/12/10 08:20:43.620027 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/staging/
2022/12/10 08:20:43.646596 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully
2022/12/10 08:20:43.647365 [INFO] Executing instruction: RunAppDeployPreBuildHooks
2022/12/10 08:20:43.647379 [INFO] Executing platform hooks in .platform/hooks/prebuild/
2022/12/10 08:20:43.647409 [INFO] Following scripts will be executed in order: [00_test.sh 01_configure_swap_space.sh]
2022/12/10 08:20:43.647413 [INFO] Try add execution permission
2022/12/10 08:20:43.647418 [INFO] Adding execute mode to file, original mode is 420
2022/12/10 08:20:43.647428 [INFO] Running script: .platform/hooks/prebuild/00_test.sh
2022/12/10 08:20:43.647663 [ERROR] An error occurred during execution of command [app-deploy] - [RunAppDeployPreBuildHooks]. Stop running the command. Error: Command .platform/hooks/prebuild/00_test.sh failed with error fork/exec .platform/hooks/prebuild/00_test.sh: no such file or directory
2022/12/10 08:20:43.647668 [INFO] Executing cleanup logic
2022/12/10 08:20:43.647752 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1670660443647,"severity":"ERROR"}]}]}
2022/12/10 08:20:43.648454 [INFO] Platform Engine finished execution on command: app-deploy
I created an 00_test.sh echoing simple statement in exactly same location and chomd 777 to them. But it still doesn't work.
Some post(/.platform/hooks/': No such file or directory when deploying Django App to AWS Elastic Beanstalk) said it depends on OS, so I also tried to this all process with in vscode.
If someone who experienced same situation, want to know why this happened and solution.

Pipeline failed if scanning scala files

I created Gitlab CI which sends all files in project folder to scan in SonarQube, and it's working perfect with python files, but if I add scala files it's failed. My Gitlab CI:
image: testimage
variables:
SONARQUBE_URL: https://sonarqube.com
stages:
- PyLint
pylint:
stage: PyLint
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
script:
- apt-get install scala -y
- cd project
- scalac *.scala
- ls
- cd ..
- sed -i 's/PROJECT-NAME/'"$CI_PROJECT_NAME"'/g' sonar-project.properties
- sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dsonar.qualitygate.wait=true -Dsonar.projectVersion=${CI_PIPELINE_ID}
- echo 'Repository Link:' "$SONARQUBE_URL${CI_PROJECT_NAME}"
Some lines from logs:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 13.545s
INFO: Final Memory: 16M/136M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Can not execute Findbugs
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: One (sub)project contains Java source files that are not compiled (/builds/scala/myrepo).
Property sonar.java.binaries was not set, it is required to locate the compiled .class files. For instance set the property to: sonar.java.binaries=target/classes
Sonar JavaResourceLocator.classpath was empty
Sonar JavaResourceLocator.classFilesToAnalyze was empty
at org.sonar.plugins.findbugs.FindbugsConfiguration.buildMissingCompiledCodeException(FindbugsConfiguration.java:154)
at org.sonar.plugins.findbugs.FindbugsConfiguration.initializeFindbugsProject(FindbugsConfiguration.java:124)
at org.sonar.plugins.findbugs.FindbugsExecutor.execute(FindbugsExecutor.java:117)
... 31 more
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
Cleaning up file based variables
00:01
ERROR: Job failed: command terminated with exit code 1
My solution was to add this line in sonar-project.properties file:
sonar.java.binaries=.

Linux deb repo seems broken

Linux deb repo seems to contain some error:
This is what I get from apt update:
Get:14 http://packages.microsoft.com/repos/vscode stable/main amd64
Packages [156 kB] Err:14 http://packages.microsoft.com/repos/vscode
stable/main amd64 Packages File has unexpected size (156354 !=
156065). Mirror sync in progress? [IP: 13.74.252.37 80] Hashes of
expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak] Release file created at: Thu, 12 Dec 2019 19:59:19 +0000 Reading package lists...
Done E: Failed to fetch
http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2
File has unexpected size (156354 != 156065). Mirror sync in progress?
[IP: 13.74.252.37 80] Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
The "https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2" real file size is: 156354
the file "https://packages.microsoft.com/repos/vscode/dists/stable/InRelease" tells that the size is 156065.
Furthermore:
gpg --verify Release.gpg Release
gpg: Signature made jue 12 dic 2019 20:59:31 CET
gpg: using RSA key EB3E94ADBE1229CF
gpg: BAD signature from "Microsoft (Release signing) <gpgsecurity#microsoft.com>" [unknown]
Try the following commands. first, remove all the vscode related files in source.list.d and then update your packages.
sudo rm -rf /etc/apt/sources.list.d/vscode.list*
sudo apt-get update

Exported data from Octopus Deploy 3.9 and now having issues importing Octopus Deploy 4.10?

I exported data from Octopus Deploy 3.9 from one server and tried to import into Octopus 4.10 on another server?
Getting the following errors:
Error: Directory does not contain an Octopus export
Error: The previous command returned a non-zero exit code of: 1
Error: The command that failed was: "F:\Program Files\Octopus Deploy
4.1\Octopus.Migrator.exe" import --instance "OctopusServer" --directory "F:\Octopus\OctopusData\Events" --password "afs1"
Other Details:
Octopus Deploy 3.9 was installed on C:\ on one server
Octopus Deploy 4.1 was installed on E:\ on another
Logs:
2018-02-02 13:46:12.3847 6820 1 INFO Environment Information:
OperatingSystem: Microsoft Windows NT 6.2.9200.0
OsBitVersion: x64
Is64BitProcess: True
CurrentUser: AFSDEV\cgarcia
MachineName: AFS-SBX-TFS
ProcessorCount: 4
CurrentDirectory: F:\Program Files\Octopus Deploy 4.1
TempDirectory: C:\Users\cgarcia\AppData\Local\Temp\
HostProcessName: Octopus.Migrator
PID: 6820
2018-02-02 13:46:12.4784 6820 1 INFO ==== ImportFilesCommand ====
2018-02-02 13:46:12.4940 6820 1 FATAL Directory does not contain an Octopus export

Salt Stack: Function: pkg.installed. Yum does not update installed package

My code is:
others:
pkg.installed:
- sources:
- epel-release: https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm
- salt-latest: https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm
and I'm getting error:
errors:
- Loaded plugins: fastestmirror, replace
Setting up Install Process
Examining /var/cache/salt/minion/extrn_files/base/repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm: salt-repo-latest-2.el6.noarch
/var/cache/salt/minion/extrn_files/base/repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm: does not update installed package.
Error: Nothing to do
I thinkt that may be a problem with salt-repo-latest-2.el6.noarch.rpm. When I manually run yum install for this RPM's I'm getting the same error but running in Salt Stack only getting this error.
It should end with:
ID: others
Function: pkg.installed
Result: True
Comment: All specified packages are already installed
Started: 10:45:33.171971
Duration: 595.672 ms
Changes:
but I'm getting:
ID: others
Function: pkg.installed
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Loaded plugins: fastestmirror, replace
Setting up Install Process
Examining /var/cache/salt/minion/extrn_files/base/repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm: salt-repo-latest-2.el6.noarch
/var/cache/salt/minion/extrn_files/base/repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm: does not update installed package.
Error: Nothing to do
Started: 10:46:13.906581
Duration: 8988.515 ms
Changes:
The package name is salt-repo not salt-latest.
Code should be:
others:
pkg.installed:
- sources:
- epel-release: https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm
- salt-repo: https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm