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

kobocloud re-download the books #181

Open
zxcvcxz112 opened this issue Jul 5, 2024 · 2 comments
Open

kobocloud re-download the books #181

zxcvcxz112 opened this issue Jul 5, 2024 · 2 comments

Comments

@zxcvcxz112
Copy link

I installed the latest version of KoboCloud on my Kobo Libra Colour. Everything worked fine; I could sync and download books. However, after I rebooted the device, all my book data was lost. KoboCloud would re-download the books from Nextcloud. If I had deleted the book from Nextcloud, KoboCloud would not show the book. I checked the .add library and found that every time I rebooted the device, all the downloaded books became 0KB. KoboCloud would delete these book data and re-download them from Nextcloud. I can't find the reason why.ps:i don't add REMOVE_DELETED

@MasikEzisen
Copy link

MasikEzisen commented Jul 6, 2024

Same on Kobo Clara BW from Google Drive. Logs:

2024-07-06_21:56:01 waiting for internet connection
NickelDBus found
/mnt/onboard/.add/kobocloud/Library:
total 0
-rwxr-xr-x 1 0 0 0 2024-07-05 01:56:38 +0200 (Puckboys_01)Eden_Finley__Saxon_James-Egotistical_Puckboy.epub
-rwxr-xr-x 1 0 0 0 2024-07-06 20:28:02 +0200 01
-Outcast.epub
-rwxr-xr-x 1 0 0 0 2024-07-06 19:58:22 +0200 01
-Primal_Sin.epub
-rwxr-xr-x 1 0 0 0 2024-07-06 19:58:24 +0200 02
-Eternal_Sin.epub
-rwxr-xr-x 1 0 0 0 2024-07-06 19:58:24 +0200 03
-Infernal_Sin.epub
-rwxr-xr-x 1 0 0 0 2024-07-06 13:56:44 +0200 Eden_Finley__Saxon_James
-Irresponsible_Puckboy(Puckboys_Book_2).epub
Reading # Add your URLs to this file
Comment found
Reading # Remove the # from the following line to uninstall KoboCloud
Comment found
Reading #UNINSTALL
Comment found
Reading # Remove the # from the following line to delete files when they are no longer on the remote server
Comment found
Reading #REMOVE_DELETED
Comment found
Reading https://drive.google.com/drive/folders/1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL?usp=sharing
Getting https://drive.google.com/drive/folders/1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL?usp=sharing
Getting https://drive.google.com/drive/folders/1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL?usp=sharing
1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL
File info: (Puckboys 01) Eden Finley_ Saxon James - Egotistical Puckboy.epub|1EO5SlOBXffkRCTVGZe4NLjgxbN16WumS
File code: 1EO5SlOBXffkRCTVGZe4NLjgxbN16WumS
File name: (Puckboys 01) Eden Finley_ Saxon James - Egotistical Puckboy.epub
Download: /usr/local/kobocloud/curl --cacert "/usr/local/kobocloud/ca-bundle.crt" -k --silent -C - -L --create-dirs --remote-time -o "/mnt/onboard/.add/kobocloud/Library/(Puckboys_01)Eden_Finley__Saxon_James-Egotistical_Puckboy.epub" "https://drive.google.com/uc?id=1EO5SlOBXffkRCTVGZe4NLjgxbN16WumS&export=download" -v
Status: 0
Output:
cat: can't open '/tmp/kobo-remote-file-tmp.log': No such file or directory
grep: /tmp/kobo-remote-file-tmp.log: No such file or directory
Remote file information:
Status code:
getRemoteFile ended
File info: 01
-Outcast.epub|170U9jA-mTfYD657BNeMzzlfZANX-2PAY
File code: 170U9jA-mTfYD657BNeMzzlfZANX-2PAY
File name: 01
-Outcast.epub
Download: /usr/local/kobocloud/curl --cacert "/usr/local/kobocloud/ca-bundle.crt" -k --silent -C - -L --create-dirs --remote-time -o "/mnt/onboard/.add/kobocloud/Library/01
-Outcast.epub" "https://drive.google.com/uc?id=170U9jA-mTfYD657BNeMzzlfZANX-2PAY&export=download" -v
Status: 0
Output:
cat: can't open '/tmp/kobo-remote-file-tmp.log': No such file or directory
grep: /tmp/kobo-remote-file-tmp.log: No such file or directory
grep: /tmp/kobo-remote-file-tmp.log: No such file or directory
rm: can't remove '/tmp/kobo-remote-file-tmp.log': No such file or directory
Remote file information:
Status code:
getRemoteFile ended
File info: 01
-Primal_Sin.epub|1zSZnO1QjD1JDQPwQfQFUmnCBiWdXTAOx
File code: 1zSZnO1QjD1JDQPwQfQFUmnCBiWdXTAOx
File name: 01
-Primal_Sin.epub
Download: /usr/local/kobocloud/curl --cacert "/usr/local/kobocloud/ca-bundle.crt" -k --silent -C - -L --create-dirs --remote-time -o "/mnt/onboard/.add/kobocloud/Library/01
-_Primal_Sin.epub" "https://drive.google.com/uc?id=1zSZnO1QjD1JDQPwQfQFUmnCBiWdXTAOx&export=download" -v
Status: 0
Output:

  • Trying 142.250.180.206...
  • TCP_NODELAY set
  • Connected to drive.google.com (142.250.180.206) port 443 (#0)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /usr/local/kobocloud/ca-bundle.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
    } [5 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
    { [102 bytes data]
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
    { [6252 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    { [147 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
    { [4 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    } [70 bytes data]
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
    } [16 bytes data]
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
    { [1 bytes data]
  • TLSv1.2 (IN), TLS handshake, Finished (20):
    { [16 bytes data]
  • SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=*.google.com
  • start date: Jun 13 15:27:14 2024 GMT
  • expire date: Sep 5 15:27:13 2024 GMT
  • issuer: C=US; O=Google Trust Services; CN=WR2
  • SSL certificate verify ok.
    } [5 bytes data]

GET /uc?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download HTTP/1.1
Host: drive.google.com
User-Agent: curl/7.61.0
Accept: /

{ [5 bytes data]
< HTTP/1.1 303 See Other
< Content-Type: application/binary
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: Mon, 01 Jan 1990 00:00:00 GMT
< Date: Sat, 06 Jul 2024 19:56:13 GMT
< Location: https://drive.usercontent.google.com/download?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download
< Strict-Transport-Security: max-age=31536000
< Cross-Origin-Opener-Policy: same-origin
< Accept-CH: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-WoW64, Sec-CH-UA-Form-Factors, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version
< Content-Security-Policy: require-trusted-types-for 'script';report-uri //DriveUntrustedContentHttp/cspreport
< Content-Security-Policy: script-src 'nonce-Pl_al58iLYHr-Ava03gANQ' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /
/DriveUntrustedContentHttp/cspreport;worker-src 'self'
< Permissions-Policy: ch-ua-arch=, ch-ua-bitness=, ch-ua-full-version=, ch-ua-full-version-list=, ch-ua-model=, ch-ua-wow64=, ch-ua-form-factors=, ch-ua-platform=, ch-ua-platform-version=*
< Server: ESF
< Content-Length: 0
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< X-Content-Type-Options: nosniff
< Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<

  • Connection #0 to host drive.google.com left intact
  • Issue another request to this URL: 'https://drive.usercontent.google.com/download?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download'
  • Trying 142.251.39.33...
  • TCP_NODELAY set
  • Connected to drive.usercontent.google.com (142.251.39.33) port 443 (Is this still working with kobo aura H2O ? #1)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /usr/local/kobocloud/ca-bundle.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
    } [5 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
    { [102 bytes data]
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
    { [4079 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    { [148 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
    { [4 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    } [70 bytes data]
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
    } [16 bytes data]
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
    { [1 bytes data]
  • TLSv1.2 (IN), TLS handshake, Finished (20):
    { [16 bytes data]
  • SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=*.usercontent.google.com
  • start date: Jun 13 16:34:54 2024 GMT
  • expire date: Sep 5 16:34:53 2024 GMT
  • issuer: C=US; O=Google Trust Services; CN=WR2
  • SSL certificate verify ok.
    } [5 bytes data]

GET /download?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download HTTP/1.1
Host: drive.usercontent.google.com
User-Agent: curl/7.61.0
Accept: /

Remote file information:
Status code: /download?id=1tLKMMn4VDHcGG8seeJ3l-429

@zxcvcxz112
Copy link
Author

Same on Kobo Clara BW from Google Drive. Logs:

2024-07-06_21:56:01 waiting for internet connection NickelDBus found /mnt/onboard/.add/kobocloud/Library: total 0 -rwxr-xr-x 1 0 0 0 2024-07-05 01:56:38 +0200 (Puckboys_01)Eden_Finley__Saxon_James-Egotistical_Puckboy.epub -rwxr-xr-x 1 0 0 0 2024-07-06 20:28:02 +0200 01-Outcast.epub -rwxr-xr-x 1 0 0 0 2024-07-06 19:58:22 +0200 01-Primal_Sin.epub -rwxr-xr-x 1 0 0 0 2024-07-06 19:58:24 +0200 02-Eternal_Sin.epub -rwxr-xr-x 1 0 0 0 2024-07-06 19:58:24 +0200 03-Infernal_Sin.epub -rwxr-xr-x 1 0 0 0 2024-07-06 13:56:44 +0200 Eden_Finley__Saxon_James-Irresponsible_Puckboy(Puckboys_Book_2).epub Reading # Add your URLs to this file Comment found Reading # Remove the # from the following line to uninstall KoboCloud Comment found Reading #UNINSTALL Comment found Reading # Remove the # from the following line to delete files when they are no longer on the remote server Comment found Reading #REMOVE_DELETED Comment found Reading https://drive.google.com/drive/folders/1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL?usp=sharing Getting https://drive.google.com/drive/folders/1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL?usp=sharing Getting https://drive.google.com/drive/folders/1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL?usp=sharing 1TUULL3vF-WYqRmC2Ltl_FYsT-dIDx2aL File info: (Puckboys 01) Eden Finley_ Saxon James - Egotistical Puckboy.epub|1EO5SlOBXffkRCTVGZe4NLjgxbN16WumS File code: 1EO5SlOBXffkRCTVGZe4NLjgxbN16WumS File name: (Puckboys 01) Eden Finley_ Saxon James - Egotistical Puckboy.epub Download: /usr/local/kobocloud/curl --cacert "/usr/local/kobocloud/ca-bundle.crt" -k --silent -C - -L --create-dirs --remote-time -o "/mnt/onboard/.add/kobocloud/Library/(Puckboys_01)Eden_Finley__Saxon_James-Egotistical_Puckboy.epub" "https://drive.google.com/uc?id=1EO5SlOBXffkRCTVGZe4NLjgxbN16WumS&export=download" -v Status: 0 Output: cat: can't open '/tmp/kobo-remote-file-tmp.log': No such file or directory grep: /tmp/kobo-remote-file-tmp.log: No such file or directory Remote file information: Status code: getRemoteFile ended File info: 01-Outcast.epub|170U9jA-mTfYD657BNeMzzlfZANX-2PAY File code: 170U9jA-mTfYD657BNeMzzlfZANX-2PAY File name: 01-Outcast.epub Download: /usr/local/kobocloud/curl --cacert "/usr/local/kobocloud/ca-bundle.crt" -k --silent -C - -L --create-dirs --remote-time -o "/mnt/onboard/.add/kobocloud/Library/01-Outcast.epub" "https://drive.google.com/uc?id=170U9jA-mTfYD657BNeMzzlfZANX-2PAY&export=download" -v Status: 0 Output: cat: can't open '/tmp/kobo-remote-file-tmp.log': No such file or directory grep: /tmp/kobo-remote-file-tmp.log: No such file or directory grep: /tmp/kobo-remote-file-tmp.log: No such file or directory rm: can't remove '/tmp/kobo-remote-file-tmp.log': No such file or directory Remote file information: Status code: getRemoteFile ended File info: 01-Primal_Sin.epub|1zSZnO1QjD1JDQPwQfQFUmnCBiWdXTAOx File code: 1zSZnO1QjD1JDQPwQfQFUmnCBiWdXTAOx File name: 01-Primal_Sin.epub Download: /usr/local/kobocloud/curl --cacert "/usr/local/kobocloud/ca-bundle.crt" -k --silent -C - -L --create-dirs --remote-time -o "/mnt/onboard/.add/kobocloud/Library/01-_Primal_Sin.epub" "https://drive.google.com/uc?id=1zSZnO1QjD1JDQPwQfQFUmnCBiWdXTAOx&export=download" -v Status: 0 Output:

  • Trying 142.250.180.206...
  • TCP_NODELAY set
  • Connected to drive.google.com (142.250.180.206) port 443 (#0)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /usr/local/kobocloud/ca-bundle.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
    } [5 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
    { [102 bytes data]
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
    { [6252 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    { [147 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
    { [4 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    } [70 bytes data]
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
    } [16 bytes data]
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
    { [1 bytes data]
  • TLSv1.2 (IN), TLS handshake, Finished (20):
    { [16 bytes data]
  • SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=*.google.com
  • start date: Jun 13 15:27:14 2024 GMT
  • expire date: Sep 5 15:27:13 2024 GMT
  • issuer: C=US; O=Google Trust Services; CN=WR2
  • SSL certificate verify ok.
    } [5 bytes data]

GET /uc?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download HTTP/1.1
Host: drive.google.com
User-Agent: curl/7.61.0
Accept: /

{ [5 bytes data] < HTTP/1.1 303 See Other < Content-Type: application/binary < Cache-Control: no-cache, no-store, max-age=0, must-revalidate < Pragma: no-cache < Expires: Mon, 01 Jan 1990 00:00:00 GMT < Date: Sat, 06 Jul 2024 19:56:13 GMT < Location: https://drive.usercontent.google.com/download?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download < Strict-Transport-Security: max-age=31536000 < Cross-Origin-Opener-Policy: same-origin < Accept-CH: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-WoW64, Sec-CH-UA-Form-Factors, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version < Content-Security-Policy: require-trusted-types-for 'script';report-uri //DriveUntrustedContentHttp/cspreport < Content-Security-Policy: script-src 'nonce-Pl_al58iLYHr-Ava03gANQ' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri //DriveUntrustedContentHttp/cspreport;worker-src 'self' < Permissions-Policy: ch-ua-arch=, ch-ua-bitness=, ch-ua-full-version=, ch-ua-full-version-list=, ch-ua-model=, ch-ua-wow64=, ch-ua-form-factors=, ch-ua-platform=, ch-ua-platform-version=* < Server: ESF < Content-Length: 0 < X-XSS-Protection: 0 < X-Frame-Options: SAMEORIGIN < X-Content-Type-Options: nosniff < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 <

  • Connection #0 to host drive.google.com left intact
  • Issue another request to this URL: 'https://drive.usercontent.google.com/download?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download'
  • Trying 142.251.39.33...
  • TCP_NODELAY set
  • Connected to drive.usercontent.google.com (142.251.39.33) port 443 (Is this still working with kobo aura H2O ? #1)
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength
  • successfully set certificate verify locations:
  • CAfile: /usr/local/kobocloud/ca-bundle.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS header, Certificate Status (22):
    } [5 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
    } [512 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
    { [102 bytes data]
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
    { [4079 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
    { [148 bytes data]
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
    { [4 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
    } [70 bytes data]
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
    } [1 bytes data]
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
    } [16 bytes data]
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
    { [1 bytes data]
  • TLSv1.2 (IN), TLS handshake, Finished (20):
    { [16 bytes data]
  • SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=*.usercontent.google.com
  • start date: Jun 13 16:34:54 2024 GMT
  • expire date: Sep 5 16:34:53 2024 GMT
  • issuer: C=US; O=Google Trust Services; CN=WR2
  • SSL certificate verify ok.
    } [5 bytes data]

GET /download?id=1tLKMMn4VDHcGG8seeJ3l-429WGF9r84q&export=download HTTP/1.1
Host: drive.usercontent.google.com
User-Agent: curl/7.61.0
Accept: /

Remote file information: Status code: /download?id=1tLKMMn4VDHcGG8seeJ3l-429

I think I found the problem. KoboCloud seems to conflict with NickelMenu. Once, I accidentally uninstalled NickelMenu, and then KoboCloud started working properly. I'm not sure if this is just my case. You can try uninstalling NickelMenu and reinstalling KoboCloud to see if it works. If it works, please let me know. Thank you! P.S.: Make sure to uninstall NickelMenu correctly, otherwise there might be errors.

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