In accordance with the direction of fulfilling the command:
$ docker-compose run taskd paster create-neighborhood docker-dev.ini myneighborhood root
Get the following output:
INFO [allura.command] Initialize command with config 'docker-dev.ini'
ERROR [tg.configuration.app_config] Failed to initialize mako template engine, removing it...
INFO [allura.command] Loaded tools
WARNI [allura.lib.macro] macro error. Upwards stack is File "/allura-data/virtualenv/bin/paster", line 8, in <module>
sys.exit(run())
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
invoke(command, command_name, options, args[1:])
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
exit_code = runner.run(args)
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
result = self.command()
File "/allura/Allura/allura/command/create_neighborhood.py", line 50, in command
project_reg.register_neighborhood_project(n, admins)
File "/allura/Allura/allura/lib/plugin.py", line 941, in register_neighborhood_project
('admin', 'admin', 'Admin')])
File "/allura/Allura/allura/model/project.py", line 1031, in configure_project
self.install_app(ep_name, mount_point, label, ordinal=i)
File "/allura/Allura/allura/model/project.py", line 835, in install_app
app.install(self)
File "/allura/ForgeWiki/forgewiki/wiki_main.py", line 331, in install
self.upsert_root(root_page_name, notify=False)
File "/allura/ForgeWiki/forgewiki/wiki_main.py", line 340, in upsert_root
p.commit()
File "/allura/ForgeWiki/forgewiki/model/wiki.py", line 175, in commit
Feed.post(self, title=None, description=description)
File "/allura/Allura/allura/model/artifact.py", line 948, in post
description=g.markdown.convert(description),
File "/allura/Allura/allura/lib/app_globals.py", line 85, in convert
return markdown.Markdown.convert(self, source)
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/markdown/init.py", line 375, in convert
newRoot = treeprocessor.run(root)
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/markdown/treeprocessors.py", line 324, in run
self.handleInline(text), child
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/markdown/treeprocessors.py", line 107, in __handleInline
data, patternIndex, startIndex)
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/markdown/treeprocessors.py", line 245, in __applyPattern
node = pattern.handleMatch(match)
File "/allura/Allura/allura/lib/markdown_extensions.py", line 400, in handleMatch
html = self.macro(m.group(2))
File "/allura/Allura/allura/lib/macro.py", line 80, in __call
''.join(traceback.format_stack()),
Traceback (most recent call last):
File "/allura/Allura/allura/lib/macro.py", line 76, in call
response = macro(**h.encode_keys(args))
File "/allura/Allura/allura/lib/macro.py", line 445, in members
g.resource_manager.register(users)
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/tg/support/objectproxy.py", line 19, in getattr
return getattr(self._current_obj(), attr)
File "/allura/Allura/allura/lib/app_globals.py", line 502, in resource_manager
return ew_core.widget_context.resource_manager
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/registry.py", line 137, in getattr
return getattr(self._current_obj(), attr)
File "/allura-data/virtualenv/local/lib/python2.7/site-packages/paste/registry.py", line 197, in _current_obj
'thread' % self._name)
TypeError: No object (name: widgetcontext) has been registered for this thread
INFO [allura.command.create_neighborhood] Successfully created neighborhood "myneighborhood"</module>
Hi,
I believe the neighborhood is created fine, even though you see an error in the logs. The error message is about a macro within the default wiki page, and it gets caught and handled ok without being a real problem.
However we should make that error not show up, since it does make it seem like something was wrong.