Hi,
is there a way to downgrade back to 3.15.8 after a debian upgrade to 4.0.2? After purging 4.0.2 and reinstalling 3.15.8 the files are there but the db seems corrupt:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 69, in sensitive_post_parameters_wrapper return view(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/nav/web/webfront/views.py", line 110, in login 'errors': errors,
File "/usr/lib/python2.7/dist-packages/django/views/generic/simple.py", line 26, in direct_to_template c = RequestContext(request, dictionary)
File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 176, in __init__ self.update(processor(request))
File "/usr/lib/pymodules/python2.7/nav/django/context_processors.py", line 64, in account_processor if preferences.count() == 0:
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 351, in count return self.query.get_count(using=self.db)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 418, in get_count number = obj.get_aggregation(using=using)[None]
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 384, in get_aggregation result = query.get_compiler(using).execute_sql(SINGLE)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 818, in execute_sql cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/bas e.py", line 52, in execute return self.cursor.execute(query, args)
DatabaseError: relation "accountnavbar" does not exist LINE 1: SELECT COUNT(*) FROM "accountnavbar" WHERE "accountnavbar"."...
thx, Mischa
On Tue, 8 Apr 2014 10:06:52 +0000 Mischa Diehm mischa.diehm@unibas.ch wrote:
is there a way to downgrade back to 3.15.8 after a debian upgrade to 4.0.2? After purging 4.0.2 and reinstalling 3.15.8 the files are there but the db seems corrupt:
No, there is no way of downgrading and keeping your data. The database is not corrupt; once the database schema has been upgraded to a newer version, there are no mechanisms that will downgrade your schema to that of an older NAV version.
You would have to delete the 4.0 database and create it from scratch if you want to use 3.15.