Open rossyell opened 4 years ago
Hi, I have something very similar, I installed it in UNRAID, but, besides that it crashes, I can´t make changes because the glassadmin is not recoginized at the GUI.
Do you know what is going on? Attached is my log.
Thanks for your help
Absolutely awesome work - when it is running. I really hope this is a project that continues.
I seem to be having similar problems to those described by #4. I am running on Pi4 with latest version of raspberrian lite - and am running later version of nodejs.
The rot starts here:
[WS] CLIENT_CONNECT: Socket clients (23) [WS] STATUS: Socket clients (23) /bin/sh: 1: ./bin/dhcpd-pools: Exec format error GET /get_stats 500 45.400 ms - 1015 RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: 2 at ServerResponse.writeHead (_http_server.js:248:11) at ServerResponse.writeHead (/opt/glass-isc-dhcp/node_modules/on-headers/index.js:55:19) at ServerResponse._implicitHeader (_httpserver.js:239:8) at write (_http_outgoing.js:650:9) at ServerResponse.end (_http_outgoing.js:761:5) at ServerResponse.send (/opt/glass-isc-dhcp/node_modules/express/lib/response.js:221:10) at /opt/glass-isc-dhcp/app.js:84:6 at Layer.handle_error (/opt/glass-isc-dhcp/node_modules/express/lib/router/layer.js:71:5) at trim_prefix (/opt/glass-isc-dhcp/node_modules/express/lib/router/index.js:315:13) at /opt/glass-isc-dhcp/node_modules/express/lib/router/index.js:284:7 GET /dhcp_statistics 304 8.373 ms - - GET /assets/plugins/node-waves/waves.css 304 7.579 ms - - GET /assets/plugins/bootstrap/css/bootstrap.css 304 10.556 ms - - GET /assets/plugins/morris/morris.css 304 5.773 ms - -
and runs well for a while until
/api/get_mac_oui_count_by_vendor 304 3.244 ms - - GET /api/get_dhcp_requests 304 2.323 ms - - [WS] CLIENT_CONNECT: Socket clients (24) [WS] STATUS: Socket clients (1) GET /assets/plugins/bootstrap/fonts/glyphicons-halflings-regular.woff2 304 3.854 ms - - GET /images/glass_logo.png 200 9.766 ms - 22041 [WS] STATUS: Socket clients (1) [WS] STATUS: Socket clients (1) [Glass Server] Alert loop started /bin/sh: 1: ./bin/dhcpd-pools: Exec format error child_process.js:669 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:630:11) at execSync (child_process.js:666:15) at Timeout._onTimeout (/opt/glass-isc-dhcp/app.js:322:21) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) {
... Unfortunately now way beyond my abilities. Any suggestions ?
I think the issue is that dhcpd-pools actually is a binary executable and compiled for a different architecture then the arm architecture of the rpi. I worked around that by installing dhcpd-pools with apt (running glass-isc-dhcp in a docker container on a pi4) and replacing the dhcpd-pools file in the bin directory with a symlink to the newly installed version. IT's a bit of a hack but I got glass-isc-dhcp running that way.
Absolutely awesome work - when it is running. I really hope this is a project that continues.
I seem to be having similar problems to those described by https://github.com/Akkadius/glass-isc-dhcp/issues/4. I am running on Pi4 with latest version of raspberrian lite - and am running later version of nodejs.
The rot starts here:
[WS] CLIENT_CONNECT: Socket clients (23) [WS] STATUS: Socket clients (23) /bin/sh: 1: ./bin/dhcpd-pools: Exec format error GET /get_stats 500 45.400 ms - 1015 RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: 2 at ServerResponse.writeHead (_http_server.js:248:11) at ServerResponse.writeHead (/opt/glass-isc-dhcp/node_modules/on-headers/index.js:55:19) at ServerResponse._implicitHeader (_httpserver.js:239:8) at write (_http_outgoing.js:650:9) at ServerResponse.end (_http_outgoing.js:761:5) at ServerResponse.send (/opt/glass-isc-dhcp/node_modules/express/lib/response.js:221:10) at /opt/glass-isc-dhcp/app.js:84:6 at Layer.handle_error (/opt/glass-isc-dhcp/node_modules/express/lib/router/layer.js:71:5) at trim_prefix (/opt/glass-isc-dhcp/node_modules/express/lib/router/index.js:315:13) at /opt/glass-isc-dhcp/node_modules/express/lib/router/index.js:284:7 GET /dhcp_statistics 304 8.373 ms - - GET /assets/plugins/node-waves/waves.css 304 7.579 ms - - GET /assets/plugins/bootstrap/css/bootstrap.css 304 10.556 ms - - GET /assets/plugins/morris/morris.css 304 5.773 ms - -
and runs well for a while until
/api/get_mac_oui_count_by_vendor 304 3.244 ms - - GET /api/get_dhcp_requests 304 2.323 ms - - [WS] CLIENT_CONNECT: Socket clients (24) [WS] STATUS: Socket clients (1) GET /assets/plugins/bootstrap/fonts/glyphicons-halflings-regular.woff2 304 3.854 ms - - GET /images/glass_logo.png 200 9.766 ms - 22041 [WS] STATUS: Socket clients (1) [WS] STATUS: Socket clients (1) [Glass Server] Alert loop started /bin/sh: 1: ./bin/dhcpd-pools: Exec format error child_process.js:669 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
status: 2, signal: null, output: [ null,