stefangweichinger / ansible-rclone

ansible role for rclone :: https://galaxy.ansible.com/stefangweichinger/ansible_rclone
157 stars 56 forks source link

How to check logs? #150

Open mihalt opened 5 months ago

mihalt commented 5 months ago

At first I had problems with detection what happend, when I put wrong client_id. As I understand it couldn't register on Google Drive and by this reason wasn't able to create rclone.conf. But I had on ansible log just info that rclone.conf wasn't found. It was not very easy task to understand that it is not connected with permissions like in this issue etc.

At second, when it is not connected by any reasons via rclone_mounts I see that command was successful. If I use pure rclone I can use --log-file like this:

sudo rclone mount GoogleDriveRemote:directory /directory/ --allow-non-empty --vfs-cache-mode writes --log-level INFO --log-file /home/user/GoogleDriveRemote.log
mihalt commented 5 months ago

Additionally would be good to have opportunity to write command options by myself. For example I have a lot of problems with permissions of mounted folder, because I can't define in your config --allow-other https://rclone.org/commands/rclone_mount/#options

stefangweichinger commented 5 months ago

the rclone_mount feature was only recently added in https://github.com/stefangweichinger/ansible-rclone/pull/148

Maybe @babidi34 could help enhancing this sub-feature.

Thanks for your feedback.

stefangweichinger commented 2 months ago

Additionally would be good to have opportunity to write command options by myself. For example I have a lot of problems with permissions of mounted folder, because I can't define in your config --allow-other https://rclone.org/commands/rclone_mount/#options

154 might help here, and was released in 0.1.6 today

As far as I understand this issue contains two issues, right?

mihalt commented 2 months ago

Additionally would be good to have opportunity to write command options by myself. For example I have a lot of problems with permissions of mounted folder, because I can't define in your config --allow-other https://rclone.org/commands/rclone_mount/#options

154 might help here, and was released in 0.1.6 today

As far as I understand this issue contains two issues, right?

I shouldn't pass extra flag rclone mount --daemon, right?

mihalt commented 9 hours ago

Additionally would be good to have opportunity to write command options by myself. For example I have a lot of problems with permissions of mounted folder, because I can't define in your config --allow-other https://rclone.org/commands/rclone_mount/#options

154 might help here, and was released in 0.1.6 today

As far as I understand this issue contains two issues, right?

Your current state of mount doesn't work for me. rclone config even not creates. Looks like that you have an error here https://github.com/stefangweichinger/ansible-rclone/blob/44b791e8a933ce91d0337bc32c6c801ad1ca1bb0/templates/rclone-mount%40.service.j2#L6-L8

And in fact I get on output

[Service]
Type=simple
ExecStart=/usr/local/bin/rclone mount 'GoogleDriveRemote':/remote/path --allow-non-empty --allow-other --allow-non-empty  --log-level INFO --log-file  /var/log/GoogleDriveRemote.log

And should be without '' ExecStart=/usr/local/bin/rclone mount GoogleDriveRemote:/remote/path — when I delete '' and restart service everything works fine.