018-04-04 09:28:00 twisted.scripts: [info] twistd 17.9.0 (/snap/maas/x1/usr/bin/python3 3.6.5) starting up.
2018-04-04 09:28:00 twisted.scripts: [info] reactor class: twisted.internet.asyncioreactor.AsyncioSelectorReactor.
2018-04-04 09:28:00 maasserver.start_up: [error] Database error during start-up
Traceback (most recent call last):
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "maasserver_config" does not exist
LINE 1: ..._config"."name", "maasserver_config"."value" FROM "maasserve... ^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/start_up.py", line 67, in start_up
yield security.get_shared_secret()
File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext
result = inContext.theWork()
File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/snap/maas/x1/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
File "/snap/maas/x1/lib/python3.6/site-packages/provisioningserver/utils/twisted.py", line 875, in callInContext
return func(*args, **kwargs)
File "/snap/maas/x1/lib/python3.6/site-packages/provisioningserver/utils/twisted.py", line 232, in wrapper
result = func(*args, **kwargs)
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/utils/orm.py", line 712, in call_with_connection
return func(*args, **kwargs)
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/utils/__init__.py", line 192, in call_with_lock
return func(*args, **kwargs)
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/utils/orm.py", line 756, in call_within_transaction
return func_outside_txn(*args, **kwargs)
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/utils/orm.py", line 563, in retrier
return func(*args, **kwargs)
File "/snap/maas/x1/usr/lib/python3.6/contextlib.py", line 52, in inner
return func(*args, **kwds)
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/security.py", line 87, in get_shared_secret_txn
secret_in_db_hex = Config.objects.get_config("rpc_shared_secret")
File "/snap/maas/x1/lib/python3.6/site-packages/maasserver/models/config.py", line 151, in get_config
return self.get(name=name).value
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/query.py", line 374, in get
num = len(clone)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/query.py", line 232, in __len__
self._fetch_all()
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/query.py", line 1118, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/query.py", line 53, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py", line 899, in execute_sql
raise original_exception
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/models/sql/compiler.py", line 889, in execute_sql
cursor.execute(sql, params)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/snap/maas/x1/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "maasserver_config" does not exist
LINE 1: ..._config"."name", "maasserver_config"."value" FROM "maasserve...
018-04-04 09:28:00 twisted.scripts: [info] twistd 17.9.0 (/snap/ maas/x1/ usr/bin/ python3 3.6.5) starting up. internet. asyncioreactor. AsyncioSelector Reactor. start_up: [error] Database error during start-up maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/backends/ utils.py" , line 64, in execute execute( sql, params) ProgrammingErro r: relation "maasserver_config" does not exist config" ."value" FROM "maasserve...
^
2018-04-04 09:28:00 twisted.scripts: [info] reactor class: twisted.
2018-04-04 09:28:00 maasserver.
Traceback (most recent call last):
File "/snap/
return self.cursor.
psycopg2.
LINE 1: ..._config"."name", "maasserver_
The above exception was the direct cause of the following exception:
Traceback (most recent call last): maas/x1/ lib/python3. 6/site- packages/ maasserver/ start_up. py", line 67, in start_up get_shared_ secret( ) maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ threadpool. py", line 250, in inContext maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ threadpool. py", line 266, in <lambda> theWork = lambda: context.call(ctx, func, *args, **kw) maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 122, in callWithContext text(). callWithContext (ctx, func, *args, **kw) maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 85, in callWithContext maas/x1/ lib/python3. 6/site- packages/ provisioningser ver/utils/ twisted. py", line 875, in callInContext maas/x1/ lib/python3. 6/site- packages/ provisioningser ver/utils/ twisted. py", line 232, in wrapper maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/orm. py", line 712, in call_with_ connection maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/_ _init__ .py", line 192, in call_with_lock maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/orm. py", line 756, in call_within_ transaction txn(*args, **kwargs) maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/orm. py", line 563, in retrier maas/x1/ usr/lib/ python3. 6/contextlib. py", line 52, in inner maas/x1/ lib/python3. 6/site- packages/ maasserver/ security. py", line 87, in get_shared_ secret_ txn in_db_hex = Config. objects. get_config( "rpc_shared_ secret" ) maas/x1/ lib/python3. 6/site- packages/ maasserver/ models/ config. py", line 151, in get_config name=name) .value maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ manager. py", line 85, in manager_method self.get_ queryset( ), name)(*args, **kwargs) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ query.py" , line 374, in get maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ query.py" , line 232, in __len__ _fetch_ all() maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ query.py" , line 1118, in _fetch_all _result_ cache = list(self. _iterable_ class(self) ) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ query.py" , line 53, in __iter__ execute_ sql(chunked_ fetch=self. chunked_ fetch) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ sql/compiler. py", line 899, in execute_sql maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ sql/compiler. py", line 889, in execute_sql execute( sql, params) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/backends/ utils.py" , line 64, in execute execute( sql, params) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/utils. py", line 94, in __exit__ reraise( dj_exc_ type, dj_exc_value, traceback) maas/x1/ usr/lib/ python3/ dist-packages/ django/ utils/six. py", line 685, in reraise traceback( tb) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/backends/ utils.py" , line 64, in execute execute( sql, params) db.utils. ProgrammingErro r: relation "maasserver_config" does not exist config" ."value" FROM "maasserve...
File "/snap/
yield security.
File "/snap/
result = inContext.theWork()
File "/snap/
inContext.
File "/snap/
return self.currentCon
File "/snap/
return func(*args,**kw)
File "/snap/
return func(*args, **kwargs)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func(*args, **kwargs)
File "/snap/
return func(*args, **kwargs)
File "/snap/
return func_outside_
File "/snap/
return func(*args, **kwargs)
File "/snap/
return func(*args, **kwds)
File "/snap/
secret_
File "/snap/
return self.get(
File "/snap/
return getattr(
File "/snap/
num = len(clone)
File "/snap/
self.
File "/snap/
self.
File "/snap/
results = compiler.
File "/snap/
raise original_exception
File "/snap/
cursor.
File "/snap/
return self.cursor.
File "/snap/
six.
File "/snap/
raise value.with_
File "/snap/
return self.cursor.
django.
LINE 1: ..._config"."name", "maasserver_