Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Zacharias Zacharodimos
Hey @jma which version of invenio-accounts are you using?
Zacharias Zacharodimos
Have you set the ACCOUNTS_REGISTER_BLUEPRINT variable? It should be left to None if so...
Johnny Mariéthoz
@zzacharo version 1.3.0 with ACCOUNTS_REGISTER_BLUEPRINT = True
Zacharias Zacharodimos
@jma can you set it to None? Or actually don't set it at all? invenio-accounts is doing the correct job out of the box....I think that config variable it confuses a bit....
Johnny Mariéthoz
@zzacharo ok probably I miss the meaning of this configuration can you explain me what is the purpose of this? Thanks in advance.
Zacharias Zacharodimos

@jma the variable is used to register or not the flask-security blueprints. In the latest version of invenio-accounts we integrated the rest views from invenio-accounts-rest and we register all the endpoints that flask-security was registering in the InvenioAccountsREST extension. That said, when setting the ACCOUNTS_REGISTER_BLUEPRINT variable, initially controlling the registration of the flask-security blueprints, it works fine for the UI application e.g /login, /logout etc. but it conflicts with the REST application i.e /api/login, /api/logout. The problem is that it tries to register twice the same endpoints and thus giving you the error you saw...

In your application do you need to access the authentication views i.e login, logout etc through jinja or you have an SPA making requests to the API application? The scope of the REST application is to give back a REST response instead of rendering the corresponding templates e.g for the login page...

Johnny Mariéthoz
@zzacharo both, we use jinja2 view for public view and REST API for professional view.
Lanxin Ma
Hello, When I run "./docker/build-images.sh" I get many errors, i.e. Installing dependencies from Pipfile.lock (c5dba8)â¦
An error occurred while installing alembic==1.4.3 --hash=sha256:4e02ed2aa796bd179965041afa092c55b51fb077de19d61835673cc80672c01c --hash=sha256:5334f32314fb2a56d86b4c4dd1ae34b08c03cae4cb888bc699942104d66bc245! Will try again.
An error occurred while installing amqp==2.6.1 --hash=sha256:70cdb10628468ff14e57ec2f751c7aa9e48e7e3651cfd62d431213c0c4e58f21 --hash=sha256:aa7f313fb887c91f15474c1229907a04dac0b8135822d6603437803424c0aa59! Will try again.
What does cause these errors ? I am an newer on Invenio. Could any body help ? Thx.
Lanxin Ma
Hello, I am settin up my own INvenio3.3 instance. When I run './scripts/bootstrap', I get the error .
[2020-10-15 19:00:30,556] ERROR in app: Failed to initialize entry point: invenio_previewer = invenio_previewer:InvenioPreviewer
Traceback (most recent call last):
File "/root/.local/share/virtualenvs/invenio3-gVyQboDv/lib/python3.6/site-packages/pkg_resources/init.py", line 2736, in requires
KeyError: 'execute'

"/root/.local/share/virtualenvs/invenio3-gVyQboDv/lib/python3.6/site-packages/pkg_resources/init.py", line 2740, in requires
) from e
pkg_resources.UnknownExtra: nbconvert 6.0.7 has no such extra feature 'execute'

I do not understand the error. Could anybody help ? Thx.

Johnny Mariéthoz
@malanxin_gitlab Try to add this requirement contraint: nbconvert = {version = ">=5.6.1,<6.0.0", extras = ["execute"]} this has been done in the master branch of invenio-previewer but not yet in the release: https://github.com/inveniosoftware/invenio-previewer/blob/340121b967f3bc8e942ee947bbce7fd332ba93d9/setup.py#L58
Arjun K

Hi. I am trying to connect to use Amazon Elasticsearch Service with Invenio. As per the currrent implementation, I configure the Elasticsearch params -as shown in this tutorial - in SEARCH_ELASTIC_HOSTS . But the problem with this is that the session_token passed in the AWS4Auth object expires after a while which would cause the subsequent requests to fail.

Since the Elasticsearch parameters are configured during app initialization, there seems to be no way to refresh the token and/or re-initialize the ES object with a new token. Is there any way to handle this issue?

Michael Groh
Hi. I'm trying to set up my first invenio instance for evaluation at my university. But every method I tried ends with unresolved dependencies with pipenv. This happens both under debian10/python7 Ubuntu20.04/python7 and Ubuntu18.04/python6 (tutorial ova) . Unfortunately I have no previous experience with pipenv and therefore I am not sure how to solve the problem.
If someone could help me over this barrier it would help me a lot.
Osagie Sammy
Good afternoon great to be here
This is my first time.
I have a question do not really know the etiquette here, has anyone deploy Invenio in AWS?
Kanász-Nagy Zoltán

Hello Guys,

We have stucked in the middle of a fresh Invenio RDM Installation process.
Could anyone in this room could help us?

My colleague sent me how he is trying the installation:

Hi all! I don't know if its's the right place (I hope). I currently trying to install an invenio-rdm instance on one of our linux servers. I could install the invenio-cli, init the rdm project, and even install it (with --pre and --development), but after whether I try run, servicesor containers I get an error, saying AttributeError: 'NoneType' object has no attribute 'group'. Im running on python 3.6.9 with pip 20.3.1, and invenio-cli 0.19.4 . Can someone help me, what have I missed? Thank you!

We are really thank you for your help.
Lars Holm Nielsen
We are no longer using Gitter for chats but Discord......you'll find the link to Discord on https://inveniosoftware.org/products/rdm/
Kanász-Nagy Zoltán
Thank you Lars, we are switching to the platform.
Mohamed Nizharudeen
Hello everyone, i am facing an issue in invenio API. In app.config['RECORDS_REST_ENDPOINTS'] = error_handlers{} are not handling multiple exceptions in it.
Osagie Sammy
cd ..
Mamadou Diaw
I'm new to invenio application and I want your assistance to repair an existing installation that crashes, when I try to repair the database.
I get EMERGENCY: Errors found. You should check consistency of the idxWORD09F - idxWORD09R tables.
Running 'bibindex --repair' is recommended.
can you assist me to finding a solution to this problem
@mams84_gitlab: I fear you'll not get too much help on invenio 1.x anymore.
Anyway, it tries ot tell you that one of your indices is broken. You should log in to the console of your server and initiate as it tells you bibindex --repair. (Usually, bibindex lives in /opt/invenio/bin) This will add a job to your bibsched. In case this one is on halt (manual mode) you may run it from there using R short cut. (Open the scheduler by just calling it via bibsched. Mind that you usually need to be the same user as the invenio user to do all this stuff, so sudo or su will be required, depending on your setup.)
the interesting question will be why your index broke. usually it's quite stable and I didn't see this for ages. However, nothing helps against a full hard drive e.g.
Zoë Hester
We had to index again when we restored DB, load huge amount of data while index was running, shutdown and restart while bibindex is running (always stop bibsched .
Eugene Ivanov
Hi ) How to add a cover to a book in a /backoffice during a new record creation?
Vít Tuček
Hi! I am looking for documentation of Invenio 1, specifically the search string format for bibexport.
1 reply
Any pointers?
Eugene Ivanov
Hi ) Where get we get Russian translation files?
Alexander Wagner
@vit-tucek I am not aware of a full documentation. probably, the most extensive one can be found in the search guide (/help/search-guide on your instance.) basically, however, you can use the name of your indices or logical fields : value. single quoted ('') searches substring, duble quotes ('" "') search phrase, / / allow for regular expressions. the usual boolean operators apply (and, or, not) and can be expressed by +, | and -respectively. note that the search engine behaves sometimes a bit strange wrt not. You can use brackets (( ), but be aware that the search engine does not like superflous brackets. so: (a and b) will not work as expected. hth.
Eugene Ivanov

What kind of error it can be?

Traceback (most recent call last):
File "/Users/ta/Python_Projects/leninka/ABIS/invenio_one_more/lib/python3.9/site-packages/flask/app.py", line 2464, in call
return self.wsgi_app(environ, start_response)
File "/Users/ta/Python_Projects/leninka/ABIS/invenio_one_more/lib/python3.9/site-packages/werkzeug/middleware/dispatcher.py", line 78, in call
return app(environ, start_response)
File "/Users/ta/Python_Projects/leninka/ABIS/invenio_one_more/lib/python3.9/site-packages/flask/app.py", line 2464, in call
return self.wsgi_app(environ, start_response)
File "/Users/ta/Python_Projects/leninka/ABIS/invenio_one_more/lib/python3.9/site-packages/flask/app.py", line 2450, in wsgi_app
response = self.handle_exception(e)
File "/Users/ta/Python_Projects/leninka/ABIS/invenio_one_more/lib/python3.9/site-packages/flask_restful/init.py", line 271, in error_router
return original_handler(e)
File "/Users/ta/Python_Projects/leninka/ABIS/invenio_one_more/lib/python3.9/site-packages/flask/app.py", line 1867, in handle_exception


Hi guys? help me please, when i do that command

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 ?

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

@corlovito : Note the annoucement by @lnielsen :point_right: https://gitter.im/inveniosoftware/invenio?at=5fd0d1370697c1210daee255

We are no longer using Gitter for chats but Discord......

See the «Chatroom» section in https://inveniosoftware.org/support/

@mmo thanks
hello. i am trying to setup invenio according to steps on Tutorial 01 from the training. On running ./scripts/bootstrap after a long time i am getting the following error ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /root/.local/share/virtualenvs/my-site-fqbinNKM/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pipenv-hqj3xiyj-build/fs_e60f0eb7096f40b6b4dfb78e178416e7/setup.py'"'"'; file='"'"'/tmp/pipenv-hqj3xiyj-build/fs_e60f0eb7096f40b6b4dfb78e178416e7/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-41mowa1i
cwd: /tmp/pipenv-hqj3xiyj-build/fs_e60f0eb7096f40b6b4dfb78e178416e7/
Complete output (1 lines):
error in fs setup command: use_2to3 is invalid.
Eugene Ivanov
Hi ) is there any demo ssite available there I can login to /admin and /backoffice