x0b / rcx

Rclone for Android
https://x0b.github.io
GNU General Public License v3.0
1.72k stars 155 forks source link

Can't save growing file to gdrive via squid notes #204

Open Apacelus opened 2 years ago

Apacelus commented 2 years ago

What version of RCX are you using (About -> App version)?

1.12.2

What is your Android version, phone model and manufacturer?

Android 11, Asus cx5 flip (chromebook) Android 11(Lineage os), Redmi note 8, Xiaomi

Which steps are required to reproduce this issue?

  1. Add Google drive in Rcx
  2. Try creating backup in Squid notes
  3. Squid crashes, no backup created

What is your configuration (rclone.conf)?

rclone.conf (click to expand)
[GDrive]
type = drive
scope = drive
token = {"access_token":"redacted","token_type":"Bearer","refresh_token":"redacted","expiry":"2022-02-17T08:17:41.997586646Z"}

[5d55cd8d-397c-4107-b79b-17f2b6a071e8]
type = alias
remote = /storage/emulated/0

Does the same issue also occur when using the same configuration on a PC or in Termux?

I tried the same on my phone(specs above), same problem. I think it might be because the file is not exported imediately but gets created, so it gets bigger and bigger over a period of ~1 minute

What are the contents of Android/data/io.github.x0b.rcx/files/logs/log.txt?

log.txt (click to expand)
2022/02/17 07:43:57 DEBUG : Using config file from "/data/user/0/io.github.x0b.rcx/files/rclone.conf"
2022/02/17 07:43:57 DEBUG : rclone: Version "v1.55.1-rcx" starting with parameters ["/data/app/~~redacted==/io.github.x0b.rcx-redacted==/lib/x86_64/librclone.so" "--config" "/data/user/0/io.github.x0b.rcx/files/rclone.conf" "--rc-addr" "localhost:37905" "--rc-user" "admin" "--rc-pass" "redacted==" "--rc-serve" "--log-file" "/storage/emulated/0/Android/data/io.github.x0b.rcx/files/logs/rcd.log" "--dump" "headers" "-vvv" "rcd"]
2022/02/17 07:43:57 INFO  : Using --user admin --pass XXXX as authenticated user
2022/02/17 07:43:57 NOTICE: Serving remote control on http://localhost:37905/
2022/02/17 07:44:16 DEBUG : Using config file from "/data/user/0/io.github.x0b.rcx/files/rclone.conf"
2022/02/17 07:44:16 DEBUG : rclone: Version "v1.55.1-rcx" starting with parameters ["/data/app/~~redacted==/io.github.x0b.rcx-redacted==/lib/x86_64/librclone.so" "--config" "/data/user/0/io.github.x0b.rcx/files/rclone.conf" "--rc-addr" "localhost:34955" "--rc-user" "admin" "--rc-pass" "redacted==" "--rc-serve" "--log-file" "/storage/emulated/0/Android/data/io.github.x0b.rcx/files/logs/rcd.log" "--dump" "headers" "-vvv" "rcd"]
2022/02/17 07:44:16 INFO  : Using --user admin --pass XXXX as authenticated user
2022/02/17 07:44:16 NOTICE: Serving remote control on http://localhost:34955/
2022/02/17 07:44:16 DEBUG : rc: "operations/list": with parameters map[fs:GDrive: remote:]
2022/02/17 07:44:16 DEBUG : Creating backend with remote "GDrive:"
2022/02/17 07:44:16 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2022/02/17 07:44:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:16 DEBUG : HTTP REQUEST (req 0xc0007ae100)
2022/02/17 07:44:16 DEBUG : GET /drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.55.1-rcx
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.15.9 gdcl/20210128
Accept-Encoding: gzip

2022/02/17 07:44:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:17 DEBUG : HTTP RESPONSE (req 0xc0007ae100)
2022/02/17 07:44:17 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Thu, 17 Feb 2022 07:44:17 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

2022/02/17 07:44:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:17 DEBUG : Google drive root '': root_folder_id = "redacted" - save this in the config to speed up startup
2022/02/17 07:44:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:17 DEBUG : HTTP REQUEST (req 0xc0007ae400)
2022/02/17 07:44:17 DEBUG : GET /drive/v3/files?alt=json&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%270AHmgGpjbugd1Uk9PVA%27+in+parents%29&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.55.1-rcx
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.15.9 gdcl/20210128
Accept-Encoding: gzip

2022/02/17 07:44:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:17 DEBUG : HTTP RESPONSE (req 0xc0007ae400)
2022/02/17 07:44:17 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Thu, 17 Feb 2022 07:44:17 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

2022/02/17 07:44:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:17 DEBUG : rc: "operations/list": reply map[list:[redacted]]: 
2022/02/17 07:44:17 DEBUG : rc: "operations/list": with parameters map[fs:GDrive: remote:Squid_backup]
2022/02/17 07:44:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:17 DEBUG : HTTP REQUEST (req 0xc000378f00)
2022/02/17 07:44:17 DEBUG : GET /drive/v3/files?alt=json&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%271ZegxIWWliC6FyGGdJCzrqPq-KVc5lLAK%27+in+parents%29&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.55.1-rcx
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.15.9 gdcl/20210128
Accept-Encoding: gzip

2022/02/17 07:44:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:17 DEBUG : HTTP RESPONSE (req 0xc000378f00)
2022/02/17 07:44:17 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Thu, 17 Feb 2022 07:44:18 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

2022/02/17 07:44:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:17 DEBUG : rc: "operations/list": reply map[list:[0xc000354820]]: 
2022/02/17 07:44:23 DEBUG : rc: "operations/list": with parameters map[fs:GDrive: remote:Squid_backup]
2022/02/17 07:44:23 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:23 DEBUG : HTTP REQUEST (req 0xc000378f00)
2022/02/17 07:44:23 DEBUG : GET /drive/v3/files?alt=json&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%271ZegxIWWliC6FyGGdJCzrqPq-KVc5lLAK%27+in+parents%29&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.55.1-rcx
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.15.9 gdcl/20210128
Accept-Encoding: gzip

2022/02/17 07:44:23 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2022/02/17 07:44:24 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:24 DEBUG : HTTP RESPONSE (req 0xc000378f00)
2022/02/17 07:44:24 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Security-Policy: frame-ancestors 'self'
Content-Type: application/json; charset=UTF-8
Date: Thu, 17 Feb 2022 07:44:24 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
Vary: Origin
Vary: X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

2022/02/17 07:44:24 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2022/02/17 07:44:24 DEBUG : rc: "operations/list": reply map[list:[0xc000262b60]]: