[
https://issues.apache.org/jira/browse/ARROW-14238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428421#comment-17428421
]
Antoine Pitrou commented on ARROW-14238:
----------------------------------------
Ok, I upgraded mc. But now I get a different error:
{code}
________________________________________________ ERROR at setup of
test_s3fs_limited_permissions_create_bucket
_________________________________________________
Traceback (most recent call last):
File "/home/antoine/arrow/dev/python/pyarrow/tests/test_fs.py", line 397, in
limited_s3_user
if not _configure_limited_user(tempdir, address, access_key, secret_key):
File "/home/antoine/arrow/dev/python/pyarrow/tests/test_fs.py", line 373, in
_configure_limited_user
_run_mc_command(mcdir, 'admin', 'policy', 'add',
File "/home/antoine/arrow/dev/python/pyarrow/tests/test_fs.py", line 336, in
_run_mc_command
raise ChildProcessError("Could not run mc")
ChildProcessError: Could not run mc
-------------------------------------------------------------------- Captured
stdout setup
---------------------------------------------------------------------
Cmd: mc -C /tmp/tmpwztknhnm/mc alias set myminio http://localhost:36975 arrow
apachearrow
Return: 1
Stdout: mc: Configuration written to `/tmp/tmpwztknhnm/mc/config.json`.
Please update your access credentials.
mc: Successfully created `/tmp/tmpwztknhnm/mc/share`.
mc: Initialized share uploads `/tmp/tmpwztknhnm/mc/share/uploads.json` file.
mc: Initialized share downloads `/tmp/tmpwztknhnm/mc/share/downloads.json` file.
Stderr: mc: <ERROR> Unable to initialize new alias from the provided
credentials. Get
"http://localhost:36975/probe-bucket-sign-542otzhvjmgy/?location=": dial tcp
127.0.0.1:36975: connect: connection refused.
Attempting encryption of all config, IAM users and policies on MinIO backend
Cmd: mc -C /tmp/tmpwztknhnm/mc alias set myminio http://localhost:36975 arrow
apachearrow
Return: 0
Stdout: Added `myminio` successfully.
Stderr:
Cmd: mc -C /tmp/tmpwztknhnm/mc admin policy add myminio/ no-create-buckets
/tmp/tmpwztknhnm/limited-buckets-policy.json
Return: 1
Stdout:
Stderr: mc: <ERROR> Unable to add new policy. Unexpected client 'admin' API
version found 'v3', expected 'v2', please downgrade the client to older
releases.
{code}
> [Python] "could not run mc" error in test_fs.py
> -----------------------------------------------
>
> Key: ARROW-14238
> URL: https://issues.apache.org/jira/browse/ARROW-14238
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Antoine Pitrou
> Assignee: Weston Pace
> Priority: Major
> Fix For: 6.0.0
>
>
> This test fails on my machine:
> {code}
> ______________________________________________________ ERROR at setup of
> test_s3fs_limited_permissions_create_bucket
> _______________________________________________________
> Traceback (most recent call last):
> File "/home/antoine/arrow/dev/python/pyarrow/tests/test_fs.py", line 397,
> in limited_s3_user
> if not _configure_limited_user(tempdir, address, access_key, secret_key):
> File "/home/antoine/arrow/dev/python/pyarrow/tests/test_fs.py", line 374,
> in _configure_limited_user
> 'myminio/', 'no-create-buckets', policy_path)
> File "/home/antoine/arrow/dev/python/pyarrow/tests/test_fs.py", line 336,
> in _run_mc_command
> raise ChildProcessError("Could not run mc")
> ChildProcessError: Could not run mc
> --------------------------------------------------------------------------
> Captured stdout setup
> ---------------------------------------------------------------------------
> Cmd: mc -C /tmp/tmpjbj5u87f/mc alias set myminio http://localhost:55309 arrow
> apachearrow
> Return: 0
> Stdout: mc: Configuration written to `/tmp/tmpjbj5u87f/mc/config.json`.
> Please update your access credentials.
> mc: Successfully created `/tmp/tmpjbj5u87f/mc/share`.
> mc: Initialized share uploads `/tmp/tmpjbj5u87f/mc/share/uploads.json` file.
> mc: Initialized share downloads `/tmp/tmpjbj5u87f/mc/share/downloads.json`
> file.
> NAME:
> mc - MinIO Client for cloud storage and filesystems.
> USAGE:
> mc [FLAGS] COMMAND [COMMAND FLAGS | -h] [ARGUMENTS...]
> COMMANDS:
> ls list buckets and objects
> mb make a bucket
> rb remove a bucket
> cat display object contents
> head display first 'n' lines of an object
> pipe stream STDIN to an object
> share generate URL for temporary access to an object
> cp copy objects
> mirror synchronize object(s) to a remote site
> find search for objects
> sql run sql queries on objects
> stat show object metadata
> diff list differences in object name, size, and date between two buckets
> rm remove objects
> event configure object notifications
> watch listen for object notification events
> policy manage anonymous access to buckets and objects
> admin manage MinIO servers
> session resume interrupted operations
> config configure MinIO client
> update update mc to latest release
> version show version info
>
> GLOBAL FLAGS:
> --autocompletion install auto-completion for your shell
> --config-dir value, -C value path to configuration folder (default:
> "/home/antoine/.mc")
> --quiet, -q disable progress bar display
> --no-color disable color theme
> --json enable JSON formatted output
> --debug enable debug output
> --insecure disable SSL certificate verification
> --help, -h show help
> --version, -v print the version
>
> TIP:
> Use 'mc --autocompletion' to enable shell autocompletion
> VERSION:
> RELEASE.2019-07-11T19-31-28Z
> Stderr:
> Cmd: mc -C /tmp/tmpjbj5u87f/mc admin policy add myminio/ no-create-buckets
> /tmp/tmpjbj5u87f/limited-buckets-policy.json
> Return: 1
> Stdout:
> Stderr: mc: <ERROR> Cannot get a configured admin connection. The specified
> alias: myminio/ not found.
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)