Hi,
What is the problem you are having with rclone?
When I try to associate:
Rclone Google Drive > Rclone cache and samba share.
And I would like to copy, write, delete something from samba share on MacOS, I have somes errors.
Error -50 when I copy something on. The file is created but 0 octets.
Unable to delete file
I can create directory but Error -1426 When I try to rename it
I set chmod 777 everywhere for testing.
When I umount rclone, samba share works fine.
What is your rclone version (output from rclone version
)
rclone v1.55.1
- os/type: linux
- os/arch: arm64
- go/version: go1.16.3
- go/linking: static
- go/tags: none
Samba by docker
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 20.04 64Bits
Raspberry Pi 4 8Go Model B rev 1.4
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command
systemd service file:
[Unit]
Description=Google QDrive
AssertPathIsDirectory=/data/timemachine.gdrive
[Service]
Type=simple
User=user
Group=user
ExecStart=/usr/bin/rclone mount \
--config=/home/fourmi/.config/rclone/rclone.conf \
--allow-other \
--no-modtime \
--stats=0 \
--checkers=16 \
--umask 0000 \
--vfs-cache-mode writes \
--vfs-read-chunk-size 32M \
--vfs-read-chunk-size-limit 512M \
--log-level INFO \
--log-file=/var/log/rclonemount.log \
cache:/ /data/timemachine.gdrive
ExecStop=/bin/fusermount -u /data/timemachine.gdrive
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
The rclone config contents with secrets removed.
[gdrive]
type = drive
client_id = xxx.apps.googleusercontent.com
client_secret = xxx
scope = drive.file
token = {"access_token":"xxx","token_type":"Bearer","refresh_token":"xxx","expiry":"xxxZ"}
[timemachine]
type = alias
remote = gdrive:timemachine
[cache]
type = cache
remote = timemachine:
chunk_size = 5M
info_age = 1d
chunk_total_size = 1G
A log from the command with the -vv
flag
samba log:
Registered MSG_REQ_POOL_USAGE
Failed to fetch record!
pcap cache not loaded
unix_convert: talloc_asprintf failed
fred opened file capture.png read=Yes write=No (numopen=2)
fred closed file capture.png (numopen=1) NT_STATUS_OK
fred opened file capture.png read=No write=No (numopen=2)
fred closed file capture.png (numopen=1) NT_STATUS_OK
fred opened file capture.png read=No write=No (numopen=2)
fred closed file capture.png (numopen=1) NT_STATUS_OK
fred opened file capture.png read=No write=No (numopen=2)
fred closed file capture.png (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=No write=No (numopen=2)
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=No write=No (numopen=2)
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=Yes write=No (numopen=2)
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=Yes write=No (numopen=2)
fred opened file fata01.jpg read=No write=No (numopen=3)
fred closed file fata01.jpg (numopen=2) NT_STATUS_OK
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=Yes write=No (numopen=2)
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=Yes write=No (numopen=2)
fred opened file fata01.jpg read=No write=No (numopen=3)
fred closed file fata01.jpg (numopen=2) NT_STATUS_OK
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
fred opened file fata01.jpg read=Yes write=No (numopen=2)
fred closed file fata01.jpg (numopen=1) NT_STATUS_OK
sudo tail -f /var/log/rclonemount.log
When I paste something
2021/04/29 17:16:56 INFO : capture.png: vfs cache: queuing for upload in 5s
2021/04/29 17:17:02 INFO : : put: cache expired
2021/04/29 17:17:02 INFO : capture.png: Copied (new)
2021/04/29 17:17:02 INFO : capture.png: vfs cache: upload succeeded try #1
2021/04/29 17:17:20 INFO : vfs cache: cleaned: objects 5 (was 5) in use 0, to upload 0, uploading 0, total size 6.004k (was 6.004k)
2021/04/29 17:17:20 INFO : capture.png: received cache expiry notification
2021/04/29 17:17:20 INFO : : received cache expiry notification
In google drive web interface, file appears with 0 octets
What is the right parameters about rclone or samba to make it work?
Thanks