Upgrade issue 30.0.2 -> 30.0.4 :- Message":"conflict with value type from database"

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • [Nextcloud Hub 9] (30.0.4)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.58
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • HAproxy
  • PHP version (e.g, 8.3):
    • PHP 8.3.6
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • after upgrade
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • Bare metal
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

After Upgrading 30.0.2 to 30.0.4 getting "Internal Server Error " on the screen.

Steps to replicate it (hint: details matter!):

  1. Run Upgrade

Log entries

==> nextcloud.log <==

{“reqId”:“MvtfG8jOOE6alziYT3wL”,“level”:2,“time”:“2025-01-11T03:45:06+00:00”,“remoteAddr”:“10.10.10.10”,“user”:“admin”,“app”:“assistant”,“method”:“GET”,“url”:“/apps/dashboard/”,“message”:“conflict with value type from database”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0”,“version”:“30.0.4.1”,“data”:{“app”:“assistant”,“key”:“text_to_image_picker_enabled”,“type”:“4”,“knownType”:“8”}}

{“reqId”:“MvtfG8jOOE6alziYT3wL”,“level”:3,“time”:“2025-01-11T03:45:06+00:00”,“remoteAddr”:“10.10.10.10”,“user”:“admin”,“app”:“index”,“method”:“GET”,“url”:“/apps/dashboard/”,“message”:“conflict with value type from database”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0”,“version”:“30.0.4.1”,“exception”:{“Exception”:“OCP\Exceptions\AppConfigTypeConflictException”,“Message”:“conflict with value type from database”,“Code”:0,“Trace”:[{“file”:“/var/www/html/nextcloud/lib/private/AppConfig.php”,“line”:321,“function”:“getTypedValue”,“class”:“OC\AppConfig”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/assistant/lib/Listener/Text2Image/Text2ImageReferenceListener.php”,“line”:36,“function”:“getValueString”,“class”:“OC\AppConfig”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php”,“line”:68,“function”:“handle”,“class”:“OCA\Assistant\Listener\Text2Image\Text2ImageReferenceListener”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:220,“function”:“__invoke”,“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:56,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:67,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:79,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/text/lib/Listeners/LoadEditorListener.php”,“line”:34,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php”,“line”:68,“function”:“handle”,“class”:“OCA\Text\Listeners\LoadEditorListener”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:220,“function”:“__invoke”,“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:56,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:67,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:79,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/deck/lib/AppInfo/Application.php”,“line”:87,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:220,“function”:“OCA\Deck\AppInfo\{closure}”,“class”:“OCA\Deck\AppInfo\Application”,“type”:“->”,“args”:[“*** sensitive parameters replaced ***”]},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:56,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:67,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:79,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/apps/assistant/lib/Listener/BeforeTemplateRenderedListener.php”,“line”:50,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php”,“line”:68,“function”:“handle”,“class”:“OCA\Assistant\Listener\BeforeTemplateRenderedListener”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:220,“function”:“__invoke”,“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:“->”},{“file”:“/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:56,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:67,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:79,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/Middleware/AdditionalScriptsMiddleware.php”,“line”:34,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php”,“line”:119,“function”:“afterController”,“class”:“OC\AppFramework\Middleware\AdditionalScriptsMiddleware”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:151,“function”:“afterController”,“class”:“OC\AppFramework\Middleware\MiddlewareDispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/AppFramework/App.php”,“line”:161,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”},{“file”:“/var/www/html/nextcloud/lib/private/Route/Router.php”,“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”},{“file”:“/var/www/html/nextcloud/lib/base.php”,“line”:1003,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”},{“file”:“/var/www/html/nextcloud/index.php”,“line”:24,“function”:“handleRequest”,“class”:“OC”,“type”:“::”}],“File”:“/var/www/html/nextcloud/lib/private/AppConfig.php”,“Line”:446,“message”:“conflict with value type from database”,“exception”:{},“CustomMessage”:“conflict with value type from database”}}

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).
Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • announcementcenter: 7.1.0
  • app_api: 4.0.3
  • approval: 2.1.0
  • assistant: 2.2.0
  • auto_groups: 1.6.0
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.8
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 6.1.3
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • deck: 1.14.2
  • drawio: 3.0.3
  • event_update_notification: 2.5.0
  • external: 5.5.2
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_accesscontrol: 1.20.1
  • files_automatedtagging: 1.20.0
  • files_confidential: 3.0.3
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_reminders: 1.3.0
  • files_retention: 1.19.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • fileslibreofficeedit: 2.0.1
  • firstrunwizard: 3.0.0
  • forms: 4.3.4
  • groupfolders: 18.0.8
  • impersonate: 1.17.1
  • integration_openai: 3.3.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 4.1.1
  • memories: 7.4.1
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • passwords: 2024.12.21
  • photos: 3.0.2
  • polls: 7.2.9
  • previewgenerator: 5.7.0
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • quicknotes: 0.8.23
  • recognize: 8.2.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • richdocuments: 8.5.3
  • richdocumentscode: 24.4.1103
  • secrets: 2.1.2
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • side_menu: 4.0.1
  • spreed: 20.1.1
  • support: 2.0.0
  • suspicious_login: 8.0.0
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • terms_of_service: 4.1.0
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • whiteboard: 1.0.4
  • workflowengine: 2.12.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Disabled the “Nextcloud Assistant” App , Which resolved the issue. Will wait for the updated version of the app and retry.

If you’re able/willing, it would be helpful to report the possible bug here.

It looks related to the switch to IAppConfig, which just appeared in the Assistant app for the first time in v2.2.0 released just a a couple days ago.

sure will do…

1 Like

Response received on GitHub on the bug raised.

"An immediate solution is to delete the value in the appconfig table:"

DELETE FROM oc_appconfig WHERE appid="assistant" AND configkey="text_to_image_picker_enabled";
DELETE FROM oc_appconfig WHERE appid="assistant" AND configkey="free_prompt_picker_enabled";
DELETE FROM oc_appconfig WHERE appid="assistant" AND configkey="speech_to_text_picker_enabled";

and Enable the “Nextcloud Assistant” app