Owncloud 9.1 --> 10:Waiting for activation of the extension object owncloud:

Ok that’s good. You should have written this. Maybe this thread helps you:

Hi,

this thread talks about deactivating an ldap scheme. How do i do that?

Kind Regards,

Tobias Lorentz

I think i solved it on my own by deleting the owncloud schema in ucs.

Now i was able to install it, but when i open it, i get the following error:

Exception occurred while logging exception: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1049] Unknown database 'owncloud'
#0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/owncloud/lib/private/DB/Connection.php(146): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/owncloud/lib/private/DB/ConnectionFactory.php(140): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/owncloud/lib/private/Server.php(472): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#9 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('DatabaseConnect...')
#10 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#11 /var/www/owncloud/lib/private/Server.php(1121): OC\ServerContainer->query('DatabaseConnect...')
#12 /var/www/owncloud/lib/private/Server.php(233): OC\Server->getDatabaseConnection()
#13 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#14 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AccountMapper')
#15 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('AccountMapper')
#16 /var/www/owncloud/lib/private/Server.php(973): OC\ServerContainer->query('AccountMapper')
#17 /var/www/owncloud/lib/private/Server.php(238): OC\Server->getAccountMapper()
#18 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#19 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('UserManager')
#20 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('UserManager')
#21 /var/www/owncloud/lib/private/Server.php(966): OC\ServerContainer->query('UserManager')
#22 /var/www/owncloud/lib/private/Server.php(278): OC\Server->getUserManager()
#23 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#24 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('UserSession')
#25 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('UserSession')
#26 /var/www/owncloud/lib/private/Server.php(990): OC\ServerContainer->query('UserSession')
#27 /var/www/owncloud/lib/private/Server.php(518): OC\Server->getUserSession()
#28 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#29 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AppManager')
#30 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#31 /var/www/owncloud/lib/private/Server.php(1311): OC\ServerContainer->query('AppManager')
#32 /var/www/owncloud/lib/private/legacy/app.php(313): OC\Server->getAppManager()
#33 /var/www/owncloud/lib/private/legacy/app.php(107): OC_App::getEnabledApps()
#34 /var/www/owncloud/lib/base.php(579): OC_App::loadApps(Array)
#35 /var/www/owncloud/lib/base.php(1013): OC::init()
#36 /var/www/owncloud/index.php(54): require_once('/var/www/ownclo...')
#37 {main}

Hi,

which way did you remove and install the apps?

Command Line or Web UI?

Hi,

in uninstalled the old one via Web UI and installed the new one via command line.

Kind Regards,

Tobi

Why not both with the Web UI?

I think that you maybe skipped the update of the installation scripts by doing just the “univention-app install owncloud” commmand.

I don’t know if it would help, but try removing owncloud, and running the univention-app update, and then the install command again and see if the error still occurs.

It’s strange, because you have en error that the appliance (or the owncloud app to be exact) can’t be registered in the schema, but in the scripts of the 10.0.3 there is already a fix for exactly that kind of error. So it should not occur.

Anyway, try the update and tell me if it helps, if not we have to figure something out

Hi,

you asked why i tried to install it via command line: because it failed via webui first and i wanted to get more details. Once i get a hint, i tried it again via command line.

Thank you very much for your hint. It seems to have helped a bit. Now the login page comes up, but when i try to log in i get an internal server error. I checked the docker logs:

ntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
{"reqId":"RDYTFcxbeuVP3m0rF2yl","level":3,"time":"2017-11-13T19:47:35+01:00","remoteAddr":"172.17.42.1","user":"tobias","app":"index","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotPermittedException\",\"Message\":\"No create permission for folder \\\/avatars\\\/2b\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(99): OC\\\\Files\\\\Node\\\\Folder->newFolder('2b')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(120): OC\\\\AvatarManager->getFolder(Object(OC\\\\Files\\\\Node\\\\Folder), '2b')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(91): OC\\\\AvatarManager->getAvatarFolder(Object(OC\\\\User\\\\User))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/TemplateLayout.php(101): OC\\\\AvatarManager->getAvatar('tobias')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/template.php(232): OC\\\\TemplateLayout->__construct('user', 'files')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/AppFramework\\\/Http\\\/TemplateResponse.php(156): OC_Template->fetchPage()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(112): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(98): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#9 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(307): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(928): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#12 \\\/var\\\/www\\\/owncloud\\\/index.php(56): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php\",\"Line\":162}"}
172.17.42.1 - - [13/Nov/2017:19:47:34 +0100] "GET /owncloud/index.php/apps/files/ HTTP/1.1" 500 17395 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
::1 - - [13/Nov/2017:19:47:40 +0100] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)"
::1 - - [13/Nov/2017:19:47:41 +0100] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)"
{"reqId":"KOVjXg86SoWxt56uEJvT","level":3,"time":"2017-11-13T19:47:41+01:00","remoteAddr":"172.17.42.1","user":"tobias","app":"index","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotPermittedException\",\"Message\":\"No create permission for folder \\\/avatars\\\/2b\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(99): OC\\\\Files\\\\Node\\\\Folder->newFolder('2b')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(120): OC\\\\AvatarManager->getFolder(Object(OC\\\\Files\\\\Node\\\\Folder), '2b')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(91): OC\\\\AvatarManager->getAvatarFolder(Object(OC\\\\User\\\\User))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/TemplateLayout.php(101): OC\\\\AvatarManager->getAvatar('tobias')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/template.php(232): OC\\\\TemplateLayout->__construct('user', 'files')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/AppFramework\\\/Http\\\/TemplateResponse.php(156): OC_Template->fetchPage()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(112): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(98): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#9 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(307): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(928): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#12 \\\/var\\\/www\\\/owncloud\\\/index.php(56): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php\",\"Line\":162}"}
172.17.42.1 - - [13/Nov/2017:19:47:41 +0100] "GET /owncloud/index.php/apps/files/ HTTP/1.1" 500 19803 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
172.17.42.1 - - [13/Nov/2017:19:47:42 +0100] "GET /owncloud/index.php/apps/files/undefined/img/notifications.svg HTTP/1.1" 302 3254 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
{"reqId":"bqiXFZvweRgk4mVgG5Sk","level":0,"time":"2017-11-13T19:47:42+01:00","remoteAddr":"172.17.42.1","user":"tobias","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/richdocuments\/ajax\/settings.php","message":"CSRF check failed"}
172.17.42.1 - - [13/Nov/2017:19:47:42 +0100] "GET /owncloud/index.php/apps/richdocuments/ajax/settings.php HTTP/1.1" 412 3256 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
172.17.42.1 - - [13/Nov/2017:19:47:42 +0100] "GET /owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 3357 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
{"reqId":"Q0CRcq2WjHFNq7l8jXsy","level":0,"time":"2017-11-13T19:47:42+01:00","remoteAddr":"172.17.42.1","user":"tobias","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/richdocuments\/ajax\/mimes.php","message":"CSRF check failed"}
172.17.42.1 - - [13/Nov/2017:19:47:42 +0100] "GET /owncloud/index.php/apps/richdocuments/ajax/mimes.php HTTP/1.1" 412 3256 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
{"reqId":"syBINd4NMJYIUDvS6XAf","level":3,"time":"2017-11-13T19:47:42+01:00","remoteAddr":"172.17.42.1","user":"tobias","app":"index","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotPermittedException\",\"Message\":\"No create permission for folder \\\/avatars\\\/2b\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(99): OC\\\\Files\\\\Node\\\\Folder->newFolder('2b')\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(120): OC\\\\AvatarManager->getFolder(Object(OC\\\\Files\\\\Node\\\\Folder), '2b')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AvatarManager.php(91): OC\\\\AvatarManager->getAvatarFolder(Object(OC\\\\User\\\\User))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/TemplateLayout.php(101): OC\\\\AvatarManager->getAvatar('tobias')\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/template.php(232): OC\\\\TemplateLayout->__construct('user', 'files')\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/public\\\/AppFramework\\\/Http\\\/TemplateResponse.php(156): OC_Template->fetchPage()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(112): OCP\\\\AppFramework\\\\Http\\\\TemplateResponse->render()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(98): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(46): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#9 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(307): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(928): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#12 \\\/var\\\/www\\\/owncloud\\\/index.php(56): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php\",\"Line\":162}"}
172.17.42.1 - - [13/Nov/2017:19:47:42 +0100] "GET /owncloud/index.php/apps/files/ HTTP/1.1" 500 17395 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
172.17.42.1 - - [13/Nov/2017:19:47:42 +0100] "GET /owncloud/core/img/favicon.ico HTTP/1.1" 200 5355 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"
172.17.42.1 - - [13/Nov/2017:19:48:12 +0100] "GET /owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 3357 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.75 Chrome/62.0.3202.75 Safari/537.36"

If i understand this correctly, then it has the following problem:\NotPermittedException\",\"Message\":\"No create permission for folder
How can this be fixed?

Kind Regards,

Tobi

Seems that you’ve run in the same error:

Hi,

so i need to wait for an update? Or where do i exactly need to create the avatar folder? On the docker or on the main machine?

Kind Regards,

Tobi

It should make no difference.

Hi SirTux,

can you tell me the exact path where this folder needs to be created?
I have created an avatar folder in /var/lib/univention-appcenter/apps/owncloud/data with user and group www-data and permission 770 but the problem is still appearing with the same error message.

Kind Regards,

Tobi

log into the docker container with

univention-app shell owncloud

and look for the folder in the same path, and check the permissions.

if necessary change them to www-data as owner.

Hi,

i logged on to the docker container and the folder was owned by user and group www-data. I have set the permissions to 775 to ensure that it can be accessed, but no success:

root@owncl-87067193: /var/lib/univention-appcenter/apps/owncloud/data # ls -l   total 20
drwxrwxr-x 2 www-data www-data 4096 Nov 13 21:42 avatars
drwxr-xr-x 2 www-data www-data 4096 Nov 13 19:45 certs
drwxr-xr-x 3 www-data www-data 4096 Nov 13 19:45 custom
drwxrwx--- 5 www-data www-data 4096 Nov 13 19:47 files
drwxr-xr-x 2 www-data www-data 4096 Nov 13 19:47 sessions

So i tried as well to let the whole “data” folder be owned by www-data, but that does not make a difference, still the same error. Is the path correct?

Kind Regards,

Tobi

Maybe you also have to delete the table entry in the database.

Which table entry in which database?

Kind Regards,

Tobi

Do you have read the thread linked above?

Hi,

excuse me, hadn’t understood the post correctly after first reading it.
I logged on to mysql server now and deleted the row:
Delete from oc_filecache where path = 'avatars';

Now i can log on to owncloud, but all my files are not there anymore. How do i get them back?

Kind Regards,

Tobias Lorentz

Are the files also gone in the filesystem (/var/lib/univention-appcenter/apps/owncloud/data/files) or only in Owncloud?

Yes, also on file system.
I still have them on my local harddrive synchronized, but how can this happen?

Kind Regards,

Tobi

Good morning, I have an owncloud 9.1 installation and I need to update to the latest version because it stopped and I can’t make it work, I have no experience with such software, could someone give me the way, I have several users in this access

Mastodon