Skip to content

Node.js "os.networkInterfaces()" fails with "ERR_SYSTEM_ERROR" in Alpine terminal environment #2200

@egoletter

Description

@egoletter

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

The Alpine Linux terminal environment provided by Acode appears to block access to network interface information.

This causes Node.js APIs that depend on network interface enumeration to fail.

For example:

node -e "console.log(require('os').networkInterfaces())"

produces:

SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_interface_addresses returned Unknown system error 13 (Unknown system error 13)

Stack trace:

SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_interface_addresses returned Unknown system error 13 (Unknown system error 13)
    at Object.networkInterfaces (node:os:218:16)
    at [eval]:1:27
    at runScriptInThisContext (node:internal/vm:209:10)
    at node:internal/process/execution:446:12
    at [eval]-wrapper:6:24
    at runScriptInContext (node:internal/process/execution:444:60)
    at evalFunction (node:internal/process/execution:88:30)
    at evalScript (node:internal/process/execution:100:3)
    at node:internal/main/eval_string:74:3 {
  code: 'ERR_SYSTEM_ERROR',
  info: {
    errno: 13,
    code: 'Unknown system error 13',
    message: 'Unknown system error 13',
    syscall: 'uv_interface_addresses'
  },
  errno: [Getter/Setter],
  syscall: [Getter/Setter]
}

Impact

Many Node.js tools rely on "os.networkInterfaces()". In my case, "wrangler dev" fails because Node cannot enumerate network interfaces.

This may also affect other development tools, local dev servers, and packages that attempt to detect local IP addresses.

Expected behavior

Node.js should be able to access network interface information, or the Alpine environment should expose enough functionality for standard networking APIs to work correctly.

Environment

Device Information:
WebView Info:
Package Name: com.google.android.webview
Version: 148.0.7778.215

App Info:
Name: Acode
Package Name: com.foxdebug.acode
Version: 1.12.4
Version Code: 974

Device Info:
Android Version: 12
Manufacturer: vivo
Model: V2120
Platform: Android
Cordova Version: 15.0.0

Screen Info:
Width: 427
Height: 949
Color Depth: 24

Additional Info:
Language: en-GB
User Agent: Mozilla/5.0 (Linux; Android 12; V2120 Build/SP1A.210812.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/148.0.7778.215 Mobile Safari/537.36

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions