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

Cannot clone nerdpack in NR1? #152

Open
qb411 opened this issue May 3, 2023 · 2 comments
Open

Cannot clone nerdpack in NR1? #152

qb411 opened this issue May 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@qb411
Copy link

qb411 commented May 3, 2023

Description

I've been continuing to see an error when attempting to use the clone command within the repo:
› Error: Cannot destructure property 'path' of 'flags' as it is undefined.
› Code: UNKNOWN

This is from the command to clone the nerdpack:
nr1 nerdpack:clone -r https://github.com/newrelic/nr1-cloud-optimize.git

I've also confirmed NPM and Git are installed on the AWS Linux instance I'm using this on. I've also been able to create a basic nerdpack of my own without issue, so it appears to be something odd with the sync process

Steps to Reproduce

On a Linux EC2 instance running Amazon Linux, begin by SSH'ing into the instance and ensuring git/npm are installed. Once complete run the command and you will see the resulting error above.

Expected Behaviour

For it to clone the repository and allow deployment deployment.

Relevant Logs / Console output

See above

Your Environment

  • NR1 CLI version used: @datanerd/nr1/2.83.5 linux-x64 node-v16.11.1
  • Browser name and version: none
  • Operating System and version: AWS Linux 2

Additional context

I was able to clone the repo with git, but it still errors out complaining of various fields not existing. when attempting to serve it to the new relic environment.

@qb411 qb411 added the bug Something isn't working label May 3, 2023
@Kav91
Copy link
Member

Kav91 commented May 9, 2023

When you are local serving the app, you should do it from your local machine. The CLI will open a port that your local browser must interact with, as well as setup certs for security. So doing this on a headless linux EC2 over ssh won't really yield any result.

If you want to add this application to your account it is easier to just simply add it from the catalog.

However if you still do want to locally serve it, you should be doing it from you local machine, this method is typically used when developing or debugging or perhaps you have made some tweaks and then chosen to deploy your own modified version into your account.

@IshaqIdris
Copy link

Hi, I'm getting the same error when attempting to clone locally as well!

Command that I have run nr1 nerdpack:clone -r https://github.com/newrelic/nr1-cloud-optimize.git

Operating System - MacOS

Doing a clone via git clone also causes alot of npm errors when trying to serve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants