View Issue Details

IDProjectCategoryView StatusLast Update
0002508SymmetricDSBugpublic2019-08-26 12:49
Reporterlutful.kabir Assigned Toadmin  
Priorityurgent 
Status closedResolutionunable to reproduce 
Product Version3.7.29 
Summary0002508: Starting service failing after installing the service
DescriptionI am trying to install SymmetricDS as a service. The SymmetricDS version I am using is symmetric-server-3.7.29(also tried with 3.7.27). I am following the process mentioned in the SymmetricDS documentation webpage (http://www.symmetricds.org/doc/3.7/html/user-guide.html#_running_as_a_windows_service). It uses sym_service to install and then start the service. The installation seems to be successful but when I am trying to start it from console, I am getting the following error:
"Error 19: Start Service returned error 1053: The service did not respond respond in a timely fashion to the start or control request. Native error 19"
Steps To ReproduceSymm_DS_installation_path/bin/sym_service.bat install
Symm_DS_installation_path/bin/sym_service.bat start
or
sc start SymmetricDS_service_name
Tagssym/sym_service

Activities

elong

2016-02-26 13:30

developer   ~0000764

Make sure the path to Java exists and works. Look in conf/sym_service.conf at the line for wrapper.java.command. An upgrade to Java can change the path. If you have java.exe on the PATH, then you can set wrapper.java.command=java. After making a change, you need to uninstall and reinstall the service.

lutful.kabir

2016-02-26 13:52

reporter   ~0000765

Actually I am using a custom java path for the SymmDS. Not the one installed in the windows. And in setenv.bat I have set java using "set SYM_JAVA=java_path\bin\java" instead of the following:
set SYM_JAVA=java
if /i NOT "%JAVA_HOME%" == "" set SYM_JAVA=%JAVA_HOME%\bin\java

and in conf/sym_service.conf it is set to wrapper.java.command=java. The same process works fine on Ubuntu-64 bit.

elong

2016-02-26 14:30

developer   ~0000766

The sym utility uses setenv, but the sym_service uses conf/sym_service.conf. (The sym utility is meant as an easy command line launcher for testing, while the sym_service is meant for automating the startup and monitoring the main server process.) In order to use the Windows service, you need to configure conf/sym_service.conf with the correct Java to use.

lutful.kabir

2016-02-26 14:39

reporter   ~0000767

I have changed wrapper.java.command=java to wrapper.java.command=java_path/bin/java
But still have the same issue. Plus I also have java installed in the windows, so wouldn't it have worked anyway?

elong

2016-02-27 01:02

developer   ~0000768

I think I misread the error, it's saying the service wrapper is not responding fast enough to control codes. Can you attach the wrapper.log or post its contents here? Maybe that will contain a clue.

What version of Windows are you running? Is it in a cloud VM, like a SkyTap, AWS, or Azure instance? Is there any other detail you can think of that would help me reproduce this?

lutful.kabir

2016-02-29 09:48

reporter  

lutful.kabir

2016-02-29 09:48

reporter   ~0000769

Last edited: 2016-02-29 09:56

View 3 revisions

Unfortunately there was no log file from wrapper generated in the logs directory.

My windows is locally installed in my laptop. My Windows details are:
Microsoft Windows 7 Professional.
Version 6.1.7601 (Build 7601: Service Pack 1)

THe whole process that I am doing is:
1. Unpack SymmDS
2. Changing the Java path in both setenv script and the sym_service.conf file.
3. copying a node properties file in the engine dir.
4. Chaging "Wrapper Service Properties " in sym_service.conf
5. Configuring the symmetric-server.propeties if the ports are not available.

Then I try to install it as a service in Windows.

with the following process:
1. symmds_path/bin/sym_service.bat install
2. sc start sym_service_name

I am attaching the above mentioned files with the issue.

lutful.kabir

2016-02-29 09:49

reporter  

sym_service.conf (3,302 bytes)

lutful.kabir

2016-02-29 09:49

reporter  

log4j.xml (5,353 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to JumpMind Inc under one or more contributor
    license agreements.  See the NOTICE file distributed
    with this work for additional information regarding
    copyright ownership.  JumpMind Inc licenses this file
    to you under the GNU General Public License, version 3.0 (GPLv3)
    (the "License"); you may not use this file except in compliance
    with the License.

    You should have received a copy of the GNU General Public License,
    version 3.0 (GPLv3) along with this library; if not, see
    <http://www.gnu.org/licenses/>.

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

    <appender name="ROLLING" class="org.apache.log4j.RollingFileAppender">
         <param name="File" value="C:/FPCS/log/symmetricds/symmetric.log" />
        <param name="MaxFileSize" value="10MB" />
        <param name="MaxBackupIndex" value="3" />
        <param name="Append" value="true" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d %p [%X{engineName}] [%c{1}] [%t] %m%n" />
        </layout>
    </appender>

    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
        <param name="Target" value="System.err" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="[%X{engineName}] - %c{1} - %m%n" />
        </layout>
    </appender>

    <appender name="BUFFERED" class="org.jumpmind.util.BufferedLogAppender"/>

    <!-- Uncomment to send errors over email.  (1/2) -->
    <!-- 
	<appender name="EMAIL" class="org.apache.log4j.net.SMTPAppender">
	    <param name="SMTPHost" value="mymailhost" />
	    <param name="SMTPUsername" value="" />
	    <param name="SMTPPassword" value="" />
	    <param name="From" value="user@nowhere" />
	    <param name="To" value="user@nowhere" />
	    <param name="Subject" value="Error from SymmetricDS" />
	    <param name="BufferSize" value="10" />
	    <param name="LocationInfo" value="true" />
	    <layout class="org.apache.log4j.PatternLayout">
	        <param name="ConversionPattern" value="%t %m%n"/>
	    </layout>
	    <filter class="org.apache.log4j.varia.LevelRangeFilter">
	        <param name="LevelMin" value="error" />
	        <param name="LevelMax" value="fatal" />
	    </filter>
	</appender>
	-->

    <category name="org">
        <priority value="WARN" />
    </category>

    <category name="org.jumpmind">
        <priority value="INFO" />
    </category>
    
    <category name="com.mangofactory.swagger.filters.AnnotatedParameterFilter">
        <priority value="ERROR" />
    </category>
    
    <!-- To print out SQL 
    <category name="org.jumpmind.db.sql">
        <priority value="DEBUG" />
    </category>    
     -->         

    <!-- Disable the not found override properties file warnings to avoid confusion -->
    <category name="org.jumpmind.symmetric.util.PropertiesFactoryBean">
        <priority value="ERROR" />
    </category>    

    <category name="org.jumpmind.symmetric.service.impl.ParameterService">
        <priority value="ERROR" />
    </category>

    <category name="org.jumpmind.symmetric.db.SqlScript">
        <priority value="ERROR" />
    </category>

    <category name="org.springframework">
        <priority value="ERROR" />
    </category>
    
    <category name="com.vaadin.server.DefaultDeploymentConfiguration">
        <priority value="ERROR" />
    </category>

    <!-- Uncomment to see CSV protocol from sending batches -->
    <!--
    <category name="org.jumpmind.symmetric.io.data.writer.ProtocolDataWriter">
        <priority value="DEBUG"/>
    </category>
    -->

    <!-- Uncomment to see SQL statements from loading batches -->
    <!--
    <category name="org.jumpmind.symmetric.io.data.writer.DatabaseWriter">
        <priority value="DEBUG" />
    </category>
    -->
    
    <!-- Enable this to see debug messages in JMS publishing extensions -->
    <!--
    <category name="org.jumpmind.symmetric.integrate">
        <priority value="DEBUG" />
    </category>        
    -->
        
    <!-- Enable this to see debug messages for why SymmetricDS tables are being altered -->
    <!--    
    <category name="org.jumpmind.db.alter">
        <priority value="DEBUG" />
    </category>        
    -->
    
    <!-- In order to see http headers enable this
    <category name="sun.net.www.protocol.http.HttpURLConnection">
        <priority value="ALL" />
    </category>                    
     -->    

    <!-- Change the "CONSOLE" to "ROLLING" to log to a file instead -->
    <root>
        <priority value="INFO" />
        <appender-ref ref="ROLLING" />
        <appender-ref ref="CONSOLE" />
        <appender-ref ref="BUFFERED" />
        <!-- Uncomment to send errors over email. (2/2) -->
        <!-- 
        <appender-ref ref="EMAIL" />
        -->
    </root>

</log4j:configuration>
log4j.xml (5,353 bytes)   

lutful.kabir

2016-02-29 09:49

reporter  

setenv.bat (1,727 bytes)

lutful.kabir

2016-02-29 09:49

reporter  

sym_service.bat (1,071 bytes)

elong

2019-05-14 14:29

developer   ~0001482

If there is no wrapper.log, then it's not able to run the Java process that acts as the service. Is there anything in the Windows Event Log that you can see using Event Viewer? We don't have any reports like this issue and we haven't been able to reproduce it.

Issue History

Date Modified Username Field Change
2016-02-26 12:54 lutful.kabir New Issue
2016-02-26 13:30 elong Note Added: 0000764
2016-02-26 13:52 lutful.kabir Note Added: 0000765
2016-02-26 14:30 elong Note Added: 0000766
2016-02-26 14:39 lutful.kabir Note Added: 0000767
2016-02-27 01:02 elong Note Added: 0000768
2016-02-29 09:48 lutful.kabir File Added: symmetric-server.properties
2016-02-29 09:48 lutful.kabir Note Added: 0000769
2016-02-29 09:49 lutful.kabir File Added: sym_service.conf
2016-02-29 09:49 lutful.kabir File Added: log4j.xml
2016-02-29 09:49 lutful.kabir File Added: setenv.bat
2016-02-29 09:49 lutful.kabir File Added: sym_service.bat
2016-02-29 09:51 lutful.kabir Note Edited: 0000769 View Revisions
2016-02-29 09:56 lutful.kabir Note Edited: 0000769 View Revisions
2019-04-23 20:40 elong Tag Attached: sym/sym_service
2019-05-14 14:29 elong Status new => feedback
2019-05-14 14:29 elong Note Added: 0001482
2019-08-26 12:49 admin Assigned To => admin
2019-08-26 12:49 admin Status feedback => closed
2019-08-26 12:49 admin Resolution open => unable to reproduce