rtc2git icon indicating copy to clipboard operation
rtc2git copied to clipboard

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

Open ripudamann opened this issue 1 year ago • 1 comments

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: (<UUID>) "WORKSPACE_NAME" Repository: Ownedby: (<UUID>) "<Name>" Visibility: (<UUID>) "<Name>"

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

ripudamann avatar Mar 15 '23 16:03 ripudamann

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.

jpachta avatar Apr 14 '23 07:04 jpachta