[Support] Linuxserver.io - COPS (Calibre OPDS PHP Server)


Recommended Posts

Been trying to get reverse proxy working for COPS. I just keep getting "404 Not Found".

 

Here's what I've coded:

 

  location /cops {
        include /config/nginx/proxy.conf;
        proxy_pass http://192.168.1.169:8083;
         auth_basic "Restricted";
        auth_basic_user_file /config/nginx/.htpasswd;
       }    
 

It all works if I'm on a local browser and go to http://192.168.1.169:8083 but it won't work if I am remote and go to https://url.name.of.server/cops

 

thanks

Link to comment
5 hours ago, PeteB said:

Been trying to get reverse proxy working for COPS. I just keep getting "404 Not Found".

 

Here's what I've coded:

 

  location /cops {
        include /config/nginx/proxy.conf;
        proxy_pass http://192.168.1.169:8083;
         auth_basic "Restricted";
        auth_basic_user_file /config/nginx/.htpasswd;
       }    
 

It all works if I'm on a local browser and go to http://192.168.1.169:8083 but it won't work if I am remote and go to https://url.name.of.server/cops

 

thanks

 

 

Ok made some progress here. change the proxy_pass statement to read proxy_pass http://192.168.1.169:8083/

 

NOTE: the trailing "/". This now works when I put in a URL of: https://urls_name_of_server/cops/ but doesn't work if I just put in https://urls_name_of_server/cops.

 

With the second one I just get a blank screen (not a 404 not found now). 

 

I seem to be able to download books ok as well now. 

  • Upvote 1
Link to comment
  • 1 month later...
11 hours ago, CHBMB said:

No, although that has been a feature request.

Sent from my LG-H815 using Tapatalk
 

I see, thanks. I saw in the calibre web thread that you guys had planned on releasing calibre web after 6.4 came out. Any word on that, and if it's as lightweight as COPS? Thanks!

Link to comment
  • 8 months later...

Does COPS support two-way sync of reading progress?

 

Also, bonus question: which app would I best use on Android to keep my device and server in-sync?

 

I know about Calibre Companion, but as far as I can tell a companion that doesn't read itself will always rely on the reader app relaying read progress to it......... I've been using computers long enough to know that mixing too many programs often tends to create a lot of friction and cases where you need to troubleshoot or stuff just isn't optimized... yadda yadda...

 

tl;dr: I think what I'm looking for is a CC-like app that will also be a good reader app. When reading with Moon+ I noticed it didn't save page progress nor bookmarks... kinda defeats the purpose of integrating syncing all that if you ask me and Moon+ is apparently what "everyone" and the CC makers themselves heavily focus on. Is this as good as it gets? Manually triggering "read progress: complete" on every book that I finish manually and if my Android device gets lost I have to figure out which books I had been reading, where I stopped, what I bookmarked, etc?

 

That's before even considering multi-device usage. Trust me, I really searched for option, but I cannot seem to find satisfying options and every app description I read talks all about what is possible but won't tell you about the little details... And as we all know... the devil is in the detail. :)

 

Sorry if this is kinda-hijacking the thread, but I'm fairly new to Calibre and I am not quite sure how specific this might be to COPS, so I figured I'd best ask in the most specific place that applies to me.

Link to comment
  • 3 months later...

I am having trouble using a reverse proxy with Cops:

 

Quote

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name cops.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /login;

        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_cops cops;
        proxy_pass https://$upstream_cops:80;
    }
}

 

cops.thumb.png.debd56786416f24ae4bbe2e1b1d68d6d.png

 

I have seen people having the same problem but couldn't find a solution that works for me.

 

Thank you for your input!

 

Link to comment
  • 4 months later...
On 9/6/2019 at 12:42 PM, dr_drei said:

I am having trouble using a reverse proxy with Cops:

 

 

cops.thumb.png.debd56786416f24ae4bbe2e1b1d68d6d.png

 

I have seen people having the same problem but couldn't find a solution that works for me.

 

Thank you for your input!

 

same problem here... does somebody already find a solution for this issue?

Link to comment
  • 11 months later...

Boot issue.   I had what appeared to be an array disk fail, so I restarted my system to get a clean start, but I can't get into Unraid because I'm being redirected to a COPS config issue (which is probably because the array isn't up).   

 

What can I do to get around this?  I'm looking in /config on my thumbdrive to hopefully comment something out, but don't see anything COPS related in there.  There is no php.ini on there that I can find.  It's obvious Calibre won't be running if the array is down.   I've never been able to successfully configure COPS but it hasn't stopped my system boots in the past.   

 

Running 6.9.0.rc-2

 

Please advise.

 

 

 

COPS CONFIGURATION CHECK

You've been redirected because COPS is not configured properly

Database error

Check if PHP version is correct

OK (7.3.25)

Check if GD is properly installed and loaded

OK

Check if Sqlite is properly installed and loaded

OK

Check if libxml is properly installed and loaded

OK

Check if Json is properly installed and loaded

OK

Check if mbstring is properly installed and loaded

OK

Check if intl is properly installed and loaded

OK

Check if Normalizer class is properly installed and loaded

OK

Check if the rendering will be done on client side or server side

Client side rendering

Check if Calibre database path is not an URL

OK

Check if Calibre database file exists and is readable

File /books/metadata.db not found, Please check

Value of $config['calibre_directory'] in config_local.php (Does it end with a '/'?)

 

Value ofopen_basedirin your php.ini

 

The access rights of the Calibre Database

 

Synology users please readthis

 

Note that hosting your Calibre Library in /home is almost impossible due to access rights restriction

Link to comment
4 hours ago, TimV said:

Boot issue.   I had what appeared to be an array disk fail, so I restarted my system to get a clean start, but I can't get into Unraid because I'm being redirected to a COPS config issue (which is probably because the array isn't up).   

Are you sure you're using the correct IP address to get into the UI (and port #)

 

If COPS is running (and returning an error), then the array is started.

Link to comment
  • 5 weeks later...
  • 2 years later...

Please amy I get some help - I previously had COPS working well, wth the cops basic authentication. Now when I try to configure it, I get a "This page isn't working. HTTP ERROR 500" error message.

If I comment out / remove the PHP pass line it works without any issue (and no password). If I set it to 'NULL;' it also gives the HTTP ERROR 500 message 

 

 

EDIT: Apparently I'm a complete idiot. I was adding the line to the mail config array, inside it's bracket.

 

Whoops

Edited by Monty
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.