12-04-2019, 02:05 AM | #1 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2019
Device: iDevices
|
Broken pipe error when doing add --with-library
I'm attempting to test the typical command to add in to my crontab to update my library on a headless server:
Code:
calibredb add /array/media/books/* --with-library http://localhost:8001/#books --username user --password pass Quote:
Code:
try except I do think I have a valid initial connection because I get valid returns from calibre if I form the calibredb command wrong, such as needing user/pass or name the library incorrectly. I notice the host object has a timeout variable and I can't see where that's getting set. It makes sense that a timeout of some sort would indicate a dead connection if there isn't a return. Scanning the dir does take a bit of time when I've added while Calibre is stopped. Really, all I'm looking for is the right way to keep my lib updated. |
|
12-04-2019, 05:09 AM | #2 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Does adding single books work? Are you using the official calibre binaries? what version?
|
12-05-2019, 12:21 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2019
Device: iDevices
|
Thanks for your prompt reply, Kovid. I really appreciate how much of your time you dedicate to supporting Calibre. Your suggestion about trying a single book gave me a few ideas to try this evening.
I'm using version 4.3, official binary. I did try a couple of single books. One was a standard .epub file from my collection, another was a file I quickly made with Code:
touch test.epub I tried running tail -f on my calibre log file and nothing is being logged to the file when I try - what seems to be - a properly formatted command. When running the calibredb add command with improper login credentials, it does show failed login attempts, so that validates at least my logfile is being written to properly and my host address is right. Hope this helps in guiding me toward more things to try. Thank you again! |
12-05-2019, 01:43 AM | #4 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
First I suggest using --enable-local-write which dispenses with the need for usernames and passwords. And whch log is this the error log or the access log?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle PW3 5.9.6.1 ssh broken pipe leaves broken ssh | xception | Kindle Developer's Corner | 8 | 01-27-2019 10:23 AM |
Plugin error: IOError: [Errno 32] Broken pipe | stoduk | Development | 6 | 12-30-2015 07:14 AM |
ERROR: Unhandled exception: <b>IOError</b>:[Errno 32] Broken pipe | Martin77 | Calibre | 3 | 12-24-2015 07:50 AM |
Broken pipe issues | jasonfedelem | Library Management | 8 | 06-05-2015 07:34 AM |
another broken pipe | bambuko | Calibre | 7 | 02-15-2015 09:19 AM |