Skip to content
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

[bug] Kebupify permission denied and unable to download books #138

Open
Jondeli opened this issue Nov 26, 2024 · 3 comments
Open

[bug] Kebupify permission denied and unable to download books #138

Jondeli opened this issue Nov 26, 2024 · 3 comments

Comments

@Jondeli
Copy link

Jondeli commented Nov 26, 2024

Describe the bug
I have Kobo ereader that I try to get to work with My CWA. The library syncs OK but I am not able to download any of the books. Nor does the covers load on the device. When I try to download the book, it says "Download failed" on the device and on CWA logs it says "{cps.kobo:338} Kobo library metadata request received for book".

If I try to manually convert the ebup to kepub in CWA, the logs say "ERROR {cps.tasks.convert:212} Kepubify-converter failed: [Errno 13] Permission denied: '/usr/bin'". I have setup the kepubify path in admin settings to /usr/bin. When I initially setup the sync, the logs were filled with the permission error for kebupify.

To Reproduce
Steps to reproduce the behavior:

  1. Convert book to kepub.

Expected behavior
Convert working and device able to download books.

Screenshots
If applicable, add screenshots to help explain your problem.

Configuration(please complete the following information):
Docker compose setup from the example file in the repo.

@Jondeli
Copy link
Author

Jondeli commented Nov 26, 2024

I added the kebupify pah to "/usr/bin/kepubify" and the complain stopped. But it still does not work, does not download covers nor the books. It seems this is duplicate with #66
that says it is fixed but I have the latest version and it is not working.

@Jondeli Jondeli changed the title [bug] Kebupify permission denied [bug] Kebupify permission denied and unable to download books Nov 26, 2024
@Jondeli
Copy link
Author

Jondeli commented Nov 26, 2024

Update, took a while but I got it to work.

The problem was that the books synced fine but was not able to download the book or the cover. I changed from Kobo settings that it does not sync notebooks (kobo libra color) and I also had to put the kepubify binary full path to "/usr/bin/kepubify" for conversion to work. Then I had to put "Server External Port (for port forwarded API calls" in Basic Configuration -> Feature Configuration to 8084 instead of the default 8083. My CWA config is default for network ports so it exposes 8084 on host side and 8083 in docker but for some reason the download does not work when the port it set to 8083. The network traffic is forwarded correctly to the port but it is not able to download over it (Sync says OK on Kobo and CWA logs shows everything OK). After changing Server External Port it works and covers work too.

I did also take SSL into use but I doubt that has anything to do with it now working as it did not work when I implemented it.

My instance is NOT exposed to internet as I use it only locally so SSL it bit useless but as I already had domain internally in other use it was good to try.

@swotai
Copy link

swotai commented Dec 10, 2024

I'm still seeing this issue, the issue on my side is even before sync, I still can't convert any of my epub to kepub.
The fact that it's stating permission denied /usr/bin is curious, as it's not even complaining about permission of the epub/book file but seems rather for the kepubify files?

I tried changing the path from /usr/bin to /usr/bin/kepubify and now it seems to work. So perhaps need to update the default path of kepubify from /usr/bin to /usr/bin/kepubify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants