GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update forever · Issue #2182 · FieldDB/FieldDB

Update forever #2182

New issue
Copy link
New issue
Copy link
Open
Open
Update forever#2182
Copy link

Description

@cesine
cesine
opened on Feb 20, 2022
Issue body actions

We are using an outdated version of forever on the severs. Update to a newer version or a replacement

Before

$ tail -n 200 ../logs/fielddbcorpus.log 
(node:37767) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
node:internal/fs/utils:879
  throw new ERR_INVALID_ARG_TYPE(
  ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (37774)
    at Object.writeFileSync (node:fs:2148:5)
    at writePid (/data/fielddbhome/CorpusWebService/node_modules/forever/bin/monitor:13:6)
    at exports.Monitor.<anonymous> (/data/fielddbhome/CorpusWebService/node_modules/forever/bin/monitor:46:5)
    at exports.Monitor.EventEmitter.emit (/data/fielddbhome/CorpusWebService/node_modules/eventemitter2/lib/eventemitter2.js:339:22)
    at /data/fielddbhome/CorpusWebService/node_modules/forever-monitor/lib/forever-monitor/monitor.js:175:10
    at processTicksAndRejections (node:internal/process/task_queues:78:11) {
  code: 'ERR_INVALID_ARG_TYPE'
}

After https://www.npmjs.com/package/forever @4.0.3

$ ls -al ../logs
total 4
drwxrwxr-x  2 fielddb fielddb   62 Feb 20 12:21 .
drwxr-xr-x 17 fielddb fielddb 4096 Feb 20 12:11 ..
-rw-r--r--  1 fielddb fielddb    0 Feb 20 12:11 fielddbcorpuserr.log
-rw-r--r--  1 fielddb fielddb    0 Feb 20 12:11 fielddbcorpusout.log

$ curl http://localhost:3186
curl: (7) Failed to connect to localhost port 3186: Connection refused
$ curl https://localhost:3186
curl: (7) Failed to connect to localhost port 3186: Connection refused
  • https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-20-04
  • https://pm2.io/docs/runtime/best-practices/environment-variables/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.