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

Hi,

i tried to upgrade my owncloud 9.1. to 10 as descripted here: https://doc.owncloud.org/server/10.0/admin_manual/appliance/howto-update-owncloud.html#uninstall-the-existing-version-and-install-the-new-version-for-9-1-users

I have uninstalled my 9.1 version without problems. Now i try to install 10, but that fails:

Waiting for activation of the extension object owncloud:.............................................ERROR
ERROR: Master did not mark the extension object active within 180 seconds.
Registering schema file /usr/share/univention-appcenter/apps/owncloud/owncloud.schema failed
Aborting...
Going to remove ownCloud (10.0.3-20170918)

Here is the complete log:

root@ucs:/home/tobias# univention-app install owncloud
Going to install ownCloud (10.0.3-20170918)
Password for Administrator: 
update LDAP schema...
setting binddn and bindpwdfile
LDAP Error: Already exists
setting directory variables
creating owncloud conf directory
Base configuration for ownCloud
Create owncloud/user/enabled
Create owncloud/group/enabled
Create owncloud/ldap/base
Create owncloud/ldap/loginFilter
Create owncloud/ldap/userFilter
Create owncloud/ldap/groupFilter
Create owncloud/ldap/internalNameAttribute
Create owncloud/ldap/userUuid
Create owncloud/ldap/groupUuid
Create owncloud/ldap/emailAttribute
Create owncloud/ldap/memberAssoc
Create owncloud/ldap/user/quotaAttribute
Create owncloud/ldap/base/users
Create owncloud/ldap/base/groups
Create owncloud/ldap/search/users
Create owncloud/ldap/search/groups
Module: kopano-cfg
Found ownCloud 9.1 backup, restoring data
- Importing files
mv: der Aufruf von stat für „/var/lib/owncloud/*“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
- Import config
mv: der Aufruf von stat für „/var/lib/univention-appcenter/apps/owncloud/data/files/config.php“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
- Importing database
ERROR 1049 (42000): Unknown database 'owncloud'
- Update storages
ERROR 1049 (42000): Unknown database 'owncloud'
- Getting Certificate for LDAP
ownCloud data restored
adding apps path
adding performance tuning options
generating pre-update config script
   ownCloud 10.0.0

   This program is free software: you can redistribute it and/or modify it
   under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or (at your
   option) any later version.

   This program is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
   License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with this program. If not, see <http://www.gnu.org/licenses/>.
Do you agree [y/N]? y
Creating data directories for owncloud...
Copying /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/owncloud_20170831162031.schema
Registering UCR for owncloud
Marking 4.1/owncloud=10.0.3-20170918 as installed
File: /etc/univention/service.info/services/univention-appcenter.cfg
Multifile: /etc/postgresql/9.1/main/pg_hba.conf
File: /usr/share/univention-portal/apps.json
Module: kopano-cfg
Setting ports for apache proxy
Multifile: /etc/apache2/sites-available/000-default.conf
Multifile: /etc/apache2/sites-available/default-ssl.conf
Module: kopano-cfg
Creating /etc/init.d/docker-app-owncloud
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
Adding localhost to LDAP object
Setting overview variables
Module: create_portal_entries
Module: kopano-cfg
Reloading apache2 configuration (via systemctl): apache2.service.
Es wurden 0 B in 0 s geholt (0 B/s)
Ausführen von dpkg
Reading package lists... Done
Building dependency tree... 50%
Reading state information... Done
Reading package lists... Done
Building dependency tree... 50%
Reading state information... Done
4.1/owncloud=10.0.3-20170918 already has its database
Registering schema /usr/share/univention-appcenter/apps/owncloud/owncloud.schema
INFO: No change of core data of object owncloud.
No modification: cn=owncloud,cn=ldapschema,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de

WARNING: cannot append owncloud to appidentifier, value exists
No modification: cn=owncloud,cn=ldapschema,cn=univention,dc=intranet,dc=tobiaslorentz,dc=de

Waiting for activation of the extension object owncloud:.............................................ERROR
ERROR: Master did not mark the extension object active within 180 seconds.
Registering schema file /usr/share/univention-appcenter/apps/owncloud/owncloud.schema failed
Aborting...
Going to remove ownCloud (10.0.3-20170918)
No hostdn for owncloud found. Nothing to remove
Configuring 4.1/owncloud=10.0.3-20170918
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
Removing localhost from LDAP object
Module: kopano-cfg
File: /etc/univention/service.info/services/univention-appcenter.cfg
Multifile: /etc/postgresql/9.1/main/pg_hba.conf
Module: create_portal_entries
Multifile: /etc/apache2/sites-available/000-default.conf
Multifile: /etc/apache2/sites-available/default-ssl.conf
File: /usr/share/univention-portal/apps.json
Reloading apache2 configuration (via systemctl): apache2.service.
Installing join script /var/cache/univention-appcenter/appcenter.software-univention.de/4.1/owncloud_20170831162031.uinst
univention-run-join-scripts: runs all join scripts existing on local computer.
copyright (c) 2001-2017 Univention GmbH, Germany

Running 00kopano4ucs-safemode-on.inst skipped (already executed)
Running 01univention-ldap-server-init.inst skipped (already executed)
Running 02univention-directory-notifier.inst skipped (already executed)
Running 03univention-directory-listener.inst skipped (already executed)
Running 04univention-ldap-client.inst skipped (already executed)
Running 05univention-bind.inst skipped (already executed)
Running 08univention-apache.inst skipped (already executed)
Running 10univention-ldap-server.inst skipped (already executed)
Running 11univention-heimdal-init.inst skipped (already executed)
Running 11univention-pam.inst skipped (already executed)
Running 15univention-directory-notifier-post.inst skipped (already executed)
Running 15univention-heimdal-kdc.inst skipped (already executed)
Running 18python-univention-directory-manager.inst skipped (already executed)
Running 20univention-directory-policy.inst skipped (already executed)
Running 20univention-join.inst skipped (already executed)
Running 26univention-nagios-common.inst skipped (already executed)
Running 30univention-appcenter.inst skipped (already executed)
Running 30univention-corporate-client-schema.inst skipped (already executed)
Running 30univention-nagios-client.inst skipped (already executed)
Running 31univention-nagios-libvirtd-kvm.inst skipped (already executed)
Running 31univention-nagios-s4-connector.inst skipped (already executed)
Running 31univention-nagios-samba.inst skipped (already executed)
Running 31univention-nagios-uvmmd.inst skipped (already executed)
Running 33univention-portal.inst skipped (already executed)
Running 34univention-management-console-server.inst skipped (already executed)
Running 34univention-self-service.inst skipped (already executed)
Running 35ucc-umc-images.inst skipped (already executed)
Running 35ucc-umc-setup.inst skipped (already executed)
Running 35univention-appcenter-docker.inst skipped (already executed)
Running 35univention-management-console-module-appcenter.inst skipped (already executed)
Running 35univention-management-console-module-diagnostic.inst skipped (already executed)
Running 35univention-management-console-module-ipchange.inst skipped (already executed)
Running 35univention-management-console-module-join.inst skipped (already executed)
Running 35univention-management-console-module-lib.inst skipped (already executed)
Running 35univention-management-console-module-mrtg.inst skipped (already executed)
Running 35univention-management-console-module-pkgdb.inst skipped (already executed)
Running 35univention-management-console-module-printers.inst skipped (already executed)
Running 35univention-management-console-module-quota.inst skipped (already executed)
Running 35univention-management-console-module-reboot.inst skipped (already executed)
Running 35univention-management-console-module-services.inst skipped (already executed)
Running 35univention-management-console-module-setup.inst skipped (already executed)
Running 35univention-management-console-module-sysinfo.inst skipped (already executed)
Running 35univention-management-console-module-top.inst skipped (already executed)
Running 35univention-management-console-module-ucr.inst skipped (already executed)
Running 35univention-management-console-module-udm.inst skipped (already executed)
Running 35univention-management-console-module-updater.inst skipped (already executed)
Running 35univention-nagios-cups.inst skipped (already executed)
Running 35univention-self-service-passwordreset-umc.inst skipped (already executed)
Running 35univention-server-overview.inst skipped (already executed)
Running 36univention-management-console-module-apps.inst skipped (already executed)
Running 40univention-postgresql.inst skipped (already executed)
Running 40univention-virtual-machine-manager-schema.inst skipped (already executed)
Running 43univention-virtual-machine-manager-node-common.inst skipped (already executed)
Running 44univention-virtual-machine-manager-daemon.inst skipped (already executed)
Running 44univention-virtual-machine-manager-node-kvm.inst skipped (already executed)
Running 45univention-management-console-module-uvmm.inst skipped (already executed)
Running 50dudle.inst skipped (already executed)
Running 50mattermost.inst skipped (already executed)
Running 50nextcloud.inst skipped (already executed)
Running 50onlyoffice-ds.inst skipped (already executed)
Running 50univention-pkgdb.inst skipped (already executed)
Running 70kopano4ucs-udm.inst skipped (already executed)
Running 70kopano4ucs.inst skipped (already executed)
Running 71kopano4ucs-webapp.inst skipped (already executed)
Running 77univention-debmirror.inst skipped (already executed)
Running 78univention-kde.inst skipped (already executed)
Running 79univention-printserver.inst skipped (already executed)
Running 80univention-radius.inst skipped (already executed)
Running 81univention-nfs-server.inst skipped (already executed)
Running 90univention-bind-post.inst skipped (already executed)
Running 91ucc-pxe-boot.inst skipped (already executed)
Running 91univention-saml.inst skipped (already executed)
Running 92univention-fetchmail-schema.inst skipped (already executed)
Running 92univention-fetchmail.inst skipped (already executed)
Running 92univention-management-console-web-server.inst skipped (already executed)
Running 95ucc-2.1-desktop-image.img.inst skipped (already executed)
Running 96univention-samba4.inst skipped (already executed)
Running 97univention-s4-connector.inst skipped (already executed)
Running 98univention-pkgdb-tools.inst skipped (already executed)
Running 98univention-samba4-dns.inst skipped (already executed)
Running 99kopano4ucs-safemode-off.inst skipped (already executed)
Running 51owncloud-uninstall.uinst done

How can this be fixed?

Thank you very much for your help!

Kind Regards,

Tobias Lorentz

You should have upgraded Owncloud 8.2 over 9.0 to 9.1 first:
http://wiki.univention.de/index.php?title=OwnCloud_App_Migration

Hi Sir tux,

Yes owncloud was on 9.1. I did this already a longer time ago…

Kind Regards

Tobias Lorentz

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

Mastodon