Closed hismastersvoice closed 6 years ago
@hismastersvoice i was having the same trouble. on raspberry pi you have to build the dhcpd-pools
since it was compiled for a different processor architecture. i followed the instructions in the README but they were missing some things... here's how i got it to work:
sudo apt-get install -y unzip libtool automake autoconf
cd /tmp
git clone https://github.com/Akkadius/dhcpd-pools.git
wget https://github.com/troydhanson/uthash/archive/master.zip
unzip master.zip
cd dhcpd-pools
cp README.md README
./bootstrap
./configure --with-uthash=/tmp/uthash-master/include
make -j4
make check
make install
sudo rm /opt/glass-isc-dchp/bin/dhcpd-pools
sudo cp ./dhcpd-pools /opt/glass-isc-dhcp/bin/
cd /opt/glass-isc-dhcp
sudo npm start
@jdforsythe Now it works perfect... I already tryed to compile it, but i got a lot for errors. THANKS...
sudo apt-get install -y unzip libtool automake autoconf
Just an addition for dependencies; I had to add make
since I was using a minimal install of Centos on Pi.
On Centos it was:
sudo yum install -y unzip libtool automake autoconf make
Hi,
I try to run the Web UI on a Raspberry 3 and Raspian lite. After some Miuntes of runing I get the following error.
GET /get_stats 500 33.057 ms - 1004 RangeError: Invalid status code: 2 at ServerResponse.writeHead (_http_server.js:194:11) at ServerResponse.writeHead (/opt/glass-isc-dhcp/node_modules/morgan/node_modules/on-headers/index.js:55:19) at ServerResponse._implicitHeader (_httpserver.js:185:8) at write (_http_outgoing.js:632:9) at ServerResponse.end (_http_outgoing.js:751:5) at ServerResponse.send (/opt/glass-isc-dhcp/node_modules/express/lib/response.js:211:10) at /opt/glass-isc-dhcp/app.js:75:9 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 /glass_settings?v_ajax 304 9.844 ms - - /bin/sh: 1: ./bin/dhcpd-pools: Exec format error child_process.js:644 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
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! dhcpd-glass@0.0.0 start:
node ./bin/www
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the dhcpd-glass@0.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-03-25T16_29_09_440Z-debug.log
I can´t find the error, so hopfully you can help me.
Dieter