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) ***@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) ***@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) ***@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'.
Post by Michael PriceReleased version 3.0.1 which removes the squashed migrations. Give it a try.
Post by Michael PriceAre upgrading via the Docker image?
mayan-edms.py migrate events
mayan-edms.py migrate events 0004
Post by Michael PriceHi! 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.
Post by Victor ZeleHi,
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 ---
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!
Post by Victor ZeleI get the below error trying to update my database from 2.7.3 to 3.0.
Any ideas what to check?
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'.
--
*CONFIDENTIALITY NOTICE: *
*This transmission may contain information which is Vimo, Inc. (DBA
Getinsured) confidential and/or legally privileged. The information is
intended only for the use of the individual or entity named on this
transmission. If you are not the intended recipient, you are hereby
notified that any disclosure, copying, or distribution of the contents of
this transmission is strictly prohibited. If you have received this
transmission in error, please immediately notify me by return e-mail and
destroy all copies of the original message.*
--
---
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.