#help

Resolving Empty Settings Panel Issue in Docker

TLDR devin.cl experienced an issue with a blank settings panel after upgrading their Docker self-hosted platform. With the help of sojan_official, it was determined that the CE images did not contain a feature management section, but specific features could be enabled using a migration code from the rails console.

Powered by Struct AI

1

12
13mo
Solved
Join the chat
Nov 07, 2022 (13 months ago)
devin.cl
Photo of md5-42e7e6a0cadd4dfd9c97e76e9b722264
devin.cl
06:27 PM
(I've searched Discord and Github and haven't found an answer to this) My settings panel is empty, all I see is "Account Settings," I do not see Inbox Settings, etc. I am self-hosted on Docker, and I recently upgraded to the latest release (I ran db::migrate). My guess is my user's permissions are incorrect, how can I fix this? In the db my account_users.role = 1, and the API returns role = administrator. Thanks!
Nov 08, 2022 (13 months ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
07:13 AM
could you try logging into the super admin pannel and see which features are enabled for your account ?
devin.cl
Photo of md5-42e7e6a0cadd4dfd9c97e76e9b722264
devin.cl
05:39 PM
Hmm interesting, thanks for the suggestion. I am now thinking that my recent upgrade didn't run all the DB migrations. I do not have a super_admin table. How can I ensure my schema is up-to-date?
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
10:37 PM
devin.cl in the recent versions you won't have super admin table. super admin is an attribute of user accounts.

if you want to convert and existing admin user to super admin do the following from console.


user = User.find_by(email: 'email')
user.update(type: 'SuperAdmin')
Nov 09, 2022 (13 months ago)
devin.cl
Photo of md5-42e7e6a0cadd4dfd9c97e76e9b722264
devin.cl
09:05 PM
Thanks. I am now able to log into the admin panel. I don't see anything that looks quite like a "list of features for my account." The closest thing is the installation configs:

31    CSML_BOT_API_KEY
30    CSML_BOT_HOST
29    ENABLE_MESSENGER_CHANNEL_HUMAN_AGENT    false
27    ENABLE_ACCOUNT_SIGNUP    false
24    DISABLE_USER_PROFILE_UPDATE    false
23    LOGOUT_REDIRECT_LINK    /app/login
22    HCAPTCHA_SERVER_KEY
21    HCAPTCHA_SITE_KEY
20    DIRECT_UPLOADS_ENABLED    false
15    CHATWOOT_INBOX_HMAC_KEY
14    CHATWOOT_INBOX_TOKEN
13    INSTALLATION_EVENTS_WEBHOOK_URL
12    CREATE_NEW_ACCOUNT_FROM_DASHBOARD    false
11    MAILER_SUPPORT_EMAIL
10    MAILER_INBOUND_EMAIL_DOMAIN

This might be unrelated, but I noticed when trying to view /super_admin/access_tokens/1, I get this rendering error:

ActionView::Template::Error (uninitialized constant SuperAdminDashboard)
09:10
devin.cl
09:10 PM
I should add that access_token #2 does load correctly. It is owned by a User who no longer has permissions to any Account.
Nov 10, 2022 (13 months ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
12:39 AM
you should be able to see this screens.
- could you mention the Chatwoot version which you are using
Image 1 for you should be able to see this screens.  
- could you mention the Chatwoot version which you are usingImage 2 for you should be able to see this screens.  
- could you mention the Chatwoot version which you are using
devin.cl
Photo of md5-42e7e6a0cadd4dfd9c97e76e9b722264
devin.cl
05:08 PM
Thanks for the help. I do not see a list of features there. Here's a screenshot. As you can see, v2.10.0
Image 1 for Thanks for the help. I do not see a list of features there. Here's a screenshot. As you can see, v2.10.0
Nov 16, 2022 (13 months ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
03:44 PM
devin.cl are you using the CE edition docker images ?
Nov 17, 2022 (13 months ago)
devin.cl
Photo of md5-42e7e6a0cadd4dfd9c97e76e9b722264
devin.cl
12:16 AM
Thanks for checking in. Yes: image: chatwoot/chatwoot:latest-ce
Nov 18, 2022 (13 months ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
10:09 AM
devin.cl the feature management section is not available in ce images. But you should be able to run a migration from rails console to enable specific features to an account.

for accessing rails console .. refer : https://www.chatwoot.com/docs/self-hosted/deployment/docker/#running-rails-console


Account.find_in_batches do |account_batch|
      account_batch.each do |account|
        account.enable_features(
          'agent_management',
          'automations',
          'canned_responses',
          'custom_attributes',
          'inbox_management',
          'integrations',
          'labels',
          'team_management',
          'voice_recorder'
        )
        account.save!
      end
devin.cl
Photo of md5-42e7e6a0cadd4dfd9c97e76e9b722264
devin.cl
05:09 PM
Ah, I see. I originally ran the non-CE image, so that's why I remember seeing it. Thanks