Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Greenlight
  3. After updating to package v1.10.0 (greenlight v3.8.0) the app frontend crashes

After updating to package v1.10.0 (greenlight v3.8.0) the app frontend crashes

Scheduled Pinned Locked Moved Greenlight
1 Posts 1 Posters 17 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dev-cbD Online
    dev-cbD Online
    dev-cb
    wrote last edited by
    #1

    Root cause was a missing database entry for the new setting AccessibilityStatement. The frontend now always requests it:

    /api/v1/site_settings.json?names[]=Terms&names[]=PrivacyPolicy&names[]=AccessibilityStatement
    

    On existing installations, this setting may not exist (the data migration isn’t applied automatically), which causes the endpoint to return:

    null
    

    This leads to a frontend crash with error Cannot read properties of null (reading 'data').

    Workaround (Confirmed)

    Manually create the missing records:

    1. Insert into settings
    INSERT INTO settings (id, name, created_at, updated_at) VALUES (gen_random_uuid(), 'AccessibilityStatement', NOW(), NOW());
    
    1. Insert corresponding rows into site_settings for all providers
    INSERT INTO site_settings (id, setting_id, value, provider, created_at, updated_at)
    SELECT
      gen_random_uuid(),
      s.id,
      '',
      p.provider,
      NOW(),
      NOW()
    FROM
      (SELECT DISTINCT provider FROM site_settings) p
    CROSS JOIN
      (SELECT id FROM settings WHERE name = 'AccessibilityStatement') s
    WHERE NOT EXISTS (
      SELECT 1
      FROM site_settings ss
      WHERE ss.setting_id = s.id
        AND ss.provider = p.provider
    );
    

    After this, the endpoint returns valid data and the application works correctly.


    Details and full context here:
    https://github.com/bigbluebutton/greenlight/issues/6259

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search