Hangfire is stopping with log caught stopping signal - hangfire

I have configured Hangfire for my Web API solution. But the Hangfire stops working after sometime logging about stopping signal. However, if API is sit again it loads and works normally. The log produced by Hangfire before stopping is as below. What should I do to prevent this.
[137] INFO Hangfire.Server.BackgroundServerProcess - Server xyz:26756:c4da0558 caught stopping signal...
[ServerWatchdog #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop ServerWatchdog:32e9252b stopped in 2.2406 ms
[ExpirationManager #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop ExpirationManager:802eb676 stopped in 2.2681 ms
[Worker #3] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop Worker:3d798436 stopped in 2.4496 ms
[CountersAggregator #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop CountersAggregator:f6091560 stopped in 3.1411 ms
[Worker #2] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop Worker:8b960c88 stopped in 3.7784 ms
[Worker #2] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop Worker:8b960c88 stopped in 3.7784 ms
[Worker #4] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop Worker:8e0e3cc8 stopped in 4.2624 ms
[DelayedJobScheduler #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop DelayedJobScheduler:066c3859 stopped in 4.5509 ms
[136] INFO Hangfire.Server.BackgroundServerProcess - Server xyz:26756:c4da0558 caught stopped signal...
[Worker #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop Worker:dfcd3314 stopped in 5.7981 ms
[RecurringJobScheduler #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop RecurringJobScheduler:2b8e4675 stopped in 6.1803 ms
[ServerJobCancellationWatcher #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop ServerJobCancellationWatcher:554692cc stopped in 6.216 ms
[BackgroundServerProcess #1] INFO Hangfire.Server.BackgroundServerProcess - Server xyz:26756:c4da0558 All dispatchers stopped
[ServerHeartbeatProcess #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop ServerHeartbeatProcess:f3cc4077 stopped in 8.3409 ms
[BackgroundServerProcess #1] DEBUG Hangfire.Server.BackgroundServerProcess - Server xyz:26756:c4da0558 is reporting itself as stopped...
[BackgroundServerProcess #1] INFO Hangfire.Server.BackgroundServerProcess - Server xyz:26756:c4da0558 successfully reported itself as stopped in 199.8624 ms
[BackgroundServerProcess #1] DEBUG Hangfire.Processing.BackgroundExecution - Execution loop BackgroundServerProcess:dd1eaf65 stopped in 214.6647 ms
[BackgroundServerProcess #1] INFO Hangfire.Server.BackgroundServerProcess - Server virtuadeskdev04:26756:c4da0558 has been stopped in total 212.7921 ms

This was because of Application Pool Idleness set to 20 minutes. I have changed the Start type to Always Running and now Hangfire does not stop.

Related

IntelliJ Ultimate closes unexpectedly [provided Log]

Im using
IntelliJ IDEA 2018.2 (Ultimate Edition) Build #IU-182.3684.101, built
on July 24, 2018 JRE: 1.8.0_152-release-1248-b8 amd64 JVM: OpenJDK
64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
Last month a problem occurs frequently. While I am coding the IDE closes and the progress i have made is not saved. This is really annoying. I have read carefully the log of IDEA and I cannot understand whats the problem. I attach the log file (only the lines that affect the problem). If there is any experience from anyone else who had the same problem please let me know. I have also sent a request to intellij but no aswer so far.
The attached log file lines
2018-08-31 19:44:25,283 [1209634] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2018-08-31 19:44:25,320 [1209671] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2018-08-31 19:44:25,322 [1209673] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2018-08-31 19:44:25,323 [1209674] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2018-08-31 19:44:25,326 [1209677] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2018-08-31 19:44:25,330 [1209681] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2018-08-31 19:44:25,330 [1209681] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
sometimes also this message appears in log but I'm not sure if its relevant:
ide.actions.ShowFilePathAction exit code 1

How to set a starting point in a job?

The transformation file, ending in .ktr, runs with no problem:
2018/07/10 15:40:54 - Spoon - Transformation opened.
2018/07/10 15:40:54 - Spoon - Launching transformation [FullCoverageTestCaseSalesMappingToReconciledSchema]...
2018/07/10 15:40:54 - Spoon - Started the transformation execution.
2018/07/10 15:40:54 - FullCoverageTestCaseSalesMappingToReconciledSchema - Dispatching started for transformation [FullCoverageTestCaseSalesMappingToReconciledSchema]
2018/07/10 15:40:54 - Reconciled.Weather.0 - Connected to database [Reconciled.Weather] (commit=1000)
2018/07/10 15:40:54 - Reconciled.Sale.0 - Connected to database [ReconciledSchema] (commit=1000)
2018/07/10 15:40:54 - Reconciled.IceCream.0 - Connected to database [ReconciledSchema] (commit=1000)
2018/07/10 15:40:54 - WeatherMapping.0 - Finished reading query, closing connection.
2018/07/10 15:40:54 - IceCreamMapping.0 - Finished reading query, closing connection.
2018/07/10 15:40:54 - WeatherMapping.0 - Finished processing (I=8, O=0, R=0, W=8, U=0, E=0)
2018/07/10 15:40:54 - IceCreamMapping.0 - Finished processing (I=7, O=0, R=0, W=7, U=0, E=0)
2018/07/10 15:40:54 - Split Weather Text.0 - Finished processing (I=0, O=0, R=8, W=8, U=0, E=0)
2018/07/10 15:40:54 - Reconciled.Mapping.0 - Finished reading query, closing connection.
2018/07/10 15:40:54 - Reconciled.Mapping.0 - Finished processing (I=6, O=0, R=0, W=6, U=0, E=0)
2018/07/10 15:40:54 - Reconciled.IceCream.0 - Finished processing (I=0, O=7, R=7, W=7, U=0, E=0)
2018/07/10 15:40:54 - Reconciled.Sale.0 - Finished processing (I=0, O=6, R=6, W=6, U=0, E=0)
2018/07/10 15:40:54 - Reconciled.Weather.0 - Finished processing (I=0, O=8, R=8, W=8, U=0, E=0)
2018/07/10 15:40:54 - Spoon - The transformation has finished!!
The job file, ending in .kjb, has only a reference to the above transformation file. It fails:
2018/07/10 15:34:35 - Spoon - Starting job...
2018/07/10 15:34:35 - Full Coverage Test Case - Start of job execution
2018/07/10 15:34:35 - Full Coverage Test Case - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : A serious error occurred during job execution:
2018/07/10 15:34:35 - Full Coverage Test Case - Couldn't find starting point in this job.
2018/07/10 15:34:35 - Full Coverage Test Case - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : org.pentaho.di.core.exception.KettleJobException:
2018/07/10 15:34:35 - Full Coverage Test Case - Couldn't find starting point in this job.
2018/07/10 15:34:35 - Full Coverage Test Case -
2018/07/10 15:34:35 - Full Coverage Test Case - at org.pentaho.di.job.Job.execute(Job.java:532)
2018/07/10 15:34:35 - Full Coverage Test Case - at org.pentaho.di.job.Job.run(Job.java:436)
2018/07/10 15:34:35 - Spoon - Job has ended.
I added a Start thingy and connected it to the job thingy.That fixed it.

(Pentaho PDI):Thread: Couldn't find starting point in this job

Pentaho running job through command line
I have a pentaho job which runs successfully in pentaho but if i try to run the same through command line i get the error -(But It runs Successfully in one PC throws, error in another PC)
Here is my problem of the moment:
2016/12/12 16:52:30 - Start of job execution
2016/12/12 16:52:30 - ERROR (version 6.0.0.0-353, build 1 from 2015-10-07
13.27.43 by buildguy) : A serious error occurred during job execution:
2016/12/12 16:52:30 - Couldn't find starting point in this job.
2016/12/12 16:52:30 - ERROR (version 6.0.0.0-353, build 1 from 2015-10-07
13.27.43 by buildguy) : org.pentaho.di.core.exception.KettleJobException:
2016/12/12 16:52:30 - Couldn't find starting point in this job.
2016/12/12 16:52:30 - at org.pentaho.di.job.Job.execute(Job.java:532)
2016/12/12 16:52:30 - at org.pentaho.di.job.Job.run(Job.java:435)
2016/12/12 16:52:30 - Kitchen - Finished!
2016/12/12 16:52:30 - Kitchen - ERROR (version 6.0.0.0-353, build 1 from
2015-10-07 13.27.43 by buildguy) : Finished with errors
2016/12/12 16:52:30 - Kitchen - Start=2016/12/12 16:52:15.536, Stop=2016/12/12 16:52:30.652
Just had the same issue (9.1), but it disappeared after I deleted the "Start" step and replaced it with a new one. Looks like the "Start" step must be named "Start", so NO renaming it, even if it is allowed...
Aren't you trying to run a KTR file instead of a KJB?
Take a look:
http://forums.pentaho.com/showthread.php?58160-Couldn-t-find-starting-point-in-this-job
you should try pan, pan is PDI command line tools.
PDI Command line tools
sh /home/patel/Downloads/pdi/pdi-ce-9.0.0.0-423/data-integration/pan.sh /file:/home/patel/Documents/replication.ktr
Are you sure if you are using ****Start**** step while writing a job.
P.S. Each Pentaho job needs a start step to execute.
Claus's answer is right,if you rename you "Start" model,you should useing normal name "Start",I use this method fixed my problem.

SonarQube 5.4 restart from UI failing on Windows

I've SQ 5.4 running on Windows server under local admin account. Consistently, restart from UI hangs and I find below in the log.
This seems like a bug in the restart logic.
2016.04.06 10:42:32 INFO web[o.s.s.p.w.RestartAction] SonarQube restart requested by admin
2016.04.06 10:42:32 INFO app[o.s.p.m.Monitor] Process [web] requested restart
2016.04.06 10:42:32 INFO app[o.s.p.m.Monitor] Process[web] is stopping
2016.04.06 10:42:33 INFO web[o.s.p.StopWatcher] Stopping process
2016.04.06 10:42:33 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9540"]
2016.04.06 10:42:34 INFO web[o.s.s.n.NotificationService] Notification service stopped
2016.04.06 10:42:34 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9540"]
2016.04.06 10:42:35 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9540"]
2016.04.06 10:42:35 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=160m; support was removed in 8.0
2016.04.06 10:42:35 INFO es[o.s.p.StopWatcher] Stopping process
2016.04.06 10:42:35 INFO es[o.elasticsearch.node] [sonar-1459957143004] stopping ...
2016.04.06 10:42:35 INFO app[o.s.p.m.Monitor] Process[web] is stopped
2016.04.06 10:42:35 INFO app[o.s.p.m.Monitor] Process[search] is stopping
2016.04.06 10:42:35 INFO es[o.elasticsearch.node] [sonar-1459957143004] stopped
2016.04.06 10:42:35 INFO es[o.elasticsearch.node] [sonar-1459957143004] closing ...
2016.04.06 10:42:35 INFO es[o.elasticsearch.node] [sonar-1459957143004] closed
2016.04.06 10:42:35 INFO app[o.s.p.m.Monitor] Process[search] is stopped
2016.04.06 10:42:35 INFO app[o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-5.4\temp
Exception in thread "Restartor 0" java.lang.RuntimeException: Failed to reset file system
at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:125)
at org.sonar.process.monitor.Monitor.startProcesses(Monitor.java:105)
at org.sonar.process.monitor.Monitor.access$500(Monitor.java:38)
at org.sonar.process.monitor.Monitor$RestartorThread.run(Monitor.java:282)
Caused by: java.nio.file.FileSystemException: C:\sonarqube-5.4\temp\sharedmemory: The process cannot access the file because it is being used by another process.
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:151)
at org.sonar.process.FileUtils$CleanDirectoryFileVisitor.visitFile(FileUtils.java:135)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at org.sonar.process.FileUtils.cleanDirectoryImpl(FileUtils.java:123)
at org.sonar.process.FileUtils.cleanDirectory(FileUtils.java:60)
at org.sonar.application.AppFileSystem.createOrCleanDirectory(AppFileSystem.java:116)
at org.sonar.application.AppFileSystem.reset(AppFileSystem.java:73)
at org.sonar.process.monitor.Monitor.resetFileSystem(Monitor.java:122)
... 3 more
This bug occurs on MS Windows only. It will be fixed in version 5.6: https://jira.sonarsource.com/browse/SONAR-7422.

In Eclipse UNable to run the script in IE But IE its get launching

I am facing some issue with eclipse, I am running the script with TestNg, but it was unable to run the script itis hangover by launching IE application
Showing this message, nothing has been doing...
HI
I am facing some issue with eclipse, I am running the script with TestNg, but it was unable to run the script itis hangover by launching IE application
Showing this message, nothing has been doing...
18:09:04.942 INFO - Java: Oracle Corporation 23.2-b09
18:09:04.942 INFO - OS: Windows 7 6.1 amd64
18:09:04.953 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d
18:09:05.087 INFO - RemoteWebDriver instances should connect to: 18:09:05.088 INFO - Version Jetty/5.1.x
18:09:05.097 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
18:09:05.098 INFO - Started HttpContext[/selenium-server,/selenium-server]
18:09:05.099 INFO - Started HttpContext[/,/]
18:09:05.101 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#7de41969
18:09:05.101 INFO - Started HttpContext[/wd,/wd]
18:09:05.104 INFO - Started SocketListener on 0.0.0.0:4444
18:09:05.104 INFO - Started org.openqa.jetty.jetty.Server#3d9f242f
18:09:05.147 INFO - Checking Resource aliases
18:09:05.150 INFO - Command request: getNewBrowserSession[*iexplore, https://login.salesforce.com/, ] on session null
18:09:05.152 INFO - creating new remote session
18:09:05.163 INFO - Allocated session 4f8177c22aab4672a62cef88f6d66878 for https://login.salesforce.com/, launching...
jar:file:/C:/Selenium/selenium-server-standalone-2.35.0.jar!/core
18:09:05.455 INFO - Launching Embedded Internet Explorer...
18:09:05.709 INFO - Launching Internet Explorer HTA...
Make sure your zoom is at 100%. Also in Internet Options > security you need to make sure that 'Enable protected mode' is selected on all 4 zones.