Upsource stopped working

 

Service won't start anymore. Not sure what happen as it was working great. I enabled FJ_DEBUG and log is showing that it having trouble finding java , but all the java files are there. I even installed java 1.8 and set JAVA_HOME but it didn't like that either.

 

Here's my launcher-service log:

[2017-03-15 12:09:51,633] RollFileWriter [Info] Logging will be redirected to: C:\upsource\logs\launcher-service.log
[2017-03-15 12:09:51,633] LOG [Info] Settings log level from the settings file: debug
[2017-03-15 12:09:51,633] ServiceAction [Debug] ExecuteAction entered
[2017-03-15 12:09:51,633] ServiceAction [Debug] Calling StartServiceCtrlDispatcher
[2017-03-15 12:09:51,633] ServiceAction [Debug] Executing JetServiceMain
[2017-03-15 12:09:51,633] ServiceMain [Debug] Executing JetServiceMain
[2017-03-15 12:09:51,633] ServiceMain [Debug] RegisterServiceCtrlHandler completed
[2017-03-15 12:09:51,633] ServiceStatus [Debug] Set status to: starting
[2017-03-15 12:09:51,633] ThreadedServiceTask [Info] CallStartService
[2017-03-15 12:09:51,633] ServiceStatus::Thread [Debug] Call SetServiceStatus called for: starting
[2017-03-15 12:09:51,633] ServiceStatus [Debug] Set status to: starting
[2017-03-15 12:09:51,633] ServiceStatus::Thread [Debug] Call SetServiceStatus called for: starting
[2017-03-15 12:09:51,633] ThreadedServiceTask [Debug] Started service task thread
[2017-03-15 12:09:51,633] ThreadedServiceTask:Thread [Debug] Thread started
[2017-03-15 12:09:51,633] FileServiceSettings [Debug] Loading service settings from C:\upsource\conf\internal\launcher.service.settings.xml
[2017-03-15 12:09:51,633] FileServiceSettings [Debug] Loaded settings:
<?xml version="1.0" encoding="utf-8"?>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- DO NOT CHANGE THIS FILE! ALL YOUR CHANGES WILL BE ELIMINATED AFTER AUTOMATIC UPGRADE. -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<jetservice>
<name>upsource</name>
<displayName>Upsource</displayName>
<description>Upsource Service</description>
<service-logging file="..\..\logs\launcher-service.log" level="debug"/>
<execution>
<workdir>..\..</workdir>
<program>cmd.exe</program>
<arguments>/c bin\upsource.bat run from-service</arguments>
<status-marker>
<started>###-STARTED-f0SJK3P4wGKm6dOdWlouxGHLBO5Pogsbq27V7h9M-###</started>
</status-marker>
<termination timeout="31">
<execution>
<workdir>..\..</workdir>
<program>cmd.exe</program>
<arguments>/c bin\upsource.bat stop</arguments>
</execution>
</termination>
</execution>
</jetservice>
[2017-03-15 12:09:51,633] FileTaskSettings [Info] Parsing service settings
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Relative paths are resolved with base path: C:\upsource\conf\internal\launcher.service.settings.xml
[2017-03-15 12:09:51,633] File [Debug] Resolved base path: C:\upsource\conf\internal
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program work dir from settings: ..\..
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Resolved workdir path: C:\upsource
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program to execute from settings: cmd.exe
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Resolved path to program: C:\Windows\system32\cmd.exe
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program arguments from settings: /c bin\upsource.bat run from-service
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program stop timeout from settings: 31
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Parsing timeout: 31
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Parsed value: 31.000000
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program to execute from settings: cmd.exe
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Resolved path to program: C:\Windows\system32\cmd.exe
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program work dir from settings: ..\..
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Resolved workdir path: C:\upsource
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Program arguments from settings: /c bin\upsource.bat stop
[2017-03-15 12:09:51,633] FileTaskSettings [Debug] Service started marker: ###-STARTED-f0SJK3P4wGKm6dOdWlouxGHLBO5Pogsbq27V7h9M-###
[2017-03-15 12:09:51,633] FileTaskSettings [Info] Program to execute: C:\Windows\system32\cmd.exe
[2017-03-15 12:09:51,633] FileTaskSettings [Info] Program arguments: /c bin\upsource.bat run from-service
[2017-03-15 12:09:51,633] FileTaskSettings [Info] Program work dir: C:\upsource
[2017-03-15 12:09:51,633] FileTaskSettings [Info] Program stop timeout: 1860000
[2017-03-15 12:09:51,633] ServiceProcessCommand [Debug] starting process
[2017-03-15 12:09:51,633] ServiceProcessCommand [Debug] stop wait timeout: 1860000
[2017-03-15 12:09:51,633] ServiceProcessCommand [Debug] Will call stop command. Termination wait timeout is 1860000 milliseconds.
[2017-03-15 12:09:51,633] ProcessCommand [Debug] Starting process
[2017-03-15 12:09:51,633] ProcessCommand [Debug] Starting process: "C:\Windows\system32\cmd.exe" /c bin\upsource.bat run from-service (in C:\upsource)
[2017-03-15 12:09:51,633] ProcessCommand [Debug] Starting process
[2017-03-15 12:09:51,743] console [Info]
[2017-03-15 12:09:51,743] console [Info] [12:09:51.68] Checking directories passed as parameters
[2017-03-15 12:09:51,743] console [Info] [12:09:51.69] Scanning directory: C:\upsource\internal\java\linux-x64
[2017-03-15 12:09:51,743] console [Info] [12:09:51.69] Checking directory: C:\upsource\internal\java\linux-x64
[2017-03-15 12:09:51,743] console [Info] [12:09:51.69] Checking Java: C:\upsource\internal\java\linux-x64\jre\bin\java.exe
[2017-03-15 12:09:51,743] console [Info] [12:09:51.69] Java executable does not exist
[2017-03-15 12:09:51,743] console [Info] [12:09:51.71] Checking Java: C:\upsource\internal\java\linux-x64\bin\java.exe
[2017-03-15 12:09:51,743] console [Info] [12:09:51.71] Java executable does not exist
[2017-03-15 12:09:51,743] console [Info] 'dir "C:\upsource\internal\java\linux-x64" /A:D /B /O:-D /X 2>nul' is not recognized as an internal or external command,
[2017-03-15 12:09:51,743] console [Info] operable program or batch file.
[2017-03-15 12:09:51,743] console [Info] [12:09:51.71] Scanning directory: C:\upsource\internal\java\mac-x64
[2017-03-15 12:09:51,743] console [Info] [12:09:51.72] Checking directory: C:\upsource\internal\java\mac-x64
[2017-03-15 12:09:51,743] console [Info] [12:09:51.72] Checking Java: C:\upsource\internal\java\mac-x64\jre\bin\java.exe
[2017-03-15 12:09:51,743] console [Info] [12:09:51.72] Java executable does not exist
[2017-03-15 12:09:51,852] console [Info] [12:09:51.74] Checking Java: C:\upsource\internal\java\mac-x64\bin\java.exe
[2017-03-15 12:09:51,852] console [Info] [12:09:51.74] Java executable does not exist
[2017-03-15 12:09:51,852] console [Info] 'dir "C:\upsource\internal\java\mac-x64" /A:D /B /O:-D /X 2>nul' is not recognized as an internal or external command,
[2017-03-15 12:09:51,852] console [Info] operable program or batch file.
[2017-03-15 12:09:51,852] console [Info] [12:09:51.74] Scanning directory: C:\upsource\internal\java\windows-amd64
[2017-03-15 12:09:51,852] console [Info] [12:09:51.75] Checking directory: C:\upsource\internal\java\windows-amd64
[2017-03-15 12:09:51,852] console [Info] [12:09:51.75] Checking Java: C:\upsource\internal\java\windows-amd64\jre\bin\java.exe
[2017-03-15 12:09:51,852] console [Info] 'call "C:\upsource\internal\java\windows-amd64\jre\bin\java.exe" -version 2>&1 | findstr /i "version"' is not recognized as an internal or external command,
[2017-03-15 12:09:51,852] console [Info] operable program or batch file.
[2017-03-15 12:09:51,852] console [Info] [12:09:51.83] Failed to detect Java version
[2017-03-15 12:09:51,961] console [Info] [12:09:51.85] Checking Java: C:\upsource\internal\java\windows-amd64\bin\java.exe
[2017-03-15 12:09:51,961] console [Info] 'call "C:\upsource\internal\java\windows-amd64\bin\java.exe" -version 2>&1 | findstr /i "version"' is not recognized as an internal or external command,
[2017-03-15 12:09:51,961] console [Info] operable program or batch file.
[2017-03-15 12:09:51,961] console [Info] [12:09:51.91] Failed to detect Java version
[2017-03-15 12:09:51,961] console [Info] 'dir "C:\upsource\internal\java\windows-amd64" /A:D /B /O:-D /X 2>nul' is not recognized as an internal or external command,
[2017-03-15 12:09:51,961] console [Info] operable program or batch file.
[2017-03-15 12:09:51,961] console [Info] [12:09:51.93] Checking JRE_HOME:
[2017-03-15 12:09:51,961] console [Info] [12:09:51.93] Checking JAVA_HOME: C:\Program Files\Java\jre1.8.0_121
[2017-03-15 12:09:51,961] console [Info] [12:09:51.94] Checking directory: C:\Program Files\Java\jre1.8.0_121
[2017-03-15 12:09:51,961] console [Info] [12:09:51.94] Checking Java: C:\Program Files\Java\jre1.8.0_121\jre\bin\java.exe
[2017-03-15 12:09:51,961] console [Info] [12:09:51.94] Java executable does not exist
[2017-03-15 12:09:51,961] console [Info] [12:09:51.94] Checking Java: C:\Program Files\Java\jre1.8.0_121\bin\java.exe
[2017-03-15 12:09:52,071] console [Info] 'call "C:\Program Files\Java\jre1.8.0_121\bin\java.exe" -version 2>&1 | findstr /i "version"' is not recognized as an internal or external command,
[2017-03-15 12:09:52,071] console [Info] operable program or batch file.
[2017-03-15 12:09:52,071] console [Info] [12:09:52.02] Failed to detect Java version
[2017-03-15 12:09:52,071] console [Info] [12:09:52.02] Checking JDK_HOME:
[2017-03-15 12:09:52,071] console [Info] [12:09:52.04] Checking registry
[2017-03-15 12:09:52,071] console [Info] 'echo \Wow6432Node\ & echo \' is not recognized as an internal or external command,
[2017-03-15 12:09:52,071] console [Info] operable program or batch file.
[2017-03-15 12:09:52,071] console [Info] [12:09:52.04] Checking default places
[2017-03-15 12:09:52,071] console [Info] [12:09:52.04] Scanning directory: C:\Program Files\Java
[2017-03-15 12:09:52,071] console [Info] [12:09:52.04] Checking directory: C:\Program Files\Java
[2017-03-15 12:09:52,071] console [Info] [12:09:52.05] Checking Java: C:\Program Files\Java\jre\bin\java.exe
[2017-03-15 12:09:52,071] console [Info] [12:09:52.05] Java executable does not exist
[2017-03-15 12:09:52,071] console [Info] [12:09:52.05] Checking Java: C:\Program Files\Java\bin\java.exe
[2017-03-15 12:09:52,071] console [Info] [12:09:52.05] Java executable does not exist
[2017-03-15 12:09:52,071] console [Info] 'dir "C:\Program Files\Java" /A:D /B /O:-D /X 2>nul' is not recognized as an internal or external command,
[2017-03-15 12:09:52,071] console [Info] operable program or batch file.
[2017-03-15 12:09:52,180] console [Info] [12:09:52.07] Scanning directory: C:\Program Files (x86)\Java
[2017-03-15 12:09:52,180] console [Info] [12:09:52.07] Directory does not exist
[2017-03-15 12:09:52,180] console [Info] [12:09:52.07] Checking Java in PATH
[2017-03-15 12:09:52,180] console [Info] [12:09:52.07] Checking Java: C:\ProgramData\Oracle\Java\javapath\java.exe
[2017-03-15 12:09:52,180] console [Info] 'call "C:\ProgramData\Oracle\Java\javapath\java.exe" -version 2>&1 | findstr /i "version"' is not recognized as an internal or external command,
[2017-03-15 12:09:52,180] console [Info] operable program or batch file.
[2017-03-15 12:09:52,180] console [Info] [12:09:52.16] Failed to detect Java version
[2017-03-15 12:09:52,180] console [Info]
[2017-03-15 12:09:52,180] console [Info] Java executable of version 1.8 is not found:
[2017-03-15 12:09:52,180] console [Info] - Java executable is not found under the specified directories: "C:\upsource\internal\java\linux-x64", "C:\upsource\internal\java\mac-x64", "C:\upsource\internal\java\windows-amd64"
[2017-03-15 12:09:52,180] console [Info] - Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
[2017-03-15 12:09:52,180] console [Info] - Path to JVM is not found in Windows registry
[2017-03-15 12:09:52,180] console [Info] - Java executable is not found in the default locations
[2017-03-15 12:09:52,180] console [Info] - Java executable is not found in the directories listed in the PATH environment variable
[2017-03-15 12:09:52,180] console [Info]
[2017-03-15 12:09:52,180] console [Info] Please make sure either JAVA_HOME or JRE_HOME environment variable is defined and is pointing to the root directory of the valid Java (JRE) installation
[2017-03-15 12:09:52,180] ProcessCommand [Info] Process exited with code: -1
[2017-03-15 12:09:52,243] ServiceStatus::Thread [Debug] Call SetServiceStatus called for: starting
[2017-03-15 12:09:52,290] console [Info]
[2017-03-15 12:09:52,290] PipeReader [Debug] PipeReader::~PipeReader => inheritor object is disposed!
[2017-03-15 12:09:52,290] ServiceExecuteProcessTask [Error] Service process exited without service stop request
[2017-03-15 12:09:52,290] ThreadedServiceTask:Thread [Debug] Task finished. Interrupted=false.
[2017-03-15 12:09:52,290] ServiceStatus [Debug] Set status to: stopped
[2017-03-15 12:09:52,290] ServiceStatus::Thread [Debug] Call SetServiceStatus called for: stopped
[2017-03-15 12:09:52,290] ServiceStatus::Thread [Debug] Recieved final event. Thread exiting
[2017-03-15 12:09:52,290] ServiceAction [Debug] Exit ExecuteAction
[2017-03-15 12:09:52,290] JetServiceRunner [Debug] Exited with code 0

1 comment

Hi Carlos,

Try adding %JAVA_HOME%\bin to PATH. After that please run the following command and posi output here: 

java -version

Thank you in advance.

0

Please sign in to leave a comment.