Hi Joshua,
Thanks again for this post. It has been very helpful.
I do have a new issue and I believe it's related to the detailed configuration of your setup...hoping you can identify the issue.
I've followed your instructions to the T (I think) once again, on a newer server, and everything is working great. BUT, when I installed the LDAP app (which also required a 'pkg install php56-ldap'), I cannot login with any of the users from our Active Directory.
All seems well with the LDAP setup, infact, OC even lists all the users from Active Directory in OC's Users. But when I try to login, this is what happens:
1st Attempt:
The web GUI says "An internal error occured. Please try again or contact your administrator," giving me the options to try logging in again. NOTE that it spits back "wrong password" or something similar when I input a non existent user or bad password.
A folder corresponding with the username is created in /mnt/files (my OC data location).
And the OC log says (on one very long line):
{"reqId":"+U3q48acEM00OR\/XvJEK","remoteAddr":"10.20.50.52","app":"handleLogin","message":"Exception: {\"Exception\":\"RedisException\",\"Message\":\"Redis server went away\",\"Code\":0,\"Trace\":\"#0 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/memcache\\\/redis.php(140): Redis->incrBy('c1147ef7de0fce0...', 1)\\n#1 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/lock\\\/memcachelockingprovider.php(70): OC\\\\Memcache\\\\Redis->inc('files\\\/bdbed247c...')\\n#2 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/common.php(663): OC\\\\Lock\\\\MemcacheLockingProvider->acquireLock('files\\\/bdbed247c...', 1)\\n#3 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(577): OC\\\\Files\\\\Storage\\\\Common->acquireLock('', 1, Object(OC\\\\Lock\\\\MemcacheLockingProvider))\\n#4 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/storage\\\/wrapper\\\/wrapper.php(577): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->acquireLock('', 1, Object(OC\\\\Lock\\\\MemcacheLockingProvider))\\n#5 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1854): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->acquireLock('', 1, Object(OC\\\\Lock\\\\MemcacheLockingProvider))\\n#6 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1956): OC\\\\Files\\\\View->lockPath('\\\/_7086', 1, false)\\n#7 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1234): OC\\\\Files\\\\View->lockFile('\\\/_7086', 1)\\n#8 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/view.php(1281): OC\\\\Files\\\\View->getCacheEntry(Object(OCA\\\\Files_Trashbin\\\\Storage), '', '\\\/_7086')\\n#9 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(179): OC\\\\Files\\\\View->getFileInfo('\\\/_7086')\\n#10 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/files\\\/node\\\/root.php(341): OC\\\\Files\\\\Node\\\\Root->get('\\\/_7086')\\n#11 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/server.php(742): OC\\\\Files\\\\Node\\\\Root->getUserFolder('_7086')\\n#12 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/user.php(170): OC\\\\Server->getUserFolder('_7086')\\n#13 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/base.php(1082): OC_User::login(*** username and password replaced ***)\\n#14 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/base.php(978): OC::tryFormLogin()\\n#15 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/base.php(940): OC::handleLogin()\\n#16 \\\/usr\\\/local\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/memcache\\\/redis.php\",\"Line\":140}","level":3,"time":"2016-04-14T00:23:39+00:00","method":"POST","url":"\/","user":"_7086"}
2nd Attempt:
No re-login option (until I clear the browser cache), but OC GUI says:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Technical details
- Remote Address: 10.20.50.52
- Request ID: 6XZk+aezaEGqLM7eU3cw
- Type: OCP\Files\NotFoundException
- Code: 0
- Message:
- File: /usr/local/www/owncloud/lib/private/helper.php
- Line: 605
Trace
#0 /usr/local/www/owncloud/apps/files/controller/viewcontroller.php(111): OC_Helper::getStorageInfo('/', false)
#1 /usr/local/www/owncloud/apps/files/controller/viewcontroller.php(174): OCA\Files\Controller\ViewController->getStorageInfo()
#2 [internal function]: OCA\Files\Controller\ViewController->index('', '')
#3 /usr/local/www/owncloud/lib/private/appframework/http/dispatcher.php(159): call_user_func_array(Array, Array)
#4 /usr/local/www/owncloud/lib/private/appframework/http/dispatcher.php(89): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files\Controller\ViewController), 'index')
#5 /usr/local/www/owncloud/lib/private/appframework/app.php(110): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'index')
#6 /usr/local/www/owncloud/lib/private/appframework/routing/routeactionhandler.php(45): OC\AppFramework\App::main('ViewController', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#7 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)
#8 /usr/local/www/owncloud/lib/private/route/router.php(276): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)
#9 /usr/local/www/owncloud/lib/base.php(882): OC\Route\Router->match('/apps/files/')
#10 /usr/local/www/owncloud/index.php(39): OC::handleRequest()
#11 {main}
And also after this 2nd Attempt, the OC log says (two separate long lines):
{"reqId":"6XZk+aezaEGqLM7eU3cw","remoteAddr":"10.20.50.52","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/usr\\\/local\\\/www\\\/owncloud\\\/apps\\\/files\\\/controller\\\/viewcontroller.php(111): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/usr\\\/local\\\/www\\\/owncloud\\\/apps\\\/files\\\/controller\\\/viewcontroller.php(174): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 [internal function]: OCA\\\\Files\\\\Controller\\\\ViewController->index('', '')\\n#3 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#4 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#6 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#7 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#8 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#9 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#10 \\\/usr\\\/local\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#11 {main}\",\"File\":\"\\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/helper.php\",\"Line\":605}","level":3,"time":"2016-04-14T00:26:27+00:00","method":"GET","url":"\/index.php\/apps\/files\/","user":"_7086"}
{"reqId":"xr2wBUtVp7jarzQuH0Qv","remoteAddr":"10.20.50.52","app":"index","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/usr\\\/local\\\/www\\\/owncloud\\\/apps\\\/files\\\/controller\\\/viewcontroller.php(111): OC_Helper::getStorageInfo('\\\/', false)\\n#1 \\\/usr\\\/local\\\/www\\\/owncloud\\\/apps\\\/files\\\/controller\\\/viewcontroller.php(174): OCA\\\\Files\\\\Controller\\\\ViewController->getStorageInfo()\\n#2 [internal function]: OCA\\\\Files\\\\Controller\\\\ViewController->index('', '')\\n#3 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(159): call_user_func_array(Array, Array)\\n#4 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/http\\\/dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#5 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/app.php(110): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch(Object(OCA\\\\Files\\\\Controller\\\\ViewController), 'index')\\n#6 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/appframework\\\/routing\\\/routeactionhandler.php(45): OC\\\\AppFramework\\\\App::main('ViewController', 'index', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#7 [internal function]: OC\\\\AppFramework\\\\routing\\\\RouteActionHandler->__invoke(Array)\\n#8 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/route\\\/router.php(276): call_user_func(Object(OC\\\\AppFramework\\\\routing\\\\RouteActionHandler), Array)\\n#9 \\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/base.php(882): OC\\\\Route\\\\Router->match('\\\/apps\\\/files\\\/')\\n#10 \\\/usr\\\/local\\\/www\\\/owncloud\\\/index.php(39): OC::handleRequest()\\n#11 {main}\",\"File\":\"\\\/usr\\\/local\\\/www\\\/owncloud\\\/lib\\\/private\\\/helper.php\",\"Line\":605}","level":3,"time":"2016-04-14T00:26:27+00:00","method":"GET","url":"\/index.php\/apps\/files\/","user":"_7086"}
It seems that this may be related tot he redis server, hence the "{\"Exception\":\"RedisException\",\"Message\":\"Redis server went away.....".
Any ideas? I really appreciate your help.