{"reqId":"Vo5STH8AAQEAAGnQg3cAAAAs","remoteAddr":"134.225.2.12","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:55:56","method":"PROPFIND","url":"\/remote.php\/webdav\/"}{"reqId":"KtQbrb9wy1MxVwGwfzEq","remoteAddr":"","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:56:21","method":"--","url":"--"}{"reqId":"VSgwPMcwd3oQDlTySNi0","remoteAddr":"","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:56:31","method":"--","url":"--"}{"reqId":"pAdy8rexqxL0Qed110ls","remoteAddr":"","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:57:49","method":"--","url":"--"}{"reqId":"IqOmouxSF1+qTwakMysW","remoteAddr":"","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:58:03","method":"--","url":"--"}{"reqId":"nStAedMfOmaKZAq+e9Ae","remoteAddr":"","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:58:08","method":"--","url":"--"}{"reqId":"bInKSBNyYiI7Jtl4h4hQ","remoteAddr":"","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 11:58:11","method":"--","url":"--"}
root@server:/var/www/owncloud# sudo -u www-data php occ app:disable user_privacyideauser_privacyidea disabledroot@server:/var/www/owncloud# sudo -u www-data php occ app:enable user_privacyideauser_privacyidea enabled
root@server:/var/www/owncloud# sudo -u www-data php occ app:check-code user_privacyideaAnalysing /var/www/owncloud/apps/user_privacyidea/appinfo/app.php4 errorsline 6: OCP\Config - Static method of deprecated class must not be calledline 11: OC_User - Static method of private class must not be calledline 12: OC_User - Static method of private class must not be calledline 17: OC_User - Static method of private class must not be calledAnalysing /var/www/owncloud/apps/user_privacyidea/adminSettings.php1 errorsline 29: OC_Util - Static method of private class must not be calledAnalysing /var/www/owncloud/apps/user_privacyidea/lib/otp_privacyidea.php6 errorsline 174: OCP\Config - Static method of deprecated class must not be calledline 193: OCP\Config - Static method of deprecated class must not be calledline 195: OCP\Config - Static method of deprecated class must not be calledline 196: OCP\Config - Static method of deprecated class must not be calledline 200: OCP\Config - Static method of deprecated class must not be calledline 201: OCP\Config - Static method of deprecated class must not be calledDeprecated field available: shipped => falseMigrate the app version to appinfo/info.xml (add <version>0.2</version> to appinfo/info.xml and remove appinfo/version)App is not compliantroot@server:/var/www/owncloud#
More specifically im seeing:
Hmm wonder if its something i'm doing wrong, as i just span up an instance of Owncloud 7.0 in docker and i'm seeing similar issues:
root@94abee8b6400:/var/www/owncloud# sudo -u www-data php occ --version{"reqId":"568e6eceac717","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 13:57:34","method":"--","url":"--"}ownCloud version 7.0.12root@94abee8b6400:/var/www/owncloud# sudo -u www-data php occ app:enable user_privacyidea{"reqId":"568e6ee32e067","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 13:57:55","method":"--","url":"--"}user_privacyidea is already enabledroot@94abee8b6400:/var/www/owncloud#
[Thu Jan 07 14:01:00.951047 2016] [mpm_prefork:notice] [pid 15133] AH00169: caught SIGTERM, shutting down[Thu Jan 07 14:01:02.126400 2016] [mpm_prefork:notice] [pid 15197] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations[Thu Jan 07 14:01:02.126495 2016] [core:notice] [pid 15197] AH00094: Command line: '/usr/sbin/apache2'[Thu Jan 07 14:01:03.585587 2016] [:error] [pid 15200] [client 192.168.0.81:63068] {"reqId":"568e6f9f8eed6","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 14:01:03","method":"POST","url":"\\/owncloud\\/"}, referer: http://192.168.0.16:8003/owncloud/[Thu Jan 07 14:01:03.691818 2016] [:error] [pid 15200] [client 192.168.0.81:63068] {"reqId":"568e6f9f8eed6","app":"core","message":"Login failed: 'test1' (Remote IP: '192.168.0.81', X-Forwarded-For: '')","level":2,"time":"January 07, 2016 14:01:03","method":"POST","url":"\\/owncloud\\/"}, referer: http://192.168.0.16:8003/owncloud/[Thu Jan 07 14:01:03.861168 2016] [:error] [pid 15200] [client 192.168.0.81:63068] {"reqId":"568e6f9fd2397","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 14:01:03","method":"GET","url":"\\/owncloud\\/index.php\\/core\\/js\\/oc.js?v=0f79fab0339c6cfa89e3e07d92eb8950"}, referer: http://192.168.0.16:8003/owncloud/[Thu Jan 07 14:01:03.982549 2016] [:error] [pid 15200] [client 192.168.0.81:63068] {"reqId":"568e6f9fefdb7","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 14:01:03","method":"POST","url":"\\/owncloud\\/index.php\\/core\\/ajax\\/translations.php"}, referer: http://192.168.0.16:8003/owncloud/[Thu Jan 07 14:01:04.074056 2016] [:error] [pid 15200] [client 192.168.0.81:63068] {"reqId":"568e6fa0120ea","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 14:01:04","method":"GET","url":"\\/owncloud\\/cron.php"}, referer: http://192.168.0.16:8003/owncloud/[Thu Jan 07 14:01:04.135851 2016] [:error] [pid 15201] [client 192.168.0.81:63071] {"reqId":"568e6fa02120d","app":"user_privacyidea","message":"privacyIDEA is disabled: ","level":0,"time":"January 07, 2016 14:01:04","method":"POST","url":"\\/owncloud\\/index.php\\/core\\/ajax\\/translations.php"}, referer: http://192.168.0.16:8003/owncloud/
--
You received this message because you are subscribed to the Google Groups "privacyidea" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privacyidea...@googlegroups.com.
To post to this group, send email to priva...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/privacyidea/36f4d2bb-8850-4b83-9ea4-01a13de13f49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
root@server:/# ls -la /var/www/owncloud/apps/user_privacyidea/total 1MBdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 jsdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 imgdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 appinfo-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 adminSettings.phpdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 libdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 templatesdrwxr-xr-x 22 www-data www-data 1MB Jan 6 15:26 ..drwxr-x--- 7 www-data www-data 1MB Jan 6 16:35 .root@server:/# ls -la /var/www/owncloud/apps/user_privacyidea/lib/total 1MB-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 otp_privacyidea.php-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 helper.phpdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 .drwxr-x--- 7 www-data www-data 1MB Jan 6 16:35 ..root@server:/# ls -la /var/www/owncloud/apps/user_privacyidea/appinfo/total 1MB-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 version-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 info.xml-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 app.phpdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 .drwxr-x--- 7 www-data www-data 1MB Jan 6 16:35 ..root@server:/# ls -la /var/www/owncloud/apps/user_privacyidea/js/total 1MBdrwxr-x--- 2 www-data www-data 1MB Jan 6 15:26 .-rwxr-x--- 1 www-data www-data 1MB Jan 6 15:26 adminSettings.jsdrwxr-x--- 7 www-data www-data 1MB Jan 6 16:35 ..
Hi Sam,
fwiw. I just checked on an owncloud 8.2(.0).
I never enabled the application using the command line tool but from the webui.
It looks like this:
Can you see it this way, too?
Please note, that this plugin is marked "experimental". I am not sure, if your ownCloud instance handles "experimental" in another way.
The privacyIDEA config in ownlcoud looks like this:
Please enable debug in ownCloud. I get such entries:
<?php\OCP\App::registerAdmin('user_privacyidea', 'adminSettings');OC::$CLASSPATH['OC_User_PRIVACYIDEA'] = 'apps/user_privacyidea/lib/otp_privacyidea.php';$enabled = OCP\Config::getAppValue('privacyIDEA','enable_privacyidea');if($enabled === "yes") {OCP\Util::writeLog('user_privacyidea', 'privacyIDEA is enabled',OCP\Util::DEBUG);$usedBackends = OC_User::getUsedBackends();OC_User::clearBackends();$piBackend = new OC_User_PRIVACYIDEA();// register all previously used backend$piBackend->registerBackends($usedBackends);// register our own user backendOC_User::useBackend($piBackend);} else {OCP\Util::writeLog('user_privacyidea', 'privacyIDEA is disabled: '.$enabled, OCP\Util::DEBUG);}
$enabled = OCP\Config::getAppValue('privacyIDEA','enable_privacyidea');
root@server:/var/www/owncloud# sudo -u www-data php occ config:app:get user_privacyidea enabledyes
if(OCP\App::isEnabled('user_privacyidea')) {
<?php\OCP\App::registerAdmin('user_privacyidea', 'adminSettings');OC::$CLASSPATH['OC_User_PRIVACYIDEA'] = 'apps/user_privacyidea/lib/otp_privacyidea.php';
if(OCP\App::isEnabled('user_privacyidea')) {