Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50094

Error when running calibredb from Cron - Login related I think

$
0
0
Hi All,

I've been using


So I've installed Calibre on a Rocky Linux box and wanted to have an Incoming directory on the server, so I can drop any new books there and have a CRON job run to pick them up.
This works, but only for a while and then I get an Server 500 error.

Searching this seems to show this is a authentication issue, but I have the correct username/password in the command.

When it does start failing, I log onto the web based GUI, on port 8080, and it starts working.

So although the username/password is in the command, it doesn't work until I actually log into the server.

Cron line:
Code:

*/5 * * * * calibredb add /home/incoming_books/ -r --with-library http://localhost:8080#calibre-library --username <username> --password <password> && rm -r /home/incoming_books/*
UserID/Password and Path have been redacted.

This is the output I get:
Code:

Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "site.py", line 45, in <module>
  File "site.py", line 41, in main
  File "calibre/db/cli/main.py", line 250, in main
  File "calibre/db/cli/main.py", line 40, in run_cmd
  File "calibre/db/cli/cmd_add.py", line 474, in main
  File "calibre/db/cli/cmd_add.py", line 268, in do_add
  File "calibre/db/cli/main.py", line 182, in run
  File "calibre/db/cli/main.py", line 204, in remote_run
  File "mechanize/_mechanize.py", line 241, in open_novisit
  File "mechanize/_mechanize.py", line 313, in _mech_open
mechanize._response.httperror_seek_wrapper: HTTP Error 500: Internal Server Error

What am I doing wrong or is this not something I can easily do?

Paul

Viewing all articles
Browse latest Browse all 50094

Latest Images

Trending Articles



Latest Images