[Owncloud] updater.php error: Access to undeclared static property: OC::$APPSROOT

chymian chymian at gmx.net
Thu Nov 15 12:28:30 UTC 2012


hi,
ok, that helped.
but the installation docu has to be updated:
http://owncloud.org/support/install/ states:


        2.2. Set the directory permissions

The owner of your webserver must own the apps/, data/ and config/
directories in your ownCloud install. You can do this by running the
following command for the apps, data and config directories...


and most worse:
it disabled the ldap-module and forgot about the ldap-config. is that
expacted behavior?
if so, where is the docu/warning about this?

digging into that, it deleted the mysql-config!

propbably, there came a new config with the update, which destroyed the
old one. and the updater did not make any backup of the config file.
WTF!

I'm not very happy with this!!!
günter




Am 15.11.2012 08:56, schrieb Victor Dubiniuk:
> Hi,
>
> please check permissions inside 3rdparty/Archive. I haven't added
> check yet, but all ownCloud  directories and files excluding the
> 'data' directory should be writable for the user that is used to run
> PHP the script.
>
> ---
> Victor
>
>
> On Thu, Nov 15, 2012 at 6:04 AM, chymian <chymian at gmx.net
> <mailto:chymian at gmx.net>> wrote:
>
>     hi vic,
>     thx for the quick answer,
>
>     but I had no luck.
>
>     doing the quickfix with changing line 37, threw another error:
>
>     ==> xxxx.xxxx.net-error.log <==
>     [Thu Nov 15 02:33:00 2012] [error] [client 46.252.25.22] client denied
>     by server configuration:
>     /srv/www/xxxx.xxxx.net/data/htaccesstest.txt
>     <http://xxxx.xxxx.net/data/htaccesstest.txt>
>     [Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38
>     [Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] File does not
>     exist: /srv/www/xxxx.xxxx.net/favicon.ico
>     <http://xxxx.xxxx.net/favicon.ico>
>     [Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38
>     [Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] File does not
>     exist: /srv/www/xxxx.xxxx.net/favicon.ico
>     <http://xxxx.xxxx.net/favicon.ico>
>     [Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38
>     [Thu Nov 15 03:17:25 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38
>     [Thu Nov 15 03:17:32 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38
>     [Thu Nov 15 03:17:42 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38,
>     referer:
>     https://xxxx.xxxx.net/
>     [Thu Nov 15 03:17:52 2012] [error] [client 178.14.233.173
>     <tel:178.14.233.173>] PHP Parse
>     error:  syntax error, unexpected '[', expecting ')' in
>     /srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php
>     <http://xxxx.xxxx.net/apps/updater/appinfo/app.php> on line 38,
>     referer:
>     https://xxxx.xxxx.net/
>
>
>     replacing the complete updater with the provided zip:
>     the update started, the progress bar went half way thru, then stopped
>     with an error:
>     Error: Failed to create backup
>
>     OC-LOG:
>     Error    updaterUnable copy
>     /srv/www/xxxx.xxxx.net/3rdparty/Archive
>     <http://xxxx.xxxx.net/3rdparty/Archive> to
>     /srv/www/xxxxx.xxxxx.net/backup/tmp/3rdparty/Archive
>     <http://xxxxx.xxxxx.net/backup/tmp/3rdparty/Archive>    November 15,
>     2012, 03:55
>
>     nothing special in apache-logfile...
>     $ 178.14.233.173 <tel:178.14.233.173> - - [15/Nov/2012:03:39:48
>     +0100] "POST
>     /core/ajax/translations.php HTTP/1.1" 200 538
>     "https://xxxx.xxxx.net/settings/admin.php" "Mozilla/5.0 (X11; Linux
>     x86_64; rv:10.0.10) Gecko/20100101 Firefox/10.0.10 Iceweasel/10.0.10"
>     178.14.233.173 <tel:178.14.233.173> - - [15/Nov/2012:03:39:48
>     +0100] "POST
>     /?app=updater&getfile=ajax/admin.php HTTP/1.1" 200 490
>     "https://xxxx.xxxx.net/settings/admin.php" "Mozilla/5.0 (X11; Linux
>     x86_64; rv:10.0.10) Gecko/20100101 Firefox/10.0.10 Iceweasel/10.0.10"
>     178.14.233.173 <tel:178.14.233.173> - - [15/Nov/2012:03:39:58
>     +0100] "POST
>     /?app=updater&getfile=ajax/admin.php HTTP/1.1" 200 522
>     "https://xxxx.xxxx.net/settings/admin.php" "Mozilla/5.0 (X11; Linux
>     x86_64; rv:10.0.10) Gecko/20100101 Firefox/10.0.10 Iceweasel/10.0.10"
>
>     it created 2 directories within backup/
>
>     $ du */*
>     11M     4.90.2-422dd188/3rdparty
>     23M     4.90.2-422dd188/apps
>     14M     4.90.2-422dd188/core
>     11M     4.90.3/3rdparty
>     20M     4.90.3/apps
>     14M     4.90.3/core
>     90M     total
>
>
>     btw, I'm using owncloud 4.5.1a
>
>     did I miss something?
>
>     TIA
>     günter
>
>
>     Am 14.11.2012 23:08, schrieb Victor Dubiniuk:
>     > Hi Günter,
>     >
>     > Sorry for that.
>     > It's already fixed in a new version that is shipped with 4.5.2. The
>     > simplest way to proceed is to change line #37
>     > in *updater/appinfo/app.php:*
>     >
>     > - 'apps' => \OC::$APPSROOT . DIRECTORY_SEPARATOR . 'apps',
>     > + 'apps' => \OC::APPSROOTS[0]['path'] . DIRECTORY_SEPARATOR .
>     'apps',
>     > Alternatively you can upload the recent Updater. It doesn't
>     require to
>     > delete the temporary directory as well.
>     > I pushed it here https://github.com/VicDeo/updater-025
>     >
>     >
>     >     [Wed Nov 14 21:44:39 2012] [error] [client xx.xxx.xxx.xx] client
>     >     denied
>     >     by server configuration:
>     >     /srv/www/xxxxx.xxxxx.net/data/htaccesstest.txt
>     <http://xxxxx.xxxxx.net/data/htaccesstest.txt>
>     >     <http://xxxxx.xxxxx.net/data/htaccesstest.txt>
>     >     which came from the server-ip as client itself.
>     >
>     >
>     > it's ok. This location should not be accessible from the web.
>     There is
>     > a self-check implemented to prevent the user data from being
>     > compromised and your log says that your data directory is safe.
>     >
>     > ---
>     > Victor
>     >
>     >
>     > On Wed, Nov 14, 2012 at 11:54 PM, chymian <chymian at gmx.net
>     <mailto:chymian at gmx.net>
>     > <mailto:chymian at gmx.net <mailto:chymian at gmx.net>>> wrote:
>     >
>     >     hi,
>     >     trying to update to 4.5.2 with the updater.php it threw me an
>     >     error first:
>     >     Unable to fetch package.
>     >
>     >
>     >     the apache error-logs stated:
>     >
>     >      Wed Nov 14 21:31:55 2012] [error] [client 178.14.134.80]
>     PHP Warning:
>     >     mkdir(): File exists in
>     >     /srv/www/xxxxx.xxxxx.net/apps/updater/lib/downloader.php
>     <http://xxxxx.xxxxx.net/apps/updater/lib/downloader.php>
>     >     <http://xxxxx.xxxxx.net/apps/updater/lib/downloader.php> on
>     line 45,
>     >     referer: https://xxxxx.xxxxx.net/settings/admin.php
>     >
>     >     found out that it was trying to create the "backup/..."
>     directory,
>     >     which
>     >     did exist, as leftover from a former update attempt.
>     >
>     >     after moving that out of the way, I got the following error:
>     >
>     >
>     >     [Wed Nov 14 21:37:20 2012] [error] [client 178.14.134.80]
>     PHP Fatal
>     >     error:  Access to undeclared static property: OC::$APPSROOT in
>     >     /srv/www/xxxxx.xxxxx.net/apps/updater/appinfo/app.php
>     <http://xxxxx.xxxxx.net/apps/updater/appinfo/app.php>
>     >     <http://xxxxx.xxxxx.net/apps/updater/appinfo/app.php> on
>     line 37,
>     >     referer: https://xxxxxx.xxxxxx.net/settings/admin.php
>     >
>     >     and the updater was staying on "Update in Progress", not doing
>     >     anything
>     >     else.
>     >
>     >     reloading the page and started updater again, and it went
>     back to the
>     >     first error.
>     >
>     >     so, what to do?
>     >
>     >
>     >     don't know, whether the error further up in the apache log has
>     >     anything
>     >     to do with it:
>     >
>     >     [Wed Nov 14 21:44:39 2012] [error] [client xx.xxx.xxx.xx] client
>     >     denied
>     >     by server configuration:
>     >     /srv/www/xxxxx.xxxxx.net/data/htaccesstest.txt
>     <http://xxxxx.xxxxx.net/data/htaccesstest.txt>
>     >     <http://xxxxx.xxxxx.net/data/htaccesstest.txt>
>     >
>     >     which came from the server-ip as client itself.
>     >
>     >
>     >     TIA
>     >     günter
>     >     _______________________________________________
>     >     Owncloud mailing list
>     >     Owncloud at kde.org <mailto:Owncloud at kde.org>
>     <mailto:Owncloud at kde.org <mailto:Owncloud at kde.org>>
>     >     https://mail.kde.org/mailman/listinfo/owncloud
>     >
>     >
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20121115/ad25109c/attachment.html>


More information about the Owncloud mailing list