Installation / starting issues

Hello invenio Community!

we are looking for an RDMS for our organization and are about to install and test Invenio. We had, however, some installation/starting issues. What is the best place to report them?
PS: Actually, all the installation steps went fine, but it does not start.

Hello and welcome!
The best way to get help is via our chat: Documentation — inveniosoftware.org (Getting help section). It is easier to share code snippets or error messages to help you out!

1 Like

Hello Help me please when I try command

docker-compose -f docker-compose.full.yml up

I get an error

flask 2.0.2 requires itsdangerous>=2.0, but you'll have itsdangerous 1.1.0 which is incompatible.
flask 2.0.2 requires Jinja2>=3.0, but you'll have jinja2 2.11.3 which is incompatible.
flask 2.0.2 requires Werkzeug>=2.0, but you'll have werkzeug 1.0.1 which is incompatible.

Tell me please
What I should do ?

I think I’ve solved the problem, maybe it’ll be god for someone, I add

'Flask>=1.0.4,<2.0',

to setup.py file

At the moment, I have another issue

when I do

docker exec -it invenioils_backend_1 /bin/bash
invenio@e34cadf4b303:/opt/invenio_app_ils/src$ ./scripts/setup

i get error

elasticsearch.exceptions.ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='es', port=9200): Read timed out. (read timeout=10))

tell me please what i should do ?

p/s

I find out, default elasticsearch doesn’t have mount volume, i did it and now it works

Thanks for reaching out!

We have been working on the first issue and it should be solved soon. As for the second issue I am glad you have been able to figure it out and don’t hesitate to reach out again.

when I run command

./scripts/bootstrap

I get error

 ERROR: Command errored out with exit status 1:
   command: /home/localadm/.virtualenvs/invenioils/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_kwd87a7/fs/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_kwd87a7/fs/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-uznc0y6u
       cwd: /tmp/pip-install-_kwd87a7/fs/
  Complete output (1 lines):
  error in fs setup command: use_2to3 is invalid.
  ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Tell me please what I should do ?

Yes, you have to use setuptools less than v58 because they remove a feature from it. This should do the job:

pip install "setuptools<58" pip --upgrade
1 Like

Can You help please again ?

then I get an error

Traceback (most recent call last):
  File "/home/localadm/invenio/env/bin/ils", line 33, in <module>
    sys.exit(load_entry_point('invenio-app-ils', 'console_scripts', 'ils')())
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/flask/cli.py", line 586, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 1289, in invoke
    rv.append(sub_ctx.command.invoke(sub_ctx))
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/flask/cli.py", line 426, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/flask_webpackext/cli.py", line 72, in buildall
    current_webpack.project.buildall()
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/pywebpack/project.py", line 141, in buildall
    super(WebpackTemplateProject, self).buildall()
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/pywebpack/project.py", line 69, in buildall
    self.install()
  File "/home/localadm/invenio/env/lib/python3.6/site-packages/pywebpack/helpers.py", line 48, in inner
    raise RuntimeError("Process exited with code {}".format(exit_code))
RuntimeError: Process exited with code 1

Do you have a more complete exception? RuntimeError: Process exited with code 1 is not really helpful…
Something more in the logs above that error?

loadDep:slimscroll → afte ▄ ╢████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN deprecated ckeditor@4.12.1: We have renamed the @ckeditor package. New versions are available under the @ckeditor4 name.
npm WARN deprecated jvectormap@1.2.2: jvectormap is not maintened since Aug 2015. You can use jvectormap-next or jqvmap instead.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! Linux 4.15.0-163-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>
npm ERR! Linux 4.15.0-163-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code EMISSINGARG

npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror     at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror     at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror     at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror     at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror     at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror     at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror     at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror     at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror     at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/localadm/invenio/env/var/instance/assets/npm-debug.log

It looks like that you are using the wrong Node version:
node v8.10.0

Please install Node 12 or 14 LTS release.

See Local development - Documentation

1 Like

at the moment after command ./scripts/bootstrap

I have

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: invenio-assets@1.0.0
npm ERR! Found: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0 || ^6.0.0" from @typescript-eslint/parser@2.34.0
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   peer @typescript-eslint/parser@"2.x" from eslint-config-react-app@5.2.1
npm ERR!   node_modules/eslint-config-react-app
npm ERR!     dev eslint-config-react-app@"^5.2.1" from the root project
npm ERR!   peer @typescript-eslint/parser@"^2.0.0" from @typescript-eslint/eslint-plugin@2.34.0
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     peer @typescript-eslint/eslint-plugin@"2.x" from eslint-config-react-app@5.2.1
npm ERR!     node_modules/eslint-config-react-app
npm ERR!       dev eslint-config-react-app@"^5.2.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-06T17_04_08_533Z-debug.log

0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
1 info using npm@8.1.2
2 info using node@v16.13.1
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 3ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/root/.virtualenvs/invenioils/var/instance/assets/.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/root/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/usr/etc/npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 40ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 54ms
19 timing npm:load:configload Completed in 54ms
20 timing npm:load:setTitle Completed in 1ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 6ms
23 timing npm:load:cleanupLog Completed in 26ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 93ms
27 timing arborist:ctor Completed in 2ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 49ms
30 timing idealTree:userRequests Completed in 0ms
31 silly idealTree buildDeps
32 silly fetch manifest admin-lte@~2.4.8
...skipping...
92 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
93 verbose node v16.13.1
94 verbose npm  v8.1.2
95 error code ERESOLVE
96 error ERESOLVE unable to resolve dependency tree
97 error
98 error While resolving: ESC[1minvenio-assetsESC[22m@ESC[1m1.0.0ESC[22m
98 error Found: ESC[1meslintESC[22m@ESC[1m7.32.0ESC[22mESC[2mESC[22m
98 error ESC[2mnode_modules/eslintESC[22m
98 error   ESC[33mdevESC[39m ESC[1meslintESC[22m@"ESC[1m^7.7.0ESC[22m" from the root project
98 error
98 error Could not resolve dependency:
98 error ESC[35mpeerESC[39m ESC[1meslintESC[22m@"ESC[1m^5.0.0 || ^6.0.0ESC[22m" from ESC[1m@typescript-eslint/parserESC[22m@ESC[1m2.34.0ESC[22mESC[2mESC[22m
98 error ESC[2mnode_modules/@typescript-eslint/parserESC[22m
98 error   ESC[35mpeerESC[39m ESC[1m@typescript-eslint/parserESC[22m@"ESC[1m2.xESC[22m" from ESC[1meslint-config-react-appESC[22m@ESC[1m5.2.1ESC[22mESC[2mESC[22m
98 error   ESC[2mnode_modules/eslint-config-react-appESC[22m
98 error     ESC[33mdevESC[39m ESC[1meslint-config-react-appESC[22m@"ESC[1m^5.2.1ESC[22m" from the root project
98 error   ESC[35mpeerESC[39m ESC[1m@typescript-eslint/parserESC[22m@"ESC[1m^2.0.0ESC[22m" from ESC[1m@typescript-eslint/eslint-pluginESC[22m@ESC[1m2.34.0ESC[22mESC[2mESC[22m
98 error   ESC[2mnode_modules/@typescript-eslint/eslint-pluginESC[22m
98 error     ESC[35mpeerESC[39m ESC[1m@typescript-eslint/eslint-pluginESC[22m@"ESC[1m2.xESC[22m" from ESC[1meslint-config-react-appESC[22m@ESC[1m5.2.1ESC[22mESC[2mESC[22m
98 error     ESC[2mnode_modules/eslint-config-react-appESC[22m
98 error       ESC[33mdevESC[39m ESC[1meslint-config-react-appESC[22m@"ESC[1m^5.2.1ESC[22m" from the root project
98 error
98 error Fix the upstream dependency conflict, or retry
98 error this command with --force, or --legacy-peer-deps
98 error to accept an incorrect (and potentially broken) dependency resolution.
98 error
98 error See /root/.npm/eresolve-report.txt for a full report.

Hello,
I just tested it and indeed it does not work with Node 16.
I have tried with 12 and 14 and it works. When we developed InvenioILS, 16 was not yet out.

I have updated the doc accordingly.

1 Like

I configured the backend to this instruction

https://invenioils.docs.cern.ch/customize/develop/

but I don’t see the 5000 port on the server for the API

tell me please how can I use API ?

What do you mean with “I don’t see the 5000 port on the server for the API”?
When you start the server with ./scripts/server, you should see something like:

❯ ./scripts/server
 * Environment: development
 * Debug mode: on
[---] DEBUG in entrypoint: Loading config for entry point 00_invenio_app_ils = invenio_app_ils.config
 * Running on https://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat

Do you see the URL https://127.0.0.1:5000/?

Hi:

when I run “invenio-cli containers build”

I have this problem, help please

Step 9/10 : RUN cp -r ./static/. ${INVENIO_INSTANCE_PATH}/static/ && cp -r ./assets/. ${INVENIO_INSTANCE_PATH}/assets/ && invenio collect --verbose && invenio webpack create && invenio webpack install --unsafe && invenio webpack build
—> Running in 3437271c1eef
Traceback (most recent call last):
File “/usr/local/bin/invenio”, line 5, in
from invenio_app.cli import cli
File “/usr/local/lib/python3.8/site-packages/invenio_app/init.py”, line 170, in
from .ext import InvenioApp
File “/usr/local/lib/python3.8/site-packages/invenio_app/ext.py”, line 11, in
from flask import Blueprint, g, request
File “/usr/local/lib/python3.8/site-packages/flask/init.py”, line 14, in
from jinja2 import escape
File “/usr/local/lib/python3.8/site-packages/jinja2/init.py”, line 12, in
from .environment import Environment
File “/usr/local/lib/python3.8/site-packages/jinja2/environment.py”, line 25, in
from .defaults import BLOCK_END_STRING
File “/usr/local/lib/python3.8/site-packages/jinja2/defaults.py”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “/usr/local/lib/python3.8/site-packages/jinja2/filters.py”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (/usr/local/lib64/python3.8/site-packages/markupsafe/init.py)
The command ‘/bin/sh -c cp -r ./static/. ${INVENIO_INSTANCE_PATH}/static/ && cp -r ./assets/. ${INVENIO_INSTANCE_PATH}/assets/ && invenio collect --verbose && invenio webpack create && invenio webpack install --unsafe && invenio webpack build’ returned a non-zero code: 1
ERROR: Service ‘web-ui’ failed to build : Build failed
Failed to build images.

Hello jspuler,

I tested the container setup and it works well with the latest release, version 9.0.0.
Which version are you using?
It would be nice if you can share all the commands you used to be able to reproduce the issue.

I also encourage you to use the chat in Discord to discuss about these problems, there are many people, developers and users, that can help with different questions. Feel free to follow up this discussion in Discord, you can find the “Chat” here: https://inveniosoftware.org/documentation/

Ok, thanks

I’m using Rocky linux 8.5 in a Digital Ocean Server

I create a user for the instalation

adduser inve

usermod -aG wheel inve

su inve

cd /home/inve

sudo dnf update, after make the update

I install phyton

sudo dnf install python38

then I install Docker

repo=https://download.docker.com/linux/centos/docker-ce.repo

sudo dnf install -y docker-ce

sudo systemctl enable docker

sudo systemctl start docker

sudo systemctl status docker

sudo usermod -aG docker inve

sudo docker run hello-world

and Docker-Compose

sudo curl -L “https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose --version

then Node.js

Node.js

sudo dnf module list nodejs

sudo dnf module install nodejs:14

node -v

npm -v

then the Pip

sudo dnf install python38-pip

pip3 --version

pip3 install --upgrade pip

pip3 install --upgrade pip --user

then the formats
su inve
pip install invenio-formatter

and deja vu

sudo dnf -y install dejavu-sans-fonts

then Image Magick

sudo dnf upgrade --refresh -y

sudo dnf install epel-release -y

sudo dnf config-manager --set-enabled powertools

sudo dnf install ImageMagick ImageMagick-devel

convert –versión

sudo dnf upgrade --refresh -y

then I install click

pip install -U click

and Git

sudo dnf install git
git --version

then I made the change in elasticsearch

Sudo yum install nano

sudo nano /etc/sysctl.conf

se agrega

Maximum number of memory map areas a process (Elasticsearch) may have

vm.max_map_count=262144

I pass the requeriments with

invenio-cli check-requirements --development

I usea pip install invenio-cli

I install invenio using

cd /home/inve
invenio-cli init rdm

then I had problems with privilegies of the user inve so
chown inve /root

after that it’s works “invenio-cli packages lock”
and then I put this “invenio-cli containers build”
and appears the error I shown you before,

thanks

Thanks for the detailed reply.
Indeed, there is an issue in version 6 with the containerized application. Thanks for reporting it.
We recently released v9.0 but by using the command “invenio-cli init rdm”, it’s still installing version 6. We will update this soon but in the meantime you can specify the version by using “invenio-cli init rdm -c v9.0”. Could you give it a try and let us know if it works?

P.S Docs to install RDM that might be helpful: https://inveniordm.docs.cern.ch/install/

1 Like