SNIA / Swordfish-basic-web-client

The Swordfish Basic Web Client can connect to one or more Swordfish services (including the Swordfish emulator), and present in a web UI frame the entire Swordfish hierarchy. The basic web client also provides basic capabilities to modify configurable Properties (as specified in the schema), as well an providing a basic interface to add or remove elements from the service through a Web UI.
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

Installing Swordfish Basic Web Client Ubuntu 20.4 Fails at "npm install" Step #42

Open samuellay opened 2 years ago

samuellay commented 2 years ago

What versions of Ubuntu has the Swordfish-basic-web-client been tested on? For that matter what is the preferred Linux distribution to run it on?

I am installing the basic web client on a Ubuntu 20.4 server. node is v16.13.1 npm is 8.1.2 The pre-requisites were installed. The "npm install" command failed. The log file is attached. The first error is at line 6362 and is followed by many others. Any tips?

Thanks, Sam

6358 info run node-sass@4.14.1 postinstall { code: 1, signal: null }
6359 timing reify:rollback:createSparse Completed in 3417ms
6360 timing reify:rollback:retireShallow Completed in 0ms
6361 timing command:install Completed in 195219ms
**6362 verbose stack Error: command failed**
6362 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
6362 verbose stack     at ChildProcess.emit (node:events:390:28)
6362 verbose stack     at maybeClose (node:internal/child_process:1064:16)
6362 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)**
6363 verbose pkgid node-sass@4.14.1
6364 verbose cwd /home/itlay/node/Swordfish-basic-web-client-master/views
6365 verbose Linux 5.4.0-92-generic
6366 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
6367 verbose node v16.13.1
6368 verbose npm  v8.1.2
6369 error code 1
6370 error path /home/itlay/node/Swordfish-basic-web-client-master/views/node_modules/node-sass
6371 error command failed
6372 error command sh -c node scripts/build.js
6373 error Building: /usr/bin/node /home/itlay/node/Swordfish-basic-web-client-master/views/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
6373 error make: Entering directory '/home/itlay/node/Swordfish-basic-web-client-master/views/node_modules/node-sass/build'
6373 error   g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.5"' -I/home/itlay/.node-gyp/16.13.1/include/node -I/home/itlay/.node-gyp/16.13.1/src -I/home/itlay/.node-gyp/16.13.1/deps/openssl/config -I/home/itlay/.node-gyp/16.13.1/deps/openssl/openssl/include -I/home/itlay/.node-gyp/16.13.1/deps/uv/include -I/home/itlay/.node-gyp/16.13.1/deps/zlib -I/home/itlay/.node-gyp/16.13.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++14 -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
6373 error   g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.5"' -I/home/itlay/.node-gyp/16.13.1/include/node -I/home/itlay/.node-gyp/16.13.1/src -I/home/itlay/.node-gyp/16.13.1/deps/openssl/config -I/home/itlay/.node-gyp/16.13.1/deps/openssl/openssl/include -I/home/itlay/.node-gyp/16.13.1/deps/uv/include -I/home/itlay/.node-gyp/16.13.1/deps/zlib -I/home/itlay/.node-gyp/16.13.1/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++14 -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o ../src/libsass/src/ast_fwd_decl.cpp
6373 error   g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1'
samuellay commented 2 years ago

I attempted the installation on Ubuntu 18.4. The versions were closer to those on the GitHyb page. node: v8.17.0 npm: 6.13.4 Everything appeared to work well throughout the installation. When I pointed my browser to http://localhost:3000, I get:

Cannot GET /

rahlvers commented 2 years ago

@samuellay - we don't have a list of supported distros; I will set up a container and take a look at install issues.

samuellay commented 2 years ago

@rahlvers - Thanks for looking at this.

I started with the Ubuntu 20.04.5 appliance from https://sourceforge.net/projects/linuxvmimages/files/VirtualBox/U/18.04/Ubuntu_18.04.5_VB.zip/download

Then installed curl, nodejs and npm

I downloaded the web client to /pycharm/redfish-swordfish and ran this script as root:

! /usr/bin/env bash

date npm install -g express date npm install -g @angular/cli@latest date cd /opt/ unzip /pycharm/redfish-swordfish/Swordfish-basic-web-client-master.zip cd /opt/Swordfish-basic-web-client-master/views/ && npm install date ng build date cd .. && npm install date npm start & date

-------------------

The console output of the installation is attached as make_swordfish-basic-web-client_out.zip. make_swordfish-basic-web-client_out.zip

Thanks again, Sam