Maintenance Mode after upgrade does not go away

Expected behaviour
Maintenance Mode should disappear after upgrade

Actual behaviour
Maintenance Mode does not disappear after upgrade

Server configuration
Operating system: Ubuntu 16.04
Web server: apache 2
PHP version:7
ownCloud version:
Updated from an older ownCloud or fresh install:

Integrity status for oC9+

Installed: true
versionstring: 9.1.0

What I have done:

sudo -u www-data php occ maintenance:mode --off
checked config.php to "false"
sudo -u www-data php occ maintenance:repair

Nothing works, still maintenance mode

Does the value in the config.php change back to true? What do you mean with nothing works, web-page still show maintenance mode, logfiles don't provide more details?

If you set it to false - and it still goes to maintenance, i would put my money on a stuck app upgrade.

Did you run upgrade via occ in the console, to make sure it finished the run?

I did the upgrade exact like this manual. There is nothing in the logfile. As I posted already above, the upgrade status is ok, I did run upgrade via occ, the page still shows me maintenance mode!

Have you restarted your webserver / php-fpm?

I did run:

sudo apt autoremove

for some reason it runs fine now, thank your for your help!

That probably did: