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

Unable to install backend #9

Open
georgschilling opened this issue Oct 4, 2021 · 0 comments
Open

Unable to install backend #9

georgschilling opened this issue Oct 4, 2021 · 0 comments

Comments

@georgschilling
Copy link

Hey!
During the installation I get to point 3:

root@quiz:~# cd /root/
root@quiz:~# git clone https://git.thm.de/arsnova/arsnova-click-v2-backend
Cloning into 'arsnova-click-v2-backend'...
warning: redirecting to https://git.thm.de/arsnova/arsnova-click-v2-backend.git/
remote: Enumerating objects: 7256, done.
remote: Counting objects: 100% (774/774), done.
remote: Compressing objects: 100% (314/314), done.
remote: Total 7256 (delta 487), reused 717 (delta 438), pack-reused 6482
Receiving objects: 100% (7256/7256), 27.67 MiB | 39.63 MiB/s, done.
Resolving deltas: 100% (4131/4131), done.
root@quiz:~# cd arsnova-click-v2-backend/
root@quiz:~/arsnova-click-v2-backend# touch arsnova-click.env mongo.env init-mongo.js rabbitmq.env arsnova-click-staging.env arsnova-click-beta.env export-arsnova-click.env
root@quiz:~/arsnova-click-v2-backend# mkdir rabbitmq mongodb
root@quiz:~/arsnova-click-v2-backend# chmod 777 rabbitmq
root@quiz:~/arsnova-click-v2-backend# docker ps #es sollten keine container laufen
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
root@quiz:~/arsnova-click-v2-backend# source export-arsnova-click.env
root@quiz:~/arsnova-click-v2-backend# docker-compose up -d rabbitmq mongodb
Creating network "arsnova-click-v2-backend_app-tier" with driver "bridge"
Creating volume "arsnova-click-v2-backend_mongodb" with local driver
Creating volume "arsnova-click-v2-backend_rabbitmq" with local driver
Pulling rabbitmq (bitnami/rabbitmq:3.8.3)...
3.8.3: Pulling from bitnami/rabbitmq
20b41457e783: Pull complete
791631a34cfb: Pull complete
177fe5a67473: Pull complete
c8a2d8a69c2b: Pull complete
62f4c92756d4: Pull complete
e98461b750c5: Pull complete
42cd55ff1087: Pull complete
a0824173737d: Pull complete
9ea6632a6e3f: Pull complete
5baf81e9ffa2: Pull complete
0f056ad841e1: Pull complete
243bff0b1311: Pull complete
bcb55455cc18: Pull complete
Digest: sha256:a5e9966615c2a5c932da38af6f06b26a6822dc245927ae399821a56bf80a2d65
Status: Downloaded newer image for bitnami/rabbitmq:3.8.3
Pulling mongodb (mongo:4.0.5)...
4.0.5: Pulling from library/mongo
7b722c1070cd: Pull complete
5fbf74db61f1: Pull complete
ed41cb72e5c9: Pull complete
7ea47a67709e: Pull complete
778aebe6fb26: Pull complete
3b4b1e0b80ed: Pull complete
844ccc42fe76: Pull complete
eab01fe8ebf8: Pull complete
e5758d5381b1: Pull complete
a795f1f35522: Pull complete
67bc6388d1cd: Pull complete
89b55f4f3473: Pull complete
10886b20b4fc: Pull complete
Digest: sha256:a7c1784c83536a3c686ec6f0a1c570ad5756b94a1183af88c07df82c5b64663c
Status: Downloaded newer image for mongo:4.0.5
Creating arsnova-click-backend-mongodb  ... done
Creating arsnova-click-backend-rabbitmq ... done
root@quiz:~/arsnova-click-v2-backend# wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
=> Downloading nvm from git to '/root/.nvm'
=> Cloning into '/root/.nvm'...
remote: Enumerating objects: 348, done.
remote: Counting objects: 100% (348/348), done.
remote: Compressing objects: 100% (297/297), done.
remote: Total 348 (delta 39), reused 163 (delta 26), pack-reused 0
Receiving objects: 100% (348/348), 208.92 KiB | 1.43 MiB/s, done.
Resolving deltas: 100% (39/39), done.
* (HEAD detached at FETCH_HEAD)
  master
=> Compressing and cleaning up git repository

=> Appending nvm source string to /root/.bashrc
=> Appending bash_completion source string to /root/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
root@quiz:~/arsnova-click-v2-backend# source ~/.bashrc
root@quiz:~/arsnova-click-v2-backend# nvm install v12.22.6
Downloading and installing node v12.22.6...
Downloading https://nodejs.org/dist/v12.22.6/node-v12.22.6-linux-x64.tar.xz...
######################################################################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v12.22.6 (npm v6.14.15)
Creating default alias: default -> v12.22.6
root@quiz:~/arsnova-click-v2-backend# npm install [email protected]
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] license should be a valid SPDX license expression

+ [email protected]
added 1 package from 1 contributor and audited 1 package in 2.071s
found 0 vulnerabilities

root@quiz:~/arsnova-click-v2-backend#

At point 4 I get the following errors:

root@quiz:~/arsnova-click-v2-backend# npm install
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated @types/[email protected]: This is a stub types definition. file-type provides its own type definitions, so you do not need this installed.
npm WARN deprecated @types/[email protected]: This is a stub types definition. chai-http provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: Package renamed as '@messageformat/core', see messageformat.github.io for more details. 'messageformat' will eventually provide a polyfill for Intl.MessageFormat, once it's been defined by Unicode & ECMA.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated @types/[email protected]: mongodb provides its own types. @types/mongodb is no longer needed.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Please use @koa/multer instead, see <https://github.com/koajs/multer>
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN deprecated @types/[email protected]: This is a stub types definition. bson provides its own type definitions, so you do not need this installed.
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.

> [email protected] install /root/arsnova-click-v2-backend/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

sh: 1: node-gyp: Permission denied
sh: 1: node: Permission denied

> [email protected] install /root/arsnova-click-v2-backend/node_modules/gc-stats
> node-pre-gyp install --fallback-to-build

sh: 1: node-pre-gyp: Permission denied

> [email protected] install /root/arsnova-click-v2-backend/node_modules/puppeteer
> node install.js

sh: 1: node: Permission denied
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @typegoose/[email protected] requires a peer of [email protected] - 5.10.18 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of prom-client@>= 10 <= 12 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of class-transformer@^0.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of class-validator@^0.12.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/dtrace-provider):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild || node suppress-error.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/gc-stats):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install 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/2021-10-04T07_51_12_126Z-debug.log
root@quiz:~/arsnova-click-v2-backend#

So what do I have to do to successfully install the backend?

Thanks for a hint,
George

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

No branches or pull requests

1 participant