Fisheye service starts and then stops immediately
Asked by Constantin Wiesener:

I've followed the instruction for installing Fisheye as a Windows service. This all worked fine but the service is stopping after been started.

Here is the wrapper.log:

STATUS \| wrapper \| 2012/12/07 14:40:14 \| --\> Wrapper Started as Service  
STATUS \| wrapper \| 2012/12/07 14:40:14 \| Launching a JVM...  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| java version "1.7.0_09"  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| Java(TM) SE Runtime Environment (build 1.7.0_09-b05)  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| Java HotSpot(TM) Server VM (build 23.5-b02, mixed mode)  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \|   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| JDK 1.5 detected, registering Java Service Wrapper MBean  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| WrapperStartStopApp: Unable to locate the class com.cenqua.fisheye.FishEyeCtl: java.lang.ClassNotFoundException: com.cenqua.fisheye.FishEyeCtl  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \|   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| WrapperStartStopApp Usage:  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| java org.tanukisoftware.wrapper.WrapperStartStopApp {start_class} {start_arg_count} \[start_arguments\] {stop_class} {stop_wait} {stop_arg_count} \[stop_arguments\]  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \|   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| Where:  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| start_class: The fully qualified class name to run to start the   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| application.  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| start_arg_count: The number of arguments to be passed to the start class's   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| main method.  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| stop_class: The fully qualified class name to run to stop the   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| application.  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| stop_wait: When stopping, should the Wrapper wait for all threads to   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| complete before exiting (true/false).  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| stop_arg_count: The number of arguments to be passed to the stop class's   
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| main method.  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| app_parameters: The parameters that would normally be passed to the  
INFO \| jvm 1 \| 2012/12/07 14:40:14 \| application.  
STATUS \| wrapper \| 2012/12/07 14:40:16 \| \<-- Wrapper Stopped

It is a Windows Server 2003. I am happy for any help.

C.


Answers:
author: Constantin Wiesener
body: This problem was solved reinstalling Fisheye with a dedicated non-privileged fisheye user as mentioned in the installation guide.But nontheless thanks for your advices.

C.


author: Chris Fouts
body: I'm having this problem, despite the fact I installed Fisheye as a non-priviledged (non-Admin). Any other clues?


author: Jobin Kuruvilla [Adaptavist]
body: Any error in fisheye.out file? You can find it under var/log folder.

comments: author: Jobin Kuruvilla [Adaptavist]
body: Strange.
> 2012-12-07 13:16:45,625 INFO \[Thread-31 \] fisheye ShutdownService-stopImpl - Shutdown requested

Is there a thirdparty requesting shutdown? Maybe a script?


author: Constantin Wiesener
body: Hi,

as you can see, no errors only warnings and some infos.

C.

2012-12-07 13:15:19,156 INFO \[main \] fisheye BaseCommand-setupLogging - Using log4j configuration file: C:\\Program Files\\fecru-2.9.1\\log4j.xml

2012-12-07 13:15:19,203 INFO \[main \] fisheye BaseCommand-handleCommonArguments - FishEye arguments: \[\]

2012-12-07 13:15:19,218 INFO \[main \] fisheye Run-sysinfo - FishEye/Crucible 2.9.1 (20121119025507), Built on 2012-11-19

2012-12-07 13:15:19,218 INFO \[main \] fisheye Run-sysinfo - Logging started (Oracle Corporation\|23.3-b01\|C:\\Program Files\\Java\\jre7\|Windows 2003\|x86\|5.2\|maxmem=1011MB)

2012-12-07 13:15:22,203 INFO \[main \] fisheye DefaultUpgradeManager-\<init\> - UpgradeManager started.

2012-12-07 13:15:22,250 INFO \[main \] fisheye RootConfig-load - loading config from file: C:\\Program Files\\Atlassian\\Fisheye\\config.xml

2012-12-07 13:15:23,031 INFO \[main \] fisheye Run-mainImpl - FishEye (10 committers, 5 repositories): Starter License License registered to Berlin Heart GmbH.

2012-12-07 13:15:23,890 INFO \[main \] fisheye WebServer-\<init\> - Adding secondary content dir of C:\\Program Files\\Atlassian\\Fisheye\\content

2012-12-07 13:15:24,500 INFO \[main \] / Slf4jLog-info - Initializing Spring root WebApplicationContext

2012-12-07 13:15:29,953 INFO \[main \] fisheye DefaultDBControl-start - Starting database...

2012-12-07 13:15:30,953 WARN \[main \] com.jolbox.bonecp.BoneCPConfig BoneCPConfig-setIdleConnectionTestPeriod - Please use setIdleConnectionTestPeriodInMinutes in place of setIdleConnectionTestPeriod. This method has been deprecated.

2012-12-07 13:15:30,953 WARN \[main \] com.jolbox.bonecp.BoneCPConfig BoneCPConfig-setIdleMaxAge - Please use setIdleMaxAgeInMinutes in place of setIdleMaxAge. This method has been deprecated.

2012-12-07 13:15:30,953 DEBUG \[main \] com.jolbox.bonecp.provider.BoneCPConnectionProvider BoneCPConnectionProvider-configure - JDBC URL = jdbc:hsqldb:file:C:\\Program Files\\Atlassian\\Fisheye/var/data/crudb/crucible, Username = sa, partitions = 3, max (per partition) = 6, min (per partition) = 1, helper threads = 3, idle max age = 0 min, idle test period = 60 min

2012-12-07 13:15:31,437 WARN \[main \] net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory AbstractEhcacheRegionFactory-getOnePhaseCommitSyncTransactionManager - No TransactionManagerLookup found in Hibernate config, XA Caches will be participating in the two-phase commit!

2012-12-07 13:15:32,843 WARN \[main \] com.jolbox.bonecp.BoneCPConfig BoneCPConfig-setIdleConnectionTestPeriod - Please use setIdleConnectionTestPeriodInMinutes in place of setIdleConnectionTestPeriod. This method has been deprecated.

2012-12-07 13:15:32,843 WARN \[main \] com.jolbox.bonecp.BoneCPConfig BoneCPConfig-setIdleMaxAge - Please use setIdleMaxAgeInMinutes in place of setIdleMaxAge. This method has been deprecated.

2012-12-07 13:15:32,843 DEBUG \[main \] com.jolbox.bonecp.provider.BoneCPConnectionProvider BoneCPConnectionProvider-configure - JDBC URL = jdbc:hsqldb:file:C:\\Program Files\\Atlassian\\Fisheye/var/data/crudb/crucible, Username = sa, partitions = 3, max (per partition) = 1, min (per partition) = 1, helper threads = 3, idle max age = 0 min, idle test period = 60 min

2012-12-07 13:15:32,859 WARN \[main \] net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory AbstractEhcacheRegionFactory-getOnePhaseCommitSyncTransactionManager - No TransactionManagerLookup found in Hibernate config, XA Caches will be participating in the two-phase commit!

2012-12-07 13:15:33,312 INFO \[main \] fisheye DefaultDBControl-start - Database started.

2012-12-07 13:15:34,000 INFO \[main \] fisheye DelegatingFisheyePluginManager-startOsgi - Starting plugin system...

2012-12-07 13:15:35,406 INFO \[main \] org.quartz.core.QuartzScheduler QuartzScheduler-\<init\> - Quartz Scheduler v.1.5.1 created.

2012-12-07 13:15:35,406 INFO \[main \] org.quartz.simpl.RAMJobStore RAMJobStore-initialize - RAMJobStore initialized.

2012-12-07 13:15:35,406 INFO \[main \] org.quartz.impl.StdSchedulerFactory StdSchedulerFactory-instantiate - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.

2012-12-07 13:15:35,406 INFO \[main \] org.quartz.impl.StdSchedulerFactory StdSchedulerFactory-instantiate - Quartz scheduler version: 1.5.1

2012-12-07 13:15:35,406 INFO \[main \] org.quartz.core.QuartzScheduler QuartzScheduler-setJobFactory - JobFactory set to: com.atlassian.fisheye.quartz.AutowiringJobFactory@125c292

2012-12-07 13:15:39,781 INFO \[main \] fisheye.mail Mailer-reload - Mail system not configured.

2012-12-07 13:15:55,593 WARN \[Spring executor 5 \] org.springframework.beans.TypeConverterDelegate TypeConverterDelegate-findDefaultEditor - PropertyEditor \[com.sun.beans.editors.EnumEditor\] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

2012-12-07 13:16:01,328 INFO \[main \] fisheye DelegatingFisheyePluginManager-onContextRefreshedEvent - Plugin system started.

2012-12-07 13:16:01,375 WARN \[PluginSchedulerTask-NotificationCacheUpdateJob-job \] com.atlassian.upm.license.internal.host.FecruHostLicenseProvider FecruHostLicenseProvider-addProductLicense - Unexpected error decoding stored license: Disabled

2012-12-07 13:16:01,671 INFO \[main \] / Slf4jLog-info - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)

2012-12-07 13:16:05,687 INFO \[main \] fisheye Run-mainImpl - Server started on :8060 (http) (control port on 127.0.0.1:8059)

2012-12-07 13:16:05,718 INFO \[pool-9-thread-1 \] fisheye DefaultReviewItemIndexer$3-run - Starting review re-indexing

2012-12-07 13:16:05,734 INFO \[main \] org.quartz.core.QuartzScheduler QuartzScheduler-start - Scheduler quartzScheduler_$_NON_CLUSTERED started.

2012-12-07 13:16:05,828 INFO \[pool-9-thread-1 \] fisheye DefaultReviewItemIndexer$3-run - Completed review re-indexing of 0 documents, took 0 seconds

2012-12-07 13:16:11,859 DEBUG \[btpool0-2 \] com.opensymphony.webwork.dispatcher.ServletRedirectResult ServletRedirectResult-doExecute - Redirecting to finalLocation /admin/login-default.do

2012-12-07 13:16:11,921 DEBUG \[btpool0-2 \] com.opensymphony.webwork.dispatcher.ServletDispatcherResult ServletDispatcherResult-doExecute - Forwarding to location /WEB-INF/jsp/admin/login.jsp

2012-12-07 13:16:21,765 INFO \[main \] fisheye Run-printSystemInfo - --------------------------

System Information

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

FishEye 2.9.1 20121119025507

FISHEYE_HOME : C:\\Program Files\\fecru-2.9.1

FISHEYE_INST : C:\\Program Files\\Atlassian\\Fisheye

Java Version : 1.7.0_07

Java Vendor : Oracle Corporation

JVM Version : 1.7

JVM Vendor : Oracle Corporation

JVM Impl : 23.3-b01

Java Runtime : Java(TM) SE Runtime Environment

Java VM : Java(TM) SE Runtime Environment

Operating System: Windows 2003 5.2

OS Architecture : x86

User Timezone : Europe/Berlin

JVM input args : -Xmx1024m -XX:MaxNewSize=128m -XX:MaxPermSize=256m -Dfisheye.library.path= -Dfisheye.inst=C:\\Program Files\\Atlassian\\Fisheye -Djava.awt.headless=true -Djava.endorsed.dirs=C:\\Program Files\\fecru-2.9.1\\bin\\..\\lib\\endorsed

Total Memory : 205M

Free Memory : 100M

Memory Usage : 51%

Debug Enabled : false

Http Bind ::8060

Modified Files:

\* fisheye.jar

Removed Files: None

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

Database Details

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

Database Type : hsql

Database Driver : org.hsqldb.jdbcDriver

Database URL : jdbc:hsqldb:file:C:\\Program Files\\Atlassian\\Fisheye/var/data/crudb/crucible

Database Version : 79

Database Connection Pool partitions count: 3

Database Connection Pool (min per partition): 1

Database Connection Pool (max per partition): 6

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

External User Management

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

Type : Crowd

Name : FishEye - svn01 - b309dbfa-87cb-30ce-8cb7-873f7613b8a6

Version : 2.4.1

Url : <http://svn01.berlinheart.de:8080>

Auto add users : true

SSO Enabled : false

Synchronise Period: 1 hour

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

Type : Built-In

Signup Enabled : true

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

Listing installed plugins:

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

Name \| Version \| Vendor \| State

Atlassian OAuth Service Provider SPI\| 1.6.1\| Atlassian\| Enabled

Atlassian Gadgets SPI\| 3.0.4\| Atlassian\| Enabled

fecru-applinks-webitem-plugin-2.9.1.jar\| 0.0\| (unknown)\| Disabled

Streams SPI\| 5.0.10\| Atlassian\| Enabled

FishEye/Crucible Review Smart Commit Plugin\| 1.0.19\| Atlassian\| Enabled

fecru-gadgets-plugin\| 1.0\| Atlassian\| Enabled

Crucible Subversion SCM Plugin\| 1.7.28\| Atlassian\| Enabled

Shared Application Access Layer FishEye/Crucible Plugin\| 2.9.1\| Atlassian\| Enabled

FishEye Code Metrics Report Plugin\| 1.14.23\| Atlassian\| Enabled

FishEye/Crucible JIRA Smart Commit Plugin\| 1.0.19\| Atlassian\| Enabled

FECRU Development Mode Plugin\| 1.7.23\| Atlassian\| Disabled

Atlassian OAuth Admin Plugin\| 1.6.1\| Atlassian\| Enabled

Atlassian OAuth Service Provider SAL SPI Implementation\| 1.6.1\| Atlassian\| Enabled

Support Tools Plugin\| 3.0.13\| Atlassian Support\| Enabled

Atlassian OAuth Consumer SPI\| 1.6.1\| Atlassian\| Enabled

FishEye/Crucible Commit Hooks Plugin\| 1.0.19\| Atlassian\| Enabled

Crucible JIRA Blockers Plugin\| 1.6.37\| Atlassian\| Enabled

FishEye Streams Plugin\| 5.0.10\|Atlassian Software Systems Pty Ltd\| Enabled

Crucible Review Coverage Report Plugin\| 1.3.35\| Atlassian\| Enabled

Gadget Spec Publisher Plugin\| 3.0.4\| Atlassian\| Enabled

Crucible Review Blockers Report Plugin\| 1.8.23\| Atlassian\| Enabled

Crucible Streams Plugin\| 5.0.10\|Atlassian Software Systems Pty Ltd\| Enabled

Crucible Perforce SCM Plugin\| 1.6.28\| Atlassian\| Enabled

Atlassian Template Renderer API\| 1.4.0\| Atlassian\| Enabled

Atlassian Gadgets API\| 3.0.4\| Atlassian\| Enabled

Streams Core Plugin\| 5.0.10\|Atlassian Software Systems Pty Ltd\| Enabled

fecru-rest-plugin\| 1.0\| Atlassian\| Enabled

Crucible FileSystem SCM Plugin\| 1.6.28\| Atlassian\| Enabled

Crucible Git Plugin\| 1.3.28\| Atlassian\| Enabled

Crucible Issue Transitioning Plugin\| 1.0.23\| Atlassian\| Enabled

Atlassian Universal Plugin Manager Plugin\| 2.3.1\| Atlassian Pty Ltd\| Enabled

Atlassian OAuth Consumer SAL SPI Implementation\| 1.6.1\| Atlassian\| Enabled

Streams Plugin\| 5.0.10\|Atlassian Software Systems Pty Ltd\| Enabled

Streams API\| 5.0.10\| Atlassian\| Enabled

Applinks Product Plugin\| 3.9.0\| Atlassian\| Enabled

Atlassian Template Renderer Velocity 1.6 Plugin\| 1.4.0\| Atlassian\| Enabled

Atlassian OAuth Service Provider Plugin\| 1.6.1\| Atlassian\| Enabled

ActiveObjects Plugin - OSGi Bundle\| 0.15.10\| Atlassian\| Enabled

Atlassian OAuth Consumer Plugin\| 1.6.1\| Atlassian\| Enabled

Atlassian UI Plugin\| 3.6.6\| Atlassian\| Enabled

FishEye/Crucible Web Hooks Plugin\| 1.0.19\| Atlassian\| Enabled

Atlassian REST - Module Types\| 2.7.0\| Atlassian\| Enabled

Listing Trusted Applications:

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

jira:3171432

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

License Details:

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

Server ID : BFGT-Z37P-TQD4-BBE7

Product : FishEye

License : FishEye (10 committers, 5 repositories): Starter License

Licensed To : FishEye (10 committers, 5 repositories): Starter License License registered to Berlin Heart GmbH.

Expires : 2013-10-30 14:00 +0100

Maximum Number of FishEye Users: 10

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

2012-12-07 13:16:23,828 INFO \[btpool0-2 \] fisheye SafeRedirectChecker-canRedirectTo - URL 'http://localhost:8060/admin/admin.do' is not safe for redirection, doesn't match site url of 'http://svn01:8060'

2012-12-07 13:16:23,828 DEBUG \[btpool0-2 \] com.opensymphony.webwork.dispatcher.ServletRedirectResult ServletRedirectResult-doExecute - Redirecting to finalLocation /admin/

2012-12-07 13:16:23,843 DEBUG \[btpool0-2 \] com.opensymphony.webwork.dispatcher.ServletDispatcherResult ServletDispatcherResult-doExecute - Forwarding to location /WEB-INF/jsp/admin/gwt.jsp

2012-12-07 13:16:26,515 WARN \[btpool0-4 \] net.sf.ehcache.config.ConfigurationFactory ConfigurationFactory-parseConfiguration - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: bundle://23.0:6/ehcache-failsafe.xml

2012-12-07 13:16:27,125 INFO \[btpool0-2 \] com.sun.jersey.server.impl.application.WebApplicationImpl WebApplicationImpl-_initiate - Initiating Jersey application, version 'Jersey: 1.8-atlassian-6 03/12/2012 02:59 PM'

2012-12-07 13:16:27,125 INFO \[btpool0-2 \] com.sun.jersey.server.impl.application.WebApplicationImpl WebApplicationImpl-_initiate - Initiating Jersey application, version 'Jersey: 1.8-atlassian-6 03/12/2012 02:59 PM'

2012-12-07 13:16:45,625 INFO \[Thread-31 \] fisheye ShutdownService-stopImpl - Shutdown requested

2012-12-07 13:16:45,625 INFO \[Thread-31 \] fisheye DefaultDBControl-stop - Shutdown in progress...

2012-12-07 13:16:45,625 INFO \[Thread-31 \] fisheye HibernateUtil-destroy - Shutting down DB.

2012-12-07 13:16:45,625 INFO \[Thread-31 \] com.jolbox.bonecp.BoneCP BoneCP-shutdown - Shutting down connection pool...

2012-12-07 13:16:45,656 INFO \[Thread-31 \] com.jolbox.bonecp.BoneCP BoneCP-shutdown - Connection pool has been shutdown.

2012-12-07 13:16:45,656 INFO \[Thread-31 \] com.jolbox.bonecp.BoneCP BoneCP-shutdown - Shutting down connection pool...

2012-12-07 13:16:45,656 INFO \[Thread-31 \] com.jolbox.bonecp.BoneCP BoneCP-shutdown - Connection pool has been shutdown.

2012-12-07 13:16:45,703 INFO \[Thread-31 \] / Slf4jLog-info - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called

2012-12-07 13:16:45,703 INFO \[Thread-31 \] / Slf4jLog-info - Closing Spring root WebApplicationContext

2012-12-07 13:16:46,312 INFO \[Thread-31 \] fisheye DelegatingFisheyePluginManager-onContextClosedEvent - \*\*\* application context closed \*\*\*

2012-12-07 13:16:46,328 INFO \[Thread-31 \] org.quartz.core.QuartzScheduler QuartzScheduler-standby - Scheduler quartzScheduler_$_NON_CLUSTERED paused.

2012-12-07 13:16:46,328 INFO \[Thread-31 \] org.quartz.core.QuartzScheduler QuartzScheduler-shutdown - Scheduler quartzScheduler_$_NON_CLUSTERED shutting down.

2012-12-07 13:16:46,328 INFO \[Thread-31 \] org.quartz.core.QuartzScheduler QuartzScheduler-standby - Scheduler quartzScheduler_$_NON_CLUSTERED paused.

2012-12-07 13:16:46,328 INFO \[Thread-31 \] org.quartz.core.QuartzScheduler QuartzScheduler-shutdown - Scheduler quartzScheduler_$_NON_CLUSTERED shutdown complete.

2012-12-07 13:16:46,328 DEBUG \[quartzScheduler_Worker-9 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-7 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,328 DEBUG \[quartzScheduler_Worker-5 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-3 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-1 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-6 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-4 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-0 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-8 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down

2012-12-07 13:16:46,343 DEBUG \[quartzScheduler_Worker-2 \] org.quartz.simpl.SimpleThreadPool SimpleThreadPool$WorkerThread-run - WorkerThread is shutting down


author: Constantin Wiesener
body: No it was me shutting it down manually. As you can see in my first post. The problem occured when I installed it as a service. The time of these events are not the same the defer about 2 h.

But still looking for help ;-).


author: Jobin Kuruvilla [Adaptavist]
body: Well, when some one asks for logs, send the logs at the time of error. Not when everything is working as expected. Saves time at both ends I guess ;)


Tags: windows

service

startup