I'm using pm2 version 4.4.0 and trying to start the pm2 web server.
Is 'pm2 web' deprecated? If yes, how do I get the CPU and memory metrics using pm2 API?
I am trying to create a Grafana dashboard for pm2 following this article:
https://medium.com/#nikunjd.np/pm2-microservices-monitoring-with-grafana-influxdb-54fb6f8b5d2d
Related
Overview of the Issue
Hello there, I'm facing a checksum error while performing a packer init with azure plugin.
Failed getting the "github.com/hashicorp/azure" plugin: 1 error occurred: * could not get sha256 checksum file for github.com/hashicorp/azure version 1.3.1. Is the file present on the release and correctly named ? Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/361409316/cbfe3de3-680b-4c47-b744-bbde6a784bac?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230103%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230103T103126Z&X-Amz-Expires=300&X-Amz-Signature=52275607836fbd0304f7ce9d44575c6f128b4978fe43bd0c7f12e0b81e628552&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=361409316&response-content-disposition=attachment%3B%20filename%3Dpacker-plugin-azure_v1.3.1_SHA256SUMS&response-content-type=application%2Foctet-stream": x509: certificate signed by unknown authority
Reproduction Steps
Use hashicorp azure plugin, I guess
Plugin and Packer version
Azure plugin version 1.3.1
Packer version 1.8.2
Operating system and Environment details
Packer is running on an Ubuntu WSL
What did I tried exactly and what did I expected ?
I tried a Packer Init. Packer is supposed to initiate the plugins.
I tried to update packer, update the host, install ca-certificate. None of this resolve the issue.
Do you know how I can get away with this errors ?
Thank you :)
I tried a Packer Init. Packer is supposed to initiate the plugins.
I first invoked PM2 with pm2 start index.js --watch --ignore-watch "node_modules". However, despite telling it to watch my files for changes and then reload, it is not using the latest version of my app when I pull from git.
To test this:
$ git show
new version commit message
$ pm2 describe index | grep comment
old version commit message
So PM2 is using a cached version.
I tried to reload the app manually, using pm2 reload index:
$ pm2 reload index
[PM2] Applying action reloadProcessId on app [index](ids: 0)
[PM2] [index](0) ✓
However, it's still not using the latest version of my app. pm2 describe index | grep comment shows exactly the same old version commit message.
The only way I am able to get it to work is running pm2 kill and then pm2 resurrect, but that's not a satisfactory solution. It's too slow!
Is PM2 doing some caching? I've read through all of their docs and done an extensive search but can't figure this out.
After further testing this appears to be a bug in PM2's reporting of the git commit. The version being served is actually the latest version, but PM2 is reporting the out-of-date one. Bug report published.
Unable to install the "da-cli-114-7582c1a0bd-linux.run" file in my Ubuntu VM. The setup is failing while checking the latest version check.
I have downloaded the latest DAML SDK setup file "da-cli-114-7582c1a0bd-linux.run" and copied the same into my Ubuntu VM through local network connection. When I try to install the .run file, the setup trying to connect to the internet for latest version check. But I am not allowed to use internet in the application servers/VMs. Because of this restriction the setup is getting failed and I am unable to complete the DAML SDK installation.
Is it possible to get the DAML SDK setup as a .tar file? If we have tar file, then it will be easy to complete the setup manually.
Installing the SDK using the .run files in an environment without an internet connection is not easy. It might be possible to install it in an environment with internet and then tar up the folder ~/.da, extract it back into place in the VM and put ~/.da/bin.
However, there is a new SDK assistant in the works (called daml, not da), which can be installed using curl -sSL get.daml.com | sh. If you look at the content of the installation script, you can see that all it really does is downloading a tar-ball from GitHub releases, un-tars it and calls an install.sh script within. That's probably the easier way to get the SDK into an offline environment at this point.
However, the documentation for the new daml assistant is not on docs.daml.com yet. It will be shortly, but in the meantime you can read it on GitHub.
I was trying to install newest Bluemix container service with Kubenetes plug-in; however, I got below message. Followed by DOC - container service
ocmbpro:~ ochen$ bx plugin install container-service -r Bluemix
Looking up 'container-service' from repository 'Bluemix'...
FAILED
'Bluemix' does not exist as an available plug-in repo. Check the name and try again.
Error_msg
Has anyone met this issue ?
You can download the plugin binary directly here:
https://clis.ng.bluemix.net/ui/repository.html#bluemix-plugins
Then run bx plugin install ~/Downloads/my-plugin.
You could run this command to add Bluemix to your list of available repos:
bx plugin repo-add Bluemix https://plugins.ng.bluemix.net
After that, when you list your repos, it should be there:
$ bx plugin repos
Listing added plug-in repositories...
Repo Name URL
Bluemix https://plugins.ng.bluemix.net
Then you can list the plugins:
$ bx plugin repo-plugins
Getting plug-ins from all repositories...
Repository: Bluemix
Name Description Versions
active-deploy Bluemix CLI plugin for Active Deploy to help you update applications and containers with no downtime. Works for Cloud Foundry apps and for IBM Containers. 0.1.97, 0.1.105
auto-scaling Bluemix CLI plug-in for Auto-Scaling service 0.2.1, 0.2.2
vpn Bluemix CLI plug-in for IBM VPN service 1.5.0, 1.5.1, 1.5.2
private-network-peering pnp-plugin-description 0.1.1
IBM-Containers Plugin to operate IBM Containers service 1.0.0
container-registry Plugin for IBM Bluemix Container Registry. 0.1.104, 0.1.107
container-service IBM Bluemix Container Service for management of Kubernetes clusters 0.1.217
sdk-gen Plugin to generate SDKs from Open API specifications 0.1.1
dev IBM Bluemix CLI Developer Plug-in 0.0.5
Then you can install one:
bluemix plugin install plugin_name -r Bluemix
Is it possible to see the restart log/history with PM2 app?
I saw my nodeJS app restarted a few times but no clue when.
I've checked pm2 documentation but no luck.
PM2 logs are streamed into the file ˜/.pm2/pm2.log
You can run the command: pm2 logs for an output of all logs, relating to running apps and their error logs.
The first log file in the window will be the default PM2 ones, for this kind of information.