![]() |
#901 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 Code:
<FilesMatch "\.php$"> AuthUserFile /path/to/.htpasswd AuthGroupFile /dev/null AuthName "User & password:" AuthType Basic Require valid-user </FilesMatch> ![]() [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 ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#902 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#903 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
#904 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
|
![]() |
![]() |
![]() |
#905 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#906 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Quote:
That is extremely strange, do you use a password protected catalog ? |
|
![]() |
![]() |
![]() |
#907 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#908 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#909 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#910 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#911 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#912 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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> Then http://<ip-raspberry-pi>/test.php Is there any output? |
![]() |
![]() |
![]() |
#913 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#914 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#915 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
Tags |
calibre opds, dns, kobo aura, synology |
|
![]() |
||||
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 |