These are chat archives for inveniosoftware/invenio

25th
Apr 2016
Samuele Kaplun
@kaplun
Apr 25 2016 08:31
Hi! Just for information, is there already planned a reimplementation for Invenio 3, of RSS/Atom and alerting in general?
Lars Holm Nielsen
@lnielsen
Apr 25 2016 09:46
@kaplun Not as far as I know - but I guess it’s two/three different things? 1) RSS/Atom serialization 2) notifications 3) alerter which matches records against query….
Samuele Kaplun
@kaplun
Apr 25 2016 09:47
They have in common the "against given queries" :) But indeed can be implemented separately.
I just discovered Werkzeug and Flask comes with native ATOM support (via a contrib) :)
Dmitri Pisarev
@dimaip
Apr 25 2016 11:24

Hey! Another noob question from me. Invenio 1.2.

cat /opt/invenio/etc/invenio-local.conf 
[Invenio]
CFG_SITE_NAME = StPhi
CFG_SITE_NAME_INTL_en = SFI
CFG_SITE_NAME_INTL_ru = СФИ

Then I run

/opt/invenio/bin/inveniocfg --reset-all

But the in site header it still says: Atlantis Institute of Fictive Science
Why?

Another question is, what's the normal worflow for developing with 1.2, e.g. changing the theme. What files within container do I have to update, and what caches to flush to see the changes?
Overall, I'm so lost now...
Samuele Kaplun
@kaplun
Apr 25 2016 11:28
Hi @dimaip have you rerun webcoll afterwards? It is caching all the internationalized languages.
Dmitri Pisarev
@dimaip
Apr 25 2016 11:29
nope
like this: ./webcoll -v0 -s5m -u apache?
Samuele Kaplun
@kaplun
Apr 25 2016 11:30
In general: if you modify _template.py files you need to restart Apache to make the update to be taken into consideration.
Yep
If you modify formats templates (i.e. .bft, bfe_* files), then you need to force bibreformat over the affected records.
Finally if you modify things related to collection definition (such as the above mentioned internationalization) you need to rerun webcoll
In general having webcoll and bibreformat always running as specified in the HOWTO RUN guide (in the admin documentation installed with your instance will be already good :) )
Dmitri Pisarev
@dimaip
Apr 25 2016 11:38
@kaplun thanks for all the details! Ran everything from the docs but still see all site title
must I restart apache again?
Samuele Kaplun
@kaplun
Apr 25 2016 11:40
Mmh... in the past there was an howto (on the old website) with exactly all the steps for customizing the site name and have this info propagated... I wonder if @tiborsimko has still copy of it... In principle you might need to restart apache at least one time because certain values are still cached in memory. Trying it will not harm :)
Dmitri Pisarev
@dimaip
Apr 25 2016 11:42
if I try to run service httpd restart from within the demo site docker container, it doesn't get me very far:
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
Tibor Simko
@tiborsimko
Apr 25 2016 11:42
inveniocfg --update-all is also needed in addition to --reset-all
Dmitri Pisarev
@dimaip
Apr 25 2016 11:43
nope, didn't get me anywhere
Tibor Simko
@tiborsimko
Apr 25 2016 11:43
The Docker container runs supervisordso it may be enough to kill the apache process. Or just stop and up -d again.
Dmitri Pisarev
@dimaip
Apr 25 2016 11:44
I restarted the docker contatiner with docker-compose restart, but still see old tiitel
Tibor Simko
@tiborsimko
Apr 25 2016 11:45
@dimaip Have you run inveniocfg --update-all? Asking because above you wrote only --reset-all, and both are needed.
Dmitri Pisarev
@dimaip
Apr 25 2016 11:46
yay, restarted container after --update-all and it worked
now I get an error:
The server encountered an error while dealing with your request.

The system administrators have been alerted.

In case of doubt, please contact info@invenio-software.org.
how do I debug this one?
Tibor Simko
@tiborsimko
Apr 25 2016 11:47
Look into var/log/invenio.err
Dmitri Pisarev
@dimaip
Apr 25 2016 11:49
No such file or directory: '/opt/invenio/var/cache/collections/StPhi-ln=en.html' (websearch_webcoll.py:932:perform_display_collection)
Tibor Simko
@tiborsimko
Apr 25 2016 11:49
Note: instead of using the default info@invenio-software.org, please configure the site to use your own admin addresses. There are several CFG variables to change, see https://github.com/inveniosoftware/invenio/blob/maint-1.2/config/invenio.conf#L38-L54
Dmitri Pisarev
@dimaip
Apr 25 2016 11:50
yeah, I changed it on other conatiner, just installed the fresh one to try things out
so I need to clear the cache somehow?
Tibor Simko
@tiborsimko
Apr 25 2016 11:51
WRT your error, you also need to change collection name of the Home collection (the one with ID=1), it is not sufficient to change CFG_SITE_NAME. Hence the fix:
echo "UPDATE collection SET name='StPhy' WHERE id=1" | /opt/invenio/bin/dbexec
Dmitri Pisarev
@dimaip
Apr 25 2016 11:53
just wondering, is it possible to fix it from websearch module?
No such file or directory: '/opt/invenio/var/cache/collections/StPhi-ln=en.html' (websearch_webcoll.py:932:perform_display_collection)
still the same error
after running the query
need to restart or anything?
Tibor Simko
@tiborsimko
Apr 25 2016 11:56
Note that you may also want to update I18N collection names in collectionname table, or just delete them:
echo "DELETE FROM collectionname WHERE id_collection=1" | dbexec
Just run the above two SQL statements and only after that run webcoll anew.
Tibor Simko
@tiborsimko
Apr 25 2016 12:04
BREAKING NEWS (16:00) At today's @inveniosoftware developer forum, @egabancho will debrief about the recent CDSLABS sprint, featuring among others the Invenio1-to-Invenio3 record migration https://indico.cern.ch/event/524159/
Samuele Kaplun
@kaplun
Apr 25 2016 12:09
In case also someone is interested today the new HEPData (based on Invenio3) is being unveiled: https://indico.cern.ch/event/512652/
Dmitri Pisarev
@dimaip
Apr 25 2016 12:19
@tiborsimko @kaplun thanks a lot, guys, I think it worked