Problems with equihashverify package #8

Open
opened 4 weeks ago by onryo · 1 comments
onryo commented 4 weeks ago
Collaborator

My setup is node 10.24.1 with npm 6.14.12.

From https://github.com/nullfekt/equihashverify?tab=readme-ov-file#dependencies I have dependencies installed:

build-essential is already the newest version (12.9ubuntu3).
libboost-system-dev is already the newest version (1.74.0.3ubuntu7).
libsodium-dev is already the newest version (1.0.18-1build2).

Bare metal installation

make: *** [equihashverify.target.mk:134: Release/obj.target/equihashverify/crypto/equihash.o] Error 1
make: Leaving directory '/home/hush/node-stratum-pool/node_modules/equihashverify/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.15.0-105-generic
gyp ERR! command "/home/hush/.nvm/versions/node/v10.24.1/bin/node" "/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/hush/node-stratum-pool/node_modules/equihashverify
gyp ERR! node -v v10.24.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install: `env V=1 node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install script.

log

105 verbose stack Error: equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install: `env V=1 node-gyp rebuild`
105 verbose stack Exit status 1
105 verbose stack     at EventEmitter.<anonymous> (/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
105 verbose stack     at EventEmitter.emit (events.js:198:13)
105 verbose stack     at ChildProcess.<anonymous> (/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
105 verbose stack     at ChildProcess.emit (events.js:198:13)
105 verbose stack     at maybeClose (internal/child_process.js:982:16)
105 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
106 verbose pkgid equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf
107 verbose cwd /home/hush/hnomp
108 verbose Linux 5.15.0-105-generic
109 verbose argv "/home/hush/.nvm/versions/node/v10.24.1/bin/node" "/home/hush/.nvm/versions/node/v10.24.1/bin/npm" "install"
110 verbose node v10.24.1
111 verbose npm  v6.14.12
112 error code ELIFECYCLE
113 error errno 1
114 error equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install: `env V=1 node-gyp rebuild`
114 error Exit status 1
115 error Failed at the equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install script.

Docker install

Starting redis ... done
Starting hnomp ... done
Attaching to redis, hnomp
redis    | 1:C 07 May 2024 09:05:44.308 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis    | 1:C 07 May 2024 09:05:44.309 # Redis version=6.0.10, bits=64, commit=00000000, modified=0, pid=1, just started
redis    | 1:C 07 May 2024 09:05:44.309 # Configuration loaded
redis    | 1:M 07 May 2024 09:05:44.310 # Could not create server TCP listening socket *:6379: bind: Address in use
redis exited with code 1
hnomp    | 
hnomp    | > knomp@0.1.0 start /home/hnomp/hnomp
hnomp    | > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js
hnomp    | 
hnomp    | internal/modules/cjs/loader.js:638
hnomp    |     throw err;
hnomp    |     ^
hnomp    | 
hnomp    | Error: Cannot find module 'stratum-pool'
hnomp    |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
hnomp    |     at Function.Module._load (internal/modules/cjs/loader.js:562:25)
hnomp    |     at Module.require (internal/modules/cjs/loader.js:692:17)
hnomp    |     at require (internal/modules/cjs/helpers.js:25:18)
hnomp    |     at Object.<anonymous> (/home/hnomp/hnomp/libs/poolWorker.js:1:15)
hnomp    |     at Module._compile (internal/modules/cjs/loader.js:778:30)
hnomp    |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
hnomp    |     at Module.load (internal/modules/cjs/loader.js:653:32)
hnomp    |     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
hnomp    |     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
hnomp    | npm ERR! code ELIFECYCLE
hnomp    | npm ERR! errno 1
hnomp    | npm ERR! knomp@0.1.0 start: `LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js`
hnomp    | npm ERR! Exit status 1
hnomp    | npm ERR! 
hnomp    | npm ERR! Failed at the knomp@0.1.0 start script.

Full output's attached.

My setup is node 10.24.1 with npm 6.14.12. From https://github.com/nullfekt/equihashverify?tab=readme-ov-file#dependencies I have dependencies installed: ``` build-essential is already the newest version (12.9ubuntu3). libboost-system-dev is already the newest version (1.74.0.3ubuntu7). libsodium-dev is already the newest version (1.0.18-1build2). ``` ## Bare metal installation ``` make: *** [equihashverify.target.mk:134: Release/obj.target/equihashverify/crypto/equihash.o] Error 1 make: Leaving directory '/home/hush/node-stratum-pool/node_modules/equihashverify/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Linux 5.15.0-105-generic gyp ERR! command "/home/hush/.nvm/versions/node/v10.24.1/bin/node" "/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/hush/node-stratum-pool/node_modules/equihashverify gyp ERR! node -v v10.24.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install: `env V=1 node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install script. ``` ## log ``` 105 verbose stack Error: equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install: `env V=1 node-gyp rebuild` 105 verbose stack Exit status 1 105 verbose stack at EventEmitter.<anonymous> (/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 105 verbose stack at EventEmitter.emit (events.js:198:13) 105 verbose stack at ChildProcess.<anonymous> (/home/hush/.nvm/versions/node/v10.24.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 105 verbose stack at ChildProcess.emit (events.js:198:13) 105 verbose stack at maybeClose (internal/child_process.js:982:16) 105 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 106 verbose pkgid equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf 107 verbose cwd /home/hush/hnomp 108 verbose Linux 5.15.0-105-generic 109 verbose argv "/home/hush/.nvm/versions/node/v10.24.1/bin/node" "/home/hush/.nvm/versions/node/v10.24.1/bin/npm" "install" 110 verbose node v10.24.1 111 verbose npm v6.14.12 112 error code ELIFECYCLE 113 error errno 1 114 error equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install: `env V=1 node-gyp rebuild` 114 error Exit status 1 115 error Failed at the equihashverify@github:nullfekt/equihashverify#7a7403b229477d7cef5735a54e223c72cee5bcdf install script. ``` ## Docker install ``` Starting redis ... done Starting hnomp ... done Attaching to redis, hnomp redis | 1:C 07 May 2024 09:05:44.308 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo redis | 1:C 07 May 2024 09:05:44.309 # Redis version=6.0.10, bits=64, commit=00000000, modified=0, pid=1, just started redis | 1:C 07 May 2024 09:05:44.309 # Configuration loaded redis | 1:M 07 May 2024 09:05:44.310 # Could not create server TCP listening socket *:6379: bind: Address in use redis exited with code 1 hnomp | hnomp | > knomp@0.1.0 start /home/hnomp/hnomp hnomp | > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js hnomp | hnomp | internal/modules/cjs/loader.js:638 hnomp | throw err; hnomp | ^ hnomp | hnomp | Error: Cannot find module 'stratum-pool' hnomp | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) hnomp | at Function.Module._load (internal/modules/cjs/loader.js:562:25) hnomp | at Module.require (internal/modules/cjs/loader.js:692:17) hnomp | at require (internal/modules/cjs/helpers.js:25:18) hnomp | at Object.<anonymous> (/home/hnomp/hnomp/libs/poolWorker.js:1:15) hnomp | at Module._compile (internal/modules/cjs/loader.js:778:30) hnomp | at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) hnomp | at Module.load (internal/modules/cjs/loader.js:653:32) hnomp | at tryModuleLoad (internal/modules/cjs/loader.js:593:12) hnomp | at Function.Module._load (internal/modules/cjs/loader.js:585:3) hnomp | npm ERR! code ELIFECYCLE hnomp | npm ERR! errno 1 hnomp | npm ERR! knomp@0.1.0 start: `LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/node_modules/stratum-pool/node_modules/equihashverify/build/Release/:$PWD/node_modules/equihashverify/build/Release/ node init.js` hnomp | npm ERR! Exit status 1 hnomp | npm ERR! hnomp | npm ERR! Failed at the knomp@0.1.0 start script. ``` Full output's attached.
Poster
Collaborator

This problem goes away and I can run hnomp on Ubuntu 18.04. (Initially tried on Ubuntu 22.04)

This problem goes away and I can run hnomp on Ubuntu 18.04. (Initially tried on Ubuntu 22.04)
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.