Installation failed on NC25.0.2
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- either use the web AppStore or the occ to install spreed/Talk
sudo -u www-data NC_loglevel=0 php /var/www/nextcloud/occ app:install spreed
Expected behaviour
The app should be installed without any problems.
Actual behaviour
Error: Database error when running migration 2001Date20171031102049 for app spreed
Column "oc_talk_participants"."inCall" is type Bool and also NotNull, so it can not store "false".
Talk app
Talk app version: 15.0.2
Server configuration
Operating system: Debian
Web server: Apache2.4.54
Database: Maria 15.1
PHP version: 8.1.13
Nextcloud Version: 25.0.1
List of activated apps:
Enabled:
- activity: 2.17.0
- bruteforcesettings: 2.5.0
- calendar: 4.1.0
- cloud_federation_api: 1.8.0
- comments: 1.15.0
- contacts: 5.0.2
- contactsinteraction: 1.6.0
- dashboard: 7.5.0
- dav: 1.24.0
- federatedfilesharing: 1.15.0
- federation: 1.15.0
- files: 1.20.1
- files_pdfviewer: 2.6.0
- files_rightclick: 1.4.0
- files_sharing: 1.17.0
- files_trashbin: 1.15.0
- files_versions: 1.18.0
- firstrunwizard: 2.14.0
- logreader: 2.10.0
- lookup_server_connector: 1.13.0
- nextcloud_announcements: 1.14.0
- notes: 4.6.0
- oauth2: 1.13.0
- password_policy: 1.15.0
- photos: 2.0.0
- privacy: 1.9.0
- provisioning_api: 1.15.0
- recommendations: 1.4.0
- serverinfo: 1.15.0
- settings: 1.7.0
- sharebymail: 1.15.0
- support: 1.8.0
- survey_client: 1.13.0
- systemtags: 1.15.0
- text: 3.6.0
- theming: 2.0.1
- twofactor_backupcodes: 1.14.0
- twofactor_totp: 7.0.0
- updatenotification: 1.15.0
- user_status: 1.5.0
- viewer: 1.9.0
- weather_status: 1.5.0
- workflowengine: 2.7.0
Disabled:
- admin_audit
- circles: 0.21.4
- encryption
- files_external
- files_markdown: 2.3.6
- mail: 1.12.0
- notifications: 2.9.0
- related_resources: 1.0.3
- riotchat: 0.13.11
- suspicious_login
- user_ldap
Nextcloud configuration:
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.45.19",
"localhost",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"tempdirectory": "\/USBnextcloud\/nextcloud\/data\/tmp",
"dbtype": "mysql",
"version": "25.0.1.1",
"overwrite.cli.url": "http:\/\/192.168.45.56\/nextcloud",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"theme": "",
"loglevel": "0",
"logfile": "\/USBnextcloud\/nextcloud\/data\/nextcloud.log",
"maintenance": false,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtsecure": "tls",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"session_lifetime": 600,
"remember_login_cookie_lifetime": 3600,
"default_phone_region": "DE",
"mail_smtpport": "587",
"twofactor_enforced": "false",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [],
"app_install_overwrite": [
"nextbackup"
],
"updater.release.channel": "stable",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcace\\Redis",
"filelocking.enabled": "true",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 5
}
}
}
Server log (data/nextcloud.log)
{"reqId":"MpJ8vgRCy3dnu9e2gF62","level":3,"time":"2022-12-18T12:45:50+00:00","remoteAddr":"91.35.24.111","user":"pi","app":"settings","method":"POST","url":"/index.php/settings/apps/enable","message":"could not enable apps","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0","version":"25.0.1.1","exception":
{"Exception":"Exception","Message":"Database error when running migration 2001Date20171031102049 for app spreed\nColumn \"oc_talk_participants\".\"inCall\" is type Bool and also NotNull, so it can not store \"false\".","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Installer.php","line":153,"function":"migrate","class":"OC\\DB\\MigrationService","type":"->"},
{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":451,"function":"installApp","class":"OC\\Installer","type":"->"},
{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"enableApps","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},
{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},
{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/MigrationService.php","Line":420,"Previous":{"Exception":"InvalidArgumentException","Message":"Column \"oc_talk_participants\".\"inCall\" is type Bool and also NotNull, so it can not store \"false\".","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/DB/MigrationService.php","line":529,"function":"ensureOracleConstraints","class":"OC\\DB\\MigrationService","type":"->"},
{"file":"/var/www/nextcloud/lib/private/DB/MigrationService.php","line":416,"function":"executeStep","class":"OC\\DB\\MigrationService","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Installer.php","line":153,"function":"migrate","class":"OC\\DB\\MigrationService","type":"->"},
{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":451,"function":"installApp","class":"OC\\Installer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"enableApps","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},
{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\\Route\\Router","type":"->"},
{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/MigrationService.php","Line":592},"message":"could not enable apps","exception":{},"CustomMessage":"could not enable apps"}}
Trying to enable the app via web page gives me the following error
Database error when running migration 2001Date20171031102049 for app spreed Column "oc_talk_participants"."inCall" is type Bool and also NotNull, so it can not store "false".
Looks like you had a very old version of talk installed in the past?
I would recomment to remove any values for the appid spreed in the oc_appconfig database table and oc_migrations database table and then retry enabling the app
Thanks, this probably right. It was a long time ago...
You are suggesting deleting every entry in the tables where appid is equal to spreed:
DELETE FROM oc_appconfig WHERE appid='spreed';
Am I right?
yes
DELETE FROM oc_appconfig WHERE appid='spreed';
DELETE FROM oc_migrations WHERE app='spreed';
Thanks for your help.
It's working now.