seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

Synology NAS with arm64 #516

Open Valek626 opened 2 years ago

Valek626 commented 2 years ago

Hello, I'm just starting to play around with my Synology, I managed to install docker and portainer, I have calibre-web running, but after installing cops I receive the error nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use) I can't set ports with -p because I have to use docker in "host" mode, due to arm64 version limits, if I understood correctly. So, can someone help me to set the right ports for cops? I tried to change ports in container settings but whitout success 🙄 Thank you! 🤗 Valeria

marioscube commented 2 years ago

You have probably fixed it by now? Or not because of docker limitations.

You could try to build COPS image yourself from a dockerfile. And set NGINX to listen on other port than 80.

As NGINX and I do not work together I cannot help you there..

Valek626 commented 2 years ago

No, I haven't! Thank you for your help: I'll try! :) Cheers, v.

marioscube commented 2 years ago

Hmmmm, if you stop calibre-web and start COPS, do you still get that error? COPS and calibe-web are, to an end-user, the same program (not under the hood).

Do you want an efficient utilitatian program: COPS Do you want eye-candy that works: calibre-web

If your client is on mobile, an e-reader or on a tablet I would use COPS, if the client is on the desktop go for calibre-web.

PS:

I can't set ports with -p because I have to use docker in "host" mode, due to arm64 version limits

Can you point me to a source??

Valek626 commented 2 years ago

Yes, I installed and runned cops after stopping calibre-web, I'd like to use COPS for his super fast interface, in particular from mobile device and my onyx boox readers 😊 I would use calibre-web to add ebooks from remote, mostly.

You can see some info here, for example, about synology arm limits https://wiki.servarr.com/docker-arm-synology (yes, I know, I should buy a serious NAS 😅)

Thank you! 🤗

cheers, v.

marioscube commented 2 years ago

Other option:

Install COPS as a website (use apache2 not NGINX unless you know what you are doing) by unzipping the zip in ../web/

If you want to use calibre-web turn off webserver. If you want to use COPS docker stop calibre-web an turn on webserver.

To ad e-books I use calibre (NOT calibre-web) on my desktop then synchronise (rsync?) or copy the databases to the server (in your case a Synology). So I always have a backup of the database and the e-books.

Valek626 commented 2 years ago

Good idea, thank you! 👍 Yes, you're right about adding and manage books on your desktop, it would be the best solution (and suggested by calibre developer, too) but I really like editing and managing my loved ebooks on my tablet or phone... at moment I have around 11000 books 😅 so when I have time I like organizing them, maybe from the beach 😉

marioscube commented 2 years ago

If you have so many e-books (nice collection!) make sure you have a backup! Finding an redownloading them will be a pain in the glutus maximux ;-)

SylvainDx commented 2 years ago

I was maybe in a similar situation. And I put my Calibre db on a nas share and access it from different devices (windows or linux) .... I ruin the db several times. Now I put a docker with the full Calibre version on the nas. I can access it from a browser from anywhere with my tailscale vpn. And I use cops to access it and recover the books

Valek626 commented 2 years ago

thank you SylvainDx, I'll investigate! and I messed up my db several times, too 😅 (but I have a backup 😉) cheers, v.

SylvainDx commented 2 years ago

For information I use : https://github.com/linuxserver/docker-calibre you can set a funny port to this image and keep the 80 for Cops

Valek626 commented 2 years ago

Thank you again. Yesterday I tried exactly that container, but on my NAS is terribly slow, quite unusable 🙁 maybe because I have so many books, I don't know...

SylvainDx commented 2 years ago

What's your NAS version ? i run it on a 716+ si I can't use the lastest build but it works fine. My DB is also around 11k ebooks so I don't think the size realy matter

Valek626 commented 2 years ago

DS220j with a wonderful Realtek RTD1296 4-core 1.4 GHz and 512 MB DDR4 🤣 🙁 your is definitely better with Intel Celeron and 2gb RAM... wow, I'd like to compare our collections 😍 but mine is mainly in Italian...

SylvainDx commented 2 years ago

And mine in french ;) Yes the 220J may be a little short for this ... at least on the memory.

marioscube commented 2 years ago

Well I only have a DS-110j (single core and almost no RAM) for COPS and it works, slow.........