Hi I have problem with cache. When I execute the commands I got:
Code:
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"'
System config value memcache.local set to string \OC\Memcache\APCu
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"'
System config value memcache.locking set to string \OC\Memcache\Redis
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"'
An unhandled exception has been thrown:
RedisException: Connection refused in /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php:84
Stack trace:
#0 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(84): Redis->connect('127.0.0.1', 6379, 0)
#1 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(100): OC\RedisFactory->create()
#2 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(42): OC\RedisFactory->getInstance()
#3 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Factory.php(134): OC\Memcache\Redis->__construct('e3012fe6c576217...')
#4 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(854): OC\Memcache\Factory->createLocking('lock')
#5 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#6 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
#7 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...')
#8 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
#9 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#10 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('LockingProvider')
#11 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('LockingProvider')
#12 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1765): OC\ServerContainer->query('LockingProvider')
#13 /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php(114): OC\Server->getLockingProvider()
#14 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(193): OC\Files\View->__construct()
#15 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#16 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('EncryptionManag...')
#17 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('EncryptionManag...')
#18 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1229): OC\ServerContainer->query('EncryptionManag...')
#19 /usr/local/www/apache24/data/nextcloud/lib/base.php(865): OC\Server->getEncryptionManager()
#20 /usr/local/www/apache24/data/nextcloud/lib/base.php(737): OC::registerEncryptionWrapper()
#21 /usr/local/www/apache24/data/nextcloud/lib/base.php(1080): OC::init()
#22 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...')
#23 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...')
#24 {main}root@nextcloudjail:~ #
After jail reboot i got:
Code:
root@nextcloudjail:~ # su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"'
An unhandled exception has been thrown:
RedisException: Redis server went away in /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php:54
Stack trace:
#0 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(54): Redis->get('e3012fe6c576217...')
#1 /usr/local/www/apache24/data/nextcloud/lib/private/App/InfoParser.php(57): OC\Memcache\Redis->get('/usr/local/www/...')
#2 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(621): OC\App\InfoParser->parse('/usr/local/www/...')
#3 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/App.php(62): OC_App::getAppInfo('files')
#4 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(220): OC\AppFramework\App::buildAppNamespace('files')
#5 /usr/local/www/apache24/data/nextcloud/lib/private/legacy/app.php(119): OC_App::registerAutoloading('files', '/usr/local/www/...')
#6 /usr/local/www/apache24/data/nextcloud/lib/base.php(661): OC_App::loadApps(Array)
#7 /usr/local/www/apache24/data/nextcloud/lib/base.php(1080): OC::init()
#8 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...')
#9 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...')
#10 {main}root@nextcloudjail:~ #
redis.sock is present in /tmp
Can anybody help me?
Edit1: When I manualy added
Code:
'redis' =>
array (
'host' => '/tmp/redis.sock',
),
to config.php and Ignore "
Additional steps for php 7.1" so I left 'memcache.local' => '\\OC\\Memcache\\APCu', It seems to work... But I don't think it's ok.
Edit2: Wll it is not ok. Here is piece of nextcloud log:
Code:
RedisException: Redis server went away
- /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php - line 114: Redis->incrBy('e3012fe6c576217...', 1)
- /usr/local/www/apache24/data/nextcloud/lib/private/Lock/MemcacheLockingProvider.php - line 73: OC\Memcache\Redis->inc('files/04107a50f...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Storage/Common.php - line 709: OC\Lock\MemcacheLockingProvider->acquireLock('files/04107a50f...', 1)
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 592: OC\Files\Storage\Common->acquireLock('files/gallery.c...', 1, Object(OC\Lock\MemcacheLockingProvider))
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1926: OC\Files\Storage\Wrapper\Wrapper->acquireLock('files/gallery.c...', 1, Object(OC\Lock\MemcacheLockingProvider))
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 2036: OC\Files\View->lockPath('/root/files/gal...', 1, false)
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1321: OC\Files\View->lockFile('/root/files/gal...', 1)
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php - line 1371: OC\Files\View->getCacheEntry(Object(OCA\Files_Trashbin\Storage), 'files/gallery.c...', '/root/files/gal...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Root.php - line 198: OC\Files\View->getFileInfo('/root/files/gal...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Folder.php - line 133: OC\Files\Node\Root->get('/root/files/gal...')
- /usr/local/www/apache24/data/nextcloud/lib/private/Files/Node/Folder.php - line 142: OC\Files\Node\Folder->get('gallery.cnf')
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Service/ConfigService.php - line 191: OC\Files\Node\Folder->nodeExists('gallery.cnf')
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Service/ConfigService.php - line 101: OCA\Gallery\Service\ConfigService->configExists(Object(OC\Files\Node\Folder))
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Controller/Config.php - line 47: OCA\Gallery\Service\ConfigService->getFeaturesList()
- /usr/local/www/apache24/data/nextcloud/apps/gallery/lib/Controller/ConfigController.php - line 64: OCA\Gallery\Controller\ConfigController->getConfig(true)
- [internal function] OCA\Gallery\Controller\ConfigController->get(true)
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Gallery\Controller\ConfigController), 'get')
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Gallery\Controller\ConfigController), 'get')
- /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('ConfigControlle...', 'get', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
- [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
- /usr/local/www/apache24/data/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
- /usr/local/www/apache24/data/nextcloud/lib/base.php - line 998: OC\Route\Router->match('/apps/gallery/c...')
- /usr/local/www/apache24/data/nextcloud/index.php - line 37: OC handleRequest()
- {main}
Edit4: Well I'm probably idiot but i try again commands after third restart and
it works!
I changed networking (vnet) so maybe it was the problem?