Akkadius / glass-isc-dhcp

Glass - ISC DHCP Server Interface
MIT License
684 stars 142 forks source link

SyntaxError: Invalid regular expression: /agent.circuit-id)/: Unmatched ')' #97

Open topless-bananas opened 2 years ago

topless-bananas commented 2 years ago

Looking into an issue with the following log when trying to start npm. Server type is Centos 7 running dhcpd.

dhcpd-glass@0.0.0 start /opt/glass-isc-dhcp node ./bin/www

[Glass Server] Watching leases file '/var/lib/dhcpd/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] OUI Database Loaded /opt/glass-isc-dhcp/core/lease-parser.js:108 option_value = set_data.replace(RegExp(option_key, "g"), '').trim(); ^

SyntaxError: Invalid regular expression: /agent.circuit-id)/: Unmatched ')' at RegExp () at Object.parse (/opt/glass-isc-dhcp/core/lease-parser.js:108:39) at /opt/glass-isc-dhcp/core/dhcp-leases.js:12:18 at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3) 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/2022-04-18T20_36_09_541Z-debug.log