AnsweredAssumed Answered

blackboard install error (gradle)

Question asked by so0079866 on May 23, 2019
Latest reply on May 30, 2019 by du25708

I was trying to install the blackboard, but there was an error.

I don't know where it went wrong.

 

 

(gradle 5.0 / jdk1.8)

I used this command.

C:\bb_installer\installer.bat -c C:\bb_installer\installer.properties

 

 

 

installer.bat


setlocal

goto :Main

:Usage
set /p VERSION=<version.txt
echo Learn installer, version: %VERSION%
echo.
echo Supported options:
echo.
echo -a Perform an appserver-only installation, not modifying the database.
echo -c ^<configuration file^> Specifies the installer configuration properties to use. This needs to be an absolute, fully qualified path.
echo -d Turn on debug verbosity.
echo -h Displays this help screen.
echo -i Turn on info verbosity (superceded by debug verbosity if that is enabled as well).
echo -l Run this as a "lite" installer, turning off the offline options and relying on Maven access to download artifacts.
echo -o ^<gradle options^> Additional Gradle options
echo -t ^<gradle task^> Runs the specified Gradle task
echo -u Perform an uninstallation of Learn
echo.
goto :EOF

:GetProperty
set bbconfig=%1
set property=%2
for /F "eol=# delims== tokens=1,*" %%a in (%bbconfig%) do (
if "%%a" == "%property%" set "%~3=%%b"
)
goto :EOF

:Main
set BB_HOME=C:\blackboard
set CWD=%CD%
set CACHE_DIR=%CWD%\caches

set LOCAL_MAVEN_REPO=-Dmaven.repo.local=%CACHE_DIR%\.m2
set MAVEN_LOCAL=-DmavenLocal

set GRADLE=C:\bb_installer\gradlew.bat

REM
REM Configuration of various switches for the installer
REM
call :GetProperty C:\bb_installer\gradle.properties systemProp.GIT_BRANCH branch
set installerConfiguration=
set offline=--offline
set gradleTask=:install:installLearn
set options=
set verbosity=

:ParseArgsStart
if "%~1" == "" goto :ParseArgsEnd
if "%1" == "-a" (
set gradleTask=:install:installAppserver
) else if "%1" == "-c" (
set installerConfiguration=%2
shift
) else if "%1" == "-d" (
set verbosity=--debug
) else if "%1" == "-h" (
call :Usage
goto :EOF
) else if "%1" == "-i" (
if "%verbosity%" == "" set verbosity=--info
) else if "%1" == "-l" (
set offline=
) else if "%1" == "-o" (
set options=%~2
shift
) else if "%1" == "-t" (
set gradleTask=%2
shift
) else if "%1" == "-u" (
set gradleTask=:install:uninstallLearn
) else (
echo Got unknown parameter "%1"
call :Usage
exit 1
)
shift
goto :ParseArgsStart
:ParseArgsEnd

if "%installerConfiguration%" == "" (
echo No installer configuration specified!
echo.
call :Usage
exit 1
)

if "%offline%" == "" (
set LOCAL_MAVEN_REPO=
)

REM
REM If the installer properties specifies an installation folder, use that for the
REM Gradle project property "bbHome", otherwise just keep the default.
REM
call :GetProperty %installerConfiguration% bbconfig.basedir bbHome
if not "%bbHome%" == "" set BB_HOME=%bbHome%

set GRADLE_ARGS=
set GRADLE_ARGS=%GRADLE_ARGS% -PbbInstallerConfiguration=%installerConfiguration%
set GRADLE_ARGS=%GRADLE_ARGS% -PbbHome=%BB_HOME%
set GRADLE_ARGS=%GRADLE_ARGS% -PdependencyLock.lockAtConfigurationPhase=true
set GRADLE_ARGS=%GRADLE_ARGS% -DGIT_BRANCH=%branch%
set GRADLE_ARGS=%GRADLE_ARGS% -DartifactBuild
set GRADLE_ARGS=%GRADLE_ARGS% %LOCAL_MAVEN_REPO%
set GRADLE_ARGS=%GRADLE_ARGS% %MAVEN_LOCAL%
set GRADLE_ARGS=%GRADLE_ARGS% -Duser.home=%CACHE_DIR%
set GRADLE_ARGS=%GRADLE_ARGS% --gradle-user-home=%CACHE_DIR%
set GRADLE_ARGS=%GRADLE_ARGS% --no-daemon
set GRADLE_ARGS=%GRADLE_ARGS% %offline%
set GRADLE_ARGS=%GRADLE_ARGS% --stacktrace
set GRADLE_ARGS=%GRADLE_ARGS% %verbosity%
set GRADLE_ARGS=%GRADLE_ARGS% %options%
set GRADLE_ARGS=%GRADLE_ARGS% %gradleTask%

%GRADLE% %GRADLE_ARGS%

endlocal

exit /b %ERRORLEVEL%

---------------------------------------------------------------------------------------------------------------------------------------

gradlew.bat

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
rem set DEFAULT_JVM_OPTS=-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=45 -XX:+UseStringDeduplication -Xmx2048m

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=C:\Users\Administrator\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
r"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega

------------------------------------------------------------------------------------------------------------------------------------

 

installer.properties

#
# Installer Overrides
#
bbconfig.basedir=C:\blackboard
bbconfig.file.license=C:\bb_installer\install\legacy\config\default-blackboard-license.xml
bbconfig.java.home=%JAVA_HOME%
#
# Explicitly set Hostname properties
#
bbconfig.appserver.fullhostname=bb1
bbconfig.appserver.machinename=bb1.blackboard.future.com
bbconfig.collabserver.fullhostname.default=bb1
bbconfig.smtpserver.hostname=mail.futurenuri.com

 

#
# Use SQL Server
#
bbconfig.database.type=mssql

bbconfig.database.server.portname=1433

bbconfig.database.datadir=C:\blackboard\mssql\data

bbconfig.database.server.fullhostname=db1
bbconfig.database.server.instancename=db1

bbconfig.database.server.systemuserpassword=Password(***)

#
# Demonstrate non-required settings
#
bbconfig.tomcat.debug.enable=true
bbconfig.min.heapsize.tomcat=2048m
bbconfig.max.heapsize.tomcat=2048m
bbconfig.max.stacksize.tomcat=1M
bbconfig.jvm.options.extra.tomcat=-XX:+UseCompressedOops -XX:+DoEscapeAnalysis -Xverify:none
bbconfig.group.javascript.files=false
bbconfig.unix.max.open.files=5000

#
# Front-End Settings
#

 

 

--Remove

 

-------------------------------------------------------------------------------------

Outcomes