Cannot enable Talk on Nextcloud 13 Beta 3
Steps to reproduce
- Update to or install Nextcloud 13
- Download and enable the Talk app
- SQL error is thrown
Expected behaviour
App should be enabled.
Actual behaviour
Error is thrown:
An exception occurred while executing 'UPDATE "oc_spreedme_room_participants" SET "participantType" = ? WHERE "roomId" IN (NULL)' with params [1]: SQLSTATE[42703]: Undefined column: 7 ERROR: column "roomId" does not exist LINE 1: ...om_participants" SET "participantType" = $1 WHERE "roomId" I... ^ HINT: Perhaps you meant to reference the column "oc_spreedme_room_participants.roomid".
Browser
Microphone available: n/a
Camera available: n/a
Operating system: n/a
Browser name: n/a
Browser version: n/a
Browser log
n/a
Spreed app
Spreed app version: 2.9.0
Custom TURN server configured: n/a
Custom STUN server configured: n/a
Server configuration
Operating system: Ubuntu (Linux 4.13.0-16-lowlatency #19-Ubuntu SMP PREEMPT Wed Oct 11 19:51:52 UTC 2017 x86_64)
Web server: Apache (apache2handler)
Database: pgsql PostgreSQL 9.6.6 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0, 64-bit
PHP version: 7.1.11-0ubuntu0.17.10.1 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gnupg, iconv, igbinary, imagick, imap, intl, json, exif, mcrypt, msgpack, mysqli, pdo_mysql, pdo_pgsql, pgsql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, memcached, Zend OPcache
Nextcloud Version: 13.0.0 Beta 3 - 13.0.0.8
List of activated apps:
Server log (data/nextcloud.log)
| Error | core | An exception occurred while executing 'UPDATE "oc_spreedme_room_participants" SET "participantType" = ? WHERE "roomId" IN (NULL)' with params [1]: SQLSTATE[42703]: Undefined column: 7 ERROR: column "roomId" does not exist LINE 1: ...om_participants" SET "participantType" = $1 WHERE "roomId" I... ^ HINT: Perhaps you meant to reference the column "oc_spreedme_room_participants.roomid". |
|---|
</details>
Exact same behaviour here, with previously installed and active app, on postgresql too :
An exception occurred while executing 'UPDATE "oc_spreedme_room_participants" SET "participantType" = ? WHERE "roomId" IN (NULL)' with params [1]: SQLSTATE[42703]: Undefined column: 7 ERROR: column "roomId" does not exist LINE 1: ...om_participants" SET "participantType" = $1 WHERE "roomId" I... ^
I had the same problem as you but after renaming entries in Nextcloud DB in PostgreSQL ex. "roomid" to "roomId" there is a new error message. There were a few more entries with lowercase only but it seems to require the exact name with uppercase characters.
Now I get this:
An exception occurred while executing 'INSERT INTO "oc_talk_rooms" ("name", "token", "type", "password") VALUES(?, ?, ?, ?)' with params ["", "kvw7", 3, ""]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "tr_room_token" DETAIL: Key (token)=(kvw7) already exists.
My DB was migrated from MariaDB to PostgreSQL in Nextcloud 12 before the upgrade to Nextcloud 13.
I can confirm that renaming the columns fixes the issue. Since I never used Talk before and the installation creates some/all of these columns I still assume this is a bug?!
I still assume this is a bug?!
Yes, it is ;-) Thanks for the information!
I can confirm trying to enable current master branch of Nextcloud Talk on current master branch of Nextcloud server with PostgreSQL; SQLite and MySQL do not seem affected.
@nickvergessen Any idea?
I found a completely opposite but maybe related issue in DBAL: https://github.com/doctrine/dbal/issues/2710. What I take away from that is that perhaps only fully lowercase object names should be used for maximum compatibility.
The actual issue is, that the oc_spreedme_* tables are not used anymore.
So it would be nice, if you can post the stack-traces of the errors. So we know in which files we have to look for the mistakes.
Also WHERE "roomId" IN (NULL) looks very suspicious because it makes no sense to run this query at all ;)
Okay, I found the 2 queries and fixed them in https://github.com/nextcloud/spreed/pull/537