I received this error when installing the current (0.6.6.1) release.
paster setup-app jcr.ini
/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/middleware.py:11: DeprecationWarning: The webhelpers.rails package is deprecated.
- Please begin migrating to the new helpers in webhelpers.html,
webhelpers.text, webhelpers.number, etc.
- Import url_for() directly from routes, and redirect_to() from
pylons.controllers.util (if using Pylons) or from routes.
- All Javascript support has been deprecated. You can write link_to_remote()
yourself or use one of the third-party Javascript libraries.
from webhelpers.rails.asset_tag import javascript_path
Running setup_config() from jcr.websetup
----------------------------------------------------------------------
Checking and initialising JCR
Please change to JCR directory (the one containing README.txt), and run this command again
JCR SETUP FAILED!
here is the ini file passed to paster:
#
# jcr - Pylons configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = true
email_to = abanach@alionscience.com
smtp_server = localhost
error_email_from = paste@localhost
[server:main]
use = egg:Paste#http
host = 127.0.1.1
port = 5000
# If you'd like to fine-tune the individual locations of the cache data dirs
# for the Cache data, or the Session saves, un-comment the desired settings
# here:
#beaker.cache.data_dir = %(here)s/data/cache
#beaker.session.data_dir = %(here)s/data/sessions
# ==================================================================
# Main JCR Configuration
#
# NOTE: %(here)s expands to the directory containing this file
# ==================================================================
# MySQL
#sqlalchemy.url = mysql://jcr:itsasecret@localhost/jcr
#sqlalchemy.pool_recycle = 3600
# ---------------------------------------
# Base directory for storing *all* data
# ---------------------------------------
# NOTE: Remember to set this in the log path under "[handler_file]" below
jcr.base.dir = %(here)s/var
# ---------------------------------------
# Miscellaneous
# ---------------------------------------
# Set to True if the superuser should be allowed to advance the state of projects
# even when this wouldn't normally be allowed (e.g. not all actions complete)
jcr.superuser.advanceprojects = True
# Set to False to disable syntax highlighting of code
#jcr.highlight-syntax = False
# URL for page containing links to scripts that can be downloaded by users, e.g. for
# tarring up project files. Default is /assets/externalScripts.html
#jcr.assets.externalscriptspage = /some/url
# If you want to use your own review decision types instead of the standard JCR list,
# uncomment this item at create a file of this name in the `/conf` directory under
# the JCR base directory (above). See the configuration documentation for the
# required file structure
#jcr.model.reviewdecisions = reviewDecisions.lst
# Set to false to disable caching of lines from review files
#jcr.reviewfile-cache.enable = False
# Directory to use for caching of lines from review files. Defaults to
# %(cache_dir)s/reviewfile-cache
#jcr.reviewfile-cache.cachedir = %(cache_dir)s/reviewfile-cache
# ==================================================================
# End of main JCR Configuration
# (except for log file path under [handler_file] below...)
# ==================================================================
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
# execute malicious code after an exception is raised.
set debug = false
# Logging Setup
[loggers]
keys = root, jcr
[handlers]
keys = console, file
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console, file
[handler_file]
class = logging.handlers.TimedRotatingFileHandler
level = DEBUG
formatter = generic
# NOTE: This must be a full path - it cannot contain %(here)s
# This relative path is configured only for test use, and should be changed to something like:
#args = ('/var/jcr/log/jcr.log', 'midnight')
args = ('jcr.log', 'midnight', 1, 14)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = INFO
formatter = generic
it appears that the sql directory under db is missing as well as the conf and sample-project directories under jcr root.
I was able to find an older release of jcr that allowed me proceed but I have no idea if there are any updates to the missing files since 0.6.2rc1 (the version I had)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can now start JCR and create users and a project. However now I get the following error when I click on the Upload button during Fileset Creattion:
Error 500
Internal Server Error
The Pylons Team | Top
and the following from the jcr terminal....
13:24:43,596 INFO selectfileset [1134319952] User: abanach: Selecting file sets for project 7
13:24:53,315 ERROR base [1099520336] User: abanach: Uncaught exception
Traceback (most recent call last):
File "/home/abanach/jcr/jcr-0.6.6.1/jcr/lib/base.py", line 98, in __call__
return WSGIController.__call__(self, environ, start_response)
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 164, in __call__
response = self._dispatch_call()
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call
response = self._inspect_call(func)
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call
result = func(**args)
File "<string>", line 2, in upload
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 36, in validate
return permission.check(app, request.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py", line 177, in check
return app(environ, start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 35, in app
return func(self, *args, **kwargs)
File "<string>", line 2, in upload
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/decorators/__init__.py", line 149, in wrapper
response = self._dispatch_call()
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call
response = self._inspect_call(func)
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call
result = func(**args)
File "<string>", line 2, in index
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 36, in validate
return permission.check(app, request.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py", line 177, in check
return app(environ, start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 35, in app
return func(self, *args, **kwargs)
File "/home/abanach/jcr/jcr-0.6.6.1/jcr/controllers/projectadmin/selectfileset.py", line 36, in index
c.projectId = int(request.params['projectId'])
File "/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py", line 259, in __getitem__
return self._decode_value(self.multi.__getitem__(key))
File "/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py", line 36, in __getitem__
raise KeyError(repr(key))
KeyError: "'projectId'"
Error - <type 'exceptions.KeyError'>: "'projectId'"
URL: http://127.0.1.1:5000/projectadmin/selectfileset/upload
File '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
app_iter = self.application(environ, sr_checker)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/wsgiapp.py', line 314 in __call__
return self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Beaker-1.2.3-py2.5.egg/beaker/middleware.py', line 81 in __call__
return self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Beaker-1.2.3-py2.5.egg/beaker/middleware.py', line 160 in __call__
return self.wrap_app(environ, session_start_response)
File '/usr/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in __call__
response = self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/wsgiapp.py', line 95 in __call__
response = self.dispatch(controller, environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/wsgiapp.py', line 236 in dispatch
return controller(environ, start_response)
File '/home/abanach/jcr/jcr-0.6.6.1/jcr/lib/base.py', line 98 in __call__
return WSGIController.__call__(self, environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 164 in __call__
response = self._dispatch_call()
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 120 in _dispatch_call
response = self._inspect_call(func)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 79 in _inspect_call
result = func(**args)
File '<string>', line 2 in upload
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 36 in validate
return permission.check(app, request.environ, self.start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py', line 177 in check
return app(environ, start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 35 in app
return func(self, *args, **kwargs)
File '<string>', line 2 in upload
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/decorators/__init__.py', line 149 in wrapper
response = self._dispatch_call()
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 120 in _dispatch_call
response = self._inspect_call(func)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 79 in _inspect_call
result = func(**args)
File '<string>', line 2 in index
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 36 in validate
return permission.check(app, request.environ, self.start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py', line 177 in check
return app(environ, start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 35 in app
return func(self, *args, **kwargs)
File '/home/abanach/jcr/jcr-0.6.6.1/jcr/controllers/projectadmin/selectfileset.py', line 36 in index
c.projectId = int(request.params['projectId'])
File '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py', line 259 in __getitem__
return self._decode_value(self.multi.__getitem__(key))
File '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py', line 36 in __getitem__
raise KeyError(repr(key))
KeyError: "'projectId'"
1. Installation directories
---------------------------------------
The message "Please change to JCR directory (the one containing README.txt), and run this command again" is caused by the subdirectory /db/sql not being found under the current directory. This usually means that you haven't run the "setup-app" command from the directory where you untarred JCR.
The /db/sql directory is definitely in the 0.6.6.1 tarball, as are the others you mentioned. Please check the expanded directory structure against the contents of the tarball (using "tar tzf"), and also ensure that you are running "setup-app" in the correct directory.
2. Incompatible Changes to Third Party Libraries
--------------------------------------------------------------------------
Changes to one or more third party libraries since JCR 0.6.6.1 was released have changed the way form validation works, which breaks JCR.
I'm currently working on version 0.6.7, which works with the updated versions, but this is probably still a week away. Please see the separate thread (which I'm about to start) explaining how to work around this in the meantime.
Cheers ................... JD
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I followed the directions in the README.txt, specifically:
(from /home/abanach/Download)
tar zxvf jcr-0.6.6.1-src.tar.gz
cd jcr-0.6.6.1
su -
cd /home/abanach/Download/jcr-0.6.6.1
easy_install -f . jcr[mysql]
exit (the root acct)
paster make-config jcr jcr.ini
paster setup-app jcr.ini
get error:
JCR SETUP FAILED!
lastly:
tar ztvf zxvf jcr-0.6.6.1-src.tar.gz | grep sql
does not result in any listings for an sql directory (plenty of .sql files though). Looks like the tarball I downloaded from sourceforge is faulty if there is supposed to be an sql directory in it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I received this error when installing the current (0.6.6.1) release.
paster setup-app jcr.ini
/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/middleware.py:11: DeprecationWarning: The webhelpers.rails package is deprecated.
- Please begin migrating to the new helpers in webhelpers.html,
webhelpers.text, webhelpers.number, etc.
- Import url_for() directly from routes, and redirect_to() from
pylons.controllers.util (if using Pylons) or from routes.
- All Javascript support has been deprecated. You can write link_to_remote()
yourself or use one of the third-party Javascript libraries.
from webhelpers.rails.asset_tag import javascript_path
Running setup_config() from jcr.websetup
----------------------------------------------------------------------
Checking and initialising JCR
Please change to JCR directory (the one containing README.txt), and run this command again
JCR SETUP FAILED!
here is the ini file passed to paster:
#
# jcr - Pylons configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = true
email_to = abanach@alionscience.com
smtp_server = localhost
error_email_from = paste@localhost
[server:main]
use = egg:Paste#http
host = 127.0.1.1
port = 5000
[app:main]
use = egg:jcr
full_stack = true
cache_dir = %(here)s/data
beaker.session.key = jcr
beaker.session.secret = GBszu4TLOT7YCZbTlaI+jiVTP
beaker.session.timeout = 3600
app_instance_uuid = {507d7d48-519d-4bfe-a148-aec5f2ec1666}
# If you'd like to fine-tune the individual locations of the cache data dirs
# for the Cache data, or the Session saves, un-comment the desired settings
# here:
#beaker.cache.data_dir = %(here)s/data/cache
#beaker.session.data_dir = %(here)s/data/sessions
# Authkit config
authkit.setup.enable = true
authkit.setup.method = forward, cookie
authkit.forward.internalpath = /login
authkit.cookie.signoutpath = /logout/
authkit.cookie.secret = sOmE91432134SeccrRttt
# ==================================================================
# Main JCR Configuration
#
# NOTE: %(here)s expands to the directory containing this file
# ==================================================================
# ---------------------------------------
# Configuration for database
# ---------------------------------------
sqlalchemy.echo = False
sqlalchemy.url = sqlite:///%(here)s/jcr-sqlite.db
# Postgres
#sqlalchemy.url = postgres://jcr:itsasecret@localhost/jcr
# MySQL
#sqlalchemy.url = mysql://jcr:itsasecret@localhost/jcr
#sqlalchemy.pool_recycle = 3600
# ---------------------------------------
# Base directory for storing *all* data
# ---------------------------------------
# NOTE: Remember to set this in the log path under "[handler_file]" below
jcr.base.dir = %(here)s/var
# ---------------------------------------
# Miscellaneous
# ---------------------------------------
# Set to True if the superuser should be allowed to advance the state of projects
# even when this wouldn't normally be allowed (e.g. not all actions complete)
jcr.superuser.advanceprojects = True
# Set to False to disable syntax highlighting of code
#jcr.highlight-syntax = False
# URL for page containing links to scripts that can be downloaded by users, e.g. for
# tarring up project files. Default is /assets/externalScripts.html
#jcr.assets.externalscriptspage = /some/url
# If you want to use your own review decision types instead of the standard JCR list,
# uncomment this item at create a file of this name in the `/conf` directory under
# the JCR base directory (above). See the configuration documentation for the
# required file structure
#jcr.model.reviewdecisions = reviewDecisions.lst
# Set to false to disable caching of lines from review files
#jcr.reviewfile-cache.enable = False
# Directory to use for caching of lines from review files. Defaults to
# %(cache_dir)s/reviewfile-cache
#jcr.reviewfile-cache.cachedir = %(cache_dir)s/reviewfile-cache
# ==================================================================
# End of main JCR Configuration
# (except for log file path under [handler_file] below...)
# ==================================================================
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
# execute malicious code after an exception is raised.
set debug = false
# Logging Setup
[loggers]
keys = root, jcr
[handlers]
keys = console, file
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console, file
[logger_jcr]
level = DEBUG
handlers = console, file
propagate = 0
qualname = jcr
[handler_file]
class = logging.handlers.TimedRotatingFileHandler
level = DEBUG
formatter = generic
# NOTE: This must be a full path - it cannot contain %(here)s
# This relative path is configured only for test use, and should be changed to something like:
#args = ('/var/jcr/log/jcr.log', 'midnight')
args = ('jcr.log', 'midnight', 1, 14)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = INFO
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s %(module)s [%(thread)d] %(message)s
datefmt = %H:%M:%S
I do not see an error log that provides further information.
I have received this error on Ubuntu 8.04 and Fedora 8 systems.
Any further info on how to fix the unknown problem would be much appreciated
Thanks Much.
it appears that the sql directory under db is missing as well as the conf and sample-project directories under jcr root.
I was able to find an older release of jcr that allowed me proceed but I have no idea if there are any updates to the missing files since 0.6.2rc1 (the version I had)
Can now start JCR and create users and a project. However now I get the following error when I click on the Upload button during Fileset Creattion:
Error 500
Internal Server Error
The Pylons Team | Top
and the following from the jcr terminal....
13:24:43,596 INFO selectfileset [1134319952] User: abanach: Selecting file sets for project 7
13:24:53,315 ERROR base [1099520336] User: abanach: Uncaught exception
Traceback (most recent call last):
File "/home/abanach/jcr/jcr-0.6.6.1/jcr/lib/base.py", line 98, in __call__
return WSGIController.__call__(self, environ, start_response)
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 164, in __call__
response = self._dispatch_call()
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call
response = self._inspect_call(func)
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call
result = func(**args)
File "<string>", line 2, in upload
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 36, in validate
return permission.check(app, request.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py", line 177, in check
return app(environ, start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 35, in app
return func(self, *args, **kwargs)
File "<string>", line 2, in upload
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/decorators/__init__.py", line 149, in wrapper
response = self._dispatch_call()
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 120, in _dispatch_call
response = self._inspect_call(func)
File "/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py", line 79, in _inspect_call
result = func(**args)
File "<string>", line 2, in index
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 36, in validate
return permission.check(app, request.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py", line 177, in check
return app(environ, start_response)
File "/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py", line 35, in app
return func(self, *args, **kwargs)
File "/home/abanach/jcr/jcr-0.6.6.1/jcr/controllers/projectadmin/selectfileset.py", line 36, in index
c.projectId = int(request.params['projectId'])
File "/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py", line 259, in __getitem__
return self._decode_value(self.multi.__getitem__(key))
File "/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py", line 36, in __getitem__
raise KeyError(repr(key))
KeyError: "'projectId'"
Error - <type 'exceptions.KeyError'>: "'projectId'"
URL: http://127.0.1.1:5000/projectadmin/selectfileset/upload
File '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
app_iter = self.application(environ, sr_checker)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/wsgiapp.py', line 314 in __call__
return self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Beaker-1.2.3-py2.5.egg/beaker/middleware.py', line 81 in __call__
return self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Beaker-1.2.3-py2.5.egg/beaker/middleware.py', line 160 in __call__
return self.wrap_app(environ, session_start_response)
File '/usr/lib/python2.5/site-packages/Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in __call__
response = self.app(environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/wsgiapp.py', line 95 in __call__
response = self.dispatch(controller, environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/wsgiapp.py', line 236 in dispatch
return controller(environ, start_response)
File '/home/abanach/jcr/jcr-0.6.6.1/jcr/lib/base.py', line 98 in __call__
return WSGIController.__call__(self, environ, start_response)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 164 in __call__
response = self._dispatch_call()
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 120 in _dispatch_call
response = self._inspect_call(func)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 79 in _inspect_call
result = func(**args)
File '<string>', line 2 in upload
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 36 in validate
return permission.check(app, request.environ, self.start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py', line 177 in check
return app(environ, start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 35 in app
return func(self, *args, **kwargs)
File '<string>', line 2 in upload
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/decorators/__init__.py', line 149 in wrapper
response = self._dispatch_call()
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 120 in _dispatch_call
response = self._inspect_call(func)
File '/usr/lib/python2.5/site-packages/Pylons-0.9.6.2-py2.5.egg/pylons/controllers/core.py', line 79 in _inspect_call
result = func(**args)
File '<string>', line 2 in index
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 36 in validate
return permission.check(app, request.environ, self.start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/permissions.py', line 177 in check
return app(environ, start_response)
File '/usr/lib/python2.5/site-packages/AuthKit-0.4.3-py2.5.egg/authkit/authorize/pylons_adaptors.py', line 35 in app
return func(self, *args, **kwargs)
File '/home/abanach/jcr/jcr-0.6.6.1/jcr/controllers/projectadmin/selectfileset.py', line 36 in index
c.projectId = int(request.params['projectId'])
File '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py', line 259 in __getitem__
return self._decode_value(self.multi.__getitem__(key))
File '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/multidict.py', line 36 in __getitem__
raise KeyError(repr(key))
KeyError: "'projectId'"
CGI Variables
-------------
AUTH_TYPE: 'cookie'
CONTENT_LENGTH: '-1'
CONTENT_TYPE: 'multipart/form-data; boundary=---------------------------193720056417523810691493764524'
HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING: 'gzip,deflate'
HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'
HTTP_CONNECTION: 'keep-alive'
HTTP_COOKIE: 'jcr=c71f156afa249f98d2606a1e51c65c59381d2dd4ef80dd0a3122d4feb2df0a303387cfdb; authkit=7b5d5ee05e3d832b863baf09eb6dc7d149bfd99fabanach!'
HTTP_HOST: '127.0.1.1:5000'
HTTP_KEEP_ALIVE: '300'
HTTP_REFERER: 'http://127.0.1.1:5000/projectadmin/selectfileset?fileSetType=Modified&projectId=7'
HTTP_USER_AGENT: 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.04 (hardy) Firefox/3.0.5'
PATH_INFO: '/projectadmin/selectfileset/upload'
REMOTE_ADDR: '127.0.1.1'
REMOTE_USER: 'abanach'
REMOTE_USER_TOKENS: ['']
REQUEST_METHOD: 'GET'
SERVER_NAME: '127.0.1.1'
SERVER_PORT: '5000'
SERVER_PROTOCOL: 'HTTP/1.1'
WSGI Variables
--------------
application: <pylons.wsgiapp.PylonsApp object at 0x1801850>
authkit.authenticate: True
authkit.config: {'setup.method': 'forward, cookie', 'cookie.secret': 'sOmE91432134SeccrRttt', 'setup.enable': True, 'forward.internalpath': '/login', 'cookie.signoutpath': '/logout/'}
authkit.intercept: ['401']
beaker.cache: <beaker.cache.CacheManager object at 0x1807dd0>
beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1807b50>>
beaker.session: {'authenticatedUser': <jcr.model.systemuser.SystemUser object at 0x1d83150>, 'sortFS': <jcr.lib.toggles.FileSetListSortOrder object at 0x1d396d0>, '_accessed_time': 1237310693.2841439, 'sortMP': <jcr.lib.toggles.ProjectListSortOrder object at 0x1d39850>, '_creation_time': 1237309855.776413}
paste.auth_tkt.logout_user: <function logout_user at 0x1d51b90>
paste.auth_tkt.set_user: <function set_user at 0x1d48320>
paste.auth_tkt.timestamp: 1237309855
paste.cookies: (<SimpleCookie: authkit='7b5d5ee05e3d832b863baf09eb6dc7d149bfd99fabanach!' jcr='c71f156afa249f98d2606a1e51c65c59381d2dd4ef80dd0a3122d4feb2df0a303387cfdb'>, 'jcr=c71f156afa249f98d2606a1e51c65c59381d2dd4ef80dd0a3122d4feb2df0a303387cfdb; authkit=7b5d5ee05e3d832b863baf09eb6dc7d149bfd99fabanach!')
paste.expected_exceptions: [<class 'paste.httpexceptions.HTTPException'>]
paste.httpexceptions: <paste.httpexceptions.HTTPExceptionHandler object at 0x1862910>
paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0xacbf50>
paste.parsed_formvars: (MultiDict([]), <FakeCGIBody at 0x1d4c050 viewing MultiDict([('fi...d')])>)
paste.recursive.forward: <paste.recursive.Forwarder from />
paste.recursive.include: <paste.recursive.Includer from />
paste.recursive.include_app_iter: <paste.recursive.IncluderAppIter from />
paste.recursive.script_name: ''
paste.registry: <paste.registry.Registry object at 0x1d4a750>
paste.throw_errors: True
pylons.action_method: <bound method SelectfilesetController.index of <jcr.controllers.projectadmin.selectfileset.SelectfilesetController object at 0x1d4c4d0>>
pylons.environ_config: {'cache': 'beaker.cache', 'session': 'beaker.session'}
pylons.error_call: True
pylons.routes_dict: {'action': 'index', 'controller': u'projectadmin/selectfileset', 'id': None}
routes.route: <routes.route.Route object at 0x1776fd0>
routes.url: <routes.util.URLGenerator object at 0x1d4c3d0>
webob._parsed_post_vars: (MultiDict([('fileSetType', 'Modified'), ('projectId', '7'), ('baseline', 'initial set'), ('file', FieldStorage('file', 'jcr-20090317-131933.tar.gz')), ('submit', 'Upload')]), <FakeCGIBody at 0x1d4c050 viewing MultiDict([('fi...d')])>)
webob.adhoc_attrs: {'errors': 'ignore'}
wsgi process: 'Multithreaded'
wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x1d4c3d0>, {'action': 'index', 'controller': u'projectadmin/selectfileset', 'id': None})
------------------------------------------------------------
<p>Additionally an error occurred while sending the <paste.exceptions.reporter.EmailReporter object at 0x1d4af50> report:
<pre>Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/exceptions/errormiddleware.py", line 420, in send_report
rep.report(exc_data)
File "/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/exceptions/reporter.py", line 49, in report
server = smtplib.SMTP(self.smtp_server)
File "/usr/lib/python2.5/smtplib.py", line 244, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.5/smtplib.py", line 310, in connect
raise socket.error, msg
error: (111, 'Connection refused')
</pre>
Hi Andrew
You have 2 issues here.
1. Installation directories
---------------------------------------
The message "Please change to JCR directory (the one containing README.txt), and run this command again" is caused by the subdirectory /db/sql not being found under the current directory. This usually means that you haven't run the "setup-app" command from the directory where you untarred JCR.
The /db/sql directory is definitely in the 0.6.6.1 tarball, as are the others you mentioned. Please check the expanded directory structure against the contents of the tarball (using "tar tzf"), and also ensure that you are running "setup-app" in the correct directory.
2. Incompatible Changes to Third Party Libraries
--------------------------------------------------------------------------
Changes to one or more third party libraries since JCR 0.6.6.1 was released have changed the way form validation works, which breaks JCR.
I'm currently working on version 0.6.7, which works with the updated versions, but this is probably still a week away. Please see the separate thread (which I'm about to start) explaining how to work around this in the meantime.
Cheers ................... JD
With respect to installation:
I followed the directions in the README.txt, specifically:
(from /home/abanach/Download)
tar zxvf jcr-0.6.6.1-src.tar.gz
cd jcr-0.6.6.1
su -
cd /home/abanach/Download/jcr-0.6.6.1
easy_install -f . jcr[mysql]
exit (the root acct)
paster make-config jcr jcr.ini
paster setup-app jcr.ini
get error:
JCR SETUP FAILED!
lastly:
tar ztvf zxvf jcr-0.6.6.1-src.tar.gz | grep sql
does not result in any listings for an sql directory (plenty of .sql files though). Looks like the tarball I downloaded from sourceforge is faulty if there is supposed to be an sql directory in it.
Hi Andrew
OK - solved!
tar zxvf jcr-0.6.6.1-src.tar.gz
You're trying to install from the source package. You need to get the jcr-0.6.6.1.tar.gz package, and install from that.
Let me know if you still have problems.
Cheers ....................... JD