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

Manual install of WebThings Gateway master branch on Raspberry Pi OS Bullseye does not start #3069

Open
GFPar opened this issue Jan 28, 2023 · 14 comments
Labels

Comments

@GFPar
Copy link

GFPar commented Jan 28, 2023

Hello - i have just installed the latest version of Webthings on to a Pi 3+ running Raspbian V11. I installed WebThings using the manual build instructions. I believe everything installed properly.
After i installed i was successfully able to run 'npm start' and could access the web interface locally and successully registered a domain. I proceeded to install the Zigbee App. Unfortunately, none of my Zigbee devices were picked up after i tried to add Things [i did observe the following error: Error: Cannot find module '/home/gparise/.config/nvm/versions/node/v10.24.1/lib/node_modules/gateway-addon/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-arm/node_sqlite3.node']

The problem is that after rebooting the Pi, and starting WebThings using 'npm start'. I get an error message after about 5 minutes. The log is provided below.

Any help on this would be appreciated.

0 info it worked if it ends with ok
1 verbose cli [ '/home/gparise/.config/nvm/versions/node/v10.24.1/bin/node',
1 verbose cli '/home/gparise/.config/nvm/versions/node/v10.24.1/bin/npm',
1 verbose cli 'start' ]
2 info using npm@6.14.12
3 info using node@v10.24.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle webthings-gateway@1.2.0prestart: webthings-gateway@1.2.0
6 info lifecycle webthings-gateway@1.2.0
start: webthings-gateway@1.2.0
7 verbose lifecycle webthings-gateway@1.2.0start: unsafe-perm in lifecycle true
8 verbose lifecycle webthings-gateway@1.2.0
start: PATH: /home/gparise/.config/nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/gparise/gateway/node_modules/.bin:/home/gparise/.config/nvm/versions/node/v10.24.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle webthings-gateway@1.2.0start: CWD: /home/gparise/gateway
10 silly lifecycle webthings-gateway@1.2.0
start: Args: [ '-c', 'npm run build && node build/app.js' ]
11 silly lifecycle webthings-gateway@1.2.0start: Returned: code: 137 signal: null
12 info lifecycle webthings-gateway@1.2.0
start: Failed to exec start script
13 verbose stack Error: webthings-gateway@1.2.0 start: npm run build && node build/app.js
13 verbose stack Exit status 137
13 verbose stack at EventEmitter. (/home/gparise/.config/nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess. (/home/gparise/.config/nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid webthings-gateway@1.2.0
15 verbose cwd /home/gparise/gateway
16 verbose Linux 5.15.84-v7+
17 verbose argv "/home/gparise/.config/nvm/versions/node/v10.24.1/bin/node" "/home/gparise/.config/nvm/versions/node/v10.24.1/bin/npm" "start"
18 verbose node v10.24.1
19 verbose npm v6.14.12
20 error code ELIFECYCLE
21 error errno 137
22 error webthings-gateway@1.2.0 start: npm run build && node build/app.js
22 error Exit status 137
23 error Failed at the webthings-gateway@1.2.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 137, true ]

@benfrancis benfrancis added the bug label Jan 30, 2023
@benfrancis benfrancis added this to the 1.2 milestone Jan 30, 2023
@benfrancis
Copy link
Member

@GFPar thanks for reporting.

Just to confirm, did you check out the v.1.2.X branch from GitHub to build this?

1.2 has not been released yet and that branch is in a bit of a strange state at the moment (behind both 1.1 and master), so may have some issues.

If you want to build yourself I'd recommend you build from the 1.1.X branch, otherwise the pre-built Raspberry Pi image on the website definitely works https://webthings.io/gateway/.

@GFPar
Copy link
Author

GFPar commented Jan 30, 2023

Hello - thank you for your response.
Attached are the instructions that i used (i have these instructions for V0.8 and V1.0) in the past to add Webthings onto an existing Pi).
https://github.com/WebThingsIO/gateway#readme

Sorry for my ignorance, but where would i point to the 1.1 branch? Looking at the files that are being extracted from git, it is not obvious where i would extract 1.1 vs. 1.2

Thanks for your help!

@benfrancis
Copy link
Member

benfrancis commented Jan 30, 2023

@GFPar OK, given you don't know how to check out the 1.2 branch I will assume you were actually using the master branch (which to be fair does also say version 1.2 in its package.json).

You can find the 1.1 source code here https://github.com/WebThingsIO/gateway/tree/v1.1.X

To check it out of GitHub you would run:

$ git clone https://github.com/WebThingsIO/gateway.git
$ git checkout v1.1.X

I'm surprised that the master branch doesn't build on a Pi 3, but it may be the newer version of Raspbian. Our latest Raspberry Pi image is still built on buster.

Let me know if 1.1 builds OK for you or if you have the same problem.

@benfrancis benfrancis removed this from the 1.2 milestone Jan 30, 2023
@benfrancis benfrancis changed the title New install of Webthings1.2 does not start New install of WebThings Gateway master branch does not start Jan 30, 2023
@benfrancis benfrancis changed the title New install of WebThings Gateway master branch does not start Manual install of WebThings Gateway master branch on Pi 3+ does not start Jan 30, 2023
@benfrancis benfrancis changed the title Manual install of WebThings Gateway master branch on Pi 3+ does not start Manual install of WebThings Gateway master branch on Raspberry Pi OS Bullseye does not start Jan 30, 2023
@GFPar
Copy link
Author

GFPar commented Jan 30, 2023

After the 'git clone .... https://....' i ran 'git checkout v1.1.X', but get the message: 'fatal: not a git repository (or any of the parent directions): .git'

@benfrancis
Copy link
Member

Sorry, you need to switch into the gateway directory first...

$ git clone https://github.com/WebThingsIO/gateway.git
$ cd gateway
$ git checkout v1.1.X

@GFPar
Copy link
Author

GFPar commented Feb 4, 2023

Hello - sorry for posting earlier, but i tried using the v1.1.x branch with the same result - inability to starting the gateway. The issue is a bit different though. Now, i cam unable set up the domain and register my email on http://localhost:8080/. I have attached the run-app.log file.

To see if this was only related to a PI3, i also followed the same steps on a manual built (using the directions on https://github.com/WebThingsIO/gateway) on a Pi4 - to the same result. The gateway fails to start and i am unable to set up the domain. The attached log file is actually from the attempted Pi4 install (i tried multiple domain names and email addresses) - though i have the same issue on the Pi3.

Let me know if are any other install logs that may be useful.
Thanks; Gerry

2023-02-04 11:50:55.813 INFO : Creating database: /home/pi/.webthings/log/logs.sqlite3
2023-02-04 11:50:56.383 INFO : wifi-setup: waitForWiFi: networks exist: [ 'Connector' ]
2023-02-04 11:50:56.465 INFO : wifi-setup: waitForWifi: connection found
2023-02-04 11:50:56.593 INFO : HTTP server listening on port 8080
2023-02-04 11:50:56.612 DEBUG : Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/schema.json because it has no messageType
2023-02-04 11:50:57.975 DEBUG : Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json because it has no messageType
2023-02-04 11:50:58.159 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:58.190 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:58.244 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:58.561 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:58.938 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:58.963 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:58.998 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:59.205 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:59.229 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:59.262 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:59.436 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:59.457 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:50:59.491 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 11:51:10.817 INFO : Checking for add-on updates...
2023-02-04 11:51:16.077 ERROR : Failed to parse add-on list: { FetchError: request to https://api.webthings.io:8443/addons?arch=linux-arm&version=1.2.0&node=64&python=2.7%2C3.7 failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/addons?arch=linux-arm&version=1.2.0&node=64&python=2.7%2C3.7 failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }
2023-02-04 11:59:10.053 INFO : Starting registration
2023-02-04 11:59:20.074 ERROR : Failed to subscribe: { FetchError: request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise03%40gmail.com failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise03%40gmail.com failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }
2023-02-04 12:07:09.927 INFO : Opening database: /home/pi/.webthings/log/logs.sqlite3
2023-02-04 12:07:10.334 INFO : wifi-setup: waitForWiFi: networks exist: [ 'Connector' ]
2023-02-04 12:07:10.408 INFO : wifi-setup: waitForWifi: connection found
2023-02-04 12:07:10.518 INFO : HTTP server listening on port 8080
2023-02-04 12:07:10.567 DEBUG : Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/schema.json because it has no messageType
2023-02-04 12:07:11.901 DEBUG : Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json because it has no messageType
2023-02-04 12:07:12.072 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:12.106 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:12.141 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:12.430 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:12.807 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:12.834 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:12.862 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:13.047 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:13.071 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:13.100 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:13.276 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:13.297 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:13.326 WARN : strict mode: missing type "object" for keyword "properties" at "https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json#/allOf/1" (strictTypes)
2023-02-04 12:07:24.644 INFO : Checking for add-on updates...
2023-02-04 12:07:29.886 ERROR : Failed to parse add-on list: { FetchError: request to https://api.webthings.io:8443/addons?arch=linux-arm&version=1.2.0&node=64&python=2.7%2C3.7 failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/addons?arch=linux-arm&version=1.2.0&node=64&python=2.7%2C3.7 failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }
2023-02-04 12:43:05.926 INFO : Starting registration
2023-02-04 12:43:10.987 ERROR : Failed to subscribe: { FetchError: request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise03%40gmail.com failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise03%40gmail.com failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }
2023-02-04 12:43:56.993 INFO : Starting registration
2023-02-04 12:44:07.010 ERROR : Failed to subscribe: { FetchError: request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise3%40comcast.net failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise3%40comcast.net failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }
2023-02-04 12:44:54.314 INFO : Starting registration
2023-02-04 12:44:59.468 ERROR : Failed to subscribe: { FetchError: request to https://api.webthings.io:8443/subscribe?name=gz4&email=gparise3%40comcast.net failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/subscribe?name=gz4&email=gparise3%40comcast.net failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }
2023-02-04 12:55:31.075 INFO : Starting registration
2023-02-04 12:55:36.118 ERROR : Failed to subscribe: { FetchError: request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise03%40gmail.com failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443
at ClientRequest. (/home/pi/gateway/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://api.webthings.io:8443/subscribe?name=gparise4&email=gparise03%40gmail.com failed, reason: getaddrinfo EAI_AGAIN api.webthings.io api.webthings.io:8443',
type: 'system',
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN' }

@benfrancis
Copy link
Member

@GFPar This looks like a networking problem to me. Are you still having the problem? It's possible that the registration server was experiencing a DNS outage at the time because there were some outages in the past but things have improved recently.

If you still get this problem, are you able to reach api.webthings.io from the command line on the pi? E.g.

$ curl https://api.webthings.io:8443/addons

Are you running in the gateway in a container of any kind?

@GFPar
Copy link
Author

GFPar commented Mar 20, 2023

Hello - thanks for the response. I was able to successfully create my domain on the webthings.io.

However, after rebooting my Pi and running 'npm start' i still get the error message (with the code 137) mentioned at the start of this issue.

It is not run in any container. I installed following the instructions in the 'readme file' on an existing Pi (with a new install of the OS). I did this on versions 0.8 and 1.0, and never had any issues.

@benfrancis
Copy link
Member

OK, so it sounds like the networking problem has resolved itself.

A quick web search suggests that errno 137 is caused by running out of RAM. It's possible that there isn't enough RAM to complete the build process on a Pi 3. This definitely used to be possible but I haven't personally tried building myself on a Pi 3, only a Pi 4 with 4GB RAM.

Are there any other processes running on the Pi that you could pause while the build finishes? (running npm start re-builds the gateway using tsc and webpack by default). Once the build is complete you could try running node build/app.js which would only run the built gateway.

@GFPar
Copy link
Author

GFPar commented Mar 26, 2023

Thank you for your response. I was able to get the gateway to run using 'node build/app.js'

I am able to add ''Add-ons' - however there looks to be an issue with sqlite3. Attached is from the internal error log on the Zigbee module:

2023-03-23 17:08:20.006 INFO : Loading add-on: zigbee-adapter
2023-03-23 17:08:22.188 INFO : zigbee-adapter: Opening database: /home/gparise/.webthings/config/db.sqlite3
2023-03-23 17:08:22.313 INFO : zigbee-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/schema.json because it has no messageType
2023-03-23 17:08:25.414 INFO : zigbee-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json because it has no messageType
2023-03-23 17:08:32.875 INFO : zigbee-adapter: Loading add-on zigbee-adapter from /home/gparise/.webthings/addons/zigbee-adapter
2023-03-23 17:08:36.747 ERROR : zigbee-adapter: { Error: Cannot find module '/home/gparise/.config/nvm/versions/node/v10.24.1/lib/node_modules/gateway-addon/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-arm/node_sqlite3.node'

When i go to the referenced directory, it is empty. Don't know if there was an issue with sqlite3 at the time of install.

@benfrancis
Copy link
Member

Hmm, maybe SQLite failed to compile during the build process? Do you see any errors when building with npm run build (this is just the first part of what npm start does, the second part being to run it).

@GFPar
Copy link
Author

GFPar commented Apr 3, 2023

Thank you for the response. I ran 'npm run build'. There were no errors, just 3 warnings about asset size limits. Please see below:

webthings-gateway@1.1.0 build /home/gparise/gateway
rm -rf build && cp -rL src build && find build -name '*.ts' -delete && tsc -p . && webpack

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
assets by path images/ 151 KiB 120 assets
assets by path fluent/ 677 KiB
asset fluent/ta/main.ftl 30.7 KiB [emitted] [from: static/fluent/ta/main.ftl] [copied]

  • 34 assets
    assets by path ../ 54.9 KiB 34 assets
    assets by path css/ 90.8 KiB
    asset css/settings.css 21.2 KiB [emitted] [from: static/css/settings.css] [copied]
  • 20 assets
    assets by path fonts/ 677 KiB
    assets by path fonts/.woff 407 KiB 6 assets
    assets by path fonts/
    .woff2 270 KiB 6 assets
    assets by path bundle/ 2.8 MiB 11 assets
  • 4 assets
    runtime modules 9.45 KiB 35 modules
    orphan modules 4.14 KiB [orphan] 3 modules
    modules by path ./node_modules/ 2.55 MiB (javascript) 260 bytes (css/mini-extract)
    javascript modules 2.55 MiB 485 modules
    json modules 3.07 KiB
    ./node_modules/ajv/dist/refs/json-schema-draft-07.json 2.72 KiB [built] [code generated]
    ./node_modules/ajv/dist/refs/data.json 360 bytes [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/mobile-drag-drop/default.css 260 bytes [built] [code generated]
    modules by path ./static/ 745 KiB (javascript) 75.8 KiB (css/mini-extract)
    modules by path ./static/js/ 744 KiB 187 modules
    modules by path ./static/css/*.css 650 bytes (javascript) 75.8 KiB (css/mini-extract)
    javascript modules 650 bytes 13 modules
    css modules 75.8 KiB 13 modules
    fs (ignored) 15 bytes [optional] [built] [code generated]

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
bundle/b544051963c10e934b32-app.js (1.18 MiB)
bundle/f4e51ab360bdb1e5e101-local-token.js (960 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app.js (1.18 MiB)
bundle/b544051963c10e934b32-app.js
local-token.js (960 KiB)
bundle/f4e51ab360bdb1e5e101-local-token.js

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.74.0 compiled with 3 warnings in 315117 ms

asset service-worker.js 54.3 KiB [emitted] [minimized] (name: service-worker.js)
runtime modules 221 bytes 1 module
modules by path ./node_modules/core-js/internals/*.js 95.9 KiB
./node_modules/core-js/internals/to-indexed-object.js 285 bytes [built] [code generated]
./node_modules/core-js/internals/fails.js 108 bytes [built] [code generated]
./node_modules/core-js/internals/add-to-unscopables.js 654 bytes [built] [code generated]
./node_modules/core-js/internals/well-known-symbol.js 1.04 KiB [built] [code generated]

  • 129 modules
    modules by path ./node_modules/core-js/modules/*.js 69.6 KiB
    ./node_modules/core-js/modules/es.array.iterator.js 2.56 KiB [built] [code generated]
    ./node_modules/core-js/modules/web.dom-collections.iterator.js 1.72 KiB [built] [code generated]
    ./node_modules/core-js/modules/es.promise.js 332 bytes [built] [code generated]
    ./node_modules/core-js/modules/es.array.includes.js 720 bytes [built] [code generated]
    ./node_modules/core-js/modules/web.url.js 124 bytes [built] [code generated]
  • 11 modules
    ./static/service-worker.js 2.54 KiB [built] [code generated]
    webpack 5.74.0 compiled successfully in 100374 ms

@benfrancis
Copy link
Member

Hmm, looking back over the errors you're seeing, executing the build process which is run by npm run build probably isn't the problem.

It looks like the gateway-addon dependency of the gateway is missing its sqlite3 dependency, which suggests to me that the installation of dependencies with npm ci never completed successfully before you ran npm start or npm run . You need to get npm ci to complete first so that all the dependencies are in place. It's possible that it's that step which is failing due to running out of RAM.

I suggest running npm ci again after a fresh boot and see whether it completes successfully.

@GFPar
Copy link
Author

GFPar commented Apr 5, 2023

Hello - thanks again for your attention. I re-ran 'npm cl' and do indeed see messages on missing files required for the build. I have included all the output from running that command (sorry, it is long):

npm WARN prepare removing existing node_modules/ before installation

sqlite3@5.1.1 install /home/gparise/gateway/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.1/napi-v6-linux-glibc-arm.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for sqlite3@5.1.1 and node@10.24.1 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.1/napi-v6-linux-glibc-arm.tar.gz
make: Entering directory '/home/gparise/gateway/node_modules/sqlite3/build'
CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
AR(target) Release/obj.target/../node-addon-api/nothing.a
COPY Release/nothing.a
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3390300/sqlite3.o
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c: In function ‘cellArea’:
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200195:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
200195 | case 5: area = p->aCoord[9].f - p->aCoord[8].f;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200196:7: note: here
200196 | case 4: area = p->aCoord[7].f - p->aCoord[6].f;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200196:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
200196 | case 4: area = p->aCoord[7].f - p->aCoord[6].f;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200197:7: note: here
200197 | case 3: area = p->aCoord[5].f - p->aCoord[4].f;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200197:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
200197 | case 3: area = p->aCoord[5].f - p->aCoord[4].f;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200198:7: note: here
200198 | case 2: area = p->aCoord[3].f - p->aCoord[2].f;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200198:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
200198 | case 2: area = p->aCoord[3].f - p->aCoord[2].f;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200199:7: note: here
200199 | default: area = p->aCoord[1].f - p->aCoord[0].f;
| ^~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200205:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
200205 | case 5: area = (i64)p->aCoord[9].i - (i64)p->aCoord[8].i;
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200206:7: note: here
200206 | case 4: area = (i64)p->aCoord[7].i - (i64)p->aCoord[6].i;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200206:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
200206 | case 4: area = (i64)p->aCoord[7].i - (i64)p->aCoord[6].i;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200207:7: note: here
200207 | case 3: area = (i64)p->aCoord[5].i - (i64)p->aCoord[4].i;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200207:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
200207 | case 3: area = (i64)p->aCoord[5].i - (i64)p->aCoord[4].i;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200208:7: note: here
200208 | case 2: area = (i64)p->aCoord[3].i - (i64)p->aCoord[2].i;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200208:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
200208 | case 2: area = (i64)p->aCoord[3].i - (i64)p->aCoord[2].i;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:200209:7: note: here
200209 | default: area = (i64)p->aCoord[1].i - (i64)p->aCoord[0].i;
| ^~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c: In function ‘rtreeCallbackConstraint’:
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199334:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199334 | readCoord(pCellData+32, &c); aCoord[8] = c.f;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199335:7: note: here
199335 | case 8: readCoord(pCellData+28, &c); aCoord[7] = c.f;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199336:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199336 | readCoord(pCellData+24, &c); aCoord[6] = c.f;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199337:7: note: here
199337 | case 6: readCoord(pCellData+20, &c); aCoord[5] = c.f;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199338:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199338 | readCoord(pCellData+16, &c); aCoord[4] = c.f;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199339:7: note: here
199339 | case 4: readCoord(pCellData+12, &c); aCoord[3] = c.f;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199340:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199340 | readCoord(pCellData+8, &c); aCoord[2] = c.f;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199341:7: note: here
199341 | default: readCoord(pCellData+4, &c); aCoord[1] = c.f;
| ^~~~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199349:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199349 | readCoord(pCellData+32, &c); aCoord[8] = c.i;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199350:7: note: here
199350 | case 8: readCoord(pCellData+28, &c); aCoord[7] = c.i;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199351:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199351 | readCoord(pCellData+24, &c); aCoord[6] = c.i;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199352:7: note: here
199352 | case 6: readCoord(pCellData+20, &c); aCoord[5] = c.i;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199353:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199353 | readCoord(pCellData+16, &c); aCoord[4] = c.i;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199354:7: note: here
199354 | case 4: readCoord(pCellData+12, &c); aCoord[3] = c.i;
| ^~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199355:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
199355 | readCoord(pCellData+8, &c); aCoord[2] = c.i;
| ~~~~~~~~~~^~~~~
Release/obj/gen/sqlite-autoconf-3390300/sqlite3.c:199356:7: note: here
199356 | default: readCoord(pCellData+4, &c); aCoord[1] = c.i;
| ^~~~~~~
AR(target) Release/obj.target/deps/sqlite3.a
COPY Release/sqlite3.a
CXX(target) Release/obj.target/node_sqlite3/src/backup.o
../src/backup.cc: In static member function ‘static void node_sqlite3::Backup::Work_BeginInitialize(node_sqlite3::Database::Baton
)’:
../src/backup.cc:182:9: warning: unused variable ‘status’ [-Wunused-variable]
182 | int status = napi_create_async_work(
| ^~~~~~
In file included from ../src/backup.cc:4:
../src/backup.cc: In static member function ‘static void node_sqlite3::Backup::Work_BeginStep(node_sqlite3::Backup::Baton
)’:
../src/macros.h:182:9: warning: unused variable ‘status’ [-Wunused-variable]
182 | int status = napi_create_async_work(
| ^~~~~~
../src/backup.cc:255:5: note: in expansion of macro ‘BACKUP_BEGIN’
255 | BACKUP_BEGIN(Step);
| ^~~~~~~~~~~~
../src/backup.cc: In static member function ‘static void node_sqlite3::Backup::Work_BeginFinish(node_sqlite3::Backup::Baton
)’:
../src/macros.h:182:9: warning: unused variable ‘status’ [-Wunused-variable]
182 | int status = napi_create_async_work(
| ^~~~~~
../src/backup.cc:322:5: note: in expansion of macro ‘BACKUP_BEGIN’
322 | BACKUP_BEGIN(Finish);
| ^~~~~~~~~~~~
CXX(target) Release/obj.target/node_sqlite3/src/database.o
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginOpen(node_sqlite3::Database::Baton
)’:
../src/database.cc:155:9: warning: unused variable ‘status’ [-Wunused-variable]
155 | int status = napi_create_async_work(
| ^~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton
)’:
../src/database.cc:249:9: warning: unused variable ‘status’ [-Wunused-variable]
249 | int status = napi_create_async_work(
| ^~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton
)’:
../src/database.cc:593:9: warning: unused variable ‘status’ [-Wunused-variable]
593 | int status = napi_create_async_work(
| ^~~~~~
../src/database.cc: In static member function ‘static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton
)’:
../src/database.cc:702:9: warning: unused variable ‘status’ [-Wunused-variable]
702 | int status = napi_create_async_work(
| ^~~~~~
CXX(target) Release/obj.target/node_sqlite3/src/node_sqlite3.o
CXX(target) Release/obj.target/node_sqlite3/src/statement.o
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginPrepare(node_sqlite3::Database::Baton
)’:
../src/statement.cc:125:9: warning: unused variable ‘status’ [-Wunused-variable]
125 | int status = napi_create_async_work(
| ^~~~~~
In file included from ../src/statement.cc:5:
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginBind(node_sqlite3::Statement::Baton
)’:
../src/macros.h:146:9: warning: unused variable ‘status’ [-Wunused-variable]
146 | int status = napi_create_async_work(
| ^~~~~~
../src/statement.cc:353:5: note: in expansion of macro ‘STATEMENT_BEGIN’
353 | STATEMENT_BEGIN(Bind);
| ^~~~~~~~~~~~~~~
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginGet(node_sqlite3::Statement::Baton
)’:
../src/macros.h:146:9: warning: unused variable ‘status’ [-Wunused-variable]
146 | int status = napi_create_async_work(
| ^~~~~~
../src/statement.cc:405:5: note: in expansion of macro ‘STATEMENT_BEGIN’
405 | STATEMENT_BEGIN(Get);
| ^~~~~~~~~~~~~~~
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginRun(node_sqlite3::Statement::Baton
)’:
../src/macros.h:146:9: warning: unused variable ‘status’ [-Wunused-variable]
146 | int status = napi_create_async_work(
| ^~~~~~
../src/statement.cc:477:5: note: in expansion of macro ‘STATEMENT_BEGIN’
477 | STATEMENT_BEGIN(Run);
| ^~~~~~~~~~~~~~~
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginAll(node_sqlite3::Statement::Baton
)’:
../src/macros.h:146:9: warning: unused variable ‘status’ [-Wunused-variable]
146 | int status = napi_create_async_work(
| ^~~~~~
../src/statement.cc:547:5: note: in expansion of macro ‘STATEMENT_BEGIN’
547 | STATEMENT_BEGIN(All);
| ^~~~~~~~~~~~~~~
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginEach(node_sqlite3::Statement::Baton
)’:
../src/macros.h:146:9: warning: unused variable ‘status’ [-Wunused-variable]
146 | int status = napi_create_async_work(
| ^~~~~~
../src/statement.cc:648:5: note: in expansion of macro ‘STATEMENT_BEGIN’
648 | STATEMENT_BEGIN(Each);
| ^~~~~~~~~~~~~~~
../src/statement.cc: In static member function ‘static void node_sqlite3::Statement::Work_BeginReset(node_sqlite3::Statement::Baton
)’:
../src/macros.h:146:9: warning: unused variable ‘status’ [-Wunused-variable]
146 | int status = napi_create_async_work(
| ^~~~~~
../src/statement.cc:775:5: note: in expansion of macro ‘STATEMENT_BEGIN’
775 | STATEMENT_BEGIN(Reset);
| ^~~~~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/node_sqlite3.node
COPY Release/node_sqlite3.node
COPY /home/gparise/gateway/node_modules/sqlite3/lib/binding/napi-v6-linux-glibc-arm/node_sqlite3.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/gparise/gateway/node_modules/sqlite3/build'

segfault-handler@1.3.0 install /home/gparise/gateway/node_modules/segfault-handler
node-gyp rebuild

make: Entering directory '/home/gparise/gateway/node_modules/segfault-handler/build'
CXX(target) Release/obj.target/segfault-handler/src/segfault-handler.o
In file included from ../../nan/nan.h:60,
from ../src/segfault-handler.cpp:2:
/home/gparise/.cache/node-gyp/10.24.1/include/node/node.h:573:7: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
573 | (node::addon_register_func) (regfunc),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gparise/.cache/node-gyp/10.24.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
607 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/segfault-handler.cpp:346:3: note: in expansion of macro ‘NODE_MODULE’
346 | NODE_MODULE(segfault_handler, init)
| ^~~~~~~~~~~
In file included from /home/gparise/.cache/node-gyp/10.24.1/include/node/node.h:63,
from ../../nan/nan.h:60,
from ../src/segfault-handler.cpp:2:
/home/gparise/.cache/node-gyp/10.24.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/gparise/.cache/node-gyp/10.24.1/include/node/node_object_wrap.h:84:78: required from here
/home/gparise/.cache/node-gyp/10.24.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
9502 | reinterpret_cast(callback), type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gparise/.cache/node-gyp/10.24.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/gparise/.cache/node-gyp/10.24.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
SOLINK_MODULE(target) Release/obj.target/segfault-handler.node
COPY Release/segfault-handler.node
make: Leaving directory '/home/gparise/gateway/node_modules/segfault-handler/build'

optipng-bin@7.0.1 postinstall /home/gparise/gateway/node_modules/optipng-bin
node lib/install.js

Command failed: /home/gparise/gateway/node_modules/optipng-bin/vendor/optipng --version
/home/gparise/gateway/node_modules/optipng-bin/vendor/optipng: 1: Syntax error: word unexpected (expecting ")")

optipng pre-build test failed
compiling from source
optipng built successfully

jpegtran-bin@5.0.2 postinstall /home/gparise/gateway/node_modules/jpegtran-bin
node lib/install.js

âš  Command failed: /home/gparise/gateway/node_modules/jpegtran-bin/vendor/jpegtran -copy none -optimize -outfile /home/gparise/gateway/node_modules/jpegtran-bin/test/fixtures/test-optimized.jpg /home/gparise/gateway/node_modules/jpegtran-bin/test/fixtures/test.jpg
/home/gparise/gateway/node_modules/jpegtran-bin/vendor/jpegtran: 1: Syntax error: word unexpected (expecting ")")

âš  jpegtran pre-build test failed
ℹ compiling from source
✔ jpegtran built successfully

gifsicle@5.3.0 postinstall /home/gparise/gateway/node_modules/gifsicle
node lib/install.js

Response code 404 (Not Found)
gifsicle pre-build test failed
compiling from source
gifsicle built successfully

core-js@3.25.3 postinstall /home/gparise/gateway/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js:

https://opencollective.com/core-js
https://patreon.com/zloirock
bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@2.6.12 postinstall /home/gparise/gateway/node_modules/@babel/polyfill/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 1804 packages in 1054.934s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants