Issues with new 2.1.8 install

Hi,

I’m reinstalling indico as development onto a new VM. We have decide to stay with 2.1.8 at the moment and using the appropriate git code.

I have had few issues, which I seem to have got around, but now when doing the indico configuring I get the following

source ./env/bin/activate - OK
pip install -U pip setuptools - OK
cd src – OK
pip install -r requirements.dev.txt - OK
pip install -e . ERROR


Collecting pyPdf==1.13 (from indico==2.1.8)
Using cached https://files.pythonhosted.org/packages/bd/22/e1df75dffb7679344bcf986abd473d7c0e22ba976f2caef31551e394a3a2/pyPdf-1.13.tar.gz
Collecting pyatom==1.4 (from indico==2.1.8)
ERROR: Could not find a version that satisfies the requirement pyatom==1.4 (from indico==2.1.8) (from versions: none)
ERROR: No matching distribution found for pyatom==1.4 (from indico==2.1.8)

And if I try npm install afterwards

(env) [indico@dev-events02 src]$ npm install

npm WARN saveError ENOENT: no such file or directory, open '/opt/indico/dev/indico/src/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/opt/indico/dev/indico/src/package.json'
npm WARN src No description
npm WARN src No repository field.
npm WARN src No README data
npm WARN src No license field.

up to date in 0.41s

found 0 vulnerabilities

Any ideas.?

2.1.8 is not the latest version from the 2.1.x branch. Use 2.1.9 instead, which fixes that exact issue.

You need to use 2.1.9 (2.1-maintenance branch or v2.1.9 tag) if you want to stay on 2.1.

All older versions are not installable anymore due to the author of pyatom removing his package from pypi.

FYI, if you do not have any custom modifications, there is no need for you to build from git, you can just pip install 'indico==2.1.9'

OH - we have 2.1.8 running on other boxes , both dev and prod - that is why i was following my 2.1.8 instructions.
The latest instructions online are for 2.2.
so do i follow 2.1.9 instructions then - have you a copy??? or do I need to get the 2.1.9 codebase (which doesnt have my local changes in!!!).

The 2.1.9 docs aren’t online anymore, but I’ll see if i can build them on RTD without having to list them publicly…

it is a development env so i have codebase in eclipse and want to apply local changes. If i install ‘indico==2.1.9’ i assume it not complete as if a development build? - looks like i need to use 2.21.9 codebase then?

Yeah for dev use the branch/tag from git

cheers - will start with the base 2.1.9 version, get it going, and reapply my changes. If you can put together some install docs that would be great - i have local copy of 2.1.8 i can let you have if you get any issues recreating them

https://docs.getindico.io/en/v2.1.9/installation/development/ should work in a few minutes (currently building).

FYI, unless you have big modifications in the indico core I would still recommend you to switch to 2.2 as soon as possible.

Hi – twice (3 times including 2.1-maintenance) tried to clone 2.1.9 and got same error…

git clone --recursive --branch v2.1.9 https://github.com/indico/indico.git src

(even tried 2.1-maintenance - same error)

Cloning into 'src'...
remote: Enumerating objects: 257817, done.
remote: Total 257817 (delta 0), reused 0 (delta 0), pack-reused 257817
Receiving objects: 100% (257817/257817), 206.57 MiB | 41.08 MiB/s, done.
Resolving deltas: 100% (205938/205938), done.
Note: checking out '3b75f852193e7fa7f6d6ef7d39eacd353086f4e9'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name

Submodule 'ext_modules/Jed' (https://github.com/SlexAxton/Jed.git) registered for path 'ext_modules/Jed'
Submodule 'ext_modules/angular' (git://github.com/indico/angular.js.git) registered for path 'ext_modules/angular'
Submodule 'ext_modules/chartist.js' (git://github.com/gionkunz/chartist-js.git) registered for path 'ext_modules/chartist.js'
Submodule 'ext_modules/ckeditor' (https://github.com/ckeditor/ckeditor-dev.git) registered for path 'ext_modules/ckeditor'
Submodule 'ext_modules/clipboard.js' (https://github.com/zenorocha/clipboard.js.git) registered for path 'ext_modules/clipboard.js'
Submodule 'ext_modules/compass' (git://github.com/chriseppstein/compass.git) registered for path 'ext_modules/compass'
Submodule 'ext_modules/dropzone' (https://github.com/enyo/dropzone.git) registered for path 'ext_modules/dropzone'
Submodule 'ext_modules/fullcalendar' (https://github.com/fullcalendar/fullcalendar.git) registered for path 'ext_modules/fullcalendar'
Submodule 'ext_modules/jqplot' (https://github.com/svandecappelle/jQPlot.git) registered for path 'ext_modules/jqplot'
Submodule 'ext_modules/jquery' (git://github.com/jquery/jquery.git) registered for path 'ext_modules/jquery'
Submodule 'ext_modules/jquery-tablesorter' (https://github.com/Mottie/tablesorter.git) registered for path 'ext_modules/jquery-tablesorter'
Submodule 'ext_modules/jquery-typeahead' (https://github.com/running-coder/jquery-typeahead.git) registered for path 'ext_modules/jquery-typeahead'
Submodule 'ext_modules/jquery-ui-multiselect' (git://github.com/ehynds/jquery-ui-multiselect-widget.git) registered for path 'ext_modules/jquery-ui-multiselect'
Submodule 'ext_modules/mathjax' (git://github.com/mathjax/MathJax.git) registered for path 'ext_modules/mathjax'
Submodule 'ext_modules/moment.js' (https://github.com/moment/moment.git) registered for path 'ext_modules/moment.js'
Submodule 'ext_modules/outdated-browser' (https://github.com/burocratik/outdated-browser.git) registered for path 'ext_modules/outdated-browser'
Submodule 'ext_modules/pagedown' (git://github.com/balpha/pagedown.git) registered for path 'ext_modules/pagedown'
Submodule 'ext_modules/qtip2' (git://github.com/Craga89/qTip2.git) registered for path 'ext_modules/qtip2'
Submodule 'ext_modules/rrule' (git://github.com/jakubroztocil/rrule.git) registered for path 'ext_modules/rrule'
Submodule 'ext_modules/selectize.js' (https://github.com/selectize/selectize.js.git) registered for path 'ext_modules/selectize.js'
Submodule 'ext_modules/taggle.js' (https://github.com/okcoker/taggle.js.git) registered for path 'ext_modules/taggle.js'
Submodule 'ext_modules/typewatch' (https://github.com/dennyferra/TypeWatch.git) registered for path 'ext_modules/typewatch'
Submodule 'ext_modules/ui-sortable' (git://github.com/angular-ui/ui-sortable) registered for path 'ext_modules/ui-sortable'
Submodule 'ext_modules/underscore' (git://github.com/documentcloud/underscore.git) registered for path 'ext_modules/underscore'

Cloning into 'ext_modules/Jed'...

remote: Enumerating objects: 1018, done.
remote: Total 1018 (delta 0), reused 0 (delta 0), pack-reused 1018
Receiving objects: 100% (1018/1018), 1.20 MiB | 0 bytes/s, done.
Resolving deltas: 100% (197/197), done.
Submodule path 'ext_modules/Jed': checked out 'a9d03e1bbca9211a8b29a93a298a7ee9ddb353f0'

Cloning into 'ext_modules/angular'...
fatal: unable to connect to github.com:
github.com[0: 140.82.118.4]: errno=Connection timed out

any ideas???

tried again just now as error does say connection timed out - but think this is not the cause - errors same place every time - we really don’t want to go to 2.2 yet so any help here will be greatly appreciated

You should try now. I did the same a couple of minutes ago and no problems occurred.

sadly still fails in same place - this is v2.1.9 i am trying

Looks like we are going to have to go to 2.2 then :frowning:

that timeout must be an issue on your side unless github is having connectivity issues…

but if going to 2.2 is an option for you then please do that! :wink:

OK
I have made the decision to install 2.2 – will tell my boss in the morning, don’t think she will be happy, but that’s the way it is………
Got 2.2 clone OK
Following instructions ok
I now seem to be hanging on the NPM install – same place – tried about 4 times
(env) [indico@dev-events02 src]$ npm install
[ …] / extract:mathjax: sill extract mathjax@2.7.5 extracted to /opt/indico/dev/indico/src/node_modules/.staging/mathjax-2270a838 (7030ms)
It will just not move on from here

If npm also hangs then I think there’s something wrong with the internet connectivity on your system…

Does she need to know? :wink:

LOL - possibly not!!!

almost there - when starting up get a socket in use error - logged out / in again but still got error - think I have seen it somewhere before???

* Serving Indico on http://dev-events02:8000
 * Werkzeug debugger console on http://dev-events02:8000/console
 * Werkzeug debugger console is available to all clients!
Traceback (most recent call last):
  File "/opt/indico/dev/indico/env/bin/indico", line 11, in <module>
    load_entry_point('indico', 'console_scripts', 'indico')()
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/flask/cli.py", line 586, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/opt/indico/dev/indico/src/indico/cli/core.py", line 162, in run
    run_cmd(info, **kwargs)
  File "/opt/indico/dev/indico/src/indico/cli/devserver.py", line 77, in run_cmd
    extra_files=extra_files, request_handler=QuietWSGIRequestHandler if quiet else None)
  File "/opt/indico/dev/indico/env/lib/python2.7/site-packages/werkzeug/serving.py", line 987, in run_simple
    s.bind(server_address)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Sounds like you are already running an instance of the dev server or something else on that port. Check the process list and kill the other instance in case that’s what’s using the port.