lang/node

node.js Common System Errors

C/H 2018. 2. 23. 18:07



Common System Errors

This list is not exhaustive, but enumerates many of the common system errors encountered when writing a Node.js program. An exhaustive list may be found here

이 목록은 전부는 아니지만 Node.js 프로그램을 작성할 때 발생하는 많은 공통 시스템 오류를 나열합니다. 전체 목록은 여기에서 찾을 수 있습니다.

EACCES
(Permission denied): An attempt was made to access a file in a way forbidden by its file access permissions.
파일 액세스 권한으로 금지 된 방식으로 파일에 액세스하려고했습니다.
EADDRINUSE
(Address already in use): An attempt to bind a server (net, http, or https) to a local address failed due to another server on the local system already occupying that address.
로컬 시스템의 다른 서버가 해당 주소를 이미 차지하여 서버 (net, http 또는 https)를 로컬 주소에 바인드하지 못했습니다.
ECONNREFUSED
(Connection refused): No connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host.
대상 컴퓨터가 적극적으로 거부했기 때문에 연결할 수 없습니다. 이는 대개 외부 호스트에서 비활성 상태 인 서비스에 연결하려고 시도한 결과 발생합니다.
ECONNRESET
(Connection reset by peer): A connection was forcibly closed by a peer. This normally results from a loss of the connection on the remote socket due to a timeout or reboot. Commonly encountered via the http and net modules.
연결이 피어에 의해 강제로 닫혔습니다. 이는 일반적으로 시간 초과 또는 재부팅으로 인해 원격 소켓에서 연결이 끊어지면 발생합니다. 일반적으로 http 및 net 모듈을 통해 발생합니다.
EEXIST
(File exists): An existing file was the target of an operation that required that the target not exist.
기존 파일이 대상이 존재하지 않는 작업의 대상이었습니다.
EISDIR
(Is a directory): An operation expected a file, but the given pathname was a directory.
조작에는 파일이 필요했지만 주어진 경로 이름은 디렉토리였습니다.
EMFILE
(Too many open files in system): Maximum number of file descriptors allowable on the system has been reached, and requests for another descriptor cannot be fulfilled until at least one has been closed. This is encountered when opening many files at once in parallel, especially on systems (in particular, macOS) where there is a low file descriptor limit for processes. To remedy a low limit, run ulimit -n 2048 in the same shell that will run the Node.js process.
시스템에서 허용되는 최대 파일 디스크립터 수에 도달했으며 적어도 하나가 닫힐 때까지 다른 디스크립터에 대한 요청을 수행 할 수 없습니다. 여러 파일을 동시에 병렬로 열 때, 특히 프로세스에 대한 파일 디스크립터 제한이 낮은 시스템 (특히 macOS)에서이 문제가 발생합니다. 한도를 수정하려면 Node.js 프로세스를 실행할 동일한 셸에서 ulimit -n 2048을 실행하십시오.
ENOENT
(No such file or directory): Commonly raised by fs operations to indicate that a component of the specified pathname does not exist -- no entity (file or directory) could be found by the given path.
지정된 경로 이름의 구성 요소가 존재하지 않음을 나타 내기 위해 일반적으로 fs 연산에 의해 발생합니다. -- 주어진 경로에서 엔티티 (파일 또는 디렉토리)를 찾을 수 없습니다.
ENOTDIR
(Not a directory): A component of the given pathname existed, but was not a directory as expected. Commonly raised by fs.readdir.
주어진 경로 이름의 구성 요소가 있지만 예상대로 디렉토리가 아닙니다. 일반적으로 fs.readdir에 의해 제기됩니다.
ENOTEMPTY
(Directory not empty): A directory with entries was the target of an operation that requires an empty directory -- usually fs.unlink.
항목이있는 디렉토리는 빈 디렉토리 (일반적으로 fs.unlink)가 필요한 작업의 대상이었습니다.
EPERM
(Operation not permitted): An attempt was made to perform an operation that requires elevated privileges.
상승 된 권한이 필요한 작업을 수행하려고했습니다.
EPIPE
(Broken pipe): A write on a pipe, socket, or FIFO for which there is no process to read the data. Commonly encountered at the net and http layers, indicative that the remote side of the stream being written to has been closed.
데이터를 읽을 프로세스가없는 파이프, 소켓 또는 FIFO에 쓰십시오. 일반적으로 net 및 http 계층에서 발생하며 기록되는 스트림의 원격 측이 닫혔 음을 나타냅니다.
ETIMEDOUT
(Operation timed out): A connect or send request failed because the connected party did not properly respond after a period of time. Usually encountered by http or net -- often a sign that a socket.end() was not properly called.
연결된 당사자가 일정 기간 후에 제대로 응답하지 않았으므로 연결 또는 전송 요청이 실패했습니다. 일반적으로 http 또는 net에 의해 발생합니다 - 종종 socket.end ()가 제대로 호출되지 않았 음을 나타내는 기호입니다.


반응형

'lang > node' 카테고리의 다른 글

node.js json-server  (0) 2018.06.13
Node.js helloWorld  (0) 2018.06.10
express-socket.io-session  (0) 2018.02.13
node.js 64bit int buffer  (0) 2018.01.25
2진수 채우기 zerofill  (0) 2018.01.12