NC version 29.0.1
PHP version 8.2.19
Postgres version 13.14
Linux 5.10.0-29-amd64 x86_64
Apache version unknown, but I think it’s up to date
My NC has been fallen in maintainance mode immediately after updating the apps Polls and Bookmarks to the most recent version. And now it is remaining in maintainance mode for already more than 15 minutes.
How can I exit the maintainance mode via web interface?
Or can I exit it only by this command in CLI?
sudo -u www-data php occ maintenance:mode --off
Soko
June 12, 2024, 7:10am
2
You also can edit config.php wich you can find under /var/www/nextcloud or an simular path.
change
'maintenance' => true,
to
'maintenance' => false,
I don’t know a possibility to change it via webinterface
1 Like
This is a polls issue and it was fixed according to the maintainer.
opened 07:20PM - 10 Jun 24 UTC
Announcement
### Announcement
# Releasenotes 7.1.1
## [7.1.1] - 2024-06-09
### Fix
- Fix… opening and closing of sidebar after changed component
- try avoiding update error by removing class registering
## Change
- Support Nextcloud 27
# Downloads
Overview and changelog: https://github.com/nextcloud/polls/releases/tag/7.1.1
Download ZIP: https://github.com/nextcloud/polls/releases/download/7.1.1/polls-7.1.1.zip
Download TAR.GZ: https://github.com/nextcloud/polls/releases/download/7.1.1/polls-7.1.1.tar.gz
But actually it is not.
opened 01:58PM - 10 Jun 24 UTC
closed 06:40PM - 10 Jun 24 UTC
bug
### Announcement
Something is wrong with the NC updater I suspect, so this er… ror leaves the system in maintenance mode.
### You may find a log entry which says:
```
TypeError: OCA\Polls\Db\UserMapper::__construct():
Argument #2 ($userManager) must be of type OCP\IUserManager, OC\Session\Memory given,
called in lib/AppInfo/Application.php on line 158 and defined in lib/Db/UserMapper.php:60
```
Solution: run `occ upgrade` and disable the maintanance mode with `occ maintenance:moe --off`
See #3547 and #3526
2 Likes
in addition to this, polls shows a SQL “DoesNotExistExeception” polluting the log
Did expect one result but found none when executing: query
SELECT * FROM `*PREFIX*polls_polls`
WHERE (`id` = :dcValue1) AND (`deleted` = '0')
in /lib/public/AppFramework/Db/QBMapper.php in line 361
function “findOneQuery”
Sometimes I really ask my self what QC is doing?
No open issue on Microsoft GitHub so far,
maybe somebody will pass this because I do not have and never will have a Microsoft Account.
wwe
June 19, 2024, 9:11am
5
I hit the issue today when upgrading a docker installation from 28.0.6 to 29.0.2. error in the log.
Posting the log for reference.
app-1 | Update app polls from App Store
app-1 | An unhandled exception has been thrown:
app-1 | TypeError: OCA\Polls\Db\UserMapper::__construct(): Argument #2 ($userManager) must be of type OCP\IUserManager, OC\Session\Memory given, called in /var/www/html/custom_apps/polls/lib/AppInfo/Application.php on line 158 and defined in /var/www/html/custom_apps/polls/lib/Db/UserMapper.php:43
app-1 | Stack trace:
app-1 | #0 /var/www/html/custom_apps/polls/lib/AppInfo/Application.php(158): OCA\Polls\Db\UserMapper->__construct(Object(OC\DB\ConnectionAdapter), Object(OC\Session\Memory), Object(OC\User\Session), Object(OC\User\Manager), Object(OC\AppFramework\ScopedPsrLogger))
app-1 | #1 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(175): OCA\Polls\AppInfo\Application->OCA\Polls\AppInfo\{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
app-1 | #2 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
app-1 | #3 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(142): Pimple\Container->offsetGet('OCA\\Polls\\Db\\Us...')
app-1 | #4 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(464): OC\AppFramework\Utility\SimpleContainer->query('OCA\\Polls\\Db\\Us...')
app-1 | #5 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(442): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\Polls\\Db\\Us...')
app-1 | #6 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(64): OC\AppFramework\DependencyInjection\DIContainer->query('OCA\\Polls\\Db\\Us...')
app-1 | #7 /var/www/html/custom_apps/polls/lib/AppInfo/Application.php(198): OC\AppFramework\Utility\SimpleContainer->get('OCA\\Polls\\Db\\Us...')
app-1 | #8 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(175): OCA\Polls\AppInfo\Application->OCA\Polls\AppInfo\{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
app-1 | #9 /var/www/html/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(Pimple\Container))
app-1 | #10 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(142): Pimple\Container->offsetGet('OCA\\Polls\\Db\\Op...')
app-1 | #11 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(464): OC\AppFramework\Utility\SimpleContainer->query('OCA\\Polls\\Db\\Op...')
app-1 | #12 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(442): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\Polls\\Db\\Op...')
app-1 | #13 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(96): OC\AppFramework\DependencyInjection\DIContainer->query('OCA\\Polls\\Db\\Op...', true)
app-1 | #14 [internal function]: OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(ReflectionParameter))
app-1 | #15 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(83): array_map(Object(Closure), Array)
app-1 | #16 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(128): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
app-1 | #17 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(146): OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\Polls\\Db\\Ta...')
app-1 | #18 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(470): OC\AppFramework\Utility\SimpleContainer->query('OCA\\Polls\\Db\\Ta...')
app-1 | #19 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(442): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\Polls\\Db\\Ta...')
app-1 | #20 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(96): OC\AppFramework\DependencyInjection\DIContainer->query('OCA\\Polls\\Db\\Ta...', true)
app-1 | #21 [internal function]: OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(ReflectionParameter))
app-1 | #22 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(83): array_map(Object(Closure), Array)
app-1 | #23 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(128): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
app-1 | #24 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(146): OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\Polls\\Migra...')
app-1 | #25 /var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php(470): OC\AppFramework\Utility\SimpleContainer->query('OCA\\Polls\\Migra...')
app-1 | #26 /var/www/html/lib/private/ServerContainer.php(155): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\Polls\\Migra...')
app-1 | #27 /var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php(64): OC\ServerContainer->query('OCA\\Polls\\Migra...')
app-1 | #28 /var/www/html/lib/private/Repair.php(141): OC\AppFramework\Utility\SimpleContainer->get('OCA\\Polls\\Migra...')
app-1 | #29 /var/www/html/lib/private/legacy/OC_App.php(831): OC\Repair->addStep('OCA\\Polls\\Migra...')
app-1 | #30 /var/www/html/lib/private/legacy/OC_App.php(774): OC_App::executeRepairSteps('polls', Array)
app-1 | #31 /var/www/html/lib/private/Installer.php(184): OC_App::updateApp('polls')
app-1 | #32 /var/www/html/lib/private/Updater.php(413): OC\Installer->updateAppstoreApp('polls')
app-1 | #33 /var/www/html/lib/private/Updater.php(271): OC\Updater->upgradeAppStoreApps(Array)
app-1 | #34 /var/www/html/lib/private/Updater.php(129): OC\Updater->doUpgrade('29.0.2.2', '28.0.6.1')
app-1 | #35 /var/www/html/core/Command/Upgrade.php(216): OC\Updater->upgrade()
app-1 | #36 /var/www/html/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
app-1 | #37 /var/www/html/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
app-1 | #38 /var/www/html/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
app-1 | #39 /var/www/html/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
app-1 | #40 /var/www/html/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
app-1 | #41 /var/www/html/console.php(102): OC\Console\Application->run()
app-1 | #42 /var/www/html/occ(11): require_once('/var/www/html/c...')
app-1 | #43 {main} 4/4 [============================] 100%Configuring Redis as session handler
fixed by running occ upgrade
and disable the maintanance mode with occ maintenance:mode --off
as described in Maintenance mode after update to Polls 7.1.0 · Issue #3551 · nextcloud/polls · GitHub
system
Closed
June 27, 2024, 9:11am
6
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.