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

Error parsing parameter "--filters" #71

Open
JavaStudentAlex opened this issue Jan 27, 2025 · 0 comments
Open

Error parsing parameter "--filters" #71

JavaStudentAlex opened this issue Jan 27, 2025 · 0 comments

Comments

@JavaStudentAlex
Copy link

Hi, during connection to the SageMaker Notebook I have met an error of parsing "--filters" flag.
Here are some environment details for the client machine, because the error is encountered on the client:
System: Ubuntu 24.04.1 LTS
Python: 3.11.11
AWSCLI: 2.23.6
Session Manager Plugin: 1.2.694
Sm-ssh-helper: 2.2.1

I am running the Notebook server and see this notebook in the online status given by the command sm-ssh list .notebook.sagemaker. But then while connecting to it by the command sm-ssh connect Trial.notebook.sagemaker i got an error with a stacktrace:

Error parsing parameter '--filters': Expected: ',', received: ''' for input:
Key=InstanceIds,Values=mi-00325a983b971929f','mi-0fade2f049603a9a1','mi-0b8a67b5311876a9a','mi-085b5fdc7aa23d5cb','mi-05f216c7073d21e60','mi-00545bee3400d0456']manager.py:41INFOGotfinalSSMinstanceIDs:['mi-00325a983b971929f','mi-0fade2f049603a9a1','mi-0b8a67b5311876a9a','mi-085b5fdc7aa23d5cb','mi-05f216c7073d21e60','mi-00545bee3400d0456']manager.py:51mi-00325a983b971929f
                                           ^
Traceback (most recent call last):
  File "/home/alex/.pyenv/versions/3.11.11/bin/sm-ssh", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/alex/.pyenv/versions/3.11.11/lib/python3.11/site-packages/sagemaker_ssh_helper/sm_ssh.py", line 225, in main
    SageMakerSecureShellHelper().connect_ports(args.fqdn, extra_args)
  File "/home/alex/.pyenv/versions/3.11.11/lib/python3.11/site-packages/sagemaker_ssh_helper/sm_ssh.py", line 195, in connect_ports
    subprocess.check_call(arguments + extra_args, env=os.environ, bufsize=0)
  File "/home/alex/.pyenv/versions/3.11.11/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bash', 'sm-local-ssh-notebook', 'connect-notebook', 'Trial']' returned non-zero exit status 252.

Could you please help me to resolve this issue?

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

1 participant