question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu 16.04 scrape.js giving error at pm2 other are online

See original GitHub issue

scrape show as errored other are online

root@GBiT:/home/data# pm2 show 1
 Describing process with id 1 - name scrape
┌───────────────────┬────────────────────────────────────┐
│ status            │ errored                            │
│ name              │ scrape                             │
│ restarts          │ 120                                │
│ uptime            │ 0                                  │
│ script path       │ /home/scriptz/scraper/scrape.js    │
│ script args       │ N/A                                │
│ error log path    │ /root/.pm2/logs/scrape-error-1.log │
│ out log path      │ /root/.pm2/logs/scrape-out-1.log   │
│ pid path          │ /root/.pm2/pids/scrape-1.pid       │
│ interpreter       │ node                               │
│ interpreter args  │ N/A                                │
│ script id         │ 1                                  │
│ exec cwd          │ /home/scriptz/scraper              │
│ exec mode         │ fork_mode                          │
│ node.js version   │ 4.2.6                              │
│ watch & reload    │ ✘                                  │
│ unstable restarts │ 0                                  │
│ created at        │ N/A                                │
└───────────────────┴────────────────────────────────────┘
 Revision control metadata
┌──────────────────┬───────────────────────────────────────────┐
│ revision control │ git                                       │
│ remote url       │ https://github.com/AlphaReign/scraper.git │
│ repository root  │ /home/scriptz/scraper                     │
│ last update      │ 2017-03-03T11:30:43.665Z                  │
│ revision         │ 4dade970956f0bb280a773acda6bd5d47ef3ccbf  │
│ comment          │ update readme                             │
│ branch           │ master                                    │
└──────────────────┴───────────────────────────────────────────┘
 Add your own code metrics: http://bit.ly/code-metrics
 Use `pm2 logs scrape [--lines 1000]` to display logs
 Use `pm2 monit` to monitor CPU and Memory usage scrape

TypeError: this is not a typed array. at Function.from (native) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/PerMessageDeflate.js:8:24) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/WebSocket.js:16:27) at Module._compile (module.js:410:26) TypeError: this is not a typed array. at Function.from (native) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/PerMessageDeflate.js:8:24) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/WebSocket.js:16:27) at Module._compile (module.js:410:26) TypeError: this is not a typed array. at Function.from (native) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/PerMessageDeflate.js:8:24) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/WebSocket.js:16:27) at Module._compile (module.js:410:26) TypeError: this is not a typed array. at Function.from (native) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/PerMessageDeflate.js:8:24) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/scriptz/scraper/node_modules/ws/lib/WebSocket.js:16:27) at Module._compile (module.js:410:26)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Prefinemcommented, Mar 3, 2017
0reactions
Prefinemcommented, Mar 8, 2017

Any follow up on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Author is not accurate · Issue #110 · ageitgey/node-unfluff · GitHub
I've tested the package in using this URL. And this is the result: You can see that author property. { data: { title:...
Read more >
How To Use PM2 to Setup a Node.js Production Environment ...
This tutorial aims to help you setup up an Ubuntu server to run Node.js applications, including apps based on Express, Geddy, or Sails....
Read more >
PM2 error occurred => exited with code [1] via signal [SIGINT]
On Linux and other UNIX-derived OSs, the program writing the log file holds it open even when you rm it from a directory....
Read more >
A Complete Guide to Node.js Process Management with PM2
This in-depth guide runs you through the key features of Node.js process manager PM2.
Read more >
Npm can't find module "semver" error in Ubuntu 19.04
It's very likely that the version of npm you are using is expecting semver in a specific place that is not aligned with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found