Skip to content

bug using rclone with s3 in aws appstream appstream_machine_role #8896

@mrgum

Description

@mrgum

The associated forum post URL from https://forum.rclone.org

not my post but https://forum.rclone.org/t/rclone-fails-to-run-credential-process-on-aws-appstream-instance/49295 discusses the issue

What is the problem you are having with rclone?

I am using rclone with aws appstream and it is failing to work out of the box

By default a .aws/config file of

[profile appstream_machine_role]
credential_process = "C:\Program Files\Amazon\Photon\PhotonRoleCredentialProvider\PhotonRoleCredentialProvider.exe" --role=Machine

is used. changing that to avoid the " and spaces

[profile appstream_machine_role]
credential_process = C:\Progra~1\Amazon\Photon\PhotonRoleCredentialProvider\PhotonRoleCredentialProvider.exe --role=Machine

fixes this issue but it would be good if it could work out of the box

my rclone.conf is

[s3]
type = s3
provider = AWS
region = eu-west-2
storage_class = STANDARD
bucket_acl = private
env_auth = true
profile = appstream_machine_role

What is your rclone version (output from rclone version)

rclone v1.71.1
- os/version: Microsoft Windows Server 2022 Datacenter 21H2 21H2 (64 bit)
- os/kernel: 10.0.20348.4171 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.25.1
- go/linking: static
- go/tags: cmount

installed via choco

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

windows server 2022 base 64 bit

Which cloud storage system are you using? (e.g. Google Drive)

s3

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

rclone ls s3:bucketname

A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)

2025/10/13 20:14:14 DEBUG : rclone: Version "v1.71.1" starting with parameters ["C:\\ProgramData\\chocolatey\\lib\\rclone.portable\\tools\\rclone-v1.71.1-windows-amd64\\rclone.exe" "ls" "s3:appstream-resources-669661143284" "--config" "rclone.conf" "-v" "-v"]
2025/10/13 20:14:14 DEBUG : Creating backend with remote "s3:bucketname"
2025/10/13 20:14:14 DEBUG : Using config file from "C:\\Users\\DefaultProfileUser\\rclone.conf"
'\"C:\Program Files\Amazon\Photon\PhotonRoleCredentialProvider\PhotonRoleCredentialProvider.exe\"' is not recognized as an internal or external command,
operable program or batch file.
2025/10/13 20:14:14 DEBUG : 2 go routines active
2025/10/13 20:14:14 NOTICE: Failed to ls: operation error S3: ListObjectsV2, get identity: get credentials: failed to refresh cached credentials, process provider error: error in credential_process: exit status 1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions