Installation Issue API Error in portal_registry

Hi Everyone,

I’m very much a noob around here and trying to figure out my way around senaite. I’m trying to set up a test install to see if it would work for our needs and if someone with my abilities or less could setup and maintain the system.

I’ve installed Senaite on a Debian VM and followed a mixture of the install instructions as well as what the docker github guide did. I currently have a working version of senaite and it looks very nice. I’m going through and trying to set things up and get comfortable with the UI. Unfortunately, I have run into an error with the portal registry. I’m assuming I just have a setting in the config file wrong or I failed to add a library that I should have. I get the following error when I click on Configuration Registry.

We’re sorry, but there seems to be an error…
APIError
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 371, in publish_module
Module ZPublisher.WSGIPublisher, line 274, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 63, in call_object
Module plone.app.registry.browser.records, line 208, in call
Module z3c.form.form, line 239, in call
Module z3c.form.form, line 163, in render
Module Products.Five.browser.pagetemplatefile, line 126, in call
Module Products.Five.browser.pagetemplatefile, line 61, in call
Module zope.pagetemplate.pagetemplate, line 135, in pt_render
Module Products.PageTemplates.engine, line 378, in call
Module z3c.pt.pagetemplate, line 176, in render
Module chameleon.zpt.template, line 302, in render
Module chameleon.template, line 215, in render
Module chameleon.template, line 192, in render
Module 54d8bc085f7076e7008e81e568d598c5, line 1527, in render
Module f55c49f1f64d694c1d9d718f27404577, line 382, in render_master
Module 246aadfae00d58ba4c281222813d380b, line 1065, in render_master
Module zope.tales.pythonexpr, line 73, in call

  • traceback_info: (bootstrapview.get_data_settings())
    Module , line 1, in
    Module senaite.core.browser.bootstrap.bootstrap, line 159, in get_data_settings
    Module bika.lims.api, line 472, in get_portal_type
    Module bika.lims.api, line 347, in fail
    APIError: <plone.app.registry.registry.Registry object at 0x7ffaebe405d0 oid 0x1084 in <Connection at 7ffaf377a7d0>> is not supported.

  • Expression: " python:bootstrapview.get_data_settings"

  • Filename: … te/core/browser/main_template/templates/main_template.pt
    → Location: (line 65: col 24)

  • Source: cls python:bootstrapview.get_columns_classes(view)"
    ^

  • Expression: “context/@@main_template/macros/master”

  • Filename: … aite/core/skins/senaite_templates/prefs_main_template.pt

  • Location: (line 2: col 30)

  • Source: … tal:use-macro=“context/@@main_template/macros/master”>
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Expression: “here/prefs_main_template/macros/master”

  • Filename: … y2.7.egg/plone/app/registry/browser/templates/records.pt

  • Location: (line 6: col 23)

  • Source: … al:use-macro=“here/prefs_main_template/macros/master”
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Arguments: repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7ffaeaadedc0>
    template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7ffaf6c8aa10>
    views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7ffadbcd5d10>
    request: <WSGIRequest, URL=http://10.152.229.85/senaite/portal_registry/@@configuration_registry>
    args: ()
    here: <plone.app.registry.registry.Registry object at 0x7ffaebe405d0 oid 0x1084 in <Connection at 7ffaf377a7d0>>
    user: <PropertiedUser ‘admin’>
    nothing: None
    translate: <function translate at 0x7ffadb7252d0>
    container: <plone.app.registry.registry.Registry object at 0x7ffaebe405d0 oid 0x1084 in <Connection at 7ffaf377a7d0>>
    root:
    modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7ffaf72b0190>
    options: {}
    traverse_subpath:
    default:
    loop: {}
    context: <plone.app.registry.registry.Registry object at 0x7ffaebe405d0 oid 0x1084 in <Connection at 7ffaf377a7d0>>
    view: <Products.Five.browser.metaconfigure.RecordsControlPanel object at 0x7ffadbd66e90>
    target_language: None
    macroname: u’master’
    attrs: {}

I’m not sure what other information I should provide, but would be greatly appreciative if somebody could point me in the right direction. Below is my buildout.cfg minus the comment lines if this helps.

[buildout]

extends =
base.cfg
https://dist.plone.org/release/5.2.9/versions.cfg

buildout-user = senaite
need-sudo = no

eggs =
Plone
senaite.lims
simplejson

zcml =

develop =

var-dir=${buildout:directory}/var

backups-dir=${buildout:var-dir}

user=admin:admin

deprecation-warnings = off
verbose-security = off

parts =
instance
repozo
backup
zopescripts
zopepy
unifiedinstaller

[instance]
<= instance_base
recipe = plone.recipe.zope2instance
http-address = 8080

[versions]
plone.recipe.unifiedinstaller = 5.2b1
buildout.sanitycheck = 1.0.2
collective.recipe.backup = 4.1.0
setuptools =
zc.buildout =
senaite.lims = 2.3.0

nt-svcutils = 2.13.0

Hi @iain,

this bug was already fixed here: Fix traceback when accessing registry by ramonski · Pull Request #2158 · senaite/senaite.core · GitHub and will be part of the next 2.4.0 release. For now I would recommend to use the latest versions of SENAITE instead for testing, e.g. one of the tags 2.x or edge

https://hub.docker.com/r/senaite/senaite/tags

Best regards,
Ramon

2 Likes

Thank you very much Ramonski! I switched over to using the docker version and installed the 2.x version and now have it working nicely.

2 Likes