You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting rclone to help with filling in the support template #5121
On the forum we have a great help template which has the following categories
What is the problem you are having with rclone?
What is your rclone version (output from rclone version)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
The rclone config contents with secrets removed.
A log from the command with the -vv flag
Option 2 is covered by rclone version. Maybe we could get rclone version to deal with Option 3 also.
However it was option 6 that the users could really do with help.
I was thinking of a new command like rclone config show maybe rclone config show --redacted which could automatically redact sensitive information from the config file.
Perhaps we could combine rclone version, detecting which OS (might be too hard) and rclone config show --redacted into one super command which people can run and paste into the forum, maybe rclone help me
This could maybe even open up a forum post with these details already filled in if we can figure out how to do that.
How to use GitHub
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
What is your rclone version (output from rclone version)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Option 2 is covered by rclone version. Maybe we could get rclone version to deal with Option 3 also.
Currently rclone version prints rclone and golang version, as well as GOOS/GOARCH constants:
rclone v1.54.0
- os/arch: linux/amd64
- go version: go1.15.7
Printing OS bitness is not the same as checking whether GOARCH ends with 64. As noted here, GOARCH means a target compiled arch, not current system arch. You might find the whole reddit thread "how to determine 32 or 64 bit on host machine" useful.
Again, we could use gopsutil's InfoStat.KernelArch.
I'm just not decided, how would the new rclone version output line be called? My idea is to call it os version, but I'm not sure:
- os/arch: windows/amd64
- os version: Windows 10, 64 bit
or
- os/arch: linux/arm64
- os version: RedHat 7.1, 64 bit
P.S. The PR #5151 (linked to issue #5091) also extends the version output with information about build tags (including cgo which marks a dynamic executable), but printing detailed information about OS/platform is so different and requires a lot of OS-dependent code or adding new external dependencies that I'd like to keep the two tasks (and PRs) separate.
Currently we can mark a backend option as Option.IsPassword,
which triggers a special interactive prompt during rclone config.
In addition to it we can introduce new Option.Sensitive.
Sensitive options will be redacted by the new command rclone config show --redacted.
That is a good idea
What is your rclone version (output from rclone version)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Option 2 is covered by rclone version. Maybe we could get rclone version to deal with Option 3 also.
Currently rclone version prints rclone and golang version, as well as GOOS/GOARCH constants:
rclone v1.54.0
- os/arch: linux/amd64
- go version: go1.15.7
That library looks useful. I think you are right - implementing this ourselves is too hard. So if there is a lib we can use then let's use it, if not then what we've got is enough for most debugging.
Printing OS bitness is not the same as checking whether GOARCH ends with 64. As noted here, GOARCH means a target compiled arch, not current system arch. You might find the whole reddit thread "how to determine 32 or 64 bit on host machine" useful.
Again, we could use gopsutil's InfoStat.KernelArch.
If we can get it out of gopsutil then great :-)
I'm just not decided, how would the new rclone version output line be called? My idea is to call it os version, but I'm not sure:
- os/arch: windows/amd64
- os version: Windows 10, 64 bit
or
- os/arch: linux/arm64
- os version: RedHat 7.1, 64 bit
Looks good to me.
P.S. The PR #5151 (linked to issue #5091) also extends the version output with information about build tags (including cgo which marks a dynamic executable), but printing detailed information about OS/platform is so different and requires a lot of OS-dependent code or adding new external dependencies that I'd like to keep the two tasks (and PRs) separate.
I think we can remove the OS version and how many bits item from the bug template as soon as we add the os/version line in the rclone version output.
Instead, I'd rather add a mandatory Redacted rclone config item in the bug template. It's impossible to reproduce a bug without relevant config in most cases. @darthShadow has to re-request it from users way too frequently.
I would love to see this redacted option, because it is hard for a rclone-beginner to know which options to get rid off if someone asks for my config, so when I do that wrong, I can start over again. The redacted version would help to get rid of those mistakes altogether
rclone version now shows the OS version, rclone config redacted prints the config with secrets removed, and the issue template asks for both. Closing as done.
Activity
ncw commentedon Mar 13, 2021
@rclone/rclone your ideas appreciated :-)
albertony commentedon Mar 13, 2021
Perhaps known stuff, but just to "document" it: New forum post from url:
https://forum.rclone.org/new-topic?category=Suspected%20Bug
https://forum.rclone.org/new-topic?title=topic%20title&body=topic%20body&category=Suspected%20Bug
Problem is how to "fill in" the template, or fit complete body text into the url (http query parameter)..
ivandeex commentedon Mar 21, 2021
Currently we can mark a backend option as Option.IsPassword,
which triggers a special interactive prompt during
rclone config.In addition to it we can introduce new
Option.Sensitive.Sensitive options will be redacted by the new command
rclone config show --redacted.(request #5209)
ivandeex commentedon Mar 21, 2021
@ncw wrote:
Currently
rclone versionprints rclone and golang version, as well as GOOS/GOARCH constants:Printing the OS name, release and build is very different from printing the GOOS constant and involves many OS-dependent probes. Leaving aside Windows, MacOS, IOS, Android et cetera, the Linux on its own poses a problem. Many Linux distributions have their specific ways of providing that info. See a sample thread on stackoverflow (https://unix.stackexchange.com/questions/92199/how-can-i-reliably-get-the-operating-systems-name) or amount of related code in ansible (https://github.com/ansible/ansible/blob/stable-2.9/lib/ansible/module_utils/distro/) or python (https://distro.readthedocs.io/en/latest/).
Writing and testing this from the scratch is such a large task that we should find a ready solution.
I think the best golang library for probing OS distributions is
gopsutil(we should use v3). See https://github.com/shirou/gopsutil/tree/v3.21.2/hostPrinting OS bitness is not the same as checking whether GOARCH ends with 64. As noted here, GOARCH means a target compiled arch, not current system arch. You might find the whole reddit thread "how to determine 32 or 64 bit on host machine" useful.
Again, we could use gopsutil's InfoStat.KernelArch.
(PR #5204)
I'm just not decided, how would the new
rclone versionoutput line be called? My idea is to call itos version, but I'm not sure:or
P.S. The PR #5151 (linked to issue #5091) also extends the
versionoutput with information about build tags (includingcgowhich marks a dynamic executable), but printing detailed information about OS/platform is so different and requires a lot of OS-dependent code or adding new external dependencies that I'd like to keep the two tasks (and PRs) separate.ncw commentedon Mar 22, 2021
@ivandeex wrote:
That is a good idea
That library looks useful. I think you are right - implementing this ourselves is too hard. So if there is a lib we can use then let's use it, if not then what we've got is enough for most debugging.
If we can get it out of gopsutil then great :-)
Looks good to me.
👍
ivandeex commentedon Mar 31, 2021
I think we can remove the
OS version and how many bitsitem from the bug template as soon as we add theos/versionline in therclone versionoutput.Instead, I'd rather add a mandatory
Redacted rclone configitem in the bug template. It's impossible to reproduce a bug without relevant config in most cases. @darthShadow has to re-request it from users way too frequently.cmd/version: print os/version, kernel and bitness (#5204)
MarcelXia commentedon Aug 2, 2021
I would love to see this redacted option, because it is hard for a rclone-beginner to know which options to get rid off if someone asks for my config, so when I do that wrong, I can start over again. The redacted version would help to get rid of those mistakes altogether
ivandeex commentedon Aug 2, 2021
How to use GitHub
ivandeex commentedon Aug 3, 2021
#5209 is scheduled for 1.58
cmd/version: print os/version, kernel and bitness (rclone#5204)
ncw commentedon Oct 15, 2026
rclone version now shows the OS version, rclone config redacted prints the config with secrets removed, and the issue template asks for both. Closing as done.