Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 05-12-2014, 07:51 AM   #901
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
I have recently updated my Synology (DS110j) to DSM 5.0-4482.

I read somewhere that user authentication should now work out of the box. I decided to give it a try. And success!!! It works.

There is no longer any need for:
Code:
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule auth_digest_module modules/mod_auth_digest.so
.htaccess with:
Code:
<FilesMatch "\.php$">
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "User & password:"
AuthType Basic
Require valid-user
</FilesMatch>
worx!

[I did not test this on the synology package, I installed COPS from source.]

PS: I had some trouble editing the .htaccess file with vi. The last line of the file (</FilesMatch>) was not visible. I forgot to delete #. This caused a lot of and and once I figured this out.
mariosipad is offline   Reply With Quote
Old 05-12-2014, 11:42 AM   #902
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
@mariosipad

Great news ! And thanks you for upgrading

I may try also myself now that things seems almost good with DSM5.

I've added a empty line at the end of .htaccess it may help (will commit it shortly).

@tombo

About the kepub, it's true, I don't transform the epub to kepub like the Calibre plugin does so things may not work. I'll add a third value to the parameter to handle that case or fix the code in another way.

About the URL rewriting rule I really don't know what's wrong. I'll think about it.
vlad59 is offline   Reply With Quote
Advert
Old 05-19-2014, 05:50 AM   #903
Goner
Connoisseur
Goner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to behold
 
Posts: 55
Karma: 11628
Join Date: Jun 2011
Location: Rotterdam, Netherlands
Device: ARCHOS 80G9, Kobo Touch, Sony PRS-T1, BeBook Club S, Icarus Reader Go
Quote:
Originally Posted by mariosipad View Post
I read somewhere that user authentication should now work out of the box.
Was there a problem with using .htaccess then ?
I remember us posting (June last year) about that here. Only my Kobo has problems with basic authentication, but it worked fine on other devices.
Goner is offline   Reply With Quote
Old 05-19-2014, 08:02 AM   #904
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by Goner View Post
Was there a problem with using .htaccess then ?
I remember us posting (June last year) about that here. Only my Kobo has problems with basic authentication, but it worked fine on other devices.
The problem appeared only with DSM5.
vlad59 is offline   Reply With Quote
Old 05-19-2014, 05:44 PM   #905
Scoobydoofus
Junior Member
Scoobydoofus began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2011
Device: KindlePW + iDevices
Hi Vlad,

Just installed and configured COPS on my Mac Mini which I use as a server. Running Calibre's built in web server really slows down the computer so I'm really glad to be able to use your great software. I particularly like the ability to email books to my Kindle right from a browser, it's a brilliant feature.

Is there any way to get the email button to show in the list of books, instead of just in the book detail view? Could I replace one of the book formats with it?

Also, I found that I'm unable to download books using Chrome on iOS. It works fine in Safari, and in desktop Chrome. Any ideas as to why that may be?
Scoobydoofus is offline   Reply With Quote
Advert
Old 05-23-2014, 12:00 PM   #906
vlad59
Addict
vlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five wordsvlad59 can name that ebook in five words
 
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
Quote:
Originally Posted by Scoobydoofus View Post
Hi Vlad,

Just installed and configured COPS on my Mac Mini which I use as a server. Running Calibre's built in web server really slows down the computer so I'm really glad to be able to use your great software. I particularly like the ability to email books to my Kindle right from a browser, it's a brilliant feature.

Is there any way to get the email button to show in the list of books, instead of just in the book detail view? Could I replace one of the book formats with it?
Indeed it could help. I'll check if it can be easily done.

Quote:
Originally Posted by Scoobydoofus View Post
Also, I found that I'm unable to download books using Chrome on iOS. It works fine in Safari, and in desktop Chrome. Any ideas as to why that may be?
That is extremely strange, do you use a password protected catalog ?
vlad59 is offline   Reply With Quote
Old 05-24-2014, 04:27 PM   #907
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Quote:
Quote:
Originally Posted by Scoobydoofus
Also, I found that I'm unable to download books using Chrome on iOS. It works fine in Safari, and in desktop Chrome. Any ideas as to why that may be?

That is extremely strange, do you use a password protected catalog ?
In my experience Safari is one of a few browsers in iOS that can download from COPS. I have tried Chrome and others but none of them could download from COPS (haven't tried pdf's only epub and mobi). However the Dolphin browser was able to download from COPS.

I think its not an issue of COPS, but a limitation with the iOS browsers I tried.

Last edited by mariosipad; 05-24-2014 at 05:42 PM. Reason: added text about Dolphin browser
mariosipad is offline   Reply With Quote
Old 06-09-2014, 05:11 AM   #908
joshimosh
Junior Member
joshimosh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Device: kindle basic
503 - Service not available

Good morning,
since a couple of days I get "503 - Service not available" whenever I try to access my calibre library. I am using COPS for quite some time and love it, but seemingly out of the blue it gives me the message above.
My webserver is lighttpd on a Raspberry Pi with wheezy (Debian), the calibre stuff resides on a Synology NAS. Up to now no issues.
My suspicion is an update of php5 a few days ago. After that (my best guess) I see this 503 message.
Php is not my cup of tea, so I am asking for suggestions how to pin down the problem. Can I switch on some sort of trace or stuff like that to get an idea what happens ?
I am pretty sure that there is no issue with access rights, since everything is rwxrwxrwx (it is intranet only, access from outside only via VPN tunnel). And a couple of days earlier everything worked smoothly.

Any help or suggestions are highly welcome.

Thanks in advance
Joshi
joshimosh is offline   Reply With Quote
Old 06-09-2014, 08:03 AM   #909
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
@Joshi

Do you get "503 - Service not available" only with cops (http://<ip-raspberry-pi>/cops) or also with other webites on your Raspberry Pi (http://<ip-raspberry-pi>)?

If not, you could try http://<ip-raspberry-pi>/cops/checkconfig.php

Have you restarted your webserver and/or your Raspberry Pi?
Run "apt-get update && apt-get upgrade" again.
mariosipad is offline   Reply With Quote
Old 06-09-2014, 08:23 AM   #910
joshimosh
Junior Member
joshimosh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Device: kindle basic
Hi mariosipad,
thanks a lot for your quick reaction.
I get it only with cops. If I address http://<ip-address-raspberry-pi> then I see the standard greeting page of the lighttpd server.
Yes, I have restarted it. I do routinely a reboot every morning at 04:00

I will try apt-get update and upgrade again, but I doubt it will help.
Anyway, I'll try and report back.
Again, thank you for your help.
Cheers
Joshi
joshimosh is offline   Reply With Quote
Old 06-09-2014, 08:27 AM   #911
joshimosh
Junior Member
joshimosh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Device: kindle basic
Hi mariosipad,
did apt-get update and upgrade, then a reboot - no change, still 503.

Cheers
Joshi
joshimosh is offline   Reply With Quote
Old 06-09-2014, 09:58 AM   #912
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
what if you make this file:
Code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>
and save it as test.php in the www (or html) directory of lighttpd.

Then http://<ip-raspberry-pi>/test.php

Is there any output?
mariosipad is offline   Reply With Quote
Old 06-09-2014, 01:43 PM   #913
joshimosh
Junior Member
joshimosh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Device: kindle basic
mariosipad,
thank you for not giving up ;-)
Interestingly enough http://<ip-raspberry-pi>/test.php results in a 503 message as well.
Since I have another Raspi (which is set up rather similarily, but not identical to the other) with lighttpd as well, I get the same result.
Something seems to be wrong with the updated php5 - could that be ?
But it is odd that the same problem shows up on both Radpis. This would sort of exclude that one update due to some glitch went wrong. Same glitch at another time on another Raspi ? Pretty unlikely.
First thing tomorrow morning is to do a roll-back to the version before the update and see if the problem is not there (which is what I expect) - unless you have another idea ...

Thank you
Cheers
Joshi
joshimosh is offline   Reply With Quote
Old 06-10-2014, 04:46 AM   #914
joshimosh
Junior Member
joshimosh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Device: kindle basic
So I did a roll-back to the previous version and 503 was gone - so my suspicion was correct.
Then I did apt-get update and upgrade and a bunch of new versions showed up, amongst them a few related to php5. I did the upgrade et voilà my "friend" 503 was back again.
Now I will ask my friend Google how to upgrade but exclude certain packets from the upgrade.
Sort of funny that no one else but me seems to be affected ...
Anyway, thanks again for your suggestions.
Have a nice one
Joshi
joshimosh is offline   Reply With Quote
Old 06-10-2014, 05:54 AM   #915
joshimosh
Junior Member
joshimosh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2013
Device: kindle basic
For the benefit of those who will encounter the same problem: reading the error logs helps a lot.
In my case it said: Permision denied /tmp/php5-fpm.sock

A look at it showed that the owner is root and access is rw-rw----, so lighttpd could not access it. Changing to rw-rw-rw- did the trick.
Now need to check why the hell the access right have changed after the upgrade - but this is not a topic for this thread.
Thanks to mariosipad for his input.
Cheers
Joshi
joshimosh is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre OPDS server with windows apps? nickdma Related Tools 10 03-03-2024 02:53 PM
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 5 12-24-2015 10:16 PM
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 08:18 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 06:14 AM
Calibre Command Line usage with PHP artoros Related Tools 13 07-01-2010 09:57 AM


All times are GMT -4. The time now is 12:03 AM.


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