![]() |
#1 |
Connoisseur
![]() Posts: 96
Karma: 10
Join Date: Mar 2014
Device: Libra H20, Clara 2E
|
calibre -s fails ....sometimes :-(
To be more correct, it works in one script and fails in another :-(
The two scripts share IDENTICAL code for the shutdown / restart: Code:
if (ps -ef | grep "/opt/calibre/bin/calibre" | grep -v grep > /dev/null) then RUNNING=TRUE WITH_LIB="--with-library=http://localhost:8080/" fi ...... [[ -n ${RUNNING} ]] && /usr/bin/calibre -s ..... [[ -n ${RUNNING} ]] && /usr/bin/calibre & Code:
[Errno 111] Connection refused 'shutdown:' How can I debug the "Connection refused" error? Environment: Calibre 6.28.1 OpenSUSE 15.4 with all current patches XFCE desktop Thanks! Dan |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you will typically get connection refused when calibre is already shutting down.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 96
Karma: 10
Join Date: Mar 2014
Device: Libra H20, Clara 2E
|
Hmmm .... doesn't seem to be the case. For BOTH scripts, just before I call "calibre -s", the process list looks the same:
Code:
18-Oct-23 06:40 > ps -ef | grep calibre drawson 31991 1 1 06:38 pts/4 00:00:06 /opt/calibre/bin/calibre drawson 32036 31991 0 06:38 pts/4 00:00:00 /opt/calibre/bin/calibre-parallel --pipe-worker from calibre.utils.ipc.pool import run_main, worker_main; run_main(41, worker_main) drawson 32622 31237 0 06:46 pts/4 00:00:00 grep --color=auto calibre Code:
pkill calibre and Code:
pkill calibre-parallel One other note - even when it fails, the return value from "calibre -s" is still 0 :-( |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
then your permission denied will be one script running as a different user than the other
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre 3.48 fails to load | maddz | Calibre | 2 | 02-20-2021 03:57 PM |
Calibre fails to convert | ConnieL | Conversion | 8 | 03-26-2020 12:45 PM |
Calibre email fails | EightWeight | Calibre | 4 | 12-07-2014 04:58 PM |
Calibre fails to start? | thegreenemachine | Calibre | 1 | 03-14-2012 03:38 AM |
install calibre 0.8.8 fails | knireis | Calibre | 2 | 07-08-2011 09:40 AM |