Federico, dont waste you time in this.

I already decided to re-install and use mysql as databse engine. i tell you
how it goes....

Thanks.

2017-05-03 15:31 GMT-03:00 Alvaro Mendez <[email protected]>:

> Well Fwderico, my bad... i dont have any backup......
>
>     "msg": "\n:stderr: Traceback (most recent call last):\n  File
> \"./manage.py\", line 10, in <module>\n    
> execute_from_command_line(sys.argv)\n
> File \"/opt/openwisp2/env/local/lib/python2.7/site-packages/
> django/core/management/__init__.py\", line 367, in
> execute_from_command_line\n    utility.execute()\n  File
> \"/opt/openwisp2/env/local/lib/python2.7/site-packages/
> django/core/management/__init__.py\", line 359, in execute\n
> self.fetch_command(subcommand).run_from_argv(self.argv)\n  File
> \"/opt/openwisp2/env/local/lib/python2.7/site-packages/
> django/core/management/base.py\", line 294, in run_from_argv\n
> self.execute(*args, **cmd_options)\n  File \"/opt/openwisp2/env/local/
> lib/python2.7/site-packages/django/core/management/base.py\", line 345,
> in execute\n    output = self.handle(*args, **options)\n  File
> \"/opt/openwisp2/env/local/lib/python2.7/site-packages/
> django/core/management/commands/migrate.py\", line 83, in handle\n
> executor = MigrationExecutor(connection, self.migration_progress_callback)\n
> File \"/opt/openwisp2/env/local/lib/python2.7/site-packages/
> django/db/migrations/executor.py\", line 20, in __init__\n    self.loader
> = MigrationLoader(self.connection)\n  File \"/opt/openwisp2/env/local/
> lib/python2.7/site-packages/django/db/migrations/loader.py\", line 52, in
> __init__\n    self.build_graph()\n  File \"/opt/openwisp2/env/local/
> lib/python2.7/site-packages/django/db/migrations/loader.py\", line 267,
> in build_graph\n    six.reraise(NodeNotFoundError, exc_value,
> sys.exc_info()[2])\n  File \"/opt/openwisp2/env/local/
> lib/python2.7/site-packages/django/db/migrations/loader.py\", line 238,
> in build_graph\n    self.graph.validate_consistency()\n  File
> \"/opt/openwisp2/env/local/lib/python2.7/site-packages/
> django/db/migrations/graph.py\", line 261, in validate_consistency\n
> [n.raise_error() for n in self.node_map.values() if isinstance(n,
> DummyNode)]\n  File \"/opt/openwisp2/env/local/
> lib/python2.7/site-packages/django/db/migrations/graph.py\", line 104, in
> raise_error\n    raise NodeNotFoundError(self.error_message, self.key,
> origin=self.origin)\ndjango.db.migrations.exceptions.NodeNotFoundError:
> Migration config.0003_template_tags depends on nonexistent node ('config',
> '0002_config_settings_uuid'). Django tried to replace migration
> config.0002_config_settings_uuid with any of 
> [config.0001_squashed_0002_config_settings_uuid]
> but wasn't able to because some of the replaced migrations are already
> applied.\n",
>     "path": "/opt/openwisp2/env/bin:/usr/local/sbin:/usr/local/bin:/
> usr/sbin:/usr/bin:/sbin:/bin:/snap/bin",
>     "state": "absent",
>     "syspath": [
>         "/tmp/ansible_aR9Fnq",
>         "/tmp/ansible_aR9Fnq/ansible_modlib.zip",
>         "/tmp/ansible_aR9Fnq/ansible_modlib.zip",
>         "/usr/lib/python2.7",
>         "/usr/lib/python2.7/plat-x86_64-linux-gnu",
>         "/usr/lib/python2.7/lib-tk",
>         "/usr/lib/python2.7/lib-old",
>         "/usr/lib/python2.7/lib-dynload",
>         "/usr/local/lib/python2.7/dist-packages",
>         "/usr/lib/python2.7/dist-packages"
>
>
>
> is there any way to put the database from default? and them apply this
> upgrade?
>
> Best Regards and thanks for your time....
>
> 2017-05-03 15:07 GMT-03:00 Federico Capoano <[email protected]>:
>
>> I've just pushed a fix:
>> https://github.com/openwisp/openwisp-controller/commit/d173c
>> 248e21dceadf69cb314ac7ca2887a350f9d
>>
>> Try the following procedure:
>>
>>    1. restore a backup/snapshot
>>    2. set the variable *openwisp2_controller_dev* and
>>    *openwisp2_django_netjsonconfig_dev* to true in your ansible
>>    playbook, see Role variables
>>    <https://github.com/openwisp/ansible-openwisp2> for an example
>>    3. repeat the upgrade
>>
>> In the very unfortunate case in which you don't have a backup, perform
>> only step 2 and 3 and cross your fingers...
>>
>> Federico
>>
>> On Wed, May 3, 2017 at 7:54 PM Alvaro Mendez <[email protected]>
>> wrote:
>>
>>> thank you very much!!!
>>>
>>> 2017-05-03 14:53 GMT-03:00 Federico Capoano <[email protected]>
>>> :
>>>
>>>> I've been able to reproduce the issue.
>>>>
>>>> I will update you shortly.
>>>>
>>>
>>>> On Wed, May 3, 2017 at 7:48 PM Federico Capoano <
>>>> [email protected]> wrote:
>>>>
>>>>> I think this is not a problem related strictly to the multi-tenancy
>>>>> migration.
>>>>>
>>>>> It seems this migration is failing:
>>>>> https://github.com/openwisp/openwisp-controller/blob/master/
>>>>> openwisp_controller/config/migrations/0002_config_setting
>>>>> s_uuid.py#L16-L20
>>>>>
>>>>> Did you back up before upgrading as I suggested when released that
>>>>> feature?
>>>>>
>>>>> Federico
>>>>>
>>>>> On Wed, May 3, 2017 at 7:42 PM Federico Capoano <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> On Wed, May 3, 2017 at 7:38 PM Alvaro Mendez <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi Federico is a test instalation waiting for production hahaha.
>>>>>>>
>>>>>>
>>>>>> Did you insert a lot of routers in?
>>>>>>
>>>>>> Very complicated for fix?
>>>>>>>
>>>>>>
>>>>>> I would need to spend some hours on it but I'm very busy on other
>>>>>> issues.
>>>>>>
>>>>>> Federico
>>>>>>
>>>>> --
>>>>
>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "OpenWISP" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>> pic/openwisp/B2rdQJ8TSM4/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>>         Alvaro Mendez
>>> [email protected]
>>>           8-9047532
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "OpenWISP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "OpenWISP" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/openwisp/B2rdQJ8TSM4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>         Alvaro Mendez
> [email protected]
>           8-9047532
>



-- 
        Alvaro Mendez
[email protected]
          8-9047532

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to