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

ps-tree error on node.js 20 #16

Closed
fengmk2 opened this issue May 4, 2023 · 1 comment · Fixed by #17
Closed

ps-tree error on node.js 20 #16

fengmk2 opened this issue May 4, 2023 · 1 comment · Fixed by #17

Comments

@fengmk2
Copy link
Member

fengmk2 commented May 4, 2023

https://github.com/node-modules/graceful/blob/master/index.js#LL122C3-L122C9

2023-05-03 21:50:56,921 ERROR 3873346 [-/127.0.0.1/6f008500-e9b9-11ed-977e-775c5ef9fd68/41033.026ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncPackageWorker.js&interval=1000&type=all&env=&disable=false&immediate=false] nodejs.TypeError: Cannot read properties of undefined (reading 'on') (uncaughtException throw 4 times on pid:3873346)
    at duplex (/home/admin/application/node_modules/[email protected]@duplexer/index.js:31:12)
    at Object.module.exports (/home/admin/application/node_modules/[email protected]@stream-combiner/index.js:8:17)
    at childrenOfPid (/home/admin/application/node_modules/[email protected]@ps-tree/index.js:50:6)
    at killChildren (/home/admin/application/node_modules/[email protected]@graceful/index.js:122:3)
    at Timeout._onTimeout (/home/admin/application/node_modules/[email protected]@graceful/index.js:67:9)
    at listOnTimeout (node:internal/timers:573:17)
    at processTimers (node:internal/timers:514:7)

pid: 3873346

2023-05-03 21:50:56,922 ERROR 3873346 [-/127.0.0.1/6f008500-e9b9-11ed-977e-775c5ef9fd68/41034.085ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncPackageWorker.js&interval=1000&type=all&env=&disable=false&immediate=false] nodejs.EMFILEError: spawn ps EMFILE (uncaughtException throw 5 times on pid:3873346)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
errno: -24
code: "EMFILE"
syscall: "spawn ps"
path: "ps"
spawnargs: ["-A","-o","ppid,pid,stat,comm"]
name: "EMFILEError"
pid: 3873346
@fengmk2
Copy link
Member Author

fengmk2 commented May 4, 2023

2023-05-04 00:11:22,441 ERROR 1361655 [-/127.0.0.1/f2f64761-e9cc-11ed-9078-3bc9f0576b81/84723.037ms SCHEDULE /__schedule?path=/home/admin/application/app/port/schedule/SyncPackageWorker.js&interval=1000&type=all&env=&disable=false&immediate=false] nodejs.EMFILEError: EMFILE: too many open files, open '/root/.cnpmcore/downloads/2023/05/04/4322e81f96551cc79fe3-easy-test-13.5.0.tgz' (uncaughtException throw 11 times on pid:1361655)

fengmk2 added a commit that referenced this issue Dec 15, 2024
BREAKING CHANGE: drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

closes #16

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Introduced a new ESLint configuration for TypeScript and Node.js.
	- Added a new GitHub Actions workflow for package publishing.
	- Implemented a new TypeScript configuration for enhanced type safety.
	- Created a new test suite for validating worker process behavior.
	- Added a new test suite for verifying child process behavior.

- **Bug Fixes**
- Updated Node.js CI workflow to include newer versions and improved
configurations.

- **Documentation**
	- Enhanced README with updated badges and installation instructions.
	- Updated example documentation to reflect file extension changes.

- **Chores**
	- Removed outdated files and workflows to streamline the repository.
	- Updated `.gitignore` to exclude additional files and directories.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
fengmk2 pushed a commit that referenced this issue Dec 15, 2024
[skip ci]

## [2.0.0](v1.1.0...v2.0.0) (2024-12-15)

### ⚠ BREAKING CHANGES

* drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

closes #16

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Introduced a new ESLint configuration for TypeScript and Node.js.
	- Added a new GitHub Actions workflow for package publishing.
	- Implemented a new TypeScript configuration for enhanced type safety.
	- Created a new test suite for validating worker process behavior.
	- Added a new test suite for verifying child process behavior.

- **Bug Fixes**
- Updated Node.js CI workflow to include newer versions and improved
configurations.

- **Documentation**
	- Enhanced README with updated badges and installation instructions.
	- Updated example documentation to reflect file extension changes.

- **Chores**
	- Removed outdated files and workflows to streamline the repository.
	- Updated `.gitignore` to exclude additional files and directories.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

### Features

* support cjs and esm both by tshy ([#17](#17)) ([7192a67](7192a67))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant