Open alabre opened 4 years ago
What kind of database do you use? Do you see any error if you try to save a bookmark in the browser console?
Hi e-alfred, I do not see messages neither in the browser console, nor in the nextcloud logs (both logging with logging all levels). I also checked another logfile on the server without seeing anything happening when I create a bookmark or close the book.
I am running nextcloud 18.0.4 with PHP 7.3.16 mysql 10.2.31 and access it with chromium 83 (latest Archlinux release)
If I can provide more information, please let me know.
Cheers, Achim
Hello, I have the same problem! neither Bookmarks nor Annotations seem to be getting saved for epub documents. Nothing in the logfile either, as far as I can tell. I did test with 5-6 epub files but it's the same thing will all of them. In case that can be a hint, settings are not being saved either.
These are my specs:
Nextcloud 18.0.4 (hosted by ocloud.de) PHP: 7.2.24 Mysql: 5.7.30 I'm using the latest Firefox on MacOS
Also happy to troubleshoot further and provide more info.
I have the same problem.
Nextcloud 19 (latest docker image) mariaDB (latest docker image) Browser: Edge Chromium
Clicked a bit through a test epub and got those errors.
When I open the epub another tab opens with this url: MYDOMAIN/apps/epubreader/?file=%2Fremote.php%2Fwebdav%2Ftest.epub&type=application%2Fepub%2Bzip#epubcfi(/6/2[cover]!4/1:0)
Bookmarks and Annotations get lost on closing or reloading the tab.
Clicked a bit through a test epub and got those errors. hadn't thought about checking the console. Here's my output from a random epub file
Hi again,
In the browser console I find an error when I click on the bookmark icon to create it:
POST https://
Because the folder was not present, I created a folder /apps/epubreader/bookmark and the error was gone.
Next missing directory was .../bookmark/cursor. Next missing folder was apps/epubreader/preference
Then I stopped creating folders, because I guess they will lead to checksum problems at the next update.
So, maybe there are some dirs missing and not created in runtime or at installation?
Cheers, Achim
First of all, thank you for this awesome plugin.
I am running Nextcloud 20.0.2 on Ubuntu 20.04.1 with MariaDB 10.5
I have the same problem on my site. I can't save bookmarks or any user preferences. This errors showing in the browser console only and no errors on server logs.
I ask HestiaCP devs. for help here.. https://forum.hestiacp.com/t/nextcloud-the-server-responded-with-a-status-of-405/2152
Can you please find a fix or workaround for this issue?
Same issue for me.
XHRPOSThttps://nextcloud.viorsan.com/nextcloud/apps/epubreader/bookmark/cursor [HTTP/1.1 404 Not Found 10ms]
XHRPOSThttps://nextcloud.mydomain.com/nextcloud/apps/epubreader/bookmark/cursor [HTTP/1.1 404 Not Found 40ms]
XHRPOSThttps://nextcloud.mydomain.com/nextcloud/apps/epubreader/bookmark [HTTP/1.1 404 Not Found 3ms]
when I click save bookmark.
In addition on page open:
Content Security Policy: Параметры страницы заблокировали загрузку ресурса https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/titlepage.xhtml («base-uri»). epub.min.js:10:7662
Content Security Policy: Параметры страницы заблокировали загрузку ресурса https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/OEBPS/text/content.xhtml («base-uri»). epub.min.js:10:7662
This happens both in firefox 83.0 and chrome 87
Ubuntu 20.04 postgresql nextcloud 20
More research from my side:
I run nextcloud behind nginx reverse proxy because I have one public IP and a lot of services behind it (this is home setup). Nextcloud have it's own 3rd-leven domain name. Adding following to nginx's server section makes it possible to keep location between runs, bookmarks and notes also works at least for epub:
location /nextcloud/apps/epubreader/bookmark/cursor {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/bookmark/cursor;
}
location /nextcloud/apps/epubreader/bookmark/(.*)$ {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/bookmark/$1;
}
location /nextcloud/apps/epubreader/bookmark {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/bookmark;
}
location ~ /nextcloud/apps/epubreader/preference/default {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/preference/default;
}
full nextcloud-related server
section of nginx config is:
server {
listen 443 ssl;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security max-age=15768000;
ssl_certificate <removed_path_to_file>; # managed by Certbot
ssl_certificate_key <removed_pat_to_file>; # managed by Certbot
server_name nextcloud.mydomain.com;
access_log /var/log/nginx/access_nextcloud.log;
rewrite_log on;
error_log /var/log/nginx/error_nextcloud.log notice;
# trying to get epubreader to work
location ~ /.well-known/carddav {
return 301 https://nextcloud.mydomain.com/nextcloud/remote.php/dav;
}
location ~ /.well-known/caldav {
return 301 https://nextcloud.mydomain.com/nextcloud/remote.php/dav;
}
location ~ /.well-known/webfinger {
return 301 https://nextcloud.mydomain.com/nextcloud/public.php?service=webfinger;
}
location ~ /.well-known {
root /var/www/html/;
allow all;
}
location /nextcloud/apps/epubreader/bookmark/cursor {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/bookmark/cursor;
}
location /nextcloud/apps/epubreader/bookmark/(.*)$ {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/bookmark/$1;
}
location /nextcloud/apps/epubreader/bookmark {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/bookmark;
}
location ~ /nextcloud/apps/epubreader/preference/default {
return 308 https://nextcloud.mydomain.com/nextcloud/index.php/apps/epubreader/preference/default;
}
# NGINX usually only allows 1M per request.
client_max_body_size 100M;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://<nextcloud_vm_internel_ip>:80;
proxy_set_header X-Forwarded-Proto $scheme;
#proxy_hide_header Content-Security-Policy;
}
}
p.s. I wasn't able to enable pretty urls in nextcloud (sudo -u www-data php occ maintenance:update:htaccess reports success but nothing changes). p.p.s. I only worked 2 days with nextcloud. I'm not web developer, it's possible there is more correct solution for this problem (in fact I think that enabling pretty urls WILL fix this issue). If my "solution" contains security issues - please tell so.
Looks like this is rather old problem. See https://github.com/Yetangitu/owncloud-apps/issues/44 (it contains another possible fix, even more rude than mine, and some ideas why this could happen).
In my case, I solved this problem by manually moving the app folder from custom_apps/
to apps/
. I'm running NC22 php-fpm + nginx frontend.
I have to go root in order to do this (since the apps
folder has different owner), so it feels unsafe.
I hope this is useful information and I hope this issue could be resolved soon.
Turns out moving the folder to apps
solves nothing, it's my browser cookie that's causing my illusion.
I'm also having this problem. I don't think it is related to pretty urls.
I tried patch #42 , but it did not improve the situation.
I don't know exactly when this started being an issue because I haven't used this much lately.
I'm currently on nextcloud 23.06 with PHP7.4 and Postgresql 14
Hi there and thank you for this app! I installed the app today in a hosted environment. I can open an eBook and read it. I can also set a bookmark and see it in the bookmarks in the menu.
When I then close and reopen the book, the bookmark and annotations for the book are gone.
I am running Nextcloud 18.0.4 and installed your app via the nextcloud store.
Am I doing something wrong?
All the best and again thank you for this app! Achim