[Owncloud] updater.php error: Access to undeclared static property: OC::$APPSROOT
chymian
chymian at gmx.net
Thu Nov 15 12:52:09 UTC 2012
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
[Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php on line 38
[Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173] File does not
exist: /srv/www/xxxx.xxxx.net/favicon.ico
[Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php on line 38
[Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173] File does not
exist: /srv/www/xxxx.xxxx.net/favicon.ico
[Thu Nov 15 03:17:04 2012] [error] [client 178.14.233.173] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php on line 38
[Thu Nov 15 03:17:25 2012] [error] [client 178.14.233.173] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php on line 38
[Thu Nov 15 03:17:32 2012] [error] [client 178.14.233.173] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/xxxx.xxxx.net/apps/updater/appinfo/app.php on line 38
[Thu Nov 15 03:17:42 2012] [error] [client 178.14.233.173] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/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] PHP Parse
error: syntax error, unexpected '[', expecting ')' in
/srv/www/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 to
/srv/www/xxxxx.xxxxx.net/backup/tmp/3rdparty/Archive November 15,
2012, 03:55
nothing special in apache-logfile...
$ 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 - - [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 - - [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>
> 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>> 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> 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> 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>
>
> which came from the server-ip as client itself.
>
>
> TIA
> günter
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org <mailto:Owncloud at kde.org>
> https://mail.kde.org/mailman/listinfo/owncloud
>
>
More information about the Owncloud
mailing list