Skip to content

Getting rclone to help with filling in the support template #5121

Closed

Description

@ncw

On the forum we have a great help template which has the following categories

  1. What is the problem you are having with rclone?
  2. What is your rclone version (output from rclone version)
  3. Which OS you are using and how many bits (eg Windows 7, 64 bit)
  4. Which cloud storage system are you using? (eg Google Drive)
  5. The command you were trying to run (eg rclone copy /tmp remote:tmp)
  6. The rclone config contents with secrets removed.
  7. 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.

Activity

  1. ncw commented on Mar 13, 2021

    @ncw
    MemberAuthor

    @rclone/rclone your ideas appreciated :-)

  2. albertony commented on Mar 13, 2021

    @albertony
    Contributor

    This could maybe even open up a forum post with these details already filled in if we can figure out how to do that.

    Perhaps known stuff, but just to "document" it: New forum post from url:

    Problem is how to "fill in" the template, or fit complete body text into the url (http query parameter)..

  3. ivandeex commented on Mar 21, 2021

    @ivandeex
    Member

    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)

  4. ivandeex commented on Mar 21, 2021

    @ivandeex
    Member

    @ncw wrote:

    1. What is your rclone version (output from rclone version)
    2. 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 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/host

    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.

    (PR #5204)

    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.

  5. ncw commented on Mar 22, 2021

    @ncw
    MemberAuthor

    @ivandeex wrote:

    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

    1. What is your rclone version (output from rclone version)
    2. 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 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/host

    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.

    👍

  6. ivandeex commented on Mar 31, 2021

    @ivandeex
    Member

    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.

  7. MarcelXia commented on Aug 2, 2021

    @MarcelXia

    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

  8. ivandeex commented on Aug 2, 2021

    @ivandeex
    Member

    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.
  9. ivandeex commented on Aug 3, 2021

    @ivandeex
    Member

    I would love to see this redacted option

    #5209 is scheduled for 1.58

  10. ncw commented on Oct 15, 2026

    @ncw
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions