You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Dave Brondsema <br...@users.sf.net> on 2014/03/25 15:27:01 UTC

[allura:tickets] #6561 Clean up setup-app output

- **status**: open --> in-progress
- **assigned_to**: Dave Brondsema
- **Milestone**: forge-backlog --> forge-mar-21



---

** [tickets:#6561] Clean up setup-app output**

**Status:** in-progress
**Milestone:** forge-mar-21
**Created:** Wed Aug 14, 2013 08:46 PM UTC by Dave Brondsema
**Last Updated:** Wed Aug 14, 2013 08:46 PM UTC
**Owner:** Dave Brondsema

When running `setup-app` for a new setup, the following example output occurs quite a lot and can make you think there were errors.

This log message can be removed, IMO (for everything, not just during setup-app):

~~~~
16:32:33,014 INFO  [allura.model.notification] Notifications disabled for project --init--, not sending metadata(<Page import_id=None labels=I[] deleted=False text='Welcome
  to your wiki!\n\nThis is the default page, edit it as you
  see fit. To add a new page simply reference it within
  brackets, e.g.: [SamplePage].\n\nThe wiki uses
  [Markdown](/p/wiki/markdown_syntax/) syntax.\n\n[[members
  limit=20]]\n[[download_button]]\n' title=u'Home'
  tool_version=I{'wiki': '0.0'} acl=I[] version=1
  mod_date=datetime.datetime(2013, 8, 14, 20, 32, 32,
  941372) viewable_by=I['all']
  _id=ObjectId('520be960ea1b58069f957a84')
  app_config_id=ObjectId('520be960ea1b58069f957a7d')>)
~~~~

This error is because some macros need our global context stuff.  I think it'd be best to run the whole bootstrap code within the standard request-like environment that taskd and the webapp uses.

~~~~
16:32:33,002 WARNI [allura.lib.macro] macro error.  Upwards stack is   File "/tmp/allura-env/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.4.2', 'console_scripts', 'paster')()
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/appinstall.py", line 68, in run
    return super(AbstractInstallCommand, self).run(new_args)
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/appinstall.py", line 456, in command
    self, config_file, section, self.sysconfig_install_vars(installer))
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/appinstall.py", line 598, in setup_config
    mod.setup_app, command, filename, section, vars)
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/script/appinstall.py", line 614, in _call_setup_app
    func(command, conf, vars)
  File "/private/tmp/allura/Allura/allura/websetup/__init__.py", line 37, in setup_app
    bootstrap.bootstrap(command, conf, vars)
  File "/private/tmp/allura/Allura/allura/websetup/bootstrap.py", line 123, in bootstrap
    p_projects = project_reg.register_neighborhood_project(n_projects, [root], allow_register=True)
  File "/private/tmp/allura/Allura/allura/lib/plugin.py", line 422, in register_neighborhood_project
    ('admin', 'admin', 'Admin')])
  File "/private/tmp/allura/Allura/allura/model/project.py", line 783, in configure_project
    self.install_app(ep_name, mount_point, label, ordinal=i)
  File "/private/tmp/allura/Allura/allura/model/project.py", line 606, in install_app
    app.install(self)
  File "/private/tmp/allura/ForgeWiki/forgewiki/wiki_main.py", line 260, in install
    self.upsert_root(root_page_name)
  File "/private/tmp/allura/ForgeWiki/forgewiki/wiki_main.py", line 278, in upsert_root
    p.commit()
  File "/private/tmp/allura/ForgeWiki/forgewiki/model/wiki.py", line 132, in commit
    Feed.post(self, title=None, description=description)
  File "/private/tmp/allura/Allura/allura/model/artifact.py", line 790, in post
    description=g.markdown.convert(description),
  File "/private/tmp/allura/Allura/allura/lib/app_globals.py", line 74, in convert
    return markdown.Markdown.convert(self, source)
  File "/tmp/allura-env/lib/python2.7/site-packages/markdown/__init__.py", line 292, in convert
    newRoot = treeprocessor.run(root)
  File "/tmp/allura-env/lib/python2.7/site-packages/markdown/treeprocessors.py", line 289, in run
    text), child)
  File "/tmp/allura-env/lib/python2.7/site-packages/markdown/treeprocessors.py", line 110, in __handleInline
    data, patternIndex, startIndex)
  File "/tmp/allura-env/lib/python2.7/site-packages/markdown/treeprocessors.py", line 237, in __applyPattern
    node = pattern.handleMatch(match)
  File "/private/tmp/allura/Allura/allura/lib/markdown_extensions.py", line 202, in handleMatch
    html = self.macro(m.group(2))
  File "/private/tmp/allura/Allura/allura/lib/macro.py", line 69, in __call__
    ''.join(traceback.format_stack()),
Traceback (most recent call last):
  File "/private/tmp/allura/Allura/allura/lib/macro.py", line 65, in __call__
    response = macro(**h.encode_keys(args))
  File "/private/tmp/allura/Allura/allura/lib/macro.py", line 375, in members
    g.resource_manager.register(users)
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/registry.py", line 137, in __getattr__
    return getattr(self._current_obj(), attr)
  File "/private/tmp/allura/Allura/allura/lib/app_globals.py", line 401, in resource_manager
    return ew_core.widget_context.resource_manager
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/registry.py", line 137, in __getattr__
    return getattr(self._current_obj(), attr)
  File "/tmp/allura-env/lib/python2.7/site-packages/paste/registry.py", line 197, in _current_obj
    'thread' % self.____name__)
TypeError: No object (name: widget_context) has been registered for this thread
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.