Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown subcommand "show" - returned non-zero exit status 12. #168

Open
ripudamann opened this issue Mar 15, 2023 · 1 comment
Open

Unknown subcommand "show" - returned non-zero exit status 12. #168

ripudamann opened this issue Mar 15, 2023 · 1 comment

Comments

@ripudamann
Copy link

Hi,

I have setup the config.ini according to the credentials with details on workspace and stream.

When I run migration.py. I get the error as below:

Unknown subcommand "show"
17:42:40 - Command 'lscm --show-alias n --show-uuid y show attributes -r url -w ' returned non-zero exit status 12.

However, If I run the same command through command line it returns the inputs like this though.

Command: scm --show-alias n --show-uuid y show attributes -r -w
Output: () "WORKSPACE_NAME"
Repository:
Ownedby: () ""
Visibility: () ""

Could one of you please help with resolving this error while running migration.py? Appreciate your inputs and help on this in advance.

Best regards

@jpachta
Copy link

jpachta commented Apr 14, 2023

Hi ripudamann

I think your command is missing the attribute STREAMNAME of the parameter -w

Usage: lscm --show-alias n --show-uuid y show attributes -r REPO -w STREAMNAME

The STREAMNAME value is manually defined in the config.ini in section Migration as StreamToMigrate = STREAMNAME

If it helps here is typical response of the command manually executed 'lscm --show-alias n --show-uuid y show attributes -r REPO -w STREAMNAME' on my instance:

> lscm --show-alias n --show-uuid y show attributes -r REPO -w STREAMNAME
(_xxxxxxxxxxxxxxxxxxSmew) "STREAMNAME"
  Repository: REPO
  Ownedby: (_zzzzzzzzzzzzzzzzzzTacA) "xxxxxx"
  Visibility: (_zzzzzzzzzzzzzzzzzzTacA) "xxxxxx"
  Description:
  Text of description if any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants