JSON serialization problems with statistics enabled

Issue #271 resolved
Former user created an issue

I just installed RhodeCode, and am running into an issue with statistics. Specifically, if I enable statistics for a repo, I get the traceback below. I am running RhodeCode version 1.2.1 on a Fedora 14 machine. The error occurs if I run RhodeCode manually on the command line via paster or if I utilize Apache's mod_wsgi.

Once statistics are disabled and cleared for the repo, the 500 error stops. I search the issues, but didn't see any issues that seemed related in the results.

Module weberror.errormiddleware:162 in call << traceback_supplement = Supplement, self, environ sr_checker = ResponseStartChecker(start_response) app_iter = self.application(environ, sr_checker) return self.make_catching_iter(app_iter, environ, sr_checker) except:

app_iter = self.application(environ, sr_checker) Module rhodecode.lib.middleware.simplegit:106 in call << def call(self, environ, start_response): if not is_git(environ): return self.application(environ, start_response)

           proxy_key = 'HTTP_X_REAL_IP'

return self.application(environ, start_response) Module rhodecode.lib.middleware.simplehg:71 in call << def call(self, environ, start_response): if not is_mercurial(environ): return self.application(environ, start_response)

           proxy_key = 'HTTP_X_REAL_IP'

return self.application(environ, start_response) Module beaker.middleware:152 in call << headers.append(('Set-cookie', cookie)) return start_response(status, headers, exc_info) return self.wrap_app(environ, session_start_response)

       def _get_session(self):

return self.wrap_app(environ, session_start_response) Module routes.middleware:131 in call << r'\1', oldpath)

           response = self.app(environ, start_response)

           # Wrapped in try as in rare cases the attribute will be gone already

response = self.app(environ, start_response) Module pylons.wsgiapp:107 in call <<
controller = self.resolve(environ, start_response) response = self.dispatch(controller, environ, start_response)

           if 'paste.testing_variables' in environ and hasattr(response,

response = self.dispatch(controller, environ, start_response) Module pylons.wsgiapp:312 in dispatch << if log_debug: log.debug("Calling controller class with WSGI interface") return controller(environ, start_response)

       def load_test_env(self, environ):

return controller(environ, start_response) Module rhodecode.lib.base:52 in call << session['rhodecode_user'] = self.rhodecode_user session.save() return WSGIController.call(self, environ, start_response) finally: meta.Session.remove() return WSGIController.call(self, environ, start_response) Module pylons.controllers.core:211 in call << return response(environ, self.start_response)

           response = self._dispatch_call()
           if not start_response_called:
               self.start_response = start_response

response = self._dispatch_call() Module pylons.controllers.core:162 in _dispatch_call << req.environ['pylons.action_method'] = func

               response = self._inspect_call(func)
           else:
               if log_debug:

response = self._inspect_call(func) Module pylons.controllers.core:105 in _inspect_call << func.name, args) try: result = self._perform_call(func, args) except HTTPException, httpe: if log_debug: result = self._perform_call(func, args) Module pylons.controllers.core:57 in _perform_call << """Hide the traceback for everything above this method""" traceback_hide = 'before_and_this' return func(**args)

       def _inspect_call(self, func):

return func(**args) Module rhodecode.controllers.summary:143 in index << c.trending_languages = json.dumps(OrderedDict( sorted(lang_stats, reverse=True, key=lambda k: k[1])[:10] ) ) key=lambda k: k[1])[:10] Module json:231 in dumps << cls is None and indent is None and separators is None and encoding == 'utf-8' and default is None and not kw): return _default_encoder.encode(obj) if cls is None: cls = JSONEncoder return _default_encoder.encode(obj) Module json.encoder:201 in encode << # exceptions aren't as detailed. The list call should be roughly # equivalent to the PySequence_Fast that ''.join() would do. chunks = self.iterencode(o, _one_shot=True) if not isinstance(chunks, (list, tuple)): chunks = list(chunks) chunks = self.iterencode(o, _one_shot=True) Module json.encoder:264 in iterencode << self.key_separator, self.item_separator, self.sort_keys, self.skipkeys, _one_shot) return _iterencode(o, 0)

   def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

return _iterencode(o, 0) Module json.encoder:178 in default << """ raise TypeError(repr(o) + " is not JSON serializable")

       def encode(self, o):

raise TypeError(repr(o) + " is not JSON serializable") TypeError: nil is not JSON serializable

Comments (12)

  1. Former user Account Deleted

    I have the same problem. What do you mean by a 'reproducible example'? What do you need excactly? A repositiory? I tried with a clone of the RhodeCode repository. It doesn't work with that too, so it doesn't seam to depend on the repository contents.

  2. Former user Account Deleted

    My stacktrace looks like this:

    2011-11-07 19:09:32.924 INFO  [rhodecode.lib.celerylib.tasks] running task with lockkey task_07fa590a3be96683cb2202b67975ceca.lock
    Error - <type 'exceptions.TypeError'>: nil is not JSON serializable
    URL: https://hg.example.de:7013/Test-RhodeCode/summary
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/WebError-0.10.3-py2.7.egg/weberror/errormiddleware.py', line 162 in __call__
      app_iter = self.application(environ, sr_checker)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/RhodeCode-1.2.3-py2.7.egg/rhodecode/lib/middleware/simplegit.py', line 106 in __call__
      return self.application(environ, start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/RhodeCode-1.2.3-py2.7.egg/rhodecode/lib/middleware/simplehg.py', line 71 in __call__
      return self.application(environ, start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Beaker-1.5.4-py2.7.egg/beaker/middleware.py', line 152 in __call__
      return self.wrap_app(environ, session_start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py', line 131 in __call__
      response = self.app(environ, start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py', line 107 in __call__
      response = self.dispatch(controller, environ, start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py', line 312 in dispatch
      return controller(environ, start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/RhodeCode-1.2.3-py2.7.egg/rhodecode/lib/base.py', line 52 in __call__
      return WSGIController.__call__(self, environ, start_response)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 211 in __call__
      response = self._dispatch_call()
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 162 in _dispatch_call
      response = self._inspect_call(func)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 105 in _inspect_call
      result = self._perform_call(func, args)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py', line 57 in _perform_call
      return func(**args)
    File '/srv/hg/rhodecode-env-1.2.3/lib/python2.7/site-packages/RhodeCode-1.2.3-py2.7.egg/rhodecode/controllers/summary.py', line 143 in index
      key=lambda k: k[1])[:10]
    File '/usr/lib64/python2.7/json/__init__.py', line 231 in dumps
      return _default_encoder.encode(obj)
    File '/usr/lib64/python2.7/json/encoder.py', line 201 in encode
      chunks = self.iterencode(o, _one_shot=True)
    File '/usr/lib64/python2.7/json/encoder.py', line 264 in iterencode
      return _iterencode(o, 0)
    File '/usr/lib64/python2.7/json/encoder.py', line 178 in default
      raise TypeError(repr(o) + " is not JSON serializable")
    TypeError: nil is not JSON serializable
    
  3. Marcin Kuzminski repo owner

    I need reproducible example in order to fix this. A detailed step by step, with example repo that fails, all libraries versions and system used.

  4. Former user Account Deleted

    OP here. It took a while (not every repo has this issue), but http://hg.abwalters.us/test-statistics/ does. Unfortunately, the repo that I created this ticket about is one that I can't share outside of my company.

    http://hg.abwalters.us/test-statistics-with-push/ does not exhibit this issue, though.

    You can use the username "test" with a password of "A0password" to pull the repo and/or log in to the web interface. This user does not have the ability to create repos, but can read from those two repos.

    As far as the rest of the information. The system is a Fedora 14 machine. Package versions are below.

    amqplib-1.0.2-py2.7.egg anyjson-0.3.1-py2.7.egg Babel-0.9.6-py2.7.egg Beaker-1.5.4-py2.7.egg celery-2.2.7-py2.7.egg decorator-3.3.2-py2.7.egg dulwich-0.8.0-py2.7-linux-i686.egg easy-install.pth FormEncode-1.2.4-py2.7.egg kombu-1.4.1-py2.7.egg Mako-0.5.0-py2.7.egg MarkupSafe-0.15-py2.7-linux-i686.egg mercurial-1.9.3-py2.7-linux-i686.egg mock-0.8.0beta4-py2.7.egg nose-1.1.2-py2.7.egg Paste-1.7.5.1-py2.7.egg PasteDeploy-1.5.0-py2.7.egg PasteScript-1.7.4.2-py2.7.egg pip-0.8.1-py2.7.egg psycopg2-2.4.2-py2.7-linux-i686.egg py_bcrypt-0.2-py2.7-linux-i686.egg Pygments-1.4-py2.7.egg Pylons-1.0-py2.7.egg pyparsing-1.5.6-py2.7.egg python_dateutil-1.5-py2.7.egg RhodeCode-1.2.1-py2.7.egg Routes-1.12.3-py2.7.egg setuptools-0.6c11-py2.7.egg setuptools-0.6c12dev_r88846-py2.7.egg setuptools.pth simplejson-2.2.1-py2.7-linux-i686.egg SQLAlchemy-0.7.2-py2.7-linux-i686.egg Tempita-0.5.1-py2.7.egg vcs-0.2.1-py2.7.egg WebError-0.10.3-py2.7.egg WebHelpers-1.3-py2.7.egg WebOb-1.0.8-py2.7.egg WebTest-1.3.1-py2.7.egg Whoosh-1.7.8-py2.7.egg

    RPM Versions: erlang-ssh-R14B-03.1.fc14.i686 readahead-1.5.6-1.fc14.i686 erlang-jinterface-R14B-03.1.fc14.i686 ice-3.4.0-3.fc14.i686 mtr-0.80-1.fc14.i686 erlang-erl_interface-R14B-03.1.fc14.i686 rsh-0.17-63.fc14.i686 postgresql-8.4.9-1.fc14.i686 python-libs-2.7-8.fc14.1.i686 erlang-cosTime-R14B-03.1.fc14.i686 yum-langpacks-0.1.5-3.fc14.noarch yum-metadata-parser-1.1.4-2.fc14.i686 erlang-cosTransactions-R14B-03.1.fc14.i686 libdb-5.0.26-2.fc14.i686 erlang-test_server-R14B-03.1.fc14.i686 libvorbis-1.3.1-2.fc14.i686 jline-0.9.94-0.6.fc14.noarch gobject-introspection-0.9.3-1.fc14.i686 krb5-libs-1.8.4-3.fc14.i686 iputils-20100418-3.fc14.i686 perl-Compress-Raw-Bzip2-2.030-1.fc14.i686 avahi-libs-0.6.27-8.fc14.i686 polkit-0.98-5.fc14.i686 udev-161-10.fc14.i686 dbus-python-0.83.0-7.fc14.i686 php-pdo-5.3.8-3.fc14.i686 schroedinger-1.0.10-1.fc14.i686 zlib-static-1.2.5-2.fc14.i686 libpath_utils-0.2.1-5.fc14.i686 less-436-11.fc14.i686 hwdata-0.232-1.fc14.noarch ntfsprogs-2011.4.12-5.fc14.i686 neon-0.29.5-1.fc14.i686 php-mbstring-5.3.8-3.fc14.i686 xorg-x11-xauth-1.0.2-7.fc12.i686 openssh-blacklist-1.0-2.fc14.noarch krb5-workstation-1.8.4-3.fc14.i686 SDL-1.2.14-11.fc14.i686 libgsf-1.14.18-6.fc14.i686 glibc-headers-2.13-2.i686 perl-threads-shared-1.32-148.fc14.i686 libcroco-0.6.2-4.fc13.i686 libraw1394-2.0.5-2.fc14.i686 glibc-devel-2.13-2.i686 db4-4.8.30-2.fc14.i686 vim-filesystem-7.3.315-1.fc14.i686 setserial-2.17-26.fc14.i686 libpng-1.2.46-1.fc14.i686 gamin-0.1.10-8.fc14.i686 python-setuptools-0.6.24-1.fc14.noarch libXpm-3.5.8-2.fc13.i686 libjpeg-turbo-1.1.1-1.fc14.i686 libuuid-2.18-4.8.fc14.i686 vim-enhanced-7.3.315-1.fc14.i686 device-mapper-event-1.02.63-2.fc14.i686 php-devel-5.3.8-3.fc14.i686 libgpg-error-devel-1.9-1.fc14.i686 cyrus-sasl-lib-2.1.23-12.fc14.i686 kernel-PAE-2.6.35.12-88.fc14.i686 pcsc-lite-libs-1.6.4-4.fc14.i686 libcap-ng-0.6.5-1.fc14.i686 glx-utils-7.9-5.fc14.i686 pygtk2-libglade-2.17.0-9.fc14.i686 checkpolicy-2.0.23-2.fc14.i686 libwmf-lite-0.2.8.4-27.fc14.i686 libarchive-2.8.4-1.fc14.i686 mod_dav_svn-1.6.17-1.fc14.i686 iw-0.9.22-1.fc14.1.i686 faad2-libs-2.7-1.fc11.i586 libconfig-1.4.6-1.fc14.i686 yp-tools-2.11-6.fc14.i686 cpp-4.5.1-4.fc14.i686 libnetfilter_conntrack-0.9.1-1.fc14.i686 libIDL-0.8.14-1.fc14.i686 nfs-utils-lib-1.1.5-3.fc14.i686 libnih-1.0.2-2.fc14.i686 device-mapper-multipath-0.4.9-14.fc13.i686 python-devel-2.7-8.fc14.1.i686 dirac-libs-1.0.2-4.fc14.i686 pm-utils-1.3.1-4.fc14.i686 erlang-syntax_tools-R14B-03.1.fc14.i686 ncurses-5.7-9.20100703.fc14.i686 rdist-6.1.5-49.fc14.i686 erlang-mnesia-R14B-03.1.fc14.i686 prelink-0.4.3-4.fc14.i686 erlang-toolbar-R14B-03.1.fc14.i686 erlang-ssl-R14B-03.1.fc14.i686 httpd-tools-2.2.17-1.fc14.i686 ntsysv-1.3.49-1.fc14.i686 erlang-snmp-R14B-03.1.fc14.i686 passwd-0.78-1.fc14.i686 cyrus-sasl-plain-2.1.23-12.fc14.i686 erlang-et-R14B-03.1.fc14.i686 libxml2-2.7.7-3.fc14.i686 libthai-0.1.14-3.fc14.i686 words-3.0-16.fc12.noarch erlang-otp_mibs-R14B-03.1.fc14.i686 erlang-inviso-R14B-03.1.fc14.i686 libXxf86dga-1.1.1-2.fc14.i686 erlang-examples-R14B-03.1.fc14.i686 giflib-4.1.6-3.fc14.i686 perl-Compress-Raw-Zlib-2.030-1.fc14.i686 libudev-161-10.fc14.i686 perl-Bit-Vector-7.1-3.fc14.i686 kbd-1.15-11.fc14.i686 nss-3.12.10-7.fc14.i686 perl-Digest-SHA1-2.12-4.fc14.i686 sendmail-8.14.4-10.fc14.i686 rpm-4.8.1-7.fc14.i686 perl-Date-Calc-6.3-3.fc14.noarch ntp-4.2.6p3-0.1.rc10.fc14.i686 avahi-autoipd-0.6.27-8.fc14.i686 gpg-pubkey-f09d8368-4bc899d3 vsftpd-2.3.4-1.fc14.i686 gnupg2-2.0.18-1.fc14.i686 ncurses-base-5.7-9.20100703.fc14.i686 nss-tools-3.12.10-7.fc14.i686 yum-plugin-fastestmirror-1.1.28-1.fc14.noarch e2fsprogs-1.41.12-6.fc14.i686 libfontenc-1.0.5-2.fc12.i686 libXdmcp-1.0.3-3.fc13.i686 php-pecl-memcached-1.0.2-1.fc14.i686 traceroute-2.0.18-1.fc14.i686 libgcc-4.5.1-4.fc14.i686 MAKEDEV-3.24-6.fc14.i686 fipscheck-1.2.0-4.fc13.i686 nss-softokn-freebl-3.12.10-1.fc14.i686 rsyslog-4.6.3-3.fc14.i686 libcom_err-1.41.12-6.fc14.i686 php-pecl-apc-3.1.9-1.fc14.i686 perl-5.12.4-148.fc14.i686 chkconfig-1.3.49-1.fc14.i686 zip-3.0-2.fc14.i686 nss-util-3.12.10-1.fc14.i686 perl-FCGI-0.74-1.fc14.i686 libXinerama-1.1-2.fc13.i686 subversion-libs-1.6.17-1.fc14.i686 openssl-1.0.0e-1.fc14.i686 sed-4.2.1-6.fc14.i686 qt-4.7.4-7.fc14.i686 jasper-libs-1.900.1-16.fc14.i686 redhat-lsb-4.0-5.fc14.i686 upstart-sysvinit-1.2-2.fc14.i686 kernel-headers-2.6.35.14-106.fc14.i686 sqlite-3.6.23.1-1.fc14.i686 gcc-4.5.1-4.fc14.i686 libacl-2.2.49-9.fc14.i686 m4-1.4.14-1.fc14.i686 mesa-libGLU-7.9-5.fc14.i686 ffmpeg-libs-0.6.3-1.fc14.i686 acl-2.2.49-9.fc14.i686 procps-3.2.8-15.fc14.i686 libtirpc-0.2.1-4.fc14.i686 hostname-3.04-2.fc14.i686 ypbind-1.32-1.fc14.i686 libXxf86vm-1.1.0-1.fc13.i686 libXext-1.1.2-2.fc14.i686 libpcap-1.1.1-3.fc14.i686 libXcomposite-0.4.2-1.fc14.i686 libbsd-0.2.0-3.fc13.i686 time-1.7-38.fc14.i686 libmount-2.18-4.8.fc14.i686 hunspell-1.2.12-4.fc14.i686 libpng-devel-1.2.46-1.fc14.i686 cloog-ppl-0.15.7-2.fc14.i686 make-3.82-3.fc14.i686 tcl-8.5.9-2.fc14.i686 protobuf-2.3.0-5.fc14.i686 pam_pkcs11-0.6.2-6.fc14.i686 erlang-crypto-R14B-03.1.fc14.i686 coreutils-8.5-7.fc14.i686 setuptool-1.19.11-1.fc14.1.i686 erlang-xmerl-R14B-03.1.fc14.i686 fontconfig-2.8.0-2.fc14.i686 erlang-tv-R14B-03.1.fc14.i686 psacct-6.5.4-5.fc14.i686 erlang-eunit-R14B-03.1.fc14.i686 cpuspeed-1.5-14.fc14.i686 erlang-wx-R14B-03.1.fc14.i686 vconfig-1.9-8.fc12.i686 erlang-typer-R14B-03.1.fc14.i686 rng-tools-3-2.fc14.i686 erlang-orber-R14B-03.1.fc14.i686 tmpwatch-2.10-1.fc14.i686 libuser-0.56.18-3.fc14.i686 python-psycopg2-2.2.2-2.fc14.i686 postgresql-devel-8.4.9-1.fc14.i686 numactl-2.0.3-8.fc13.i686 t1lib-5.1.2-6.fc14.i686 gdbm-1.8.3-8.fc14.i686 erlang-cosEvent-R14B-03.1.fc14.i686 libtasn1-2.7-1.fc14.i686 erlang-edoc-R14B-03.1.fc14.i686 sos-2.2-1.fc14.noarch perl-threads-1.81-1.fc14.i686 erlang-docbuilder-R14B-03.1.fc14.i686 erlang-percept-R14B-03.1.fc14.i686 pinfo-0.6.10-1.fc14.1.i686 libtool-ltdl-2.2.10-3.fc14.i686 erlang-sasl-R14B-03.1.fc14.i686 libXv-1.0.5-1.fc13.i686 x264-libs-0.0.0-0.28.20100706gitd058f37.fc14.i686 python-deltarpm-3.6-0.6.20110223git.fc14.i686 erlang-reltool-R14B-03.1.fc14.i686 xorg-x11-utils-7.4-10.fc14.i686 newt-0.52.12-1.fc14.i686 xinetd-2.3.14-34.fc14.i686 linux-atm-libs-2.5.1-1.fc14.i686 python-urlgrabber-3.9.1-7.fc14.noarch audit-libs-2.1.3-1.fc14.i686 libasyncns-0.8-1.fc13.i686 expat-2.0.1-10.fc13.i686 perl-HTML-Tagset-3.20-5.fc14.noarch PackageKit-0.6.12-4.fc14.i686 libunistring-0.9.3-1.fc14.i686 cryptsetup-luks-libs-1.1.3-1.fc14.i686 librsvg2-2.32.0-4.fc14.i686 c-ares-1.7.3-4.fc14.i686 authconfig-6.1.11-1.fc14.i686 avahi-0.6.27-8.fc14.i686 cyrus-sasl-2.1.23-12.fc14.i686 libcurl-7.21.0-10.fc14.i686 createrepo-0.9.8-5.fc14.noarch curl-7.21.0-10.fc14.i686 libtiff-3.9.5-1.fc14.i686 perl-WWW-Mechanize-1.62-2.fc14.noarch dhclient-4.2.0-23.P2.fc14.i686 openssh-clients-5.5p1-24.fc14.2.i686 pinentry-0.8.1-4.fc14.i686 binutils-2.20.51.0.7-8.fc14.i686 libglade2-2.6.4-3.fc12.i686 libdhash-0.4.3-5.fc14.i686 autotrace-0.31.1-24.fc14.2.i686 xkeyboard-config-1.9-7.fc14.noarch NetworkManager-0.8.5.92-1.git20110927.fc14.i686 gpgme-1.2.0-3.fc14.i686 compat-db-headers-4.7.25-17.fc14.noarch php-soap-5.3.8-3.fc14.i686 tcpdump-4.1.1-1.fc14.i686 mailcap-2.1.35-1.fc14.noarch quota-3.17-18.fc14.i686 libICE-1.0.6-2.fc13.i686 cups-libs-1.4.8-5.fc14.i686 libmcrypt-2.5.8-9.fc12.i686 lame-3.98.4-1.fc14.i686 yum-plugin-merge-conf-1.1.28-1.fc14.noarch orc-0.4.16-3.fc14.i686 memcached-1.4.5-3.fc14.i686 xorg-x11-font-utils-7.4-4.fc14.i686 vim-minimal-7.3.315-1.fc14.i686 eggdbus-0.6-2.fc13.i686 fipscheck-lib-1.2.0-4.fc13.i686 ncurses-libs-5.7-9.20100703.fc14.i686 libXaw-1.0.6-4.fc12.i686 at-3.1.12-6.fc14.i686 glibc-2.13-2.i686 php-suhosin-0.9.29-1.fc13.i686 perl-Pod-Escapes-1.04-148.fc14.noarch perl-CGI-3.51-1.fc14.noarch libffi-3.0.9-1.fc13.i686 compat-db47-4.7.25-17.fc14.i686 perl-Module-Pluggable-3.90-148.fc14.noarch gpm-libs-1.20.6-11.fc14.i686 xorg-x11-server-common-1.9.5-2.fc14.i686 libusb1-1.0.8-1.fc14.i686 gawk-3.1.8-3.fc14.i686 rpmfusion-nonfree-release-14-2.noarch slang-2.2.3-1.fc14.i686 libsepol-2.0.41-3.fc14.i686 PackageKit-yum-plugin-0.6.12-4.fc14.i686 apr-util-1.3.12-1.fc14.i686 glib2-2.26.0-2.fc14.i686 tzdata-2011n-2.fc14.noarch gtk2-2.22.0-2.fc14.i686 dmraid-events-1.0.0.rc16-12.fc13.i686 php-5.3.8-3.fc14.i686 device-mapper-libs-1.02.63-2.fc14.i686 bind-9.7.4-2.P1.fc14.i686 cronie-anacron-1.4.8-2.fc14.i686 cpio-2.11-2.fc14.i686 tcp_wrappers-libs-7.6-59.fc14.i686 preupgrade-1.1.10-1.fc14.noarch nss_compat_ossl-0.9.6-1.fc13.i686 upstart-1.2-2.fc14.i686 dbus-glib-0.86-4.fc14.i686 freetype-2.4.2-7.fc14.i686 pax-3.4-10.fc12.i686 iptables-1.4.9-1.fc14.i686 rmt-0.4-0.9.b43.fc14.i686 libgomp-4.5.1-4.fc14.i686 pygobject2-2.21.5-4.fc14.i686 libXau-1.0.6-1.fc14.i686 screen-4.0.3-15.fc12.i686 ffmpeg-0.6.3-1.fc14.i686 atk-1.32.0-1.fc14.i686 pcsc-lite-1.6.4-4.fc14.i686 murmur-1.2.3-2.fc14.i686 libtheora-1.1.1-1.fc13.i686 wireless-tools-29-5.1.fc12.i686 lame-libs-3.98.4-1.fc14.i686 speex-1.2-0.12.rc1.fc12.i686 net-tools-1.60-105.fc14.1.i686 microcode_ctl-1.17-9.fc14.i686 radeontool-1.5-6.fc12.i686 xz-4.999.9-0.2.beta.20100401git.fc14.i686 libnfnetlink-1.0.0-1.fc13.i686 libXfixes-4.0.5-1.fc14.i686 dosfstools-3.0.9-6.fc14.i686 ccid-1.4.0-2.fc14.i686 libXcursor-1.1.10-5.fc14.i686 telnet-0.17-51.fc14.i686 tcp_wrappers-7.6-59.fc14.i686 xorg-x11-xkb-utils-7.5-1.fc14.i686 logrotate-3.7.9-4.fc14.i686 ruby-libs-1.8.7.352-1.fc14.i686 ppp-2.4.5-12.fc14.i686 lua-5.1.4-7.fc14.i686 libedit-3.0-3.20090923cvs.fc14.i686 patch-2.6.1-8.fc14.i686 gd-2.0.35-11.fc13.i686 libsysfs-2.1.0-8.fc14.i686 coolkey-1.1.0-17.fc14.i686 libidn-1.18-1.fc14.i686 pakchois-0.4-3.i686 wxBase-2.8.12-1.fc14.i686 libproxy-0.4.4-7.fc14.i686 tk-8.5.9-2.fc14.i686 iptstate-2.2.2-4.fc14.i686 gettext-libs-0.18.1.1-5.fc14.i686 erlang-erts-R14B-03.1.fc14.i686 talk-0.17-33.2.4.i686 gzip-1.4-1.fc14.i686 erlang-stdlib-R14B-03.1.fc14.i686 pam-1.1.1-6.fc14.i686 grub-0.97-66.fc14.i686 libxslt-devel-1.1.26-3.fc14.i686 plymouth-0.8.4-0.20100823.7.fc14.i686 mesa-libGL-7.9-5.fc14.i686 mod_fcgid-2.3.6-1.fc14.i686 php-geshi-1.0.8.8-1.fc14.noarch util-linux-ng-2.18-4.8.fc14.i686 finger-0.17-42.fc14.i686 erlang-pman-R14B-03.1.fc14.i686 systemd-units-10-2.fc14.1.i686 pam_passwdqc-1.0.5-6.fc13.i686 erlang-parsetools-R14B-03.1.fc14.i686 rootfiles-8.1-6.fc12.noarch ConsoleKit-libs-0.4.2-3.fc14.i686 erlang-runtime_tools-R14B-03.1.fc14.i686 tree-1.5.3-2.fc14.i686 erlang-asn1-R14B-03.1.fc14.i686 groff-1.20.1-3.fc14.i686 pam_krb5-2.3.11-4.fc14.i686 erlang-inets-R14B-03.1.fc14.i686 parted-2.3-4.fc14.i686 ppl-0.10.2-10.fc12.i686 usermode-1.106.1-1.fc14.1.i686 postgresql-server-8.4.9-1.fc14.i686 fedora-release-14-1.noarch alsa-lib-1.0.24-1.fc14.i686 symlinks-1.4-2.fc13.i686 erlang-observer-R14B-03.1.fc14.i686 python-2.7-8.fc14.1.i686 openjpeg-libs-1.3-10.fc14.i686 comps-extras-20-1.fc13.noarch erlang-cosNotification-R14B-03.1.fc14.i686 ghostscript-8.71-16.fc14.i686 fedora-release-notes-14.1.2-2.fc14.noarch erlang-cosFileTransfer-R14B-03.1.fc14.i686 erlang-appmon-R14B-03.1.fc14.i686 netpbm-10.47.25-1.fc14.i686 erlang-megaco-R14B-03.1.fc14.i686 libtalloc-2.0.1-1.fc13.i686 libdmx-1.1.0-1.fc13.i686 erlang-common_test-R14B-03.1.fc14.i686 libxml2-python-2.7.7-3.fc14.i686 xvidcore-1.2.2-2.fc14.i686 jpackage-utils-1.7.5-3.11.fc14.noarch newt-python-0.52.12-1.fc14.i686 mingetty-1.08-6.fc14.i686 flac-1.2.1-6.fc12.i686 libcap-2.22-1.fc14.i686 perl-Carp-Clan-6.04-2.fc14.noarch initscripts-9.20.2-1.fc14.1.i686 pulseaudio-libs-0.9.21-7.fc14.i686 PackageKit-yum-0.6.12-4.fc14.i686 perl-HTML-Parser-3.68-1.fc14.i686 libcollection-0.6.1-5.fc14.i686 pygpgme-0.1-21.20101027bzr69.fc14.i686 gdk-pixbuf2-2.22.0-2.fc14.i686 crontabs-1.11-1.20101115git.fc14.noarch libipa_hbac-1.5.12-1.fc14.i686 ntpdate-4.2.6p3-0.1.rc10.fc14.i686 compat-readline5-5.2-17.fc12.i686 openldap-2.4.23-10.fc14.i686 python-iwlib-0.1-3.fc14.i686 kpartx-0.4.9-14.fc13.i686 php-pgsql-5.3.8-3.fc14.i686 nc-1.100-2.fc14.i686 policycoreutils-2.0.85-30.3.fc14.i686 libxml2-devel-2.7.7-3.fc14.i686 which-2.19-5.fc12.i686 sssd-client-1.5.12-1.fc14.i686 crda-1.1.1_2010.11.22-1.fc14.i686 acpid-2.0.9-1.fc14.i686 anaconda-yum-plugins-1.0-5.fc12.noarch libini_config-0.6.2-5.fc14.i686 sssd-1.5.12-1.fc14.i686 kbd-misc-1.15-11.fc14.noarch mobile-broadband-provider-info-1.20110218-1.fc14.noarch php-mcrypt-5.3.8-3.fc14.i686 xorg-x11-apps-7.4-14.fc14.i686 perl-version-0.88-2.fc14.i686 php-gd-5.3.8-3.fc14.i686 dmz-cursor-themes-0.4-3.fc14.noarch libssh2-1.2.4-1.fc14.i686 libSM-1.1.0-7.fc12.i686 libxkbfile-1.0.6-2.fc13.i686 ImageMagick-6.6.4.1-16.fc14.i686 yum-plugin-ps-1.1.28-1.fc14.noarch xz-lzma-compat-4.999.9-0.2.beta.20100401git.fc14.i686 rsync-3.0.8-2.fc14.i686 yum-plugin-security-1.1.28-1.fc14.noarch keyutils-libs-1.2-6.fc12.i686 yum-3.2.28-7.fc14.noarch libvpx-0.9.7.1-1.fc14.i686 libsndfile-1.0.25-1.fc14.i686 libstdc++-4.5.1-4.fc14.i686 ustr-1.0.4-9.fc12.i686 glibc-common-2.13-2.i686 libXxf86misc-1.0.2-1.fc13.i686 selinux-policy-3.9.7-46.fc14.noarch libgcrypt-devel-1.4.5-4.fc13.i686 perl-Pod-Simple-3.13-148.fc14.noarch perl-HTTP-Server-Simple-0.44-1.fc14.noarch tzdata-java-2011n-2.fc14.noarch gmp-4.3.1-7.fc14.i686 libXt-1.0.7-1.fc13.i686 dbus-libs-1.4.0-3.fc14.i686 system-config-firewall-tui-1.2.27-2.fc14.noarch libXft-2.1.14-1.fc13.i686 selinux-policy-targeted-3.9.7-46.fc14.noarch libselinux-2.0.96-6.fc14.1.i686 dbus-1.4.0-3.fc14.i686 setup-2.8.28-2.fc14.noarch shared-mime-info-0.80-1.fc14.i686 dmraid-1.0.0.rc16-12.fc13.i686 php-cli-5.3.8-3.fc14.i686 readline-6.1-2.fc14.i386 device-mapper-event-libs-1.02.63-2.fc14.i686 bind-utils-9.7.4-2.P1.fc14.i686 libblkid-2.18-4.8.fc14.i686 ghostscript-fonts-5.50-23.fc12.noarch cronie-1.4.8-2.fc14.i686 java-1.6.0-openjdk-1.6.0.0-55.1.9.10.fc14.i686 libattr-2.4.44-6.fc14.i686 strace-4.6-1.fc14.i686 elfutils-libelf-0.152-1.fc14.i686 links-2.2-12.fc13.i686 nss-softokn-3.12.10-1.fc14.i686 kernel-PAE-2.6.35.14-106.fc14.i686 psmisc-22.13-6.fc14.i686 libXfont-1.4.2-1.fc14.i686 iproute-2.6.35-9.fc14.i686 pygtk2-2.17.0-9.fc14.i686 xz-libs-4.999.9-0.2.beta.20100401git.fc14.i686 file-5.04-17.fc14.i686 libsemanage-2.0.45-5.fc14.i686 bzip2-1.0.6-1.fc14.1.i686 gpg-pubkey-e8e40fde-4b563cdc libgssglue-0.1-8.fc12.i686 gpg-pubkey-a3780952-4affed06 lcms-libs-1.19-2.fc14.i686 libtevent-0.9.8-7.1.fc14.i686 libnl-1.1-14.fc14.i686 libldb-0.9.10-24.fc14.i686 subversion-1.6.17-1.fc14.i686 mcpp-2.7.2-4.fc14.i686 apr-util-ldap-1.3.12-1.fc14.i686 libxcb-1.7-1.fc14.i686 wpa_supplicant-0.6.8-10.fc14.i686 cifs-utils-4.8.1-7.fc14.i686 libXrender-0.9.6-1.fc14.i686 libXdamage-1.1.3-1.fc14.i686 hdparm-9.27-1.fc13.i686 libcgroup-0.36.2-7.fc14.i686 iptables-ipv6-1.4.9-1.fc14.i686 fprintd-0.2.0-2.fc14.i686 mysql-libs-5.1.58-1.fc14.i686 keyutils-1.2-6.fc12.i686 nss_db-2.2.3-0.5.pre1.fc14.i686 bc-1.06.95-2.fc14.i686 dash-0.5.6-4.fc14.i686 libassuan-2.0.0-2.fc14.i686 GeoIP-1.4.7-0.1.20090931cvs.fc12.i686 device-mapper-multipath-libs-0.4.9-14.fc13.i686 e2fsprogs-libs-1.41.12-6.fc14.i686 ftp-0.17-51.fc12.i686 ed-1.4-2.fc14.i686 fprintd-pam-0.2.0-2.fc14.i686 wxGTK-2.8.12-1.fc14.i686 libusb-0.1.12-23.fc14.i686 unixODBC-2.2.14-12.fc14.i686 gettext-0.18.1.1-5.fc14.i686 rdate-1.4-15.fc14.i686 erlang-hipe-R14B-03.1.fc14.i686 cracklib-2.8.16-4.fc14.i686 erlang-gs-R14B-03.1.fc14.i686 elfutils-libs-0.152-1.fc14.i686 db4-utils-4.8.30-2.fc14.i686 unzip-6.0-3.fc14.i686 mod_auth_shadow-2.2-8.fc14.i686 automake-1.11.1-5.fc14.noarch sgml-common-0.6.3-33.fc14.noarch pgfouine-1.2-1.fc14.noarch httpd-2.2.17-1.fc14.i686 libdrm-2.4.22-1.fc14.i686 mesa-dri-drivers-7.9-5.fc14.i686 libva-freeworld-0.31.1-1.sds4.fc14.i686 gcc-c++-4.5.1-4.fc14.i686 nano-2.2.4-1.fc14.i686 basesystem-10.0-3.noarch erlang-ic-R14B-03.1.fc14.i686 lftp-4.0.9-3.fc14.i686 erlang-dialyzer-R14B-03.1.fc14.i686 mod_wsgi-3.2-2.fc14.i686 mailx-12.5-1.fc14.i686 lsof-4.83-2.fc14.i686 zlib-1.2.5-2.fc14.i686 erlang-webtool-R14B-03.1.fc14.i686 pango-1.28.1-5.fc14.i686 hunspell-en-0.20100322-6.fc14.noarch erlang-cosProperty-R14B-03.1.fc14.i686 librtmp-2.3-2.fc14.i686 python-pycurl-7.19.0-7.fc14.i686 erlang-tools-R14B-03.1.fc14.i686 hesiod-3.1.0-19.fc14.i686 xcb-util-0.3.6-1.fc12.i686 libgcrypt-1.4.5-4.fc13.i686 erlang-R14B-03.1.fc14.i686 plymouth-core-libs-0.8.4-0.20100823.7.fc14.i686 zlib-devel-1.2.5-2.fc14.i686 PackageKit-glib-0.6.12-4.fc14.i686 python-iniparse-0.4-2.fc14.noarch libgudev1-161-10.fc14.i686 nss-sysinit-3.12.10-7.fc14.i686 nfs-utils-1.2.3-6.fc14.i686 yum-presto-0.6.2-2.fc14.noarch rpm-libs-4.8.1-7.fc14.i686 cryptsetup-luks-1.1.3-1.fc14.i686 tar-1.23-9.fc14.i686 procmail-3.22-25.fc12.i686 gpg-pubkey-865cc9ea-4bc89956 libref_array-0.1.2-5.fc14.i686 rpm-python-4.8.1-7.fc14.i686 avahi-compat-libdns_sd-0.6.27-8.fc14.i686 libmemcached-0.43-1.fc14.i686 xml-common-0.6.3-33.fc14.noarch kernel-PAE-2.6.35.14-103.fc14.i686 libdaemon-0.14-1.fc13.i686 mlocate-0.23.1-1.fc14.1.i686 bash-4.1.7-4.fc14.i686 info-4.13a-13.fc14.i686 ca-certificates-2011.78-1.fc14.noarch php-pear-1.9.4-1.fc14.noarch popt-1.13-7.fc14.i686 rpmfusion-free-release-14-2.noarch jhead-2.90-2.fc14.i686 nspr-4.8.8-1.fc14.i686 perl-libwww-perl-5.837-3.fc14.noarch libXrandr-1.3.0-5.fc13.i686 autoconf-2.66-2.fc14.noarch grep-2.8-2.fc14.i686 sgpio-1.2.0.10-4.fc12.i686 bind-libs-9.7.4-2.P1.fc14.i686 libstdc++-devel-4.5.1-4.fc14.i686 module-init-tools-3.11.1-6.fc14.i686 xorg-x11-server-Xvfb-1.9.5-2.fc14.i686 urw-fonts-2.4-9.fc13.noarch system-config-network-tui-1.6.2-1.fc14.noarch perf-2.6.35.14-106.fc14.i686 plymouth-scripts-0.8.4-0.20100823.7.fc14.i686 glew-1.5.7-1.fc14.i686 file-libs-5.04-17.fc14.i686 pixman-0.18.4-1.fc14.i686 GConf2-2.31.91-1.fc14.i686 dump-0.4-0.9.b43.fc14.i686 diffutils-2.8.1-29.fc14.i686 rpcbind-0.2.0-8.fc14.i686 libmcpp-2.7.2-4.fc14.i686 sudo-1.7.4p5-2.fc14.i686 libX11-1.3.4-4.fc14.i686 hal-libs-0.5.14-5.fc14.1.i686 jwhois-4.0-25.fc14.i686 libwmf-0.2.8.4-27.fc14.i686 libfprint-0.3.0-1.fc14.i686 irda-utils-0.9.18-11.fc14.i686 grubby-7.0.16-1.fc14.i686 libxslt-1.1.26-3.fc14.i686 gpg-pubkey-2425b284-4affedb7 libaio-0.3.109-2.fc13.i686 mercurial-1.8.4-2.fc14.i686 libss-1.41.12-6.fc14.i686 wxGTK-gl-2.8.12-1.fc14.i686 db4-cxx-4.8.30-2.fc14.i686 irqbalance-0.56-1.fc14.i686 erlang-compiler-R14B-03.1.fc14.i686 cracklib-dicts-2.8.16-4.fc14.i686 stunnel-4.34-1.fc14.i686 erlang-public_key-R14B-03.1.fc14.i686 cairo-1.10.2-1.fc14.i686 usbutils-0.90-1.fc14.i686 erlang-erl_docgen-R14B-03.1.fc14.i686 ConsoleKit-0.4.2-3.fc14.i686 erlang-odbc-R14B-03.1.fc14.i686 mpfr-2.4.2-1.fc13.i686 eject-2.1.5-20.fc14.i686 postgresql-libs-8.4.9-1.fc14.i686 xdg-utils-1.0.2-21.20101028.fc14.noarch erlang-debugger-R14B-03.1.fc14.i686 gnutls-2.8.6-2.fc14.i686 man-pages-3.25-1.fc14.noarch erlang-cosEventDomain-R14B-03.1.fc14.i686 pycairo-1.8.8-2.fc14.i686 xorg-x11-server-utils-7.5-5.fc14.i686 erlang-os_mon-R14B-03.1.fc14.i686 deltarpm-3.6-0.6.20110223git.fc14.i686 libogg-1.2.0-1.fc14.i686 rhino-1.7-0.7.r2.fc12.noarch tftp-server-0.49-7.fc14.i686 perl-URI-1.54-2.fc14.noarch pth-2.0.7-9.i686 ncompress-4.2.4-54.fc14.i686 pcre-8.10-2.fc14.i686 perl-IO-Compress-2.030-1.fc14.noarch openssh-5.5p1-24.fc14.2.i686 ModemManager-0.4.998-1.git20110706.fc14.i686 php-common-5.3.8-3.fc14.i686 python-ethtool-0.7-2.fc14.i686 NetworkManager-glib-0.8.5.92-1.git20110927.fc14.i686 rpmconf-0.2.2-2.fc14.noarch openssh-server-5.5p1-24.fc14.2.i686 ntfs-3g-2011.4.12-5.fc14.i686 filesystem-2.4.35-1.fc14.i686 netpbm-progs-10.47.25-1.fc14.i686 hicolor-icon-theme-0.12-1.fc13.noarch gpg-pubkey-97a1071f-4c49d6fe linux-firmware-20110304-1.fc14.noarch php-xmlrpc-5.3.8-3.fc14.i686 libX11-common-1.3.4-4.fc14.noarch nmap-5.21-9.fc14.i686 libXmu-1.0.5-2.fc13.i686 audit-2.1.3-1.fc14.i686 yum-utils-1.1.28-1.fc14.noarch efibootmgr-0.5.4-9.fc14.i686 libXtst-1.0.99.2-3.fc12.i686 dcraw-9.11-1.fc14.i686 attr-2.4.44-6.fc14.i686 perl-libs-5.12.4-148.fc14.i686 bzip2-libs-1.0.6-1.fc14.1.i686 iperf-2.0.5-1.fc14.i686 fedora-logos-14.0.2-1.fc14.noarch system-config-firewall-base-1.2.27-2.fc14.noarch libgpg-error-1.9-1.fc14.i686 dos2unix-5.1.1-1.fc14.i686 apr-1.4.5-1.fc14.i686 pkgconfig-0.25-2.fc14.i686 device-mapper-1.02.63-2.fc14.i686 vim-common-7.3.315-1.fc14.i686 findutils-4.5.9-2.fc14.i686 lvm2-libs-2.02.84-2.fc14.i686 phpPgAdmin-5.0.3-1.fc14.noarch shadow-utils-4.1.4.2-11.fc14.i686 php-Smarty-2.6.26-1.fc13.noarch libmpc-0.8.1-1.fc13.i686 dracut-006-6.fc14.noarch sysvinit-tools-2.87-7.dsf.fc14.i686 libutempter-1.1.5-4.fc12.i686 libselinux-utils-2.0.96-6.fc14.1.i686 lvm2-2.02.84-2.fc14.i686 pciutils-libs-3.1.7-3.fc14.i686 libtdb-1.2.1-3.fc14.i686 libdc1394-2.1.2-3.fc12.i686 man-db-2.5.7-9.fc14.i686 pciutils-3.1.7-3.fc14.i686 desktop-file-utils-0.16-1.fc14.i686 gsm-1.0.13-2.fc12.i686 smartmontools-5.40-6.fc14.i686 libXi-1.3.2-1.fc14.i686 cyrus-sasl-gssapi-2.1.23-12.fc14.i686 wget-1.12-4.fc14.i686 dnsmasq-2.52-1.fc13.i686 mdadm-3.1.3-0.git20100804.3.fc14.i686 ORBit2-2.14.19-1.fc14.i686 libevent-1.4.14b-1.fc14.i686 pcmciautils-017-2.fc14.i686 python-virtualenv-1.5.1-1.fc14.noarch libmodman-1.0.1-5.fc14.i686 erlang-kernel-R14B-03.1.fc14.i686 coreutils-libs-8.5-7.fc14.i686

  5. Former user Account Deleted

    The command you provided upgraded RhodeCode, but it installed a version of Mercurial that was too new for the code (it installed 2.0.2, but RhodeCode says that it requires a version above 1.9.3 but below 2.0). A downgrade to RhodeCode 1.2.3 also failed due to invalid Mercurial version (though it pulls 1.9.3 and wants between 2.0 and 2.1). I resolved this by copying the hg executable downloaded by 1.2.3 into the bin directory from the upgrade you provided.

    Unfortunately, I still receive the serialization error, which I have pasted below in case the new version provides you any additional insight.

    URL: http://hg.abwalters.us/test-statistics/summary Module weberror.errormiddleware:162 in call << traceback_supplement = Supplement, self, environ sr_checker = ResponseStartChecker(start_response) app_iter = self.application(environ, sr_checker) return self.make_catching_iter(app_iter, environ, sr_checker) except:

    app_iter = self.application(environ, sr_checker)

    Module rhodecode.lib.middleware.simplegit:109 in call << start = time.time() try: return self._handle_request(environ, start_response) finally: log = logging.getLogger(self.class.name)

    return self._handle_request(environ, start_response)

    Module rhodecode.lib.middleware.simplegit:117 in _handle_request << def _handle_request(self, environ, start_response): if not is_git(environ): return self.application(environ, start_response)

    proxy_key = 'HTTP_X_REAL_IP'

    return self.application(environ, start_response)

    Module rhodecode.lib.middleware.simplehg:74 in call << start = time.time() try: return self._handle_request(environ, start_response) finally: log = logging.getLogger(self.class.name)

    return self._handle_request(environ, start_response)

    Module rhodecode.lib.middleware.simplehg:82 in _handle_request << def _handle_request(self, environ, start_response): if not is_mercurial(environ): return self.application(environ, start_response)

    proxy_key = 'HTTP_X_REAL_IP'

    return self.application(environ, start_response)

    Module beaker.middleware:152 in call << headers.append(('Set-cookie', cookie)) return start_response(status, headers, exc_info) return self.wrap_app(environ, session_start_response)

    def _get_session(self):

    return self.wrap_app(environ, session_start_response)

    Module routes.middleware:131 in call << r'\1', oldpath)

    response = self.app(environ, start_response)

    1. Wrapped in try as in rare cases the attribute will be gone already

    response = self.app(environ, start_response)

    Module pylons.wsgiapp:107 in call << controller = self.resolve(environ, start_response) response = self.dispatch(controller, environ, start_response)

    if 'paste.testing_variables' in environ and hasattr(response,

    response = self.dispatch(controller, environ, start_response)

    Module pylons.wsgiapp:312 in dispatch << if log_debug: log.debug("Calling controller class with WSGI interface") return controller(environ, start_response)

    def load_test_env(self, environ):

    return controller(environ, start_response)

    Module rhodecode.lib.base:52 in call << session['rhodecode_user'] = self.rhodecode_user session.save() return WSGIController.call(self, environ, start_response) finally: meta.Session.remove()

    return WSGIController.call(self, environ, start_response)

    Module pylons.controllers.core:211 in call << return response(environ, self.start_response)

    response = self._dispatch_call() if not start_response_called: self.start_response = start_response

    response = self._dispatch_call()

    Module pylons.controllers.core:162 in _dispatch_call << req.environ['pylons.action_method'] = func

    response = self._inspect_call(func) else: if log_debug:

    response = self._inspect_call(func)

    Module pylons.controllers.core:105 in _inspect_call << func.name, args) try: result = self._perform_call(func, args) except HTTPException, httpe: if log_debug:

    result = self._perform_call(func, args)

    Module pylons.controllers.core:57 in _perform_call << """Hide the traceback for everything above this method""" traceback_hide = 'before_and_this' return func(args)

    def _inspect_call(self, func):

    return func(args)

    Module rhodecode.controllers.summary:145 in index << c.trending_languages = json.dumps(OrderedDict( sorted(lang_stats, reverse=True, key=lambda k: k[1])[:10] ) )

    key=lambda k: k[1])[:10]

    Module json:231 in dumps << cls is None and indent is None and separators is None and encoding == 'utf-8' and default is None and not kw): return _default_encoder.encode(obj) if cls is None: cls = JSONEncoder

    return _default_encoder.encode(obj)

    Module json.encoder:201 in encode << # exceptions aren't as detailed. The list call should be roughly

    1. equivalent to the PySequence_Fast that ''.join() would do. chunks = self.iterencode(o, _one_shot=True) if not isinstance(chunks, (list, tuple)): chunks = list(chunks)

    chunks = self.iterencode(o, _one_shot=True)

    Module json.encoder:264 in iterencode << self.key_separator, self.item_separator, self.sort_keys, self.skipkeys, _one_shot) return _iterencode(o, 0)

    def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

    return _iterencode(o, 0)

    Module json.encoder:178 in default << """ raise TypeError(repr(o) + " is not JSON serializable")

    def encode(self, o):

    raise TypeError(repr(o) + " is not JSON serializable")

    TypeError: nil is not JSON serializable CGI Variables CONTENT_TYPE '; charset="utf-8"' DOCUMENT_ROOT '/var/www/html' GATEWAY_INTERFACE 'CGI/1.1' 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.3' HTTP_ACCEPT_ENCODING 'gzip,deflate,sdch' HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.8' HTTP_CONNECTION 'keep-alive' HTTP_COOKIE 'rhodecode=80b9b22dc34300cbce26dccd3483e32f75ba03a6f3daa2d38319602106bebaecaa2aec76' HTTP_HOST 'hg.abwalters.us' HTTP_REFERER 'http://hg.abwalters.us/' HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7' PATH_INFO '/test-statistics/summary' PATH_TRANSLATED '/var/www/sites/rhodecode/dispatch.wsgi/test-statistics/summary' REMOTE_ADDR '66.129.80.221' REMOTE_PORT '48688' REQUEST_METHOD 'GET' REQUEST_URI '/test-statistics/summary' SCRIPT_FILENAME '/var/www/sites/rhodecode/dispatch.wsgi' SERVER_ADDR '72.15.210.214' SERVER_ADMIN 'webmaster@abwalters.us' SERVER_NAME 'hg.abwalters.us' SERVER_PORT '80' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SIGNATURE '<address>Apache/2.2.17 (Fedora) Server at hg.abwalters.us Port 80</address>\n' SERVER_SOFTWARE 'Apache/2.2.17 (Fedora)' WSGI Variables application <rhodecode.lib.middleware.simplegit.SimpleGit object at 0xb436c66c> beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0xb435e5ec>> beaker.session {'rhodecode_user': <AuthUser('id:2:abwalters|True')>, '_accessed_time': 1326376792.970092, '_creation_time': 1326376777.266536} mod_wsgi.application_group 'hg.abwalters.us|' mod_wsgi.callable_object 'application' mod_wsgi.handler_script '' mod_wsgi.input_chunked '0' mod_wsgi.listener_host '' mod_wsgi.listener_port '80' mod_wsgi.process_group 'rhodecode' mod_wsgi.request_handler 'wsgi-script' mod_wsgi.script_reloading '1' mod_wsgi.version (3, 2) paste.registry <paste.registry.Registry object at 0xb411448c> paste.throw_errors True pylons.action_method <bound method SummaryController.index of <rhodecode.controllers.summary.SummaryController object at 0xb41b4e4c>> pylons.controller <rhodecode.controllers.summary.SummaryController object at 0xb41b4e4c> pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'} pylons.pylons <pylons.util.PylonsContext object at 0xb413538c> pylons.routes_dict {'action': u'index', 'controller': u'summary', 'repo_name': u'test-statistics'} routes.cached_hostinfo {'host': 'hg.abwalters.us', 'protocol': 'http'} routes.route <routes.route.Route object at 0xb45e014c> routes.url <routes.util.URLGenerator object at 0xb4114c0c> webob._parsed_query_vars (GET([]), '') webob.adhoc_attrs {'language': 'en-us'} wsgi process 'Multiprocess' wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0xb4120338> wsgi.version (1, 1) wsgiorg.routing_args (<routes.util.URLGenerator object at 0xb4114c0c>, {'action': u'index', 'controller': u'summary', 'repo_name': u'test-statistics'})

  6. Marcin Kuzminski repo owner

    I finally manage to find the cause of this, proper fixes applied to stable and beta branches. Thanks all for helping me find this.

  7. Log in to comment