Koozali.org: home of the SME Server

Owncloud 8.2 and Redis Problem

Offline bclayton

  • *
  • 138
  • +0/-0
Owncloud 8.2 and Redis Problem
« on: November 13, 2015, 03:54:05 AM »
A few days ago, I followed the extremely helpful Owncloud HowTo to upgrade Owncloud on my server from version 8.1 to 8.2. I also enabled memory cache using Redis.  It worked fine until I applied SME v9.0 updates on Tuesday. After the updates, when I accessed Owncloud through Firefox, I got nothing but a white screen.

I removed the following lines from config.php in Owncloud that I had added for use with Redis and Owncloud opens as it should but it now shows the memory cache warning that Redis had solved.

'filelocking.enabled' => 'true',
  'memcache.locking' => '\OC\Memcache\Redis',
  'memcache.local' => '\OC\Memcache\Redis',
  'redis' => array(
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
     ), 

Any clues on what might have happened?  Thanks, Brooks

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Owncloud 8.2 and Redis Problem
« Reply #1 on: November 13, 2015, 07:03:24 AM »
look if you have something interesting in logs when you acces to owncloud

Code: [Select]
less /var/log/httpd/error_log
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Owncloud 8.2 and Redis Problem
« Reply #2 on: November 13, 2015, 12:32:15 PM »
...and if not in error_log, look in /var/log/messages too.
......

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Owncloud 8.2 and Redis Problem
« Reply #3 on: November 13, 2015, 12:51:58 PM »
It worked fine until I applied SME v9.0 updates on Tuesday. After the updates, when I accessed Owncloud through Firefox, I got nothing but a white screen.

I removed the following lines from config.php in Owncloud that I had added for use with Redis and Owncloud opens as it should but it now shows the memory cache warning that Redis had solved.

'filelocking.enabled' => 'true',
  'memcache.locking' => '\OC\Memcache\Redis',
  'memcache.local' => '\OC\Memcache\Redis',
  'redis' => array(
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
     ), 

Any clues on what might have happened?  Thanks, Brooks


my 2c, just guessing.. redis wasn't running.. how does it be supposed to start?

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Owncloud 8.2 and Redis Problem
« Reply #4 on: November 13, 2015, 12:56:10 PM »
The wiki entry (which I wrote, mostly based on the redis docs) says to do
ln -s /etc/rc.d/init.d/redis /etc/rc.d/rc4.d/S80redis
to make it run on startup.
......

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Owncloud 8.2 and Redis Problem
« Reply #5 on: November 13, 2015, 12:58:51 PM »
well.. if so, first of all it's not in the SME way :-)

you'd do something like
Code: [Select]
config set redis service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S80redis

(this should be in wiki too, please search..)

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Owncloud 8.2 and Redis Problem
« Reply #6 on: November 13, 2015, 01:09:40 PM »
Well, that could explain the problem.  From looking at http://wiki.contribs.org/Add_a_custom_service#allow_a_service_to_start_for_a_particular_time, it seems the symlink to runlevel 4 isn't needed at all, then--correct?
......

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Owncloud 8.2 and Redis Problem
« Reply #7 on: November 13, 2015, 01:19:15 PM »
+1 guys :)
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline bclayton

  • *
  • 138
  • +0/-0
[Solved] Re: Owncloud 8.2 and Redis Problem
« Reply #8 on: November 14, 2015, 01:17:56 AM »
Thanks for your help!  I issued the command below as was suggested and Owncloud with Redis is now working as it should.

config set redis service status enabled
cd /etc/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S80redis

Thanks, again.
Brooks

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Owncloud 8.2 and Redis Problem
« Reply #9 on: November 14, 2015, 01:22:58 AM »
You are welcome