diff --git a/lib/base.php b/lib/base.php
index 5871ecba839a91459b6a4df38fd28ac628a33b5c..963fb4c5585b48879466b98c51eb36900ea210bc 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -696,6 +696,8 @@ class OC {
 		if (!self::$CLI and (!isset($_GET["logout"]) or ($_GET["logout"] !== 'true'))) {
 			try {
 				if (!OC_Config::getValue('maintenance', false) && !self::needUpgrade()) {
+					OC_App::loadApps(array('authentication'));
+					OC_App::loadApps(array('filesystem', 'logging'));
 					OC_App::loadApps();
 				}
 				self::checkSingleUserMode();