× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

OwnCloud add-on thread

RATSSWFL
Aspirant

Re: OwnCloud add-on thread

Though I didn't realize this before, the problem starts at the first command: #!/bin/bash
which returns: "-bash: !/bin/bash: event not found"
I originally thought the # indicated a remark line and ignored this.

The next issue happens at: "tar -xjf owncloud*.bz2" (which I tried as provided but also replaced with "tar -xjf owncloud-4.5.6.tar.bz2" to see if I got different results)
It returns -
"tar: bzip2: Cannot exec: No such file or directory"
"tar: Error is not recoverable: exiting now"
"tar: Child returned status 2/"
"tar: Error exit delayed from previous errors"

Finally: "mv owncloud /usr/share/"
gives me "cannot stat `owncloud': No such file or directory"

I don't go beyond this as there doesn't seem to be any point to it after being told the files don't exist.

I am connecting via PuTTY as root and entering the commands one at a time, not as a script. I don't feel this changes anything for the errors I'm receiving, but it is possible this is where my error lies. If that is the case, is there a particular folder or share where the script needs to be?

Thanks very much for any and all help.
Message 26 of 72
slobberbone
Aspirant

Re: OwnCloud add-on thread

So If I understand all, you connect to your ReadyNAs Duo with Putty (ssh) and you pull all lines before one by on.

In bash all line with # is a comment.

I explain the first 10 lines :

#!/bin/bash
-> it's to specify in a script the shell used, in our case bash, the one you have probably when you connect with you putty
cd /tmp
-> go in the /tmp directory
rm -Rf owncloud*.*
-> remove old download packet of ownCloud
#wget http://mirrors.owncloud.org/releases/owncloud-latest.tar.bz2
-> comment
wget http://mirrors.owncloud.org/releases/owncloud-4.5.5.tar.bz2
-> wget is a tool that download the owncloud packet at this url (to adapt at the version you wish (you have to do that with all patches from the original provide by the ReadyXtra add-on)
#rm -Rf /usr/share/owncloud_*
-> comment, before I removed the old backup instance of owncloud, but by security, : comment 😉
mv /usr/share/owncloud/ /usr/share/owncloud_save
-> we make a backup of our owncloud instance
#tar -xjf owncloud-latest.tar.bz2
-> comment
tar -xjf owncloud*.bz2
-> wu untar the download packet of owncloud

After that, when all it's ok, continue my instructions, if necessary I explain you the rest of the script later !
Message 27 of 72
beosro
Aspirant

ça plante toujours

Merci slobberbone pour l'aide. Je ne reussis pas à dépasser ça:

Backup-1TB:/tmp# wget http://mirrors.owncloud.org/releases/owncloud-latest.tar.bz2
--00:44:16-- http://mirrors.owncloud.org/releases/owncloud-latest.tar.bz2
=> `owncloud-latest.tar.bz2.1'
Resolving mirrors.owncloud.org... 50.30.42.17
Connecting to mirrors.owncloud.org|50.30.42.17|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://owncloud.org/releases/owncloud-latest.tar.bz2 [following]
--00:44:17-- http://owncloud.org/releases/owncloud-latest.tar.bz2
=> `owncloud-latest.tar.bz2.1'
Resolving owncloud.org... 50.30.42.17
Reusing existing connection to mirrors.owncloud.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 9,188,594 (8.8M) [application/x-bzip]

100%[========================================================>] 9,188,594 1.22M/s ETA 00:00

00:44:25 (1.08 MB/s) - `owncloud-latest.tar.bz2.1' saved [9188594/9188594]

Backup-1TB:/tmp# tar -xjf ./owncloud*.bz2
tar: bzip2: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
Backup-1TB:/tmp# tar -xjf owncloud-latest.tar.bz2
tar: bzip2: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors



Any clue?
Message 28 of 72
beosro
Aspirant

Re: OwnCloud add-on thread

Well, it appears that I have no bzip2 pkg installed. And, of course, beeing on SPARC platform, I have APT neither :-). Working on it ...
Message 29 of 72
InTheShires
Tutor

Re: OwnCloud add-on thread

beosro, I've just tested the wget and untar lines mentioned above, and all worked as it was supposed to.

I'm not sure why the # is appearing at the start of a couple of lines, but that's by the by, as that won't help anything AFAIK.

cd /tmp will move you into the correct working directly, which in this instance the writer wants you to use /tmp.

wget http://mirrors.owncloud.org/releases/ow ... .5.tar.bz2 will download Owncloud in to the /tmp directory you are in.

tar -xjf owncloud*.bz2 will extract the Owncloud to it's own new folder in /tmp. (E.G. owncloud-4.5.5)

If the last line fails I would check the permissions set on your /tmp folder. (Or where ever you are saving the files to if you are choosing your own preferred directory/folder.)

You are logging in as root I assume, when SSH'ing to the box?

EDIT - Seen you newer post. There is an addon for APT. Install that.

Once done, run this

apt-get update && apt-get install build-essential
Message 30 of 72
RATSSWFL
Aspirant

Re: OwnCloud add-on thread

The APT package is toward the bottom of the page HERE: http://www.readynas.com/?page_id=617

Once installed and the NAS restarted, run apt-get update, then apt-get install bzip2. That's as far as I've gotten so far, but I think that should do it. I often take for granted as a tech that my clients "just know" things because I'm so used to doing those things. I suppose it's the same when you're a developer. You don't always realize that most folks don't have all the goodies you have on your machine.

-------------------------------------------------------

Success!! Once the foundations were in place everything went smoothly. There was one other minor hiccup, in that during Apache restart, an error message indicated that the Servernam couldn't be identified. This did not stop the process from completing. Apparently, this should be specified in httpd.conf, and I may get around to adding that line, but only if I see that it's causing problems.

Many thanks for the help, and I hope my added info can help others.
Message 31 of 72
slobberbone
Aspirant

Re: OwnCloud add-on thread

Congratulations ! lol

For your information : The Servername couldn't be identified is a warning and not an error 😉 it's not important !

The file http://mirrors.owncloud.org/releases/ow ... st.tar.bz2 should be the latest version of ownCloud, but in reality, it's not the case ... that's why I comment this line and we have to write http://mirrors.owncloud.org/releases/ow ... .5.tar.bz2 or the good version.

If I were you I'll copy all the lines in a file named ownCloud-upgrade.sh in /root/ (for example) and you only have to call it like this :

sh /root/ownCloud-upgrade.sh

Remember to change the url to the true latest version of ownCloud !
Message 32 of 72
beniroquai
Aspirant

Re: OwnCloud add-on thread

I just installed the update via the script from you and I really liked it! 🙂 Buuut, when I try to enable the external storage add-on to get my dropbox working, I always get the message: Fetching request tokens failed. Verify that your Dropbox app key and secret are correct. It is a known issue, but I can't solve it. Is it readynas related? Does anybody have success with it?
Message 33 of 72
Pelletfreak
Aspirant

Re: OwnCloud add-on thread

what am I doing wrong?

nas-C0-DE-90:/tmp# sh /tmp/owncloud-upgrade.sh
: No such file or directoryine 2: cd: /tmp
--2013-04-03 14:33:50-- http://mirrors.owncloud.org/releases/owncloud-4.5.5.tar
.bz2%0D
Resolving mirrors.owncloud.org... 50.30.42.17
Connecting to mirrors.owncloud.org|50.30.42.17|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-04-03 14:33:50 ERROR 404: Not Found.

mv: cannot stat `/usr/share/owncloud/': No such file or directory
tar (child): owncloud*.bz2\r: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat `owncloud': No such file or directory
chown: cannot access `/usr/share/owncloud/\r': No such file or directory
: No such file or directoryine 12: cd: /usr/share/owncloud/
ln: creating symbolic link `data\r/data': File exists
cp: cannot stat `../owncloud_save/config/': No such file or directory
cp: cannot stat `../owncloud_save/.htaccess': No such file or directory
cp: cannot stat `../owncloud_save/apps/': No such file or directory
chown: cannot access `/usr/share/owncloud/\r': No such file or directory
: No such file or directoryine 18: cd: /etc/frontview/
apache-ssl: Could not reliably determine the server's fully qualified domain nam
e, using 192.168.1.51 for ServerName
nas-C0-DE-90:/tmp#
Message 34 of 72
InTheShires
Tutor

Re: OwnCloud add-on thread

Pelletfreak wrote:
what am I doing wrong?

nas-C0-DE-90:/tmp# sh /tmp/owncloud-upgrade.sh
: No such file or directoryine 2: cd: /tmp
--2013-04-03 14:33:50-- http://mirrors.owncloud.org/releases/owncloud-4.5.5.tar
.bz2%0D


Swap the above download URL for a working one...

http://download.owncloud.org/community/ ... .0.tar.bz2
Message 35 of 72
Pelletfreak
Aspirant

Re: OwnCloud add-on thread

Unfortunately, the situation has not changed. still the same problem.


nas-C0-DE-90:/tmp# sh /root/owncloud-upgrade.sh
: No such file or directoryline 2: cd: /tmp
--2013-04-04 12:11:46-- http://download.owncloud.org/community/owncloud-5.0.0.t
ar.bz2%0D
Resolving download.owncloud.org... 50.30.42.17
Connecting to download.owncloud.org|50.30.42.17|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-04-04 12:11:47 ERROR 404: Not Found.

mv: cannot stat `/usr/share/owncloud/': No such file or directory
tar (child): owncloud*.bz2\r: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat `owncloud': No such file or directory
chown: cannot access `/usr/share/owncloud/\r': No such file or directory
: No such file or directoryline 12: cd: /usr/share/owncloud/
ln: creating symbolic link `data\r/data': File exists
cp: cannot stat `../owncloud_save/config/': No such file or directory
cp: cannot stat `../owncloud_save/.htaccess': No such file or directory
cp: cannot stat `../owncloud_save/apps/': No such file or directory
chown: cannot access `/usr/share/owncloud/\r': No such file or directory
: No such file or directoryline 18: cd: /etc/frontview/
apache-ssl: Could not reliably determine the server's fully qualified domain nam
e, using 192.168.1.51 for ServerName
nas-C0-DE-90:/tmp#
Message 36 of 72
Pelletfreak
Aspirant

Re: OwnCloud add-on thread

it works, bzip2 was not installed and the file I downloaded from hand. thank you
Message 37 of 72
pugilares
Aspirant

Re: OwnCloud add-on thread

Will this work with the latest owncloud, which is at the moment 5.0.6?

So, do I need to istall owncloud 4.0.7 from the readynasxtras package and then update?
Or there is a simpler way?

I have PHP 5.3.2 on my SPARC Duo.
Message 38 of 72
fastfwd
Virtuoso

Re: OwnCloud add-on thread

pugilares wrote:
Will this work with the latest owncloud, which is at the moment 5.0.6?

You don't want to run Owncloud 5 yet. Wait for more bugs to be fixed; it's really unstable at the moment.
pugilares wrote:
So, do I need to istall owncloud 4.0.7 from the readynasxtras package and then update?

Yes. Install the addon, then update using Slobberbone's instructions.

It's often recommended that, for safety, you update to the latest version of a release before upgrading to a later release. If you want to do that, install the 4.0.7 addon and make sure that it works, then update to 4.0.15 (the latest 4.0.x), then update again to 4.5.11 (the latest 4.x).

I prefer to update by entering the commands in Slobberbone's guide by hand, one by one, rather than running them all in a script. You'll need to customize the wget command with the correct download location for each version; the download locations for 4.0.15 and 4.5.11 are on the OwnCloud forum in the Announcements section: https://forum.owncloud.org

And speaking of the forum... Spend some time browsing through it; there's lots of information there.

Good luck.
Message 39 of 72
slobberbone
Aspirant

Re: OwnCloud add-on thread

Hello !

I'm trying install the last 5 version of ownCloud ... but without success ... Maybe there was bug when I try it ..
Since I've tried to reinstall the last 4.5.X but with MySQL instead of SQLlite ... without success too for the moment ... I'll try again and remove all data, if it works, I give you an how to here 😉 !

Bye !
Message 40 of 72
BTS1
Aspirant

Re: OwnCloud add-on thread

I assume that this is a typo in slobberbones update instructions:

cp -Rn ../owncloud_save/apps/ ./

and it should just be

cp -R ../owncloud_save/apps/ ./

since there is no "-n" option for cp...

or am I missing something?

thx
Message 41 of 72
BTS1
Aspirant

Re: OwnCloud add-on thread

Hi again,

just a readyNAS noob here. I installed Whocares? php5 and Owncloud 4.0.7 add-on's. (including ssh, apt, bzip, etc...) all went well. Well, maybe not, I did do a "apt-get install libapache2-mod-php5" in there which prob caused me to have to isntall Whocares? php5 add-on twice. Oh well. all was working fine.

Then I went to upgrade to owncloud 4.5 so I followed slobberbones instructions with the extra precaution of going first to 4.0.15 (this went fine)

however, 4.5.11 installed fine but now when I hit the owncloud site https://x.x.x.x/owncloud I get a mal-formatted version of the owncloud page. (The owncloud login page looks fine, I enter admin/netgear1 and then I get the weird page.

Any thoughts?

thanks!
Message 42 of 72
BTS1
Aspirant

Re: OwnCloud add-on thread

Sorry for the waste of bandwidth. After multiple reinstalls, I have 4.5.5 running...don't know if 4.5.11 will work here yet...
Message 43 of 72
pugilares
Aspirant

Re: OwnCloud add-on thread

Did you try with 5 series?
Message 44 of 72
BTS1
Aspirant

Re: OwnCloud add-on thread

I did not try v5 based on fastfwd's post above citing current bugs. Any other experiences?
Message 45 of 72
fastfwd
Virtuoso

Re: OwnCloud add-on thread

BTS wrote:
I assume that this is a typo in slobberbones update instructions:
cp -Rn ../owncloud_save/apps/ ./
since there is no "-n" option for cp...

The GNU version of cp accepts the -n option; it means "do not overwrite existing files". Slobberbone used it on that line to prevent the script from erroneously overwriting updated versions of built-in apps with the older versions from your previous installation.
Message 46 of 72
BTS1
Aspirant

Re: OwnCloud add-on thread

Thanks for the clarification! didn't realize Gnu and Debian were running different versions of cp...
Message 47 of 72
rklosinski
Aspirant

Re: OwnCloud add-on thread

Im trying to upgrade owncloud on a Duo v2 but cannot figure out how to get bzip2. apt-cache list does not show it listed! HELP!
Message 48 of 72
rklosinski
Aspirant

Re: OwnCloud add-on thread

Duh! nvmd. apt-get update fixed that problem!
Message 49 of 72
christi1
Aspirant

Re: OwnCloud add-on thread

Hi

I have been trying to manually install owncloud 5 on my NV+ v2 (arm). I can get this to work with the exception of user authentication. There's a suggestion on the owncloud forums that this is because the frontview apache install uses authtype basic authentication, which interferes with owncloud's own authentication. Adding "Satisfy Any" to the apache config for the owncloud directory as suggested there doesn't seem to help.

Does anyone know the correct way to configure frontview apache to enable owncloud to work multi-user?

Thanks.
Message 50 of 72
Top Contributors
Discussion stats
Announcements