Can't write into config directory, after failed update from 8.0 to 8.2

Ask all your questions regarding OC 8.0 and 8.1 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
sirhans
Newbie
Posts: 2
Joined: Thu Apr 21, 2016 4:52 am
ownCloud version: 8.0.0
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.45

Can't write into config directory, after failed update from 8.0 to 8.2

Postby sirhans » Thu Apr 21, 2016 5:24 am

Please help us by providing the following info. Before posting please also check the pinned "Known issues" thread.

Steps to reproduce
1.Use the updater in the admin panel to upgrade from 8.0.0.7 to 8.2.1 => update failed
2.Copy the backup back to the owncloud dir using rsync -Aax owncloud-dirbkp/ owncloud/
(as described here: https://doc.owncloud.org/server/8.0/adm ... store.html)


Expected behaviour
OwnCloud goes back to 8.0 and works properly

Actual behaviour
Owncloud appears to be working via the sync client on the desktop but when I log in the admin user and try to access either apps or the admin page, I see the following error message:

Can't write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.

Server configuration
Operating system: CentOS 6.7
Web server: Apache 2.2.15
Database: MySQL 5.5.48
PHP version: 5.4.45
ownCloud version (see ownCloud admin page): 8.0.07
Updated from an older ownCloud or fresh install: Tried to upgrade to 8.2.1, then restore backup down to 8.0.7
ownCloud log (data/owncloud.log):

the last lines of the log are this, repeated many times:

Code: Select all

{...,"app":"PHP","message":"Class 'Sabre\\DAV\\ObjectTree' not found at \/var\/www\/html\/owncloud\/lib\/private\/connector\/sabre\/objecttree.php#17","level":3,"time":"2016-04-21T08:38:17+07:00"}


This is what was in the log file after the failed update to 8.2.1. Apparently ownCloud could not open the log file for writing after restoring the 8.0.0.7 backup.

Here's a relevant line in my apache log, showing that ownCloud can't write to the log file:

Code: Select all

No such file or directory at \\/var\\/www\\/html\\/owncloud\\/core\\/lib\\/private\\/log\\/owncloud.php#85","level":3,"time":"2016-04-21T02:14:58+00:00"}, referer: http://fpt.com/owncloud/index.php/apps/files/


I set the permissions as described here: https://doc.owncloud.org/server/8.0/adm ... ermissions.

Code: Select all

-rw-r-----  1 apache apache 3617178 Apr 20 21:38 owncloud.log


But that didn't help.

I read on this forum that SELinux causes problems, but my /etc/sysconfig/selinux has:

Code: Select all

SELINUX=disabled


Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): No

Ideas

I read that .htaccess files get overwritten when you upgrade. But I don't remember if I changed those when I installed ownCloud. Could this problem be caused by something wrong with .htaccess files?

In my owncloud/config dir I have the following .htaccess file:

Code: Select all

# line below if for Apache 2.4
<ifModule mod_authz_core.c>
Require all denied
</ifModule>

# line below if for Apache 2.2
<ifModule !mod_authz_core.c>
deny from all
</ifModule>

# section for Apache 2.2 and 2.4
IndexIgnore *


I installed owncloud originally using yum.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Can't write into config directory, after failed update from 8.0 to 8.2

Postby RealRancor » Thu Apr 21, 2016 6:10 am

Try to do a correct upgrade like described here:

viewtopic.php?f=17&t=32087

As you have installed oC via yum you also shouldn't use the updater app. This might break other stuff like seen now.
*gone*

sirhans
Newbie
Posts: 2
Joined: Thu Apr 21, 2016 4:52 am
ownCloud version: 8.0.0
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.4.45

Re: Can't write into config directory, after failed update from 8.0 to 8.2

Postby sirhans » Thu Apr 21, 2016 7:29 am

Thanks RealRancor. I see you have been urging to prevent this from happening on the discussion over at GitHub.

It seems I didn't use yum after all. So I'll just download 8.0.11, 8.1.6, and 8.2.1 and upgrade manually till its up-to-date.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.0 and 8.1”

Who is online

Users browsing this forum: No registered users and 1 guest