Django migration squashing feature made a mess of things. I managed to 
track down the issue. Uploaded version 3.0.2. Give it a go.

On Thursday, March 22, 2018 at 11:43:12 AM UTC-4, Victor Zele wrote:
>
> I am using PIP to install/update, not the docker image.
>
> There is still something wedged with 3.0.1 and get the same error in the 
> end using your suggestions...
>
> thanks
>
> (mayan-edms) root@sjc1-mayan01:/usr/share/mayan-edms# *mayan-edms.py 
> performupgrade*
> No handlers could be found for logger "pyocr.libtesseract"
> CommandError: Error during pre_upgrade signal: Migration 
> document_states.0005_auto_20170803_0638 is applied before its dependency 
> events.0006_objecteventsubscription on database 'default'.
> (mayan-edms) root@sjc1-mayan01:/usr/share/mayan-edms# *mayan-edms.py 
> migrate events*
> No handlers could be found for logger "pyocr.libtesseract"
> Traceback (most recent call last):
>   File "/usr/share/mayan-edms/bin/mayan-edms.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 364, in execute_from_command_line
>     utility.execute()
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 356, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/base.py",
>  
> line 283, in run_from_argv
>     self.execute(*args, **cmd_options)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/base.py",
>  
> line 330, in execute
>     output = self.handle(*args, **options)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
>  
> line 86, in handle
>     executor.loader.check_consistent_history(connection)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/db/migrations/loader.py",
>  
> line 298, in check_consistent_history
>     connection.alias,
> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration 
> document_states.0005_auto_20170803_0638 is applied before its dependency 
> events.0006_objecteventsubscription on database 'default'.
> (mayan-edms) root@sjc1-mayan01:/usr/share/mayan-edms# *mayan-edms.py 
> migrate events 0006*
> No handlers could be found for logger "pyocr.libtesseract"
> Traceback (most recent call last):
>   File "/usr/share/mayan-edms/bin/mayan-edms.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 364, in execute_from_command_line
>     utility.execute()
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>  
> line 356, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/base.py",
>  
> line 283, in run_from_argv
>     self.execute(*args, **cmd_options)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/base.py",
>  
> line 330, in execute
>     output = self.handle(*args, **options)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
>  
> line 86, in handle
>     executor.loader.check_consistent_history(connection)
>   File 
> "/usr/share/mayan-edms/local/lib/python2.7/site-packages/django/db/migrations/loader.py",
>  
> line 298, in check_consistent_history
>     connection.alias,
> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration 
> document_states.0005_auto_20170803_0638 is applied before its dependency 
> events.0006_objecteventsubscription on database 'default'.
> (mayan-edms) root@sjc1-mayan01:/usr/share/mayan-edms#
>
>
> On Thursday, March 22, 2018 at 2:20:43 AM UTC-7, Michael Price wrote:
>>
>> Released version 3.0.1 which removes the squashed migrations. Give it a 
>> try.
>>
>> On Thursday, March 22, 2018 at 4:01:47 AM UTC-4, Michael Price wrote:
>>>
>>> Are upgrading via the Docker image?
>>>
>>> To migrate a specific app the command is:
>>>
>>> mayan-edms.py migrate events
>>>
>>> To migrate a specific migration of an app the command is:
>>>
>>> mayan-edms.py migrate events 0004
>>>
>>> On Thursday, March 22, 2018 at 3:56:13 AM UTC-4, Michael Price wrote:
>>>>
>>>> Hi! Thanks for reporting this. I've started working on fixing this 
>>>> issue. I'm removing all the squashed migrations, they were causing too 
>>>> many 
>>>> problems. This feature of Django is not ready for production. 
>>>>
>>>> On Wednesday, March 21, 2018 at 8:26:31 PM UTC-4, Victor Zele wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I was able to track down the migration files causing this error but 
>>>>> don't seem to be able to correct the dependances in them.
>>>>>
>>>>>
>>>>> /usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/document_states/migrations/0005_auto_20170803_0638.py
>>>>> -- contains ---
>>>>> class Migration(migrations.Migration):
>>>>>
>>>>>     dependencies = [
>>>>>         ('events', '0006_objecteventsubscription'),
>>>>>         ('document_states', '0004_workflow_internal_name'),
>>>>>     ]
>>>>>
>>>>> and
>>>>>
>>>>>
>>>>> /usr/share/mayan-edms/local/lib/python2.7/site-packages/mayan/apps/events/migrations/0006_objecteventsubscription.py
>>>>>
>>>>> not sure how to get the event migration files to load first???
>>>>>
>>>>> thanks!
>>>>>
>>>>> On Wednesday, March 21, 2018 at 9:04:13 AM UTC-7, Victor Zele wrote:
>>>>>>
>>>>>> I get the below error trying to update my database from 2.7.3 to 3.0.
>>>>>>
>>>>>> Any ideas what to check?
>>>>>>
>>>>>>
>>>>>> (mayan-edms) root@sjc1-mayan01:/usr/share/mayan-edms# mayan-edms.py 
>>>>>> performupgrade
>>>>>> No handlers could be found for logger "pyocr.libtesseract"
>>>>>> CommandError: Error during pre_upgrade signal: Migration 
>>>>>> document_states.0005_auto_20170803_0638 is applied before its dependency 
>>>>>> events.0006_objecteventsubscription on database 'default'.
>>>>>>
>>>>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" 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