Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Ask all your questions regarding OC 8.2 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/
bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 4:35 am

using root with sudo:

admin@DiskStation:/volume1/web/owncloud/apps/updater/lib/location$ vi core.php
<?php

/**
* ownCloud - Updater plugin
*
* @author Victor Dubiniuk
* @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
*
* This file is licensed under the Affero General Public License version 3 or
* later.
*/

namespace OCA\Updater\Location;

use OCA\Updater\Location as Location;
use OCA\Updater\App;
use OCA\Updater\Helper;

class Core extends Location {

protected $type = 'core';

protected function getWhitelist(){
"core.php" [readonly] 65L, 1514C 1,1 Top


so:

Target:
@@ -23,7 +23,7 @@ class Core extends Location {
protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
- $list = $fullList['8.1'];
+ $list = $fullList['8.2'];
return $list;
}

Now:
class Core extends Location {

protected $type = 'core';

protected function getWhitelist(){
"core.php" [readonly] 65L, 1514C 1,1 Top

but still readonly...

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 3:13 pm

found out to use sudo -i to get root access!!

Question:
should i delete old core.php and instead use the new one? or should i edit the old one and delete all and insert

class Core extends Location {
protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
- $list = $fullList['8.1'];
+ $list = $fullList['8.2'];
return $list;
}

(new text?)

what about
use OCA\Updater\Location as Location;
use OCA\Updater\App;
use OCA\Updater\Helper;??

what about
@@ -23,7 +23,7 @@?




should look like:

[Stable8.2] Use 8.2 #192
Merged
VicDeo merged 1 commit into stable8.2 from stable8.2-use-8.2 on 20 Nov 2015
Conversation 0 Commits 1 Files changed 1
+1 −1
2 lib/location/core.php
@@ -23,7 +23,7 @@ class Core extends Location {
protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
- $list = $fullList['8.1'];
+ $list = $fullList['8.2'];
return $list;
}


to be changed:

core.php:

namespace OCA\Updater\Location;

use OCA\Updater\Location as Location;
use OCA\Updater\App;
use OCA\Updater\Helper;

class Core extends Location {

protected $type = 'core';

protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
$list = $fullList['8.1'];
return $list;
}

protected function filterOld($pathArray) {
$whitelist = $this->getWhitelist();

// Skip 3rdparty | apps | backup | datadir | config | themes
foreach ($pathArray as $key => $path) {
if (!in_array($path, $whitelist)) {
unset($pathArray[$key]);
}
}
return $pathArray;
}

protected function filterNew($pathArray) {
// Skip config | themes
foreach ($pathArray as $key => $path) {
if ($path === 'config' || $path === 'themes') {
unset($pathArray[$key]);
}
}
return $pathArray;
}

protected function finalize() {
// overwrite themes content with new files only
$themes = $this->toAbsolute(
$this->newBase . '/themes', Helper::scandir($this->newBase . '/themes')
);

foreach ($themes as $name => $location) {
Helper::removeIfExists($this->oldBase . '/themes/' . $name);
1,1 Top

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: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby RealRancor » Sun Jul 17, 2016 3:21 pm

Just change the

$list = $fullList['8.1'];

in the core.php to

$list = $fullList['8.2'];
*gone*

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 5:30 pm

Thx a lot for help!!

Was hopefully able to change using vi, saved using Escape :w

Now shows:
protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
$list = $fullList['8.2'];
return $list;
}

but in trying to update:

Bitte stelle sicher, dass Dein Server Schreibzugriff auf die folgenden Dateien und Verzeichnisse hat:
/volume1/web/owncloud/apps/updater/lib/location/.core.php.swp

No write Access for that mentioned file?

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 5:32 pm

admin@DiskStation:/volume1/web/owncloud/apps/updater/lib/location$ ls -al
total 32
drwxr-xr-x 2 http http 4096 Jul 17 17:11 .
drwxr-xr-x 3 http http 4096 Dec 11 2015 ..
-rw-r--r-- 1 http http 1698 Dec 11 2015 apps.php
-rw-r--r-- 1 http http 1514 Jul 17 17:11 core.php
-rw-r--r-- 1 root root 12288 Jul 17 17:11 .core.php.swp
-rw-r--r-- 1 http http 372 Dec 11 2015 thirdparty.php
admin@DiskStation:/volume1/web/owncloud/apps/updater/lib/location$

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 5:41 pm

chmod o= rw .core.php.swp ---- ist this statment correct?
(others read and write)

owner, group, others..:>))

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: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby RealRancor » Sun Jul 17, 2016 8:55 pm

Just delete the file .core.php.swp as root. Thats a backup file from vi
*gone*

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 9:11 pm

root@DiskStation:/volume1/web/owncloud/apps/updater/lib/location# rm -i .core.php.swp
rm: remove regular file ‘.core.php.swp’? y
root@DiskStation:/volume1/web/owncloud/apps/updater/lib/location# ls -al
total 20
drwxr-xr-x 2 http http 4096 Jul 17 21:09 .
drwxr-xr-x 3 http http 4096 Dec 11 2015 ..
-rw-r--r-- 1 http http 1698 Dec 11 2015 apps.php
-rw-r--r-- 1 http http 1514 Jul 17 17:11 core.php
-rw-r--r-- 1 http http 372 Dec 11 2015 thirdparty.php
root@DiskStation:/volume1/web/owncloud/apps/updater/lib/location#

:)

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 9:19 pm

Hier ist Deine Sicherung: /volume1/owncloud/updater_backup/8.2.1.4-e64b48d0

Alles erledigt. Klicke auf den Link unten, um das Datenbank-Upgrade zu beginnen.

bernd67
Beginner
Posts: 18
Joined: Thu Jul 14, 2016 9:52 pm

Re: Unable to move /volume1/web/owncloud/_oc-upgrade/8.2.6/core/resources to /volume1/web/owncloud/resources

Postby bernd67 » Sun Jul 17, 2016 9:20 pm

ownCloud wird auf Version 8.2.6 aktuallisiert
Diese Apps werden aktuallisiert:

Activity (activity)
Files (files)
PDF Viewer (files_pdfviewer)


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.2”

Who is online

Users browsing this forum: No registered users and 1 guest