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

需要先判断文件是否存在。 #76

Open
JacksonTian opened this issue Apr 18, 2018 · 7 comments
Open

需要先判断文件是否存在。 #76

JacksonTian opened this issue Apr 18, 2018 · 7 comments

Comments

@JacksonTian
Copy link
Contributor

2018-04-18 16:44:01,879 ERROR 108558 nodejs.Error: Command failed: cat /proc/63968/environ
cat: /proc/63968/environ: 权限不够

cat: /proc/63968/environ: 权限不够

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)
killed: false
code: 1
signal: null
cmd: 'cat /proc/63968/environ'
pid: 108558

63968 已经不存在。

@zhangzifa
Copy link
Contributor

zhangzifa commented Apr 18, 2018

什么机器? 我本地ubuntu上的结果

> { Error: Command failed: cat /proc/12345/environ
cat: /proc/12345/environ: No such file or directory

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cat /proc/12345/environ' }

@viko16
Copy link

viko16 commented Aug 29, 2018

同样遇到。

另外遇到这样的异常,是否也是类似的问题呢?

2018-08-29 08:50:32,090 ERROR 207 nodejs.ENOENTError: ENOENT: no such file or directory, scandir '/storage/logs/coredump'
Error: ENOENT: no such file or directory, scandir '/storage/logs/coredump'
errno: -2
code: "ENOENT"
syscall: "scandir"
path: "/storage/logs/coredump"
name: "ENOENTError"
pid: 207

@zhangzifa
Copy link
Contributor

@viko16 你的agentx版本?

@viko16
Copy link

viko16 commented Aug 29, 2018

@zhangzifa 由 egg-alinode 引入

  • agentx 1.9.11
  • egg-alinode 2.0.1
  • node 8.11.3

@zhangzifa
Copy link
Contributor

/storage/logs/coredump 这个目录存在吗?

@viko16
Copy link

viko16 commented Aug 29, 2018

@zhangzifa 这个目录不存在

@zhangzifa
Copy link
Contributor

这个是你配置的目录?还是agentx自己识别出来的目录?

另外:如果配置了不存在的目录,每次扫描的时候,都会写这条日志,但是功能上没影响

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

No branches or pull requests

3 participants