Closed juergen852 closed 1 year ago
I am facing the same issue
From which prior polls version did you update?
Please try to run occ polls:db:rebuild
and tell me if this helped.
I updated from 5.0.5. Rebuilding the database did not change the bevaior. I cannot create a new poll as well.
Yeah. I misinterpreted the error message. It says, there is a column last_interaction
in oc_polls_polls
, but it is unknown to the entity definition.
But it is there: https://github.com/nextcloud/polls/blob/aa7cba6a9c4ea6b2df97abcb342ce800850829d5/lib/Db/Poll.php#L76-L77
Have you tried to flush the object cache or restart the server?
I just updated a couple of productive systems without issues.
Rebooting solved the problem.
occ polls:db:rebuild did not help I did not know, how to flush object cache correctly, therefore I rebooted.
I don't know why, but there seems to be a serious problem with some caches, which cache the PHP objects. If the objects get changed, still the old version seems to be loaded. At least my experiences are, that the update ran without problems (triggered both via occ and via app store). We had a similair probmems with the update routine.
Possibly related
And finally: https://github.com/nextcloud/server/issues/38158
@ChristophWurst Can you tell, if this is a similar problem or a configuration issue.
Maybe, I did something wrong, but I have no idea what it could be. In the end a missing attribute is detected, but the updated code shows the attribute correctly.
Yes, flushing the cache worked, thanks
But not satisfying anyways
If this happens in a request after the upgrade it's very strange.
It sounds like the opcache is too aggressive and doesn't refresh after code changes.
We had the same Cache Problem with the Passman App yesterday. After Update, it did not work any more. https://github.com/nextcloud/passman/issues/787#issuecomment-1607019046
Maybe some general Nextcloud Issue and not App-Specific.
It sounds like the opcache is too aggressive and doesn't refresh after code changes.
Unfortunateley I have no experience with opcache and so have no idea, how to prevent that. Is it to be expected, that the cache gets refreshed automatically or should there be some instruction to flush the cache while updating?
But as far as I understood, this resets the complete memory cache. Not sure, if this could have negative consequences for the performance or not.
@juergen852 For curiosity, could you check your opcache settigns against the recommendations here: https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html
@dartcafe We have nothing with opcache.xxxx in our /var/www/nextcloud/config/config.php Where sould I look for opcache?
In /var/www/nextcloud/config/config.php we have: 'memcache.local' => '\OC\Memcache\APCu', 'memcache.locking' => '\OC\Memcache\Redis', as we run only on 1 VM.
root@cloud:~# ps ax | grep memcached 1410 ? Ssl 0:01 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1 45530 pts/0 S+ 0:00 grep --color=auto memcached
I think opcache is configured on php level, so you should check your php.ini
Unfortunateley I have no experience with opcache and so have no idea, how to prevent that. Is it to be expected, that the cache gets refreshed automatically or should there be some instruction to flush the cache while updating?
It depends on the settings. In extreme cases a web server restart is necessary. Hence the instruction to restart after an update: https://docs.nextcloud.com/server/stable/admin_manual/maintenance/manual_upgrade.html (item 13).
But as far as I understood, this resets the complete memory cache. Not sure, if this could have negative consequences for the performance or not.
Opcache != memory cace. Opcache caches PHP code (operations), not the data.
https://docs.nextcloud.com/server/stable/admin_manual/installation/server_tuning.html#enable-php-opcache for the opcache recommendations
But as far as I understood, this resets the complete memory cache. Not sure, if this could have negative consequences for the performance or not.
Opcache != memory cace. Opcache caches PHP code (operations), not the data.
I meant the memory cached objects. But again: I have no experience with it, so 🙊. 😄
i'll close this issue, but keep it pinned for a while.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
⚠️ This issue respects the following points: ⚠️
What went wrong, what did you observe?
After installation, the App is unusable.
What did you expect, how polls should behave instead?
Work as before.
What steps does it need to replay this bug?
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)
Affected polls version
5.1.0
Which browser did you use, when experiencing the bug?
Other browser
No response
Which System did you use, when experiencing the bug?
Other OS
No response
Add your browser log here
No response
Additional client environment information
Ubuntu 22.04 Linux 5.15.0-75-generic x86_64 Nextcloud Hub 4 (26.0.3)
DB: Art: mysql Version: 10.8.8 Größe: 686,3 MB
PHP: Version: 8.1.13 Speicherlimit: 1 GB Maximale Ausführungszeit: 3600 Maximale Größe zum Hochladen: 10 GB Erweiterungen: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
NC version
Nextcloud 26 (Nextcloud Hub 4)
Other Nextcloud version
26.0.3
PHP engine version
PHP 8.1
Other PHP version
8.1.13
Database engine
MySQL
Database Engine version or other Database
No response
Which user-backends are you using?
Add your nextcloud server log here
Additional environment informations
No response
Configuration report
List of activated Apps
Nextcloud Signing status
Additional Information
No response