SOLVED Owncloud no permission to config file after restart

Status
Not open for further replies.

jelle peters

Dabbler
Joined
Apr 10, 2015
Messages
12
Dear community,

I have got a big problem, i updated my owncloud plugin to the latest version today and checked if everything kept working, but after i restarted my freenas box after i switched my router for an new one owncloud did not start up again, it gives the following errors if i type in the ip address of owncloud:

Warning: fopen(/usr/pbi/owncloud-amd64/www/owncloud/config/config.php): failed to open stream: Permission denied in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/Config.php on line 187

Warning: flock() expects parameter 1 to be resource, boolean given in /usr/pbi/owncloud-amd64/www/owncloud/lib/private/Config.php on line 197

Fatal error: Call to a member function getLogger() on a non-object in /usr/pbi/owncloud-amd64/www/owncloud/index.php on line 51

If you guys need more information to solve my problem, just ask and i will give you.

I hope you guys can help me out!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
can you show the output of 'ls -l /usr/pbi/owncloud-amd64/www/owncloud'
how did you upgrade?

I suggest you do this 'chown -R www:www /usr/pbi/owncloud-amd64/www/owncloud'
 

jelle peters

Dabbler
Joined
Apr 10, 2015
Messages
12
can you show the output of 'ls -l /usr/pbi/owncloud-amd64/www/owncloud'
how did you upgrade?

I suggest you do this 'chown -R www:www /usr/pbi/owncloud-amd64/www/owncloud'

at first, the output of the command:

drwxr-xr-x 2 666 666 5 Sep 1 16:30 config
-rw-r--r-- 1 666 666 3805 Jul 20 11:15 console.php
drwxr-xr-x 17 666 666 23 Aug 31 07:26 core
-rw-r--r-- 1 666 666 5032 Jul 20 11:15 cron.php
drwxrwxrwx 2 666 666 5 Sep 1 16:30 data
-rw-r--r-- 1 666 666 35830 Jul 20 11:15 db_structure.xml
-rw-r--r-- 1 666 666 179 Jul 20 11:15 index.html
-rw-r--r-- 1 666 666 2282 Jul 20 11:15 index.php
drwxr-xr-x 3 666 666 6 Aug 31 07:26 l10n
drwxr-xr-x 6 666 666 8 Aug 31 07:26 lib
-rw-r--r-- 1 666 666 283 Jul 20 11:15 occ
drwxr-xr-x 2 666 666 6 Aug 31 07:26 ocs
drwxr-xr-x 2 666 666 3 Aug 31 07:26 ocs-provider
-rw-r--r-- 1 666 666 3086 Jul 20 11:15 public.php
-rw-r--r-- 1 666 666 5428 Jul 20 11:15 remote.php
drwxr-xr-x 4 666 666 4 Aug 31 07:26 resources
-rw-r--r-- 1 666 666 26 Jul 20 11:15 robots.txt
drwxr-xr-x 12 666 666 19 Aug 31 07:26 settings
-rw-r--r-- 1 666 666 1893 Jul 20 11:15 status.php
drwxr-xr-x 3 666 666 4 Aug 31 07:26 themes
drwxr-xr-x 7 666 666 18 Aug 31 07:26 updater
-rw-r--r-- 1 666 666 234 Jul 20 11:15 version.php

i upgraded by deleting the plugin, reinstalling it and then re configuring it, because upgrading the 'normal' path via the update button does not work.
after a restart owncloud crashed.

agter your command it does not even show the warnimgs and errors, now all my plugins dont work anymore, well at least my cifs shares do work...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
at first, the output of the command:

drwxr-xr-x 2 666 666 5 Sep 1 16:30 config
-rw-r--r-- 1 666 666 3805 Jul 20 11:15 console.php
drwxr-xr-x 17 666 666 23 Aug 31 07:26 core
-rw-r--r-- 1 666 666 5032 Jul 20 11:15 cron.php
drwxrwxrwx 2 666 666 5 Sep 1 16:30 data
-rw-r--r-- 1 666 666 35830 Jul 20 11:15 db_structure.xml
-rw-r--r-- 1 666 666 179 Jul 20 11:15 index.html
-rw-r--r-- 1 666 666 2282 Jul 20 11:15 index.php
drwxr-xr-x 3 666 666 6 Aug 31 07:26 l10n
drwxr-xr-x 6 666 666 8 Aug 31 07:26 lib
-rw-r--r-- 1 666 666 283 Jul 20 11:15 occ
drwxr-xr-x 2 666 666 6 Aug 31 07:26 ocs
drwxr-xr-x 2 666 666 3 Aug 31 07:26 ocs-provider
-rw-r--r-- 1 666 666 3086 Jul 20 11:15 public.php
-rw-r--r-- 1 666 666 5428 Jul 20 11:15 remote.php
drwxr-xr-x 4 666 666 4 Aug 31 07:26 resources
-rw-r--r-- 1 666 666 26 Jul 20 11:15 robots.txt
drwxr-xr-x 12 666 666 19 Aug 31 07:26 settings
-rw-r--r-- 1 666 666 1893 Jul 20 11:15 status.php
drwxr-xr-x 3 666 666 4 Aug 31 07:26 themes
drwxr-xr-x 7 666 666 18 Aug 31 07:26 updater
-rw-r--r-- 1 666 666 234 Jul 20 11:15 version.php

i upgraded by deleting the plugin, reinstalling it and then re configuring it, because upgrading the 'normal' path via the update button does not work.
after a restart owncloud crashed.

agter your command it does not even show the warnimgs and errors, now all my plugins dont work anymore, well at least my cifs shares do work...
it looks and sounds like you recursively changed the owner/group of your jail/plugin datasets to a user with UID/GID=666
This broke everything. you can restore jails if you have snapshots, otherwise you will need to reinstall them.

Don't ever change the owner/group/permission levels of datasets containing jails which have operating system and application files.
Only ever change the owner/group/permission levels of datasets only containing your data
 

jelle peters

Dabbler
Joined
Apr 10, 2015
Messages
12
it looks and sounds like you recursively changed the owner/group of your jail/plugin datasets to a user with UID/GID=666
This broke everything. you can restore jails if you have snapshots, otherwise you will need to reinstall them.

Don't ever change the owner/group/permission levels of datasets containing jails which have operating system and application files.
Only ever change the owner/group/permission levels of datasets only containing your data

thanks, i will reinstall the stuff
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Status
Not open for further replies.
Top