Steps to reproduce
- Log into Owncloud
- Navigate to one of the default folders from the home screen
- Create a new folder or drag and drop a photo to any of the folders
Expected behaviour
Should be able to create new folder or upload content to the Owncloud WebUI server
Actual behaviour
When creating a new folder, a yellow notification message said "Could not create folder folder-name"
When drag and drop a file to the server, a yellow message said "Redis server went away."
Server configuration
CentOS Linux release 7.3.1611 (Core)
Database:
mysql Ver 15.1 Distrib 5.5.56-MariaDB, for Linux (x86_64) using readline 5.1
PHP version:
PHP 7.2.3 (cli) (built: Mar 2 2018 12:41:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
ownCloud version: (see ownCloud admin page)
ownCloud 10.0.7 (stable)
Where did you install ownCloud from:
Fresh install by downloading from Owncloud and followed the manual install method posted.
The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => '*********',
'passwordsalt' => '*********',
'secret' => '*********',
'trusted_domains' =>
array (
0 => 'owncloud-server',
1 => '*********',
),
'datadirectory' => '/path/to/data/',
'overwrite.cli.url' => 'https://owncloud-server/owncloud',
'dbtype' => 'sqlite3',
'version' => '10.0.7.2',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud-user',
'dbpassword' => '*********',
'logtimezone' => 'America/Los_Angeles',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
);
Are you using encryption: yes/no
No
Client configuration
Browser:
Chrome, Firefox
Operating system:
Windows 7, Ubuntu 16.04 LTS
ownCloud log (data/owncloud.log)
$ ls -lthr owncloud.log
-rw-r-----. 1 apache apache 3.3M Feb 10 21:17 owncloud.log
$ tail -n 2 owncloud.log
{"reqId":"****************","remoteAddr":"xxx.xxx.xxx.xxx","app":"core","message":"Trusted domain error. \"xxx.xxx.xxx.xxx\" tried to access using \"xxx.xxx.xxx.xxx\" as host.","level":2,"time":"2018-02-10T14:33:09+00:00","method":"GET","url":"\/","user":"--"}
{"reqId":"****************","remoteAddr":"xxx.xxx.xxx.xxx","app":"core","message":"Trusted domain error. \"xxx.xxx.xxx.xxx\" tried to access using \"xxx.xxx.xxx.xxx:443\" as host.","level":2,"time":"2018-02-11T05:17:58+00:00","method":"GET","url":"\/","user":"--"}
Redis Version & Status
$ rpm -qa | grep redis
php-pecl-redis-3.1.6-1.el7.remi.7.2.x86_64
rh-redis32-runtime-2.3-1.el7.x86_64
redis-3.2.10-2.el7.x86_64
rh-redis32-redis-3.2.4-1.el7.x86_64
$ sudo systemctl status redis
● redis.service - Redis persistent key-value database
Loaded: loaded (/usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/redis.service.d
└─limit.conf
Active: active (running) since Thu 2018-03-29 23:52:30 PDT; 4s ago
Process: 24978 ExecStop=/usr/libexec/redis-shutdown (code=exited, status=0/SUCCESS)
Main PID: 25000 (redis-server)
CGroup: /system.slice/redis.service
└─25000 /usr/bin/redis-server 127.0.0.1:6379
Mar 28 23:01:29 owncloud-server systemd[1]: Started Redis persistent key-value database.
Mar 28 23:01:29 owncloud-server systemd[1]: Starting Redis persistent key-value database...
$ ps aux | grep redis
redis 4646 0.0 0.1 136940 7952 ? Ssl Mar28 0:35 /opt/rh/rh-redis32/root/usr/bin/redis-server 127.0.0.1:6379
$ sudo netstat -ntlp | grep redis
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 4646/redis-server 1
I've followed the Owncloud guide to the letter but was unsuccessful. Also found this similar topic, https://central.owncloud.org/t/problems-using-redis-with-socket-for-filelocking/967, and my settings are almost identical. I used the same guides as the site below. There are also no warning messages in the admin page regarding Redis either.
$ sudo egrep '^unixsocket*' redis.conf
unixsocket /var/run/redis/redis.sock
unixsocketperm 775
Instead of using www-data as username, mine is apache and redis is a part of that group.
$ cat /etc/group | grep apache
apache:x:48:username,redis
Work Around
Remove the memcache.locking statement.
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
Any way to get Redis memcache.locking to work instead of the workaround and allow me to add files to owncloud through WebUI?