Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Local nerdpacks failed to load


#1

Local nerdpacks failed to load.
Could you tell me How to find a local server working on machine?

[root@ip-192-168-110-116 ~]# cd my-awesome-nerdpack && nr1 nerdpack:serve
Nerdpack:
package.json:
? name my-awesome-nerdpack
? id 7d0

Found and loaded 2 artifacts on my-awesome-nerdpack (7d0) Nerdpack.
Artifacts:

Launchers:
? my-awesome-nerdpack-launcher launchers/my-awesome-nerdpack-launcher/nr1.json

Nerdlets:
? my-awesome-nerdpack-nerdlet nerdlets/my-awesome-nerdpack-nerdlet/nr1.json

? Built artifact files for:
? 7d0–my-awesome-nerdpack-nerdlet built ?
? 7d0–styles built ?

? Nerdpack built successfully!
★ Starting as orchestrator…

? Server ready! Test it at: https://one.newrelic.com/?nerdpacks=local
? Server will reload automatically if you modify any file!

? Built artifact files for:
? 7d0–my-awesome-nerdpack-nerdlet built ?
? 7d0–styles built ?

? Nerdpack built successfully!

Local nerdpacks failed to load.
You requested to load local nerdpacks for development through a query parameter, however we could not find a local server working on your machine.
Make sure you have got it working by running nr1 nerdpack:serve on your nerdpack, then reload the page. For further information, please proceed to the Development Center.


#2

Hey @yskitagawa

While you are cd'd into the project directory, could you try run again:

nr1 nerdpack:uuid -gf

And then try once again to serve:

nr1 nerdpack:serve

#3

Node service started as well?


#4

Thank you for the response.

I tried run again.
but, the result is the same as the previous time.


#5

Hey @yskitagawa -

Can you check that there is something running on the port the nerdpack is supposed to be running on (9973).

On my Mac I can do that with:

lsof -i tcp:9973


#6

Hi RyanVeitch,

Thank you for the response.

I checked port.
It is running on the port.

[ec2-user@ip-192-168-110-116 ~]$ lsof -i tcp:9973
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 10385 ec2-user 23u IPv4 129395 0t0 TCP localhost:9973 (LISTEN)


#7

Ok! @yskitagawa - in this case there’s one more troubleshooting step we can take…

That is - that the account you are logged into & viewing is not the same as the account you have a profile configured.

If you can check by running:

nr1 profiles:list -s

You’ll see what accounts you have a profile set up against. It’ll also show you the API key set up, could you verify that you are using a profile with a valid API key and that you are logged into the New Relic account using the user profile owning that API key.


#8

Hi RyanVeitch,

Thank you for the response.

When I executed command, then Name and API key was displayed.
They are what I am using.

Name                           Region API key
-xxxx-xxxxx-xxx-xxxx (default) us     NRAK-xxxxxxxxxxxxxxxxx

#9

@yskitagawa -

Hmm - this is really strange - I’m curious right now though -

Local Nerdpacks Failed to Load

This theoretically could be thrown by some corrupt cache that is making the browser not see your locally running Nerdpacks.

Could you try clearing all cache and cookies in your browser, or, alternatively, try log in in a new browser or incognito window to confirm that it’s not something in your browser that’s causing this?


#10

I had this issue too and I realized it was because I was using the wrong New Relic One account. Once I made my default profile the same one as the New Relic One account I wanted to use, then things worked.

Hope this helps.

Generosa


#11

Hi RyanVeitch and glitton,

Thank you for the response.

I tried using secret browser, but the result is the same as the previous time.

I don’t know I making default profile the same one as the New Relic One account.
Could you tell me how to that?

By the way, Do I need to open port of security group when using aws?


#12

Hey @yskitagawa

You can confirm your default profile by running:

nr1 profiles:default

That will list all of the profiles you have configured on your machine, allowing you to select the default, which should be the one you are logging into New Relic with.


As for ports, the Nerdpacks will run on port 9973, you may need to ensure this is open, however I would expect the CLI to return errors when you try to run it if it has no access to the port.


Would you be able to deploy your nerdpack to the account, such that we can see if this only happens when you locally serve?

You can do that by running the below commands while CD'd into the project directory.

nr1 nerdpack:publish --force        
nr1 nerdpack:deploy -c STABLE    // You can choose a deploy channel (-c flag) between STABLE | DEV | BETA
nr1 nerdpack:subscribe -c STABLE // This -c flag needs to match the channel you deploy to

Following this, you can log into the account without the ?nerdpacks=local and see if the nerdpack shows up there.


#13

Hi RyanVeitch,

Thank you for the response.

I tried commands, then able to deploy.
I see [Hello, my-awesome-nerdpack Nerdlet!] when access nerdpack.


#14

Hey @yskitagawa - so what it seems is that you can look at deployed nerdpacks, but not locally served nerdpacks.

We have confirmed that the profile you are using is correct, you are logged into the UI correctly, and so the only other thing this could be, is that you are logged into a New Relic on a machine that is not serving the nerdpack.

Are you SSH’d into a machine to serve the nerdpack? And not logging in to the UI on that same machine?

The nerdpack will be served to localhost - or 127.0.0.1, so you’ll need to be on the same device to see it in the browser.


#15

Hi RyanVeitch,

Oh… I see.
I SSH’d into a machine to serve the nerdpack.
Thank you very much. I understand the issue.

Incidentally, could you tell me how to remove for deployed nerdpacks?


#16

@yskitagawa -

Removing deployed Nerdpacks is just as easy as deploying them :smiley:

First, CD into the project directory (this is so that the CLI knows which Nerdpack UUID to run commands against.

You’ll need to unsubscribe the account from the nerdpack:

nr1 nerdpack:unsubscribe

Then just undeploy the app:

nr1 nerdpack:undeploy -c STABLE // This again depends on the channel you deployed to between STABLE | DEV |BETA... The unsubscribe command should tell you which channel you unsubscribed from. 

#17

Hi RyanVeitch,

Thank you for the response!
I understand everything!


#18

@yskitagawa - Great! Glad to hear it.

We’re here if you have any further questions :smiley: