[GH-ISSUE #238] log.io-file-input dead start #195

Closed
opened 2026-02-26 05:31:34 +03:00 by kerem · 5 comments
Owner

Originally created by @fency12 on GitHub (May 20, 2020).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/238

[root@tools01 .log.io]# log.io-file-input
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:523:3)
at tryReadSync (fs.js:348:20)
at Object.readFileSync (fs.js:385:19)
at loadConfig (/usr/local/lib/node_modules/log.io-file-input/lib/index.js:28:42)
at _callee$ (/usr/local/lib/node_modules/log.io-file-input/lib/index.js:48:20)
at tryCatch (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:274:22)
at Generator.prototype. [as next] (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:97:21)
at asyncGeneratorStep (/usr/local/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/usr/local/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9) {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}

Originally created by @fency12 on GitHub (May 20, 2020). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/238 [root@tools01 .log.io]# log.io-file-input Error: EISDIR: illegal operation on a directory, read at Object.readSync (fs.js:523:3) at tryReadSync (fs.js:348:20) at Object.readFileSync (fs.js:385:19) at loadConfig (/usr/local/lib/node_modules/log.io-file-input/lib/index.js:28:42) at _callee$ (/usr/local/lib/node_modules/log.io-file-input/lib/index.js:48:20) at tryCatch (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:45:40) at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:274:22) at Generator.prototype.<computed> [as next] (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:97:21) at asyncGeneratorStep (/usr/local/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24) at _next (/usr/local/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9) { errno: -21, syscall: 'read', code: 'EISDIR' }
kerem 2026-02-26 05:31:34 +03:00
Author
Owner

@msmathers commented on GitHub (May 20, 2020):

Can you copy and paste the contents of ~/.log.io/inputs/file.json here?

<!-- gh-comment-id:631487435 --> @msmathers commented on GitHub (May 20, 2020): Can you copy and paste the contents of `~/.log.io/inputs/file.json` here?
Author
Owner

@fency12 commented on GitHub (May 21, 2020):

Can you copy and paste the contents of ~/.log.io/inputs/file.json here?

~/.log.io/inputs/file.json This configuration is correct;
Later, I deleted the ~/log.io directory and the configuration in /usr/local/lib/node_modules/log.io-file-input/config.json can be started normally;
So far, that's how it works.
thank you

<!-- gh-comment-id:631915128 --> @fency12 commented on GitHub (May 21, 2020): > Can you copy and paste the contents of `~/.log.io/inputs/file.json` here? ~/.log.io/inputs/file.json This configuration is correct; Later, I deleted the ~/log.io directory and the configuration in /usr/local/lib/node_modules/log.io-file-input/config.json can be started normally; So far, that's how it works. thank you
Author
Owner

@fency12 commented on GitHub (May 21, 2020):

  1. 配置文件 ~/.log.io/inputs/file.json 是默认的文件拷贝过来的,没有自己修改过,确保是正确的;但一直无法启动。
  2. 后来删除~/.log.io/文件夹使用模块内的配置文件/usr/local/lib/node_modules/log.io-file-input/config.json 启动成功,目前是这么处理的。
<!-- gh-comment-id:631915718 --> @fency12 commented on GitHub (May 21, 2020): 1. 配置文件 ~/.log.io/inputs/file.json 是默认的文件拷贝过来的,没有自己修改过,确保是正确的;但一直无法启动。 2. 后来删除~/.log.io/文件夹使用模块内的配置文件/usr/local/lib/node_modules/log.io-file-input/config.json 启动成功,目前是这么处理的。
Author
Owner

@msmathers commented on GitHub (May 21, 2020):

The config.js provided with the NPM package contains sample file paths that likely won't work on most machines... I'll make a ticket to remove these and have the file input throw an error if it can't find valid configuration.

<!-- gh-comment-id:632071732 --> @msmathers commented on GitHub (May 21, 2020): The `config.js` provided with the NPM package contains sample file paths that likely won't work on most machines... I'll make a ticket to remove these and have the file input throw an error if it can't find valid configuration.
Author
Owner

@fency12 commented on GitHub (May 22, 2020):

thank you , I hope the better.

<!-- gh-comment-id:632426219 --> @fency12 commented on GitHub (May 22, 2020): thank you , I hope the better.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#195
No description provided.