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

glass on Raspberry Pi "Bookworm" crashes after a few seconds #103

Open
holmas opened this issue Oct 17, 2023 · 0 comments
Open

glass on Raspberry Pi "Bookworm" crashes after a few seconds #103

holmas opened this issue Oct 17, 2023 · 0 comments

Comments

@holmas
Copy link

holmas commented Oct 17, 2023

command line:

pi@ns2:/opt/glass-isc-dhcp $ sudo npm start

> [email protected] start
> node ./bin/www

[Glass Server] Watching leases file '/var/lib/dhcp/dhcpd.leases'
[Glass Server] Config watcher initialized
[Glass Server] DHCP log watcher initialized
[Glass Server] Websocket server starting on port: 8080
[Glass Server] Bootup complete
[Glass Server] Leases file loaded
[Glass Server] OUI Database Loaded
GET /api/get_websocket_config 304 40.139 ms - -
[WS] CLIENT_CONNECT: Socket clients (1)
[WS] STATUS: Socket clients (1)
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
GET /get_stats 126 59.761 ms - 150
/?v_ajax
GET /?v_ajax 304 12.249 ms - -
[WS] Incoming Subscription 'dhcp_statistics'
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
GET /get_stats 126 33.905 ms - 150
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
GET /get_stats 126 38.052 ms - 150
GET /dhcp_statistics?v_ajax 304 6.938 ms - -
GET /api/get_vendor_count 304 9.845 ms - -
GET /api/get_mac_oui_count_by_vendor 304 11.112 ms - -
GET /api/get_dhcp_requests 304 14.368 ms - -
GET /dhcp_leases?v_ajax 304 6.721 ms - -
POST /dhcp_lease_search 200 103.470 ms - 2735
GET /dhcp_config?v_ajax 304 33.934 ms - -
GET /assets/js/ace_editor/ace.js 304 11.148 ms - -
GET /assets/js/ace_editor/theme-terminal.js 304 2.476 ms - -
GET /assets/js/glass-pages/dhcp-config.js 304 2.215 ms - -
[WS] STATUS: Socket clients (1)
GET /dhcp_config_snapshots?v_ajax 500 19.549 ms - 61
/?v_ajax
GET /?v_ajax 304 11.764 ms - -
[WS] Incoming Subscription 'dhcp_statistics'
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
GET /get_stats 126 35.072 ms - 150
GET /dhcp_statistics?v_ajax 304 5.632 ms - -
GET /api/get_vendor_count 304 7.538 ms - -
GET /api/get_mac_oui_count_by_vendor 304 9.616 ms - -
GET /api/get_dhcp_requests 304 11.179 ms - -
GET /dhcp_leases?v_ajax 304 4.726 ms - -
POST /dhcp_lease_search 200 9.205 ms - 2735
GET /dhcp_log?v_ajax 304 6.856 ms - -
GET /assets/js/ace_editor/ace.js 304 3.776 ms - -
GET /assets/js/ace_editor/theme-terminal.js 304 3.407 ms - -
GET /assets/js/glass-pages/dhcp-logs.js 304 3.475 ms - -
GET /dhcp_leases?v_ajax 304 5.625 ms - -
POST /dhcp_lease_search 200 6.731 ms - 2735
[WS] STATUS: Socket clients (1)
[Glass Server] Alert loop started
GET /dhcp_statistics?v_ajax 304 6.203 ms - -
GET /api/get_vendor_count 304 8.086 ms - -
GET /api/get_mac_oui_count_by_vendor 304 9.430 ms - -
GET /api/get_dhcp_requests 304 10.935 ms - -
/?v_ajax
GET /?v_ajax 304 5.739 ms - -
[Glass Server] Slack alert triggered, but no webhook configured...
[Glass Server] Loading E-Mail template...
[Glass Server] Loading E-Mail template... DONE...
[Glass Server] Sending E-Mail Alert...

/bin/sh: 1: ./bin/dhcpd-pools: Exec format error
child_process.js:674
    throw err;
    ^

Error: Command failed: ./bin/dhcpd-pools -c /etc/dhcp/dhcpd.conf -l /var/lib/dhcp/dhcpd.leases -f j -A -s e
/bin/sh: 1: ./bin/dhcpd-pools: Exec format error

    at checkExecSyncError (child_process.js:635:11)
    at execSync (child_process.js:671:15)
    at Timeout._onTimeout (/opt/glass-isc-dhcp/app.js:322:21)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7) {
  status: 126,
  signal: null,
  output: [
    null,
    Buffer(0) [Uint8Array] [],
    Buffer(49) [Uint8Array] [
      47,  98, 105, 110,  47, 115, 104,  58,  32,  49,
      58,  32,  46,  47,  98, 105, 110,  47, 100, 104,
      99, 112, 100,  45, 112, 111, 111, 108, 115,  58,
      32,  69, 120, 101,  99,  32, 102, 111, 114, 109,
      97, 116,  32, 101, 114, 114, 111, 114,  10
    ]
  ],
  pid: 24139,
  stdout: Buffer(0) [Uint8Array] [],
  stderr: Buffer(49) [Uint8Array] [
    47,  98, 105, 110,  47, 115, 104,  58,  32,  49,
    58,  32,  46,  47,  98, 105, 110,  47, 100, 104,
    99, 112, 100,  45, 112, 111, 111, 108, 115,  58,
    32,  69, 120, 101,  99,  32, 102, 111, 114, 109,
    97, 116,  32, 101, 114, 114, 111, 114,  10
  ]
}
npm ERR! code 1
npm ERR! path /opt/glass-isc-dhcp
npm ERR! command failed
npm ERR! command sh -c node ./bin/www

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-10-17T20_59_48_689Z-debug.log

log file:

0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 9ms
4 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 11ms
5 timing config:load:builtin Completed in 11ms
6 timing config:load:cli Completed in 11ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/opt/glass-isc-dhcp/.npmrc Completed in 1ms
9 timing config:load:project Completed in 5ms
10 timing config:load:file:/root/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/etc/npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:setUserAgent Completed in 3ms
17 timing config:load:setEnvs Completed in 5ms
18 timing config:load Completed in 52ms
19 verbose npm-session 86f0af301af2916b
20 timing npm:load Completed in 106ms
21 timing command:run-script Completed in 67214ms
22 timing command:start Completed in 67228ms
23 verbose stack Error: command failed
23 verbose stack     at ChildProcess.<anonymous> (/usr/share/nodejs/@npmcli/promise-spawn/index.js:64:27)
23 verbose stack     at ChildProcess.emit (events.js:314:20)
23 verbose stack     at maybeClose (internal/child_process.js:1022:16)
23 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
24 verbose pkgid [email protected]
25 verbose cwd /opt/glass-isc-dhcp
26 verbose Linux 6.1.21-v7+
27 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
28 verbose node v12.22.12
29 verbose npm  v7.5.2
30 error code 1
31 error path /opt/glass-isc-dhcp
32 error command failed
33 error command sh -c node ./bin/www
34 verbose exit 1

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

1 participant