04-05-2018, 09:58 AM | #1 |
Enthusiast
Posts: 41
Karma: 5690
Join Date: Apr 2018
Device: iphone
|
"kicking" calibre to wake it up required?
We have Calibre set up on a headless Mac mini in our house and have the content server and wireless device connections active. We access it from our iOS devices via calibre companion remotely as a wireless device with no problem but...
If the Mac mini has not been used for a while and we try to access the following happens: CCompanion searches for calibre, says it is synching but waiting on calibre...and just sits there waiting...and waiting. It will not finish the synching until I access the Mac mini remotely to even just look at the lock screen. Then it proceeds and finishes up fine. Any ideas why CCompanion isn't able to give it the final kick? The Mac mini is set not to sleep and the process does seem to find the server, it just can't get all the way through. Last edited by jehrler; 04-06-2018 at 10:02 AM. |
04-11-2018, 11:55 PM | #2 |
Enthusiast
Posts: 41
Karma: 5690
Join Date: Apr 2018
Device: iphone
|
I used the calibre companion debug to get some log info from that side. At 19:17 began trying to connect using calibre companion via wireless device. At 19:20, while cc was still "waiting for calibre" I accessed the content server via web browser.
At 19:21 I used vpn to connect to the Mac mini but didn't log in. CC immediately connected as wireless device. Here is the debug log from calibre companion: Spoiler:
Last edited by chaley; 04-12-2018 at 04:20 AM. Reason: Added "Spoiler" button |
Advert | |
|
04-12-2018, 04:19 AM | #3 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I don't own a Mac so any opinion I have is suspect, but it does seem clear that something in the Mini is "sleeping".
What I see from that log:
One possibility is that the calibre GUI is being blocked. If this happened then the wireless device networking thread would also be blocked. Various GUI things do happen during connection and CC does continue once the GUI is awakened, so there might be something here. Getting a calibre debug log might help because it will show what calibre thinks is happening. This FAQ answer explains how to get that log. |
04-12-2018, 05:15 AM | #4 |
Enthusiast
Posts: 41
Karma: 5690
Join Date: Apr 2018
Device: iphone
|
attached is the debug file
Last edited by jehrler; 04-12-2018 at 05:54 AM. |
04-12-2018, 07:13 AM | #5 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
That debug log shows two connects. The first connect worked without pause.
The second, around 9 minutes after the first, had a 2.5 minute pause at the point just after the device was detected (CC connected and exchanged network traffic) and before calibre asks CC if it has appropriate memory. When the pause happens calibre is informing its GUI and any interested plugins that a device has connected. CC is waiting for calibre at that point and cannot be involved in the pause. This sequence demonstrates that the problem is in the Mini. It argues that something on the Mini is preventing the calibre GUI (or something connected to the GUI such as some kind of tray notifier) from running. I have no idea what that "something" might be, nor do I have any idea whether there is some setting that affects it. FWIW: it seems that this "pause" is at a different place than the one indicated by the CC debug log. If that is indeed the case then whatever is happening on the Mini doesn't consistently happen at the same time. |
Advert | |
|
04-12-2018, 12:39 PM | #6 |
Well trained by Cats
Posts: 29,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Does the HD on the mini sleep?
Chaley: does the initial CC just rely on what is in Calibres memory and the failing bit, need some stuff from the HD? |
04-12-2018, 12:46 PM | #7 | |
Enthusiast
Posts: 41
Karma: 5690
Join Date: Apr 2018
Device: iphone
|
Quote:
BTW, I have also turned change the preference so Calibre now turns off animations in case that was an issue. Lastly, have used the terminal to turn of dock bouncing for alerts/launching. I have seen the dock icon for calibre bouncing when connecting via wireless device so that is now off too. Here's hoping... |
|
04-12-2018, 01:37 PM | #8 |
Enthusiast
Posts: 41
Karma: 5690
Join Date: Apr 2018
Device: iphone
|
Issue remains. Oh well.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre-generated epub (from .docx) gives "e21027" "multiple opf files" on KindleGen | GhostRider | Conversion | 0 | 12-22-2017 09:06 AM |
Generic "Sending to Device" template not kicking in on Folder Device | At_Libitum | Library Management | 2 | 11-01-2013 07:12 AM |
Checking for required libs. Exporting Binaries "easily" | twobob | Kindle Developer's Corner | 28 | 10-13-2013 10:57 PM |
"White Spaces Are Required"...PLEASE HELP! | UntreedReads | ePub | 12 | 07-22-2010 03:47 PM |
PDF "Kicking" iliad | Havard | iRex | 1 | 10-24-2009 10:34 AM |