-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COPS for Synology; package 1.0.0RC2-3; open() failed downloading #354
Comments
Are you trying to download in a browser like firefox or to an e-reader like a kobo? |
hi marioscube, |
Do you have url_rewriting enabled in config_local.php? If 1 then set 0.
|
+1 for marios's answer. URL rewriting with latest DSM need some tweaking. |
@seblucas may you share tweaking for latest DSM ? |
I never done it myself, I just remember seeing one page about that. Still I don't remember DSM's version. I never used COPS on DSM (except to test some installation) so I never had to look for answers ;) |
I am getting a similar error (a 404) but mine looks like my cops install is in /volume1/web/cops/ and the calibre folder is at /volume1/web/Calibre/ and configcheck is happy. (DSM 6.2-23739 up=to=date) |
Howdy ! Any update on this ? YOS, |
Just when you start asking ... I had a breakthrough. With this additional config for NGINX in /etc/nginx/conf.d/www.cops.conf : location ~ ^/cops/download/ { A call to ; http://XXX.XXX.XXX.XXX/cops/download//BUCH. Will be translated to : http://XXX.XXX.XXX.XXX/cops/fetch.php?id=&type= Which is exactly what I need. ... unlesss I start calling my library with the virtual hostname : I added : location ~ ^/download/ { to the file mentioned above and called: https://ebooks.domain/download//BUCH. but it results in an 404: 2020/05/26 18:05:12 [error] 1097#1097: *6021 open() "/volume1/web/cops/download//BUCH." failed (2: No such file or directory), I think, the second one is a subsequent error, which can be ignored. SSL config and domain resulution work like charm. Any ideas ? |
I'm a fellow user and I have COPS working the way I want it to, but ... I can't use Synology DSM 6 (my device only works with DSM 5) to help you test. Just 1 or 2 questions:
|
Howdy ! I just yesterday download the latest cops 1.1.3. $config['cops_use_url_rewriting'] = "1"; That is all I did to my cops config. YOS, |
Do you need url_rewriting? Can you check if mod_rewrite is enabled on your Synology? I will try do do some tests with my old, old Synology (DS110j) with DSM 5.2 tomorrow. |
I just confirmed what I suspected yesterday: I cannot reproduce your error with or without $config['cops_use_url_rewriting'] = "1"; But, I'm on DSM 5 not 6. It might make a difference. .......And I use Apache (httpd) and you NGINX. Another difference. However the creator of COPS uses (?) NGINX himself so it should just work. Just a thought ..... what are the permissions on the library directories and the file inside it? For testing set the relevant permissions in the calibre library to 777. |
Hello marioscube, |
Got it : You need to find in /etc/nginx/app.d/server.webstation-vhost.conf your vhost and look for : include /usr/local/etc/nginx/conf.d/<LARGE NUMBER/user.conf*; Now copy the file /etc/nginx/conf.d/www.cops.conf I mentiond earlier to /usr/local/etc/nginx/conf.d//user.conf.cops (or make a link ...) and reload your nginx config. Now it is working ! Thanks for your patience ! |
Great! As I use apache I will not be using your solution. Nevermind a lot of deleted text. I forgot something on my new Debian setup.. Enjoy COPS (and the fine weather at leat over here ;-) ) |
Hi everybody.
I'm running DMS 6.1.1-15101 Update 2 on a NAS-Synology.
Installed COPS package 1.0.0RC2-3 from SynoCommunity.
I'm able to browse all ebooks but i can't download ebooks.
Downloading i get the following errror
2017/05/17 23:48:43 [error] 10040#10040: *210 open() "/var/services/web/cops/download/3/title.pdf" failed (2: No such file or directory), client: 192.168.1.101, server: , request: "GET /cops/download/3/A+40+anni+-+Sconosciuto.pdf HTTP/1.1", host: "nas-camker", referrer: "http://servername/cops/index.php?page=3&id=5" 2017/05/17 23:48:43 [error] 10040#10040: *212 open() "/var/services/web/missing" failed (2: No such file or directory), client: 192.168.1.101, server: , request: "GET /missing HTTP/1.1", host: "nas-camker", referrer: "http://servername/cops/download/3/titolo.pdf"
is a configuration problem ? (what's file have to configure? how?)
is a permission problem ?
is a php problem ? (i tried to find php .log on NAS-Synology but i was not able to find)
Thanks in advance for any help or sugestions.
Regards,
Stefano
The text was updated successfully, but these errors were encountered: