Systemctl status prints out blob data

What is the problem you are having with rclone?

Using rclone in a systemd script and monitoring it via systemctl status returns blob data:

● gdrivesync.service - GDrive Sync
   Loaded: loaded (/etc/systemd/system/gdrivesync.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-01-26 08:19:42 CET; 4h 5min ago
 Main PID: 12187 (rclone)
    Tasks: 24 (limit: 4915)
   Memory: 393.5M
   CGroup: /system.slice/gdrivesync.service
           └─12187 /usr/bin/rclone -P sync /yoda/media/ gdrivesecret: -v --transfers 2 --user-agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 --bwlimit 16:00,2M 23:30,off --delete-during --exclude Seedbox/** --exclude Download/** --exclude Rename/** --exclude ProxmoxBackup/** --config /root/.config/rclone/rclone.conf --log-file=/var/log/rclone/rclone.log

Jan 26 12:25:27 Speichermonster rclone[12187]: Errors:                 0
Jan 26 12:25:27 Speichermonster rclone[12187]: Checks:            838205 / 838205, 100%
Jan 26 12:25:27 Speichermonster rclone[12187]: Transferred:           31 / 88, 35%
Jan 26 12:25:27 Speichermonster rclone[12187]: Elapsed time:   4h5m44.9s
Jan 26 12:25:27 Speichermonster rclone[12187]: Transferring:
Jan 26 12:25:27 Speichermonster rclone[12187]:  *     Filme/somemovie.mkv:  8% /16.519G, 2.679M/s, 1h36
Jan 26 12:25:28 Speichermonster rclone[12187]: [221B blob data]

Running with the switch "--all" returns the following text:

● gdrivesync.service - GDrive Sync
   Loaded: loaded (/etc/systemd/system/gdrivesync.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-01-26 08:19:42 CET; 4h 7min ago
 Main PID: 12187 (rclone)
    Tasks: 24 (limit: 4915)
   Memory: 392.0M
   CGroup: /system.slice/gdrivesync.service
           └─12187 /usr/bin/rclone -P sync /yoda/media/ gdrivesecret: -v --transfers 2 --user-agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 --bwlimit 16:00,2M 23:30,off --delete-during --exclude Seedbox/** --exclude Download/** --exclude Rename/** --exclude ProxmoxBackup/** --config /root/.config/rclone/rclone.conf --log-file=/var/log/rclone/rclone.log

Jan 26 12:27:08 Speichermonster rclone[12187]: Errors:                 0
Jan 26 12:27:08 Speichermonster rclone[12187]: Checks:            838205 / 838205, 100%
Jan 26 12:27:08 Speichermonster rclone[12187]: Transferred:           31 / 88, 35%
Jan 26 12:27:08 Speichermonster rclone[12187]: Elapsed time:   4h7m25.9s
Jan 26 12:27:08 Speichermonster rclone[12187]: Transferring:
Jan 26 12:27:08 Speichermonster rclone[12187]:  *     Filme/somemovie.mkv: 10% /16.519G, 3.150M/s, 1h20
Jan 26 12:27:09 Speichermonster rclone[12187]:  *     Filme/somemovie2.mkv: 99% /7.944G, 2.823M/s, 11s^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[0GTransferred:           60.561G / 765.169 GBytes, 8%, 4.177 MBytes/s, ETA 47h58m55s
Jan 26 12:27:09 Speichermonster rclone[12187]: Errors:                 0
Jan 26 12:27:09 Speichermonster rclone[12187]: Checks:            838205 / 838205, 100%
Jan 26 12:27:09 Speichermonster rclone[12187]: Transferred:           31 / 88, 35%
Jan 26 12:27:09 Speichermonster rclone[12187]: Elapsed time:   4h7m26.4s
Jan 26 12:27:09 Speichermonster rclone[12187]: Transferring:
Jan 26 12:27:09 Speichermonster rclone[12187]:  *     Filme/somemovie.mkv: 10% /16.519G, 3.152M/s, 1h20
Jan 26 12:27:09 Speichermonster rclone[12187]:  *     Filme/somemovie2.mkv: 99% /7.944G, 2.833M/s, 11s^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[A^[2K^[0GTransferred:           60.564G / 765.169 GBytes, 8%, 4.177 MBytes/s, ETA 47h58m48s
Jan 26 12:27:09 Speichermonster rclone[12187]: Errors:                 0
Jan 26 12:27:09 Speichermonster rclone[12187]: Checks:            838205 / 838205, 100%
Jan 26 12:27:09 Speichermonster rclone[12187]: Transferred:           31 / 88, 35%
Jan 26 12:27:09 Speichermonster rclone[12187]: Elapsed time:   4h7m26.9s
Jan 26 12:27:09 Speichermonster rclone[12187]: Transferring:
Jan 26 12:27:09 Speichermonster rclone[12187]:  *     Filme/somemovie.mkv: 10% /16.519G, 3.152M/s, 1h20

What is your rclone version (output from rclone version)

rclone v1.45
- os/arch: linux/amd64
- go version: go1.11.6

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Debian Buster 10.7, 64 Bit

Which cloud storage system are you using? (eg Google Drive)

Gdrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone v1.45
- os/arch: linux/amd64
- go version: go1.11.6

The rclone config contents with secrets removed.

Starting an systemd script at the boot which contains the following:

[Unit]
Description=GDrive Sync
After=network.service

[Service]
User=root
Group=root
Type=simple
StandardOutput=journal+console
ExecStart=/usr/bin/rclone -P sync /yoda/media/ gdrivesecret: -v --transfers 2 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36" --bwlimit "16:00,2M 23:30,off" --delete-during --exclude "Seedbox/**" --exclude "Download/**" --exclude "Rename/**" --exclude "ProxmoxBackup/**" --config /root/.config/rclone/rclone.conf --log-file=/var/log/rclone/rclone.log
ExecStop=/usr/sbin/sendrclonelog.sh

[Install]
WantedBy=multi-user.target

I guess in this case I don't need to provide the .conf file.

Any Ideas how this could happen? This NAS is new, previously I used CentOS 7 and didn't gave me this strange output. Any hints are highly appreaciated! Thanks!

Cheers,
Gamie

You have an ancient version of rclone and you'd want to update that.

You'd be better off writing to a log file and using the logfile as well.

I normally don't do syncs through systemctl but other methods.

What's the use case and how are you using systemctl for it? Just a one time run?

I'm on the debian repo, thats why it's that old.

I'm writing off an log, but I just want to check from time to time how much progress it is.

I'm using systemctl to do a sync everytime I boot up the NAS.

Right, you want to install from rclone.org as that's an ancient version. Repos should not be used as you can see, they are not maintained.

Ah, nice. I'd probably add "--stats-one-line" and that should clean up the output with -P.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.