Running job NOT showing as running

I’ve searched the forum and found a post of an opposite problem. In my case, the job (with various prune, backup, check tasks) is running and yet it only shows the status from the most recent task, no progress bar on the running task, and the job action shows the PLAY icon. I initially thought the job wasn’t running so I clicked again and in the end the executions were happening concurrently. If I ignore the visual indicators, then the job will eventually complete and I get the configured email.

Refreshing the browser page does not resolve the issue, including Ctrl+F5. Moving to another category and then back does not resolve the issue. Opening the page on another browser does not resolve the problem. The only way to fix this is to restart the Windows service.

Is this a bug? TIA.

Can confirm, I’ve seen this happening. In my case, it was usually when you stop a job from the GUI, then restart it, and sometimes you can’t see status of the new run in the GUI. The only way to avoid duplication was to kill all :d: processes manually, then restart the job.

Was the web page responsive when this happened? That is, if you open localhost:3875 on a new tab, does the page show up correctly?

Yes, everything behaves as expected, no lag whatsoever. I opened the site with a different browser and it’s still not showing the progress (as stated in the original post) so it’s not a browser or cache issue.

One thing would like to correct from my original post is that when such a run finished, it would NOT send out the configured email. It happened again last night and I didn’t interfere with the run and confirm that indeed I did NOT get an email.

You can print the stack trace to the log file (~/.duplicacy-web/duplicacy_web.log) by opening this url in the browser:

http://localhost:3875/print_stack_trace

And this is url is to show the schedule status:

http://localhost:3875/get_schedule_status

I just ran into the same issue. I’m using the saspus/duplicacy-web:mini container.

CLI: 3.2.3
Web: 1.8.0

There is a backup running in the background, but the web UI seems to have lost track of it.

# ps -ef
PID   USER     TIME  COMMAND
    1 root      0:00 bash /usr/local/bin/init.sh
   31 duplicac 10:42 /config/bin/duplicacy_web_linux_x64_1.8.0
   37 duplicac  0:42 tail -0 -f /logs/duplicacy_web.log
  775 duplicac 16:42 /home/duplicacy/.duplicacy-web/bin/duplicacy_linux_x64_3.2.3 -log backup -storage Backup -threads 1 -stats


get_schedule_status:

{"job_status":null,"message":"ok","schedule_change_id":12,"schedule_status":[{"schedule_index":0,"is_running":false,"next":"Next run in 23:32:53","has_jobs":true,"is_paused":false}]}


print_stack_trace:

2024/07/14 22:57:41 goroutine profile: total 12
1 @ 0x42f9b6 0x462d25 0x77ebf5 0x77ea0d 0x77b96b 0xedb81e 0x6fe1ef 0x701aac 0x6fccc7 0x468ae1
#       0x462d24        runtime/pprof.runtime_goroutineProfileWithLabels+0x24   /usr/local/go/src/runtime/mprof.go:846
#       0x77ebf4        runtime/pprof.writeRuntimeProfile+0xb4                  /usr/local/go/src/runtime/pprof/pprof.go:723
#       0x77ea0c        runtime/pprof.writeGoroutine+0x4c                       /usr/local/go/src/runtime/pprof/pprof.go:683
#       0x77b96a        runtime/pprof.(*Profile).WriteTo+0x14a                  /usr/local/go/src/runtime/pprof/pprof.go:330
#       0xedb81d        main.logHTTPRequest.func1+0xe7d                         /Users/gchen/zincbox/duplicacy-web/dwe/dwe_main.go:858
#       0x6fe1ee        net/http.HandlerFunc.ServeHTTP+0x2e                     /usr/local/go/src/net/http/server.go:2109
#       0x701aab        net/http.serverHandler.ServeHTTP+0x30b                  /usr/local/go/src/net/http/server.go:2947
#       0x6fccc6        net/http.(*conn).serve+0x606                            /usr/local/go/src/net/http/server.go:1991

1 @ 0x43a4d6 0x406cdb 0x406818 0x78a305 0x468ae1
#       0x78a304        gopkg.in/natefinch/lumberjack%2ev2.(*Logger).millRun+0x44       /Users/gchen/zincbox/go/pkg/mod/gopkg.in/natefinch/lumberjack.v2@v2.0.0/lumberjack.go:379

1 @ 0x43a4d6 0x432f37 0x4631c9 0x49f5b2 0x4a091a 0x4a0908 0x4ac11e 0x4ac116 0x49b23e 0xf00b2f 0xf00b18 0x468ae1
#       0x4631c8        internal/poll.runtime_pollWait+0x88             /usr/local/go/src/runtime/netpoll.go:305
#       0x49f5b1        internal/poll.(*pollDesc).wait+0x31             /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
#       0x4a0919        internal/poll.(*pollDesc).waitRead+0x259        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
#       0x4a0907        internal/poll.(*FD).Read+0x247                  /usr/local/go/src/internal/poll/fd_unix.go:167
#       0x4ac11d        os.(*File).read+0x5d                            /usr/local/go/src/os/file_posix.go:31
#       0x4ac115        os.(*File).Read+0x55                            /usr/local/go/src/os/file.go:119
#       0x49b23d        io.ReadAll+0xfd                                 /usr/local/go/src/io/io.go:661
#       0xf00b2e        io/ioutil.ReadAll+0x4e                          /usr/local/go/src/io/ioutil/ioutil.go:27
#       0xf00b17        main.runDuplicacyExecutable.func1+0x37          /Users/gchen/zincbox/duplicacy-web/dwe/dwe_utils.go:362

1 @ 0x43a4d6 0x432f37 0x4631c9 0x49f5b2 0x4a091a 0x4a0908 0x4ac11e 0x4ac116 0x67fad6 0xefff7b 0xf1e6d7 0xf18cc6 0xf10677 0x468ae1
#       0x4631c8        internal/poll.runtime_pollWait+0x88             /usr/local/go/src/runtime/netpoll.go:305
#       0x49f5b1        internal/poll.(*pollDesc).wait+0x31             /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
#       0x4a0919        internal/poll.(*pollDesc).waitRead+0x259        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
#       0x4a0907        internal/poll.(*FD).Read+0x247                  /usr/local/go/src/internal/poll/fd_unix.go:167
#       0x4ac11d        os.(*File).read+0x5d                            /usr/local/go/src/os/file_posix.go:31
#       0x4ac115        os.(*File).Read+0x55                            /usr/local/go/src/os/file.go:119
#       0x67fad5        bufio.(*Scanner).Scan+0x875                     /usr/local/go/src/bufio/scan.go:214
#       0xefff7a        main.runDuplicacyExecutable+0xaba               /Users/gchen/zincbox/duplicacy-web/dwe/dwe_utils.go:408
#       0xf1e6d6        main.(*Job).runBackup+0x19b6                    /Users/gchen/zincbox/duplicacy-web/dwe/dwe_job.go:690
#       0xf18cc5        main.(*Job).Start+0x105                         /Users/gchen/zincbox/duplicacy-web/dwe/dwe_job.go:75
#       0xf10676        main.(*Schedule).Start.func1+0x56               /Users/gchen/zincbox/duplicacy-web/dwe/dwe_schedule.go:186

1 @ 0x43a4d6 0x432f37 0x4631c9 0x49f5b2 0x4a091a 0x4a0908 0x517e69 0x529c45 0x6f6a5f 0x468ae1
#       0x4631c8        internal/poll.runtime_pollWait+0x88             /usr/local/go/src/runtime/netpoll.go:305
#       0x49f5b1        internal/poll.(*pollDesc).wait+0x31             /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
#       0x4a0919        internal/poll.(*pollDesc).waitRead+0x259        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
#       0x4a0907        internal/poll.(*FD).Read+0x247                  /usr/local/go/src/internal/poll/fd_unix.go:167
#       0x517e68        net.(*netFD).Read+0x28                          /usr/local/go/src/net/fd_posix.go:55
#       0x529c44        net.(*conn).Read+0x44                           /usr/local/go/src/net/net.go:183
#       0x6f6a5e        net/http.(*connReader).backgroundRead+0x3e      /usr/local/go/src/net/http/server.go:678

1 @ 0x43a4d6 0x432f37 0x4631c9 0x49f5b2 0x4a091a 0x4a0908 0x517e69 0x529c45 0x6f6f31 0x67c9ff 0x67cb5d 0x6f8478 0x6fca05 0x468ae1
#       0x4631c8        internal/poll.runtime_pollWait+0x88             /usr/local/go/src/runtime/netpoll.go:305
#       0x49f5b1        internal/poll.(*pollDesc).wait+0x31             /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
#       0x4a0919        internal/poll.(*pollDesc).waitRead+0x259        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
#       0x4a0907        internal/poll.(*FD).Read+0x247                  /usr/local/go/src/internal/poll/fd_unix.go:167
#       0x517e68        net.(*netFD).Read+0x28                          /usr/local/go/src/net/fd_posix.go:55
#       0x529c44        net.(*conn).Read+0x44                           /usr/local/go/src/net/net.go:183
#       0x6f6f30        net/http.(*connReader).Read+0x170               /usr/local/go/src/net/http/server.go:786
#       0x67c9fe        bufio.(*Reader).fill+0xfe                       /usr/local/go/src/bufio/bufio.go:106
#       0x67cb5c        bufio.(*Reader).Peek+0x5c                       /usr/local/go/src/bufio/bufio.go:144
#       0x6f8477        net/http.(*conn).readRequest+0x1f7              /usr/local/go/src/net/http/server.go:991
#       0x6fca04        net/http.(*conn).serve+0x344                    /usr/local/go/src/net/http/server.go:1916

1 @ 0x43a4d6 0x432f37 0x4631c9 0x49f5b2 0x4a4834 0x4a4821 0x519f75 0x532808 0x5319dd 0x702005 0xed8b8e 0xed8b16 0xf2f597 0xed611c 0x43a112 0x468ae1
#       0x4631c8        internal/poll.runtime_pollWait+0x88             /usr/local/go/src/runtime/netpoll.go:305
#       0x49f5b1        internal/poll.(*pollDesc).wait+0x31             /usr/local/go/src/internal/poll/fd_poll_runtime.go:84
#       0x4a4833        internal/poll.(*pollDesc).waitRead+0x233        /usr/local/go/src/internal/poll/fd_poll_runtime.go:89
#       0x4a4820        internal/poll.(*FD).Accept+0x220                /usr/local/go/src/internal/poll/fd_unix.go:614
#       0x519f74        net.(*netFD).accept+0x34                        /usr/local/go/src/net/fd_unix.go:172
#       0x532807        net.(*TCPListener).accept+0x27                  /usr/local/go/src/net/tcpsock_posix.go:142
#       0x5319dc        net.(*TCPListener).Accept+0x3c                  /usr/local/go/src/net/tcpsock.go:288
#       0x702004        net/http.(*Server).Serve+0x384                  /usr/local/go/src/net/http/server.go:3070
#       0xed8b8d        net/http.Serve+0x296d                           /usr/local/go/src/net/http/server.go:2568
#       0xed8b15        main.onReady+0x28f5                             /Users/gchen/zincbox/duplicacy-web/dwe/dwe_main.go:682
#       0xf2f596        main.runSystray+0x36                            /Users/gchen/zincbox/duplicacy-web/dwe/dwe_systray_linux.go:12
#       0xed611b        main.main+0x3fb                                 /Users/gchen/zincbox/duplicacy-web/dwe/dwe_main.go:307
#       0x43a111        runtime.main+0x211                              /usr/local/go/src/runtime/proc.go:250

1 @ 0x43a4d6 0x449d7c 0xbade2d 0x468ae1
#       0xbade2c        go.opencensus.io/stats/view.(*worker).start+0xac        /Users/gchen/zincbox/go/pkg/mod/go.opencensus.io@v0.24.0/stats/view/worker.go:292

1 @ 0x43a4d6 0x449d7c 0xf009e5 0x468ae1
#       0xf009e4        main.runDuplicacyExecutable.func2+0xa4  /Users/gchen/zincbox/duplicacy-web/dwe/dwe_utils.go:383

1 @ 0x43a4d6 0x449d7c 0xf0e458 0xf110c5 0x468ae1
#       0xf0e457        main.(*Schedule).Start+0xcd7    /Users/gchen/zincbox/duplicacy-web/dwe/dwe_schedule.go:192
#       0xf110c4        main.checkSchedules.func1+0x64  /Users/gchen/zincbox/duplicacy-web/dwe/dwe_schedule.go:600

1 @ 0x43a4d6 0x465855 0xf10fcb 0x468ae1
#       0x465854        time.Sleep+0x134        /usr/local/go/src/runtime/time.go:195
#       0xf10fca        main.detectWakeup+0x2a  /Users/gchen/zincbox/duplicacy-web/dwe/dwe_schedule.go:482

1 @ 0x43a4d6 0x465855 0xf1116e 0xed61db 0x468ae1
#       0x465854        time.Sleep+0x134                /usr/local/go/src/runtime/time.go:195
#       0xf1116d        main.checkSchedules+0x4d        /Users/gchen/zincbox/duplicacy-web/dwe/dwe_schedule.go:611
#       0xed61da        main.onReady.func1+0x3a         /Users/gchen/zincbox/duplicacy-web/dwe/dwe_main.go:413