Stopped starting up in dev environment


#1

Hi,

Working fine last week (virtualbox dev environment VM), even created wheel file, moved to pord VM and installed no problem, but logged into today and got this – also tried my backup clone with same response – I have done nothing – Honest!!

‘’’
Once started you can access the system using http://centos.centosdev:8000

Setting PATH

Changing directories

starting maildump - localhost:1080
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in /home/indico/dev/indico/maildump/bin/python2.7
Not overwriting existing python script /home/indico/dev/indico/maildump/bin/python (you must use /home/indico/dev/indico/maildump/bin/python2.7)
Installing setuptools, pip, wheel…done.
finished maildump

Starting env

Now about to run …

  • Serving Indico on http://centos.centosdev:8000
  • Werkzeug debugger console on http://centos.centosdev:8000/console
  • Werkzeug debugger console is available to all clients!
    Traceback (most recent call last):
    File “/home/indico/dev/indico/env/bin/indico”, line 11, in
    load_entry_point(‘indico’, ‘console_scripts’, ‘indico’)()
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py”, line 722, in call
    return self.main(*args, **kwargs)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/flask/cli.py”, line 380, in main
    return AppGroup.main(self, *args, **kwargs)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py”, line 697, in main
    rv = self.invoke(ctx)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
    return callback(*args, **kwargs)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/decorators.py”, line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
    return callback(*args, **kwargs)
    File “/home/indico/dev/indico/src/indico/cli/core.py”, line 172, in run
    run_cmd(info, **kwargs)
    File “/home/indico/dev/indico/src/indico/cli/devserver.py”, line 86, in run_cmd
    extra_files=extra_files, request_handler=QuietWSGIRequestHandler if quiet else None)
    File “/home/indico/dev/indico/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 795, in run_simple
    s.bind(get_sockaddr(hostname, port, address_family))
    File “/usr/lib64/python2.7/socket.py”, line 224, in meth
    return getattr(self._sock,name)(*args)
    socket.error: [Errno 99] Cannot assign requested address
    [indico@centos ~]$
    ‘’’

my startup.sh script

echo “Setting PATH”
export PATH=/usr/bin/npx:$PATH
echo
echo “Changing directories”

cd ~/dev/indico
echo
echo “starting maildump - localhost:1080”

virtualenv maildump -p /usr/bin/python2.7
#./maildump/bin/pip install -U pip setuptools
#./maildump/bin/pip install maildump
#./maildump/bin/maildump -p /tmp/maildump.pid

echo ‘finished maildump’
echo
echo “Starting env”
echo
source ./env/bin/activate

cd src

echo “Now about to run …”

indico run -h centos.centosdev -q --enable-evalex && fg


#2

My guess is that centos.centosdev resolves to something invalid or doesn’t resolve at all… not really in the scope of indico though. Safest option is to use an IP address in -h and then using -u http://whatever for the host you actually use to access it.