View Single Post
Old 10-17-2023, 10:04 PM   #1
drawson1
Connoisseur
drawson1 began at the beginning.
 
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 &
One of these scripts works exactly as expected; the other one fails with:

Code:
[Errno 111] Connection refused

'shutdown:'
FYI, Both scripts are shutting down calibre so that I can run "calibredb catalog" with some very specific options, and then import the results.

How can I debug the "Connection refused" error?

Environment:
Calibre 6.28.1
OpenSUSE 15.4 with all current patches
XFCE desktop


Thanks!

Dan
drawson1 is offline   Reply With Quote