Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 08-17-2018, 08:10 AM   #1
dator
Member
dator began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
Unable to start calibre server

There is open thread to enable HTTPS on calibre server and I didn't want to spam it so I decided open this one.

I created self signed SSL certificate and when i try to start calibre server I get this error

Code:
xxxxx@xxxxxx:~$ sudo systemctl status calibre.service
● calibre.service - Calibre Service
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)

Aug 17 13:43:25 xxxxxx systemd[1]: Stopped Calibre Service.
Aug 17 13:43:44 xxxxxx systemd[1]: [/lib/systemd/system/calibre.service:12] Missing '='.
This happens when I add this two lines to calibre.service file

Code:
--ssl-certfile /etc/apache2/ssl/apache.crt \
--ssl-keyfile /etc/apache2/ssl/apache.key \
dator is offline   Reply With Quote
Old 08-18-2018, 08:30 AM   #2
jlosito
Junior Member
jlosito began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2018
Location: New Jersey, USA
Device: iPad
Can you post the rest of your service file?
jlosito is offline   Reply With Quote
Old 08-19-2018, 06:55 AM   #3
dator
Member
dator began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
Sure.


Code:
[Unit]
Description=Calibre Service
After=network.target

[Service]
Type=simple
User=xxxxxx
Group=xxxxxx

ExecStart=/usr/bin/calibre-server\
--max-opds-items=30\
--max-opds-ungrouped-items=100\
--port 8282 \
--log=/home/xxxxxx/calibre.log \
--enable-auth \
"/home/xxxxxx/xxxxxx"

--ssl-certfile /etc/apache2/ssl/apache_test.crt \
--ssl-keyfile /etc/apache2/ssl/apache_test.key \

[Install]
WantedBy=multi-user.target

Last edited by dator; 08-19-2018 at 06:57 AM.
dator is offline   Reply With Quote
Old 08-20-2018, 12:12 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You execstart directive is wrong. THe two lines need to be added to the rest of the options, not a tht end by themselves.
kovidgoyal is offline   Reply With Quote
Old 08-20-2018, 04:09 PM   #5
dator
Member
dator began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
Quote:
Originally Posted by kovidgoyal View Post
You execstart directive is wrong. THe two lines need to be added to the rest of the options, not a tht end by themselves.
Many thanks. This worked like charm.

One more question. When I connect to my library, web browser reports

Code:
https://library_ip_adress/port_number certificate does not have valid HTTPS certificate. This maybe caused by...
and so on. This is normal for self signed certificate?
dator is offline   Reply With Quote
Old 08-20-2018, 04:31 PM   #6
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by dator View Post
Code:
https://library_ip_adress/port_number certificate does not have valid HTTPS certificate. This maybe caused by...
and so on. This is normal for self signed certificate?
Yes, you will need to manually add and exception to the browser.

bernie
gbm is offline   Reply With Quote
Old 08-21-2018, 01:01 PM   #7
dator
Member
dator began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
Quote:
Originally Posted by gbm View Post
Yes, you will need to manually add and exception to the browser.

bernie
Would it be too much to ask how to do it?
dator is offline   Reply With Quote
Old 08-21-2018, 02:14 PM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by dator View Post
Would it be too much to ask how to do it?
Each browser is different, different versions of the same browsers are different. Just have to look it up in the help.

For example FireFox 61. You will have to follow he links.

Will led you to this page See Self-signed certificate.

bernie
gbm is offline   Reply With Quote
Old 08-29-2018, 03:53 AM   #9
Marx
Member
Marx began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2013
Device: Android phone
Or use letsencrypt certificate, it's free and authority signed
Marx is offline   Reply With Quote
Old 08-31-2018, 08:45 AM   #10
jlosito
Junior Member
jlosito began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2018
Location: New Jersey, USA
Device: iPad
Quote:
Originally Posted by Marx View Post
Or use letsencrypt certificate, it's free and authority signed
That's what I did. It's really easy to set up using the certbot cli tool, and I can verify that after setup you won't get that warning for the latest version of Firefox on Fedora 28. I used the standalone option because I don't have a proxy properly set up yet.
jlosito is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre server won't start, but why? sciurius Related Tools 5 02-11-2018 10:33 PM
Calibre server won't start! Moketa Calibre 6 05-24-2012 07:31 PM
Calibre server wont start ...help please StefTeamEdward Calibre 20 05-17-2010 12:05 PM
Calibre Unable to fetch Metadata from the server estrovichm Calibre 8 12-04-2009 01:02 AM
Unable to start Calibre after reinstall cuffy Calibre 2 03-26-2009 01:51 PM


All times are GMT -4. The time now is 06:31 PM.


MobileRead.com is a privately owned, operated and funded community.