Skip to content

Commit

Permalink
[master][noticket][doc]: Install tips improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Jan 20, 2012
1 parent ebbdcff commit 8cc0dc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/common-error-messages.rst
Expand Up @@ -129,3 +129,7 @@ This occurs when installing CKAN source to a virtual environment when using an o

This occurs when upgrading to CKAN 1.5.1 with a database with duplicate user names. See :ref:`upgrading`

``ERROR: must be member of role "okfn"`` & ``WARNING: no privileges could be revoked for "public"``
=====================================================================================================

These are seen when loading a CKAN database from another machine. It is the result of the database tables being owned by a user that doesn't exist on the new machine. The owner of the table is not important, so this error is harmless and can be ignored.
2 changes: 1 addition & 1 deletion doc/install-from-package.rst
Expand Up @@ -721,7 +721,7 @@ Now you need to make some manual changes. In the following commands replace ``st
If you get error ``sqlalchemy.exc.IntegrityError: (IntegrityError) could not create unique index "user_name_key`` then you need to rename users with duplicate names before it will work. For example::

sudo -u ckanstd paster --plugin=pylons shell /etc/ckan/std/std.ini
model.meta.engine.execute('SELECT name, count(name) AS NumOccurrences FROM "user" GROUP BY name HAVING(COUNT(name)>0);').fetchall()
model.meta.engine.execute('SELECT name, count(name) AS NumOccurrences FROM "user" GROUP BY name HAVING(COUNT(name)>1);').fetchall()
users = model.Session.query(model.User).filter_by(name='https://www.google.com/accounts/o8/id?id=ABCDEF').all()
users[1].name = users[1].name[:-1]
model.repo.commit_and_remove()
Expand Down

0 comments on commit 8cc0dc2

Please sign in to comment.