Permission Issue with InfluxDB Bucket Dump and Restore Across Servers

I am trying to migrate an InfluxDB bucket from one server to another. The process involves dumping the bucket data on the source server and then importing it on the target server. However, I am encountering a permission issue while performing the operation, even after generating a new API token with full access permissions.

Steps to Reproduce

  1. On the source server:
    I used the following command to dump the bucket:

influx backup /path/to/dump --bucket <bucket_name> --token <source_api_token>

when i run this command i got this issue.

INFO: Downloading metadata snapshot
Error: failed to backup metadata: failed to download metadata snapshot: 401 Unauthorized: read:authorizations is unauthorized

Can anyone provide a solution, or is this a software bug? Can you please confirm?