unitycatalog / unitycatalog/unitycatalog

Can't create a volume as an admin [CLI]

Open
#993 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
3.5k
Forks
672
Avg merge
6d 16h
Merged PRs (30d)
30

Description

Describe the bug
Hi, I'm trying to create a volume of csv files using the admin token, everything work, at least for the basic command in the documentation (I can see the user list, create new users, grant privilege as an admin).
But when I run the command bin/uc volume create ... on CLI with the admin token the terminal respond with:

Image
If i disabled the Authentication bin/volume create works, but with Authentication enable it say "PERMISSION_DENIED" even though I'm an admin.

To Reproduce

Steps to reproduce the behavior:

  1. Enable UC Server so modify etc/conf/server.properties file
  2. Restart the UC server
  3. Create a local directory "csv_files" with some files
  4. Try to create and add a csv volume in the catalog bin/uc volume create --full_name unity.default.csv_files --storage_location file:///home/laura/unitycatalog/etc/data/external/unity/default/volumes/csv_files --auth_token $(cat etc/conf/token.txt)

Expected behavior
Create a volume with full name: unity.default.csv_files

System [please complete the following information]:

  • OS: Windows with WSL Ubuntu

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with UC Server enabled using the documented bin/uc volume create command, the admin token, and the server.properties configuration. Compare the authenticated command with the successful unauthenticated bin/volume create path and trace the permission-denied response. Done means an admin token can create the unity.default.csv_files volume while authentication remains enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, backend, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.