Hi Joachim,

It's not a problem using the same user to access the tool shed db as you use to access the Galaxy db.  However, you are using a completely separate database instance for the tool shed from the instance you have configured for Galaxy, correct?  

It's going to be tough for me to figure out what the problem in your environment is.  Is your mercurial package correctly installed?

Other things to consider are:
1. Repositories will be created on disk at the location you've specified in for your file_path setting in community_wsgi.ini.  Is this directory writable by the user that starts up the tool shed?
2. The hgweb.config file should be automatically created in your Galaxy install directory when you start up your tool shed.  Is this the case?  If not, is your Galaxy install directory writable by the user that starts up the tool shed?

From your paster log, it looks like line 757 of ~/lib/galaxy/webapps/community/controllers/common.py is this:

_ui.setconfig( 'ui', 'quiet', True )

Comment out that line and see if any additinal helpful information is displayed in your paster log - the line is the one in th following complete method.

def get_configured_ui():
    # Configure any desired ui settings.
    _ui = ui.ui()
    # The following will suppress all messages.  This is
    # the same as adding the following setting to the repo
    # hgrc file' [ui] section:
    # quiet = True
    _ui.setconfig( 'ui', 'quiet', True )
    return _ui


On Apr 3, 2012, at 3:32 AM, Joachim Jacob wrote:

Hi,


I stopped toolshed, dropped the database, and recreated it.
Relaunched toolshed without errors. I have create a login again, created a category (no problems), and tried to create a repo, which upon saving gives me the error again.

Is it a problem that I use the same user for access to both the galaxy db and the toolshed db?

My versions (excuse me for not posting this earlier):
   -- Python 2.6.6
   -- Postgres version 8.4.9:
bash-4.1$ psql -c "select version();" template1
                                                    version
-----------------------------------------------------------------------------------------------------------------
PostgreSQL 8.4.9 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6), 64-bit
(1 row)

   -- Galaxy version: it is the latest update

[galaxy@galaxy galaxy-dist]$ hg head
changeset:   6799:40f1816d6857
tag:         tip
user:        Greg Von Kuster <greg@bx.psu.edu>
date:        Wed Mar 07 13:35:34 2012 -0500
summary:     Fix for populating the tool panel and generating the integrated_tool_panel.xml file.



Joachim



On 04/02/2012 05:16 PM, Greg Von Kuster wrote:
Try completely dropping and recreating your tool shed database.  Also, what version of Galaxy are you running and what version of Python are you running?  What database / version are you using?


On Apr 2, 2012, at 11:13 AM, Joachim Jacob wrote:

Thanks for the suggestions, but no joy.

1. I have created hgweb.config like this in the main install dir
[galaxy@galaxy galaxy-dist]$ pwd
/home/galaxy/galaxy-dist
[galaxy@galaxy galaxy-dist]$ cat hgweb.config
[paths]

2. I have removed all repo directories from the toolshed database
[galaxy@galaxy 000]$ pwd
/home/galaxy/toolshed/database/community_files/000

3. I restart the toolshed with my modified init script (centos6.2)

4. I try to create a new repo (page loads)

5. I get to 'browse my repositories': again the page won't load, showing the error from below.

Did I do something wrong, or are my steps from above not correct? Thanks for the help!


Kind regards,
Joachim


On 04/02/2012 05:00 PM, Greg Von Kuster wrote:
This is the problem - it's unclear how your local tool shed environment is missing this file as it must have been generated the first time your started your tool shed application ( via sh run_community.sh ).  Since this file does not exist, you must not yet have created any repositories, so manually create the file with contents like this, and you should be able to create a repository.

[paths]

If you have created repositories in the past, then this file must have been inadvertently removed from disk, so you'll have to add entries for each repository you have on disk, something like this.

[paths]

repos/test/filter = database/community_files/000/repo_1
...

where "test" is replaced with your reppository owner, "filter" is replaced with your repository name, and the path is replaced with your repository path.

If you don't care about keeping your repositories on disk (if you in fact have any), you can delete them, and create the hgeweb.config file with just the [paths] setting and no entries.  This will result in a new, pristine tool shed environment.

Greg Von Kuster


On Apr 2, 2012, at 10:38 AM, Joachim Jacob wrote:

I am sorry, but I do not have a hgweb.config file in the install dir.

On 04/02/2012 04:23 PM, Greg Von Kuster wrote:
It should be in your Galaxy installation directory, and your on-disk repositories will be in a directory under the setting you've defined for the "file_path" configuration in your community_wsgi.ini file.


On Apr 2, 2012, at 10:17 AM, Joachim Jacob wrote:

Hi Greg,


If it is most likely a configuration error, I will check my settings, and let you know my progress.

But one note: I do not have a hgweb.config file. Where is it supposed to reside? I cannot find this info on the toolshed wiki.


Joachim


On 04/02/2012 03:30 PM, Greg Von Kuster wrote:
Hi Joachim,

I've not seen this in any of my tool shed development environments, nor using the test or main Galaxy tool sheds, so it is unlikely that this is a bug.  It looks more likely to be a configuration problem in your local tool shed environment.  Do the repositories defined in your hgweb.config match those you have on disk?

Greg Von Kuster

On Apr 2, 2012, at 8:38 AM, Joachim Jacob wrote:

Hi all,

On a local Toolshed freshly installed, I got these errors when browsing my repository.

Perhaps a bug?


Cheers,
Joachim


Server Error

URL: http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories>>>
Module paste.exceptions.errormiddleware:*143* in |__call__|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>app_iter *=* self*.*application*(*environ*,* start_response*)*|
Module paste.debug.prints:*98* in |__call__|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>environ*,* self*.*app*)*|
Module paste.wsgilib:*539* in |intercept_output|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>app_iter *=* application*(*environ*,* replacement_start_response*)*|
Module paste.recursive:*80* in |__call__|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* self*.*application*(*environ*,* start_response*)*|
Module paste.httpexceptions:*632* in |__call__|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* self*.*application*(*environ*,* start_response*)*|
Module galaxy.web.framework.base:*160* in |__call__|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>body *=* method*(* trans*,* ****kwargs *)*|
Module galaxy.webapps.community.controllers.repository:*985* in |browse_repositories|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* self*.*repository_list_grid*(* trans*,* ****kwd *)*|
Module galaxy.web.framework.helpers.grids:*277* in |__call__|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>kwargs*=*kwargs *)*|
Module galaxy.web.framework:*722* in |fill_template|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* self*.*fill_template_mako*(* filename*,* ****kwargs *)*|
Module galaxy.web.framework:*733* in |fill_template_mako|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* template*.*render*(* ****data *)*|
Module mako.template:*296* in |render|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* runtime*.*_render*(*self*,* self*.*callable_*,* args*,* data*)*|
Module mako.runtime:*660* in |_render|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>****_kwargs_for_callable*(*callable_*,* data*)**)*|
Module mako.runtime:*692* in |_render_context|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>_exec_template*(*inherit*,* lclcontext*,* args*=*args*,* kwargs*=*kwargs*)*|
Module mako.runtime:*718* in |_exec_template|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>callable_*(*context*,* ***args*,* ****kwargs*)*|
Module _base_mako:*42* in |render_body|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>__M_writer*(*unicode*(*next*.*body*(**)**)**)*|
Module _grid_base_mako:*119* in |render_body|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>__M_writer*(*unicode*(*self*.*grid_body*(* grid *)**)**)*|
Module _grid_base_mako:*790* in |render_grid_body|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>__M_writer*(*unicode*(*self*.*make_grid*(* grid *)**)**)*|
Module _grid_base_mako:*819* in |render_make_grid|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>__M_writer*(*unicode*(*self*.*render_grid_table*(* grid*,* show_item_checkboxes *)**)**)*|
Module _grid_base_mako:*768* in |render_render_grid_table|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>__M_writer*(*unicode*(*render_grid_table_body_contents*(* grid*,* show_item_checkboxes *)**)**)*|
Module _grid_base_mako:*664* in |render_grid_table_body_contents|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*return* render_render_grid_table_body_contents*(*context*,*grid*,*show_item_checkboxes*)*|
Module _grid_base_mako:*322* in |render_render_grid_table_body_contents|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>value *=* column*.*get_value*(* trans*,* grid*,* item *)*|
Module galaxy.webapps.community.controllers.repository:*84* in |get_value|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>select_field *=* build_changeset_revision_select_field*(* trans*,* repository *)*|
Module galaxy.webapps.community.controllers.common:*992* in |build_changeset_revision_select_field|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>repo *=* hg*.*repository*(* get_configured_ui*(**)**,* repository*.*repo_path *)*|
Module galaxy.webapps.community.controllers.common:*757* in |get_configured_ui|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>_ui*.*setconfig*(* 'ui'*,* 'quiet'*,* True *)*|
Module mercurial.ui:*113* in |setconfig|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>self*.*fixconfig*(**)*|
Module mercurial.ui:*100* in |fixconfig|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>self*.*quiet *=* *not* self*.*debugflag *and* self*.*configbool*(*'ui'*,* 'quiet'*)*|
Module mercurial.ui:*134* in |configbool|
|>>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>  <http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#<http://192.168.10.26:9009/repository/browse_repositories?webapp=community&operation=my_repositories#>>>*if* v*.*lower*(**)* *not* *in* _booleans*:*|
*AttributeError: 'bool' object has no attribute 'lower'
*

--
Joachim Jacob, PhD

Rijvisschestraat 120, 9052 Zwijnaarde
Tel: +32 9 244.66.34
Bioinformatics Training and Services (BITS)
http://www.bits.vib.be
@bitsatvib


___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

http://lists.bx.psu.edu/