Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 842, in worker
return target()
File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
task()
File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
task()
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
result = inContext.theWork()
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 875, in callInContext
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 232, in wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 169, in wrapper
return func_in_reactor(*args, **kwargs).wait(LONGTIME)
File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait
result.raiseException()
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 368, in raiseException
raise self.value.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python3/dist-packages/maasserver/bootresources.py", line 1262, in eb_import
failure.trap(DatabaseLockNotHeld)
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 342, in trap
self.raiseException()
File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 368, in raiseException
raise self.value.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
result = inContext.theWork()
File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 875, in callInContext
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 232, in wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 710, in call_with_connection
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/utils/__init__.py", line 178, in call_with_lock
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/maasserver/bootresources.py", line 1333, in _import_resources_with_lock
sources, product_mapping, notify=notify)
File "/usr/lib/python3/dist-packages/maasserver/bootresources.py", line 1180, in download_all_boot_resources
listener.register("sys_stop_import", stop_import)
File "/usr/lib/python3/dist-packages/maasserver/listener.py", line 223, in register
"System channel '%s' has already been registered." % channel)
maasserver.listener.PostgresListenerRegistrationError: System channel 'sys_stop_import' has already been registered.
2018-01-16 20:23:30 maasserver. bootresources: [critical] Importing boot resources failed.
Traceback (most recent call last): python3. 5/threading. py", line 862, in run _target( *self._ args, **self._kwargs) python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 842, in worker python3/ dist-packages/ twisted/ _threads/ _threadworker. py", line 46, in work python3/ dist-packages/ twisted/ _threads/ _team.py" , line 190, in doWork python3/ dist-packages/ twisted/ python/ threadpool. py", line 246, in inContext python3/ dist-packages/ twisted/ python/ threadpool. py", line 262, in <lambda> theWork = lambda: context.call(ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 81, in callWithContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 875, in callInContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 232, in wrapper python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 169, in wrapper reactor( *args, **kwargs) .wait(LONGTIME) python3/ dist-packages/ crochet/ _eventloop. py", line 231, in wait raiseException( ) python3/ dist-packages/ twisted/ python/ failure. py", line 368, in raiseException with_traceback( self.tb) python3/ dist-packages/ twisted/ internet/ defer.py" , line 588, in _runCallbacks current. result, *args, **kw) python3/ dist-packages/ maasserver/ bootresources. py", line 1262, in eb_import trap(DatabaseLo ckNotHeld) python3/ dist-packages/ twisted/ python/ failure. py", line 342, in trap raiseException( ) python3/ dist-packages/ twisted/ python/ failure. py", line 368, in raiseException with_traceback( self.tb) python3/ dist-packages/ twisted/ python/ threadpool. py", line 246, in inContext python3/ dist-packages/ twisted/ python/ threadpool. py", line 262, in <lambda> theWork = lambda: context.call(ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 81, in callWithContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 875, in callInContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 232, in wrapper python3/ dist-packages/ maasserver/ utils/orm. py", line 710, in call_with_ connection python3/ dist-packages/ maasserver/ utils/_ _init__ .py", line 178, in call_with_lock python3/ dist-packages/ maasserver/ bootresources. py", line 1333, in _import_ resources_ with_lock python3/ dist-packages/ maasserver/ bootresources. py", line 1180, in download_ all_boot_ resources register( "sys_stop_ import" , stop_import) python3/ dist-packages/ maasserver/ listener. py", line 223, in register listener. PostgresListene rRegistrationEr ror: System channel 'sys_stop_import' has already been registered.
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func_in_
File "/usr/lib/
result.
File "/usr/lib/
raise self.value.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
failure.
File "/usr/lib/
self.
File "/usr/lib/
raise self.value.
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
sources, product_mapping, notify=notify)
File "/usr/lib/
listener.
File "/usr/lib/
"System channel '%s' has already been registered." % channel)
maasserver.
Ubuntu 16.04 (amrh) - rpi3