Xibo task don't run

Hi,
I’m using Xibo CMS 2.3.11, and from time to time task multiple tasks don’t run.


A lot of times the 'Regular maintenance didn’t work. Now The Sync Playlist and Widgets don’t.

I use Doker installation and I also try:
docker restart xibodocker238_cms-web_1
docker-compose down
docker-compose -f cms_custom-ports.yml up -d
sudo service nginx restart

What do I have to do for the healthy task?


Also… lots of time the SQL it’s over 100%.
The SSH Server:
4 GB
2 core
50 GB SSD
up to 1000 Mbps
NOW:
System load: 0.17
Usage of /: 91.9% of 49.09GB
Memory usage: 55%
Swap usage: 0%
Processes: 180
Users logged in: 1

XMR it’s good

Problem persists. Please Help! @natasha

Could you try the following with the failed tasks;

  • Edit
  • Untick to set as inactive
  • Save
  • Edit
  • Tick to set as active
  • Save

You should also be able to see further information about the issue if you hover your mouse over the icons in the Status and Last Status which may give more of an indication as to what has gone on.

Stats Migration is a one-time run task, so it’s correct that that isn’t active. You should not re-enable it.

I’ve tried your solution and has worked. But I can do something to repair the task?
Thank you @natasha

What I have suggested will reset the state of the task so that it runs again. If you find that it errors each time it is run, after being reset, you would need to look at the logs etc to see as to why that is happening.

@natasha you know how to fix this errors?

ID Run Date Channel Function Level Display Page Message
1052270 6706063 2021-09-02 09:06 WEB DELETE ERROR /layout/514 SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction Exception Type: PDOException
1052267 ac9c75c 2021-09-02 09:05 CONSOLE GET ERROR / Problem copying provided file into the Library Folder Exception Type: Xibo\Exception\ConfigurationException
1052266 ac9c75c 2021-09-02 09:05 CONSOLE GET ERROR / Cannot copy SAX_4__LANSCAPE.jpg to /var/www/cms/library/12536.jpg
1052265 ac9c75c 2021-09-02 09:04 CONSOLE GET ERROR / Maintenance cannot build Layout 483, Concurrent record locked, time out…

And others errors:

ID Run Date Channel Function Level Display Page Message
1052395 f50a27d 2021-09-02 09:55 CONSOLE GET ERROR / Maintenance cannot build Layout 390, SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction.
1052393 f50a27d 2021-09-02 09:55 CONSOLE GET ERROR / Maintenance cannot build Layout 509, Concurrent record locked, time out…
1052391 f50a27d 2021-09-02 09:54 CONSOLE GET ERROR / Maintenance cannot build Layout 400, SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction.
1052390 6e7d89c 2021-09-02 09:53 PLAYER POST ERROR Fabrica #5 ANR Application Not Responding detected. E: Application Not Responding for at least 5000 ms., StackTrace: com.github.anrwatchdog.ANRError: Application Not Responding for at least 5000 ms. Caused by: com.github.anrwatchdog.ANRError$$$_Thread: main (state = RUNNABLE) at android.media.MediaPlayer._setDataSource(Native Method) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1248) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1231) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1188) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1165) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1130) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1060) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1102) at android.widget.VideoView.openVideo(VideoView.java:412) at android.widget.VideoView.access$2200(VideoView.java:83) at android.widget.VideoView$7.surfaceCreated(VideoView.java:694) at android.view.SurfaceView.updateSurface(SurfaceView.java:758) at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:155) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2752) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1725) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7609) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1052) at android.view.Choreographer.doCallbacks(Choreographer.java:875) at android.view.Choreographer.doFrame(Choreographer.java:810) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1037) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: FinalizerDaemon (state = WAITING) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:442) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:190) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:211) at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:271) at java.lang.Daemons$Daemon.run(Daemons.java:137) at java.lang.Thread.run(Thread.java:919) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: FinalizerWatchdogDaemon (state = TIMED_WAITING) at java.lang.Thread.sleep(Native Method) at java.lang.Thread.sleep(Thread.java:440) at java.lang.Thread.sleep(Thread.java:356) at java.lang.Daemons$FinalizerWatchdogDaemon.sleepForMillis(Daemons.java:383) at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:411) at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:323) … 2 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: IntentService[XmdsService] (state = WAITING) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:442) at java.lang.Object.wait(Object.java:568) at okhttp3.internal.huc.OkHttpURLConnection.getResponse(OkHttpURLConnection.java:462) at okhttp3.internal.huc.OkHttpURLConnection.getResponseCode(OkHttpURLConnection.java:509) at uk.org.xibo.i.a.getResponseCode(OkHttp3ServiceConnectionSE.java:100) at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:192) at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118) at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113) at uk.org.xibo.i.f.h(XmdsVersionFour.java:111) at uk.org.xibo.xmds.h.a(RequiredFiles.java:75) at uk.org.xibo.xmds.XmdsService.onHandleIntent(XmdsService.java:115) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:78) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: NanoHttpd Main Listener (state = RUNNABLE) at libcore.io.Linux.poll(Native Method) at libcore.io.ForwardingOs.poll(ForwardingOs.java:169) at libcore.io.BlockGuardOs.poll(BlockGuardOs.java:261) at libcore.io.ForwardingOs.poll(ForwardingOs.java:169) at android.system.Os.poll(Os.java:428) at libcore.io.IoBridge.poll(IoBridge.java:680) at java.net.PlainSocketImpl.socketAccept(PlainSocketImpl.java:194) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:451) at java.net.ServerSocket.implAccept(ServerSocket.java:547) at java.net.ServerSocket.accept(ServerSocket.java:515) at b.a.a.a$p.run(NanoHTTPD.java:1769) at java.lang.Thread.run(Thread.java:919) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: NsdManager (state = RUNNABLE) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:336) at android.os.Looper.loop(Looper.java:174) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: OkHttp ConnectionPool (state = TIMED_WAITING) at java.lang.Object.wait(Native Method) at okhttp3.ConnectionPool$1.run(ConnectionPool.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: OkHttp Dispatcher (state = TIMED_WAITING) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230) at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:461) at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362) at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:937) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1091) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) … 2 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: OkHttp http://hn.hypnomedia.eu/… (state = RUNNABLE) at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:119) at java.net.SocketInputStream.read(SocketInputStream.java:176) at java.net.SocketInputStream.read(SocketInputStream.java:144) at d.o.read(Okio.kt:102) at d.d$d.read(AsyncTimeout.kt:159) at d.t.a(RealBufferedSource.kt:349) at d.t.g(RealBufferedSource.kt:222) at okhttp3.internal.http1.Http1Codec.readHeaderLine(Http1Codec.java:215) at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.huc.OkHttpURLConnection$NetworkInterceptor.intercept(OkHttpURLConnection.java:666) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.huc.OkHttpURLConnection$UnexpectedException$1.intercept(OkHttpURLConnection.java:600) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:200) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) … 2 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: Okio Watchdog (state = TIMED_WAITING) at java.lang.Object.wait(Native Method) at d.d$a.a(AsyncTimeout.kt:357) at d.d$b.run(AsyncTimeout.kt:228) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: ReferenceQueueDaemon (state = WAITING) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:442) at java.lang.Object.wait(Object.java:568) at java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:215) at java.lang.Daemons$Daemon.run(Daemons.java:137) at java.lang.Thread.run(Thread.java:919) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: db-mgr-0 (state = WAITING) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) … 1 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: db-mgr-1 (state = WAITING) … 8 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: pool-1-thread-1 (state = TIMED_WAITING) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230) at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:461) at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362) at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:937) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1091) … 3 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: pool-1-thread-2 (state = TIMED_WAITING) … 9 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: pool-1-thread-3 (state = TIMED_WAITING) … 9 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread: queued-work-looper (state = RUNNABLE) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:336) at android.os.Looper.loop(Looper.java:174) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: xmds-mgr-0 (state = WAITING) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) Caused by: com.github.anrwatchdog.ANRError$$$_Thread: xmds-mgr-1 (state = WAITING) … 8 more Caused by: com.github.anrwatchdog.ANRError$$$_Thread:
1052388 f50a27d 2021-09-02 09:53 CONSOLE GET ERROR / Maintenance cannot build Layout 508, SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction.
1052387 5ff6c73 2021-09-02 09:53 XMDS POST ERROR Quantic 1 RequiredFiles Layout not found - ID: 509, skipping.
1052392 a0b2ce7 2021-09-02 09:52 PLAYER POST ERROR Fabrica #0 XFA:VideoMedia Cannot display video. Uri=file:///mnt/external_sd/Android/data/com.signage.pomwppemxx/files/8546.mp4. What=Unknown Error. Extra=Device Dependent Error Code -5006
1052386 5ff6c73 2021-09-02 09:52 XMDS POST ERROR Quantic 1 RequiredFiles Layout not found - ID: 509, skipping.
1052385 d910d52 2021-09-02 09:52 XMDS POST ERROR Quantic 1 RequiredFiles SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
1052384 f50a27d 2021-09-02 09:52 CONSOLE GET ERROR / Maintenance cannot build Layout 501, SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.