<div dir="ltr">Ciao ragazzi!<div>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:</div><div><br></div><div>[LOG ERRORE]</div><div><br></div><div><div><div><div><div>echo@debian:~/nodeshot-tools/nodeshot-fabfile-master$ fab install -H 10.132.50.243  -u root</div><div>[10.132.50.243] Executing task 'install'</div><div>[10.132.50.243] Passphrase for private key: </div><div>[10.132.50.243] Login password for 'root': </div><div>Set install directory (including trailing slash): [/var/www] </div><div>Set project name: [myproject] </div><div>Server name: [10.132.50.243] <a href="http://miosito.strano.net">miosito.strano.net</a></div><div>Set database user: [nodeshot] </div><div>Set database user password: [57ye002wvh96] nodeshot</div><div>Creating install dir...</div><div>****************************************</div><div>Please insert SSL certificate details...</div><div>****************************************</div><div>[10.132.50.243] run: openssl req -new -x509 -nodes -days 1095 -out server.crt -keyout server.key</div><div>[10.132.50.243] out: Generating a 2048 bit RSA private key</div><div>[10.132.50.243] out: .......................+++</div><div>[10.132.50.243] out: ............+++</div><div>[10.132.50.243] out: writing new private key to 'server.key'</div><div>[10.132.50.243] out: -----</div><div>[10.132.50.243] out: You are about to be asked to enter information that will be incorporated</div><div>[10.132.50.243] out: into your certificate request.</div><div>[10.132.50.243] out: What you are about to enter is what is called a Distinguished Name or a DN.</div><div>[10.132.50.243] out: There are quite a few fields but you can leave some blank</div><div>[10.132.50.243] out: For some fields there will be a default value,</div><div>[10.132.50.243] out: If you enter '.', the field will be left blank.</div><div>[10.132.50.243] out: -----</div><div>[10.132.50.243] out: Country Name (2 letter code) [AU]:IT</div><div>[10.132.50.243] out: State or Province Name (full name) [Some-State]:Italy</div><div>[10.132.50.243] out: Locality Name (eg, city) []:Rome</div><div>[10.132.50.243] out: Organization Name (eg, company) [Internet Widgits Pty Ltd]:Home</div><div>[10.132.50.243] out: Organizational Unit Name (eg, section) []:Home dev</div><div>[10.132.50.243] out: Common Name (e.g. server FQDN or YOUR name) []:<a href="http://miosito.strano.net">miosito.strano.net</a></div><div>[10.132.50.243] out: Email Address []:<a href="mailto:patrizio.p88@gmail.com">patrizio.p88@gmail.com</a></div><div>[10.132.50.243] out: </div><div><br></div><div>Installing required packages. This will take a bit of time to download...</div><div>Configuring DB...</div><div>Creating virtual env...</div><div>Installing requirements. This will take a while, sit back and relax...</div><div>Creating project...</div><div>Setting permissions...</div><div>Configuring nodeshot...</div><div>Installing redis...</div><div>Running syncdb, migrate and collectstatic...</div><div><br></div><div>Fatal error: run() received nonzero return code 1 while executing!</div><div><br></div><div>Requested: workon nodeshot && ./manage.py syncdb --noinput && ./manage.py migrate && ./manage.py collectstatic --noinput</div><div>Executed: /bin/bash -l -c "cd /var/www/nodeshot && workon nodeshot && ./manage.py syncdb --noinput && ./manage.py migrate && ./manage.py collectstatic --noinput"</div><div><br></div><div>=========================================================================== Standard output ===========================================================================</div><div><br></div><div>Traceback (most recent call last):</div><div>  File "./manage.py", line 10, in <module></div><div>    execute_from_command_line(sys.argv)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line</div><div>    utility.execute()</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute</div><div>    self.fetch_command(subcommand).run_from_argv(self.argv)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command</div><div>    klass = load_command_class(app_name, subcommand)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class</div><div>    module = import_module('%s.management.commands.%s' % (app_name, name))</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module</div><div>    __import__(name)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 10, in <module></div><div>    import django.template.loaders.app_directories</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 23, in <module></div><div>    mod = import_module(app)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module</div><div>    __import__(name)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/__init__.py", line 1, in <module></div><div>    from grappelli.dashboard.dashboards import *</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/dashboards.py", line 13, in <module></div><div>    from grappelli.dashboard import modules</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/modules.py", line 13, in <module></div><div>    from grappelli.dashboard.utils import AppListElementMixin</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/utils.py", line 12, in <module></div><div>    from django.contrib import admin</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 6, in <module></div><div>    from django.contrib.admin.sites import AdminSite, site</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 4, in <module></div><div>    from django.contrib.admin.forms import AdminAuthenticationForm</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/forms.py", line 6, in <module></div><div>    from django.contrib.auth.forms import AuthenticationForm</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/forms.py", line 17, in <module></div><div>    from django.contrib.auth.models import User</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 48, in <module></div><div>    class Permission(models.Model):</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py", line 96, in __new__</div><div>    new_class.add_to_class('_meta', Options(meta, **kwargs))</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py", line 264, in add_to_class</div><div>    value.contribute_to_class(cls, name)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/options.py", line 124, in contribute_to_class</div><div>    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__</div><div>    return getattr(connections[DEFAULT_DB_ALIAS], item)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/utils.py", line 199, in __getitem__</div><div>    conn = backend.DatabaseWrapper(db, alias)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 11, in __init__</div><div>    self.ops = PostGISOperations(self)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 158, in __init__</div><div>    if self.spatial_version < (1, 3, 4):</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/functional.py", line 49, in __get__</div><div>    res = instance.__dict__[self.func.__name__] = self.func(instance)</div><div>  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</div><div>    'template?' % self.connection.settings_dict['NAME']</div><div>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?</div><div><br></div><div>========================================================================================================================================================================</div><div><br></div><div>Aborting.</div><div>Disconnecting from 10.132.50.243... done.</div><div>run() received nonzero return code 1 while executing!</div><div><br></div><div>Requested: workon nodeshot && ./manage.py syncdb --noinput && ./manage.py migrate && ./manage.py collectstatic --noinput</div><div>Executed: /bin/bash -l -c "cd /var/www/nodeshot && workon nodeshot && ./manage.py syncdb --noinput && ./manage.py migrate && ./manage.py collectstatic --noinput"</div><div><br></div><div>=========================================================================== Standard output ===========================================================================</div><div><br></div><div>Traceback (most recent call last):</div><div>  File "./manage.py", line 10, in <module></div><div>    execute_from_command_line(sys.argv)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line</div><div>    utility.execute()</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute</div><div>    self.fetch_command(subcommand).run_from_argv(self.argv)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command</div><div>    klass = load_command_class(app_name, subcommand)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class</div><div>    module = import_module('%s.management.commands.%s' % (app_name, name))</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module</div><div>    __import__(name)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/south/management/commands/__init__.py", line 10, in <module></div><div>    import django.template.loaders.app_directories</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 23, in <module></div><div>    mod = import_module(app)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module</div><div>    __import__(name)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/__init__.py", line 1, in <module></div><div>    from grappelli.dashboard.dashboards import *</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/dashboards.py", line 13, in <module></div><div>    from grappelli.dashboard import modules</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/modules.py", line 13, in <module></div><div>    from grappelli.dashboard.utils import AppListElementMixin</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/grappelli/dashboard/utils.py", line 12, in <module></div><div>    from django.contrib import admin</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 6, in <module></div><div>    from django.contrib.admin.sites import AdminSite, site</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 4, in <module></div><div>    from django.contrib.admin.forms import AdminAuthenticationForm</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/admin/forms.py", line 6, in <module></div><div>    from django.contrib.auth.forms import AuthenticationForm</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/forms.py", line 17, in <module></div><div>    from django.contrib.auth.models import User</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 48, in <module></div><div>    class Permission(models.Model):</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py", line 96, in __new__</div><div>    new_class.add_to_class('_meta', Options(meta, **kwargs))</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/base.py", line 264, in add_to_class</div><div>    value.contribute_to_class(cls, name)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/models/options.py", line 124, in contribute_to_class</div><div>    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/__init__.py", line 34, in __getattr__</div><div>    return getattr(connections[DEFAULT_DB_ALIAS], item)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/db/utils.py", line 199, in __getitem__</div><div>    conn = backend.DatabaseWrapper(db, alias)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/base.py", line 11, in __init__</div><div>    self.ops = PostGISOperations(self)</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/operations.py", line 158, in __init__</div><div>    if self.spatial_version < (1, 3, 4):</div><div>  File "/usr/local/lib/virtualenvs/nodeshot/local/lib/python2.7/site-packages/django/utils/functional.py", line 49, in __get__</div><div>    res = instance.__dict__[self.func.__name__] = self.func(instance)</div><div>  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</div><div>    'template?' % self.connection.settings_dict['NAME']</div><div>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?</div><div><br></div><div>========================================================================================================================================================================</div><div>echo@debian:~/nodeshot-tools/nodeshot-fabfile-master$ </div></div></div></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>I passi che ho seguito sono stati</div><div>1) Installare pip</div><div>2) Installare fabric</div><div>3)<span style="color:rgb(64,64,64);font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;font-size:12px;line-height:1.5">wget <a href="https://github.com/ninuxorg/nodeshot-fabfile/archive/master.zip">https://github.com/ninuxorg/nodeshot-fabfile/archive/master.zip</a> -O nodeshot-fabfile.zip</span></div><pre style="font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;line-height:1.5;overflow:auto;color:rgb(64,64,64)">unzip nodeshot-fabfile.zip
rm nodeshot-fabfile.zip
cd nodeshot-fabfile-master</pre><pre style="font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;line-height:1.5;overflow:auto;color:rgb(64,64,64)"><span style="line-height:1.5">4)</span><span style="line-height:1.5">fab install -H 10.132.50.243 -u root -p <password></span></pre><div><br></div><div><br></div><div><br></div><div>Avete idea di cosa possa essere?</div></div>