[ninux-dev] Installazione nodeshot

Patrizio Perna patrizio.p88 at gmail.com
Mon Jan 12 18:48:29 CET 2015


Ciao ragazzi!
Stavo provando a installare nodeshot con l'installer automatico su una
macchina virtuale in esecuzione sul mio pc, ma mi da un errore in fase di
installazione dopo aver inserito  i dettagli per il certificato ssl:

[LOG ERRORE]

echo at debian:~/nodeshot-tools/nodeshot-fabfile-master$ fab install -H
10.132.50.243  -u root
[10.132.50.243] Executing task 'install'
[10.132.50.243] Passphrase for private key:
[10.132.50.243] Login password for 'root':
Set install directory (including trailing slash): [/var/www]
Set project name: [myproject]
Server name: [10.132.50.243] miosito.strano.net
Set database user: [nodeshot]
Set database user password: [57ye002wvh96] nodeshot
Creating install dir...
****************************************
Please insert SSL certificate details...
****************************************
[10.132.50.243] run: openssl req -new -x509 -nodes -days 1095 -out
server.crt -keyout server.key
[10.132.50.243] out: Generating a 2048 bit RSA private key
[10.132.50.243] out: .......................+++
[10.132.50.243] out: ............+++
[10.132.50.243] out: writing new private key to 'server.key'
[10.132.50.243] out: -----
[10.132.50.243] out: You are about to be asked to enter information that
will be incorporated
[10.132.50.243] out: into your certificate request.
[10.132.50.243] out: What you are about to enter is what is called a
Distinguished Name or a DN.
[10.132.50.243] out: There are quite a few fields but you can leave some
blank
[10.132.50.243] out: For some fields there will be a default value,
[10.132.50.243] out: If you enter '.', the field will be left blank.
[10.132.50.243] out: -----
[10.132.50.243] out: Country Name (2 letter code) [AU]:IT
[10.132.50.243] out: State or Province Name (full name) [Some-State]:Italy
[10.132.50.243] out: Locality Name (eg, city) []:Rome
[10.132.50.243] out: Organization Name (eg, company) [Internet Widgits Pty
Ltd]:Home
[10.132.50.243] out: Organizational Unit Name (eg, section) []:Home dev
[10.132.50.243] out: Common Name (e.g. server FQDN or YOUR name) []:
miosito.strano.net
[10.132.50.243] out: Email Address []:patrizio.p88 at gmail.com
[10.132.50.243] out:

Installing required packages. This will take a bit of time to download...
Configuring DB...
Creating virtual env...
Installing requirements. This will take a while, sit back and relax...
Creating project...
Setting permissions...
Configuring nodeshot...
Installing redis...
Running syncdb, migrate and collectstatic...

Fatal error: run() received nonzero return code 1 while executing!

Requested: workon nodeshot && ./manage.py syncdb --noinput && ./manage.py
migrate && ./manage.py collectstatic --noinput
Executed: /bin/bash -l -c "cd /var/www/nodeshot && workon nodeshot &&
./manage.py syncdb --noinput && ./manage.py migrate && ./manage.py
collectstatic --noinput"

===========================================================================
Standard output
===========================================================================

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
    utility.execute()
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 75, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 40, in import_module
    __import__(name)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/south/management/commands/__init__.py",
line 10, in <module>
    import django.template.loaders.app_directories
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py",
line 23, in <module>
    mod = import_module(app)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 40, in import_module
    __import__(name)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/__init__.py",
line 1, in <module>
    from grappelli.dashboard.dashboards import *
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/dashboards.py",
line 13, in <module>
    from grappelli.dashboard import modules
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/modules.py",
line 13, in <module>
    from grappelli.dashboard.utils import AppListElementMixin
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/utils.py",
line 12, in <module>
    from django.contrib import admin
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py",
line 6, in <module>
    from django.contrib.admin.sites import AdminSite, site
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
line 4, in <module>
    from django.contrib.admin.forms import AdminAuthenticationForm
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/forms.py",
line 6, in <module>
    from django.contrib.auth.forms import AuthenticationForm
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/forms.py",
line 17, in <module>
    from django.contrib.auth.models import User
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/models.py",
line 48, in <module>
    class Permission(models.Model):
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py",
line 96, in __new__
    new_class.add_to_class('_meta', Options(meta, **kwargs))
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py",
line 264, in add_to_class
    value.contribute_to_class(cls, name)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/options.py",
line 124, in contribute_to_class
    self.db_table = truncate_name(self.db_table,
connection.ops.max_name_length())
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/__init__.py",
line 34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/utils.py",
line 199, in __getitem__
    conn = backend.DatabaseWrapper(db, alias)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/base.py",
line 11, in __init__
    self.ops = PostGISOperations(self)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py",
line 158, in __init__
    if self.spatial_version < (1, 3, 4):
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/functional.py",
line 49, in __get__
    res = instance.__dict__[self.func.__name__] = self.func(instance)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py",
line 258, in spatial_version
    'template?' % self.connection.settings_dict['NAME']
django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS
version for database "nodeshot". GeoDjango requires at least PostGIS
version 1.3. Was the database created from a spatial database template?

========================================================================================================================================================================

Aborting.
Disconnecting from 10.132.50.243... done.
run() received nonzero return code 1 while executing!

Requested: workon nodeshot && ./manage.py syncdb --noinput && ./manage.py
migrate && ./manage.py collectstatic --noinput
Executed: /bin/bash -l -c "cd /var/www/nodeshot && workon nodeshot &&
./manage.py syncdb --noinput && ./manage.py migrate && ./manage.py
collectstatic --noinput"

===========================================================================
Standard output
===========================================================================

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
    utility.execute()
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 75, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 40, in import_module
    __import__(name)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/south/management/commands/__init__.py",
line 10, in <module>
    import django.template.loaders.app_directories
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py",
line 23, in <module>
    mod = import_module(app)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py",
line 40, in import_module
    __import__(name)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/__init__.py",
line 1, in <module>
    from grappelli.dashboard.dashboards import *
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/dashboards.py",
line 13, in <module>
    from grappelli.dashboard import modules
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/modules.py",
line 13, in <module>
    from grappelli.dashboard.utils import AppListElementMixin
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/utils.py",
line 12, in <module>
    from django.contrib import admin
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py",
line 6, in <module>
    from django.contrib.admin.sites import AdminSite, site
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/sites.py",
line 4, in <module>
    from django.contrib.admin.forms import AdminAuthenticationForm
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/forms.py",
line 6, in <module>
    from django.contrib.auth.forms import AuthenticationForm
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/forms.py",
line 17, in <module>
    from django.contrib.auth.models import User
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/models.py",
line 48, in <module>
    class Permission(models.Model):
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py",
line 96, in __new__
    new_class.add_to_class('_meta', Options(meta, **kwargs))
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py",
line 264, in add_to_class
    value.contribute_to_class(cls, name)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/options.py",
line 124, in contribute_to_class
    self.db_table = truncate_name(self.db_table,
connection.ops.max_name_length())
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/__init__.py",
line 34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/utils.py",
line 199, in __getitem__
    conn = backend.DatabaseWrapper(db, alias)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/base.py",
line 11, in __init__
    self.ops = PostGISOperations(self)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py",
line 158, in __init__
    if self.spatial_version < (1, 3, 4):
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/functional.py",
line 49, in __get__
    res = instance.__dict__[self.func.__name__] = self.func(instance)
  File
"/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py",
line 258, in spatial_version
    'template?' % self.connection.settings_dict['NAME']
django.core.exceptions.ImproperlyConfigured: Cannot determine PostGIS
version for database "nodeshot". GeoDjango requires at least PostGIS
version 1.3. Was the database created from a spatial database template?

========================================================================================================================================================================
echo at debian:~/nodeshot-tools/nodeshot-fabfile-master$




I passi che ho seguito sono stati
1) Installare pip
2) Installare fabric
3)wget https://github.com/ninuxorg/nodeshot-fabfile/archive/master.zip -O
nodeshot-fabfile.zip

unzip nodeshot-fabfile.zip
rm nodeshot-fabfile.zip
cd nodeshot-fabfile-master

4)fab install -H 10.132.50.243 -u root -p <password>




Avete idea di cosa possa essere?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ninux.org/pipermail/ninux-dev/attachments/20150112/f2c62ef6/attachment-0001.html>


More information about the ninux-dev mailing list