Page 7 of 8

Re: [EXTENSION] NextOwnCloud

Posted: 16 May 2019 23:34
by chachi420
crest wrote:
11 May 2019 06:25
Hello chachi420,

chachi420 wrote:
11 May 2019 00:07
Ghozer wrote:
10 May 2019 21:27
chachi420 wrote:
10 May 2019 20:46
Ghozer wrote:
10 May 2019 16:55
Hi, I have this setup, I can get to the web interface, and the client connects, but I can't see any files, the web interface "files" page is blank, and the desktop client can't download/upload anything (get internal server error 500, and "connection refused"?) very annoying, as everything else is working...

my data directory is set up correctly as far as i'm aware too....
YES!! same with me! not just the icons, but the files showed missing too. I see that you commented on my post stating the fix. Does it fix both the icons AND the missing files or just the icons?
I manged to get the icon images back with the above cli edit, but my files don't show at all, not even a place for them (where as with the icons missing I could still click where they SHOULD be and it still worked) and I believe this is a different issue...

- like I said in my post, I have an issue syncing, it gives an error in the NextCloud desktop client, it won't upload anything I put in Nextcloud folder, and won't download anything from the server....

Ahhh this is really frustrating. Let's hope someone can point out what's going wrong.
Did you try to get help in the Nextcloud forums?

Which version of
- XigmaNAS,
- Nextcloud and
- browser
do you use?
Did you check the NC logs for errors?

There is - for example - one entry in NC Github -> Missing icons in Files app after upgrade to 14.0.3 which proposes to use

Code: Select all

occ maintenance:repair
with success.

You could try the above command in the CLI like ...

Code: Select all

sudo -u www php occ maintenance:repair
maybe this solves your issues ...

Since I cannot reproduce your phenomenon I would strongly suggest to dig in the NC forums for other solutions ...

Best regards
crest

I will say I can figure things out if given instructions, no problem. So yes, I did see this post actually but never attempted it because if no one else is having any issues, why am I having this issue if im following the steps exactly like you guys suggested. Also, I do not know what the command means and what it does so I did not just want to solve it, I actually want to learn from it exactly what is going on with my system and why it is not working.

Re: [EXTENSION] NextOwnCloud

Posted: 18 May 2019 18:29
by Ghozer
ok, here's the error I get in nextcloud.log
{"reqId":"15t0tDxqdFN0KxX6jtgd","level":3,"time":"2019-05-09T17:11:15+00:00","remoteAddr":"192.168.0.2","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"PHP Startup: Unable to load dynamic library 'smbclient.so' (tried: \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20180731\/smbclient.so (Cannot open \"\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20180731\/smbclient.so\"), \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20180731\/smbclient.so.so (Cannot open \"\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20180731\/smbclient.so.so\")) at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.131 Safari\/537.36","version":""}
and
{"reqId":"7ju0ix16e5ffYHVZYfMC","level":3,"time":"2019-05-09T21:22:04+00:00","remoteAddr":"192.168.0.2","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/cloud\/activity?start=0&count=100&format=json","message":"PHP Startup: smbclient: Unable to initialize module\nModule compiled with module API=20170718\nPHP compiled with module API=20180731\nThese options need to match\n at Unknown#0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.2git (build 20190319) (Nextcloud)","version":"15.0.7.0"}
And here's a screenshot of the errors I get in the desktop client,
nclouderror.png
Have just updated to the latest version of the Extension (0.3.5)

in /usr/local/lib/php/extensions I have 2 folders...

no-debug-non-zts-20170718
no-debug-non-zts-20180731

in "no-debug-non-zts-20170718" it has "smbclient.so" and it doesn't exist in "no-debug-non-zts-20180731"

if I copy it over (or symlink) I get an error about them not matching.....

Re: [EXTENSION] NextOwnCloud

Posted: 20 May 2019 17:30
by Shperrung
Hi,
I'm trying to set cron start job NC preview icons generator

Code: Select all

php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
but nothing happens. Manually ran command starts the process.
Whats wrong in cron settings?

Re: [EXTENSION] NextOwnCloud

Posted: 20 May 2019 18:47
by ms49434
Shperrung wrote:
20 May 2019 17:30
Hi,
I'm trying to set cron start job NC preview icons generator

Code: Select all

php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
but nothing happens. Manually ran command starts the process.
Whats wrong in cron settings?
full path to php is missing:

/usr/local/bin/php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate

Re: [EXTENSION] NextOwnCloud

Posted: 21 May 2019 07:00
by Shperrung
Unfortunately, cron doesn't want to start that comand even with full path /usr/local/bin/php~
"Run Now" starts the process in both kind of commands: short and full.
Other cron jobs works normally.

Re: [EXTENSION] NextOwnCloud

Posted: 22 May 2019 01:46
by varilsuhad
Hi,

I'm constantly getting The OwnCloud Document Root MUST be set to a directory below ''. error no matter where I set the directory to.
So what could be the problem?

Re: [EXTENSION] NextOwnCloud

Posted: 22 May 2019 18:30
by Ghozer
it cannot be set in your www root, it needs to be outside the location of the www (web root) folder...

So if you have /usr/local/www/NextCloud

you cannot use /usr/local/www/NCData... you have to use something such as /usr/local/clouddata/ or a totally different location such as an extra mount point ( /mnt/clouddata possibly.... )

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 00:34
by varilsuhad
Ghozer wrote:
22 May 2019 18:30
it cannot be set in your www root, it needs to be outside the location of the www (web root) folder...

So if you have /usr/local/www/NextCloud

you cannot use /usr/local/www/NCData... you have to use something such as /usr/local/clouddata/ or a totally different location such as an extra mount point ( /mnt/clouddata possibly.... )
I guess everyone installed it using a jail but I've installed it using the OneButtonInstaller.
It says owncloud (or nextcloud) is in this folder /mnt/pool/OneButton/owncloud
I tried setting the Document Root folder to everywhere or anywhere but it doesn't like that and I get the same error. Could it be related to the OneButtonInstaller?

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 07:26
by Ghozer
I installed using OneButtonInstaller - and I have a different issue to you... kinda further along!

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 07:37
by crest
Hello varilsuhad,

Welcome to the forum.
varilsuhad wrote:
23 May 2019 00:34
Ghozer wrote:
22 May 2019 18:30
it cannot be set in your www root, it needs to be outside the location of the www (web root) folder...

So if you have /usr/local/www/NextCloud

you cannot use /usr/local/www/NCData... you have to use something such as /usr/local/clouddata/ or a totally different location such as an extra mount point ( /mnt/clouddata possibly.... )
I guess everyone installed it using a jail but I've installed it using the OneButtonInstaller.
It says owncloud (or nextcloud) is in this folder /mnt/pool/OneButton/owncloud
I tried setting the Document Root folder to everywhere or anywhere but it doesn't like that and I get the same error. Could it be related to the OneButtonInstaller?
I suppose you didn't use the Data Folder, which you set in the NextOwnCloud extension, for the NextCloud app installation. Therefore you get the warnings. Please refer to the installation guide in the very first post of this thread, you will see at the screenshot of the NextCloud app installation where to put the Data Folder there.
I also recommend to use one of your shares for the Data Folder because you need a lot of space depending on the ammount of data you upload to your NC.

The easiest way to fix this would be to Remove the Nextcloud installation from inside the extension and install it again, proceed to the NC URL and repeat the NC installation according to the screenshot ...

NextCloud / ownCloud Setup
The last step, set the admin account user and password, for the Data folder use the Data folder path and name which has been setup before in the NextOwnCloud extension and the database and hit Finish setup.
For some reasons it could be necessary to repeat the steps above with some NextCloud releases, please pay attention to use the Data folder path and name which has been setup before in the NextOwnCloud extension to prevent warnings inside the Next/ownCloud applications!!!
screen_20171002_052808.png
This should solve your issue.

Best regards
crest

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 08:06
by crest
Hello Ghozer,
Ghozer wrote:
18 May 2019 18:29
ok, here's the error I get in nextcloud.log

...

And here's a screenshot of the errors I get in the desktop client,
nclouderror.png

Have just updated to the latest version of the Extension (0.3.5)

in /usr/local/lib/php/extensions I have 2 folders...

no-debug-non-zts-20170718
no-debug-non-zts-20180731

in "no-debug-non-zts-20170718" it has "smbclient.so" and it doesn't exist in "no-debug-non-zts-20180731"

if I copy it over (or symlink) I get an error about them not matching.....
Since you use the latest version 0.3.5 of the NOC extension please check if there is a folder bin in your NOC extension path and it should look like this...

Code: Select all

xn1: bin# ll /mnt/Pool1/DATA/extensions/owncloud/bin/
total 6
-rwxrwxr-x  1 root  wheel   781B Jan  1  1970 +COMPACT_MANIFEST*
-rwxrwxr-x  1 root  wheel   2.0K Jan  1  1970 +MANIFEST*
drwxrwxr-x  2 root  wheel     3B May 10 09:06 All/
drwxrwxr-x  3 root  wheel     3B May 10 09:06 usr/
xn1: bin#
You could try this command at the CLI from inside the NOC extension path ...

Code: Select all

php owncloud-start.php
to see if there are errors ...
Please check also the system log for related error messages.

After the successful execution the PHP extension directory should hold the needed smbclient.so file ...

Code: Select all

ll /usr/local/lib/php/extensions/no-debug-non-zts-20180731/
total 682
-rw-r--r--  1 root  wheel    75K Mar 31 15:35 apcu.so
-rw-r--r--  1 root  wheel   527K Mar 31 15:35 opcache.so
-rwxr-xr-x  1 root  wheel    62K May 23 07:16 smbclient.so*
Best regards
crest

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 08:33
by crest
Hello Shperrung,
ms49434 wrote:
20 May 2019 18:47
Shperrung wrote:
20 May 2019 17:30
Hi,
I'm trying to set cron start job NC preview icons generator

Code: Select all

php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
but nothing happens. Manually ran command starts the process.
Whats wrong in cron settings?
full path to php is missing:

/usr/local/bin/php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
Please try the command with prepending /usr/local/bin/sudo -u www if you setup the webserver service for www, run it with user root in cron ...

Code: Select all

/usr/local/bin/sudo -u www php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
Best regards
crest

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 21:36
by Ghozer
crest wrote:
23 May 2019 08:06
Hello Ghozer,

Since you use the latest version 0.3.5 of the NOC extension please check if there is a folder bin in your NOC extension path and it should look like this...

Code: Select all

xn1: bin# ll /mnt/Pool1/DATA/extensions/owncloud/bin/
total 6
-rwxrwxr-x  1 root  wheel   781B Jan  1  1970 +COMPACT_MANIFEST*
-rwxrwxr-x  1 root  wheel   2.0K Jan  1  1970 +MANIFEST*
drwxrwxr-x  2 root  wheel     3B May 10 09:06 All/
drwxrwxr-x  3 root  wheel     3B May 10 09:06 usr/
xn1: bin#
my NOC is installed in /mnt/HDD1/www/nextcloud/
data directory is.. /mnt/HDD1/cloud/data/
backup directory is /mnt/HDD1/cloud/backup/

I have the following directory...
/mnt/HDD1/extensions/owncloud/bin/
which contains

Code: Select all

-rw-r--r--  1 root  wheel    779 Jan  1  1970 +COMPACT_MANIFEST
-rw-r--r--  1 root  wheel   2064 Jan  1  1970 +MANIFEST
drwxr-xr-x  2 root  wheel    512 May 18 17:23 All
-rwxrwxr-x  1 root  wheel     23 Nov 24 05:40 ext-20-smbclient.ini
-rwxrwxr-x  1 root  wheel  61712 Nov 24 05:40 smbclient.so
drwxr-xr-x  3 root  wheel    512 May 18 17:23 usr
crest wrote:
23 May 2019 08:06
You could try this command at the CLI from inside the NOC extension path ...

Code: Select all

php owncloud-start.php
to see if there are errors ...
I run that, I get...

Code: Select all

serenity: bin# php owncloud-start.php
I get no errors in console.....
crest wrote:
23 May 2019 08:06
Please check also the system log for related error messages.
Which log? nextowncloud log or other? (which location specifically?) as the only errors I get are pasted above...
crest wrote:
23 May 2019 08:06
After the successful execution the PHP extension directory should hold the needed smbclient.so file ...

Code: Select all

ll /usr/local/lib/php/extensions/no-debug-non-zts-20180731/
total 682
-rw-r--r--  1 root  wheel    75K Mar 31 15:35 apcu.so
-rw-r--r--  1 root  wheel   527K Mar 31 15:35 opcache.so
-rwxr-xr-x  1 root  wheel    62K May 23 07:16 smbclient.so*
Best regards
crest

Code: Select all

drwxr-xr-x  2 root  wheel     512 May 23 20:37 .
drwxr-xr-x  4 root  wheel     512 May  9 17:33 ..
-rw-r--r--  1 root  wheel   76912 Mar 31 14:35 apcu.so
-rw-r--r--  1 root  wheel  540125 Mar 31 14:35 opcache.so
serenity: no-debug-non-zts-20180731#
Nope, I ran the above command like you said, I got no errors spat out at me, and the smbclient.so is still not where it's expected....

Still getting the same errors in /mnt/HDD1/cloud/data/nextcloud.log

Code: Select all

{"reqId":"WS7jrn2W63SdxY7BnE1O","level":3,"time":"2019-05-09T21:22:04+00:00","remoteAddr":"192.168.0.2","user":"admin","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications?format=json","message":"PHP Startup: smbclient: Unable to initialize module\nModule compiled with module API=20170718\nPHP    compiled with module API=20180731\nThese options need to match\n at Unknown#0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.2git (build 20190319) (Nextcloud)","version":"15.0.7.0"}
**Edit**

BTW: I haven't changed or done anything else to it, I installed XigmaNas, set up the hostname, mount ponts etc, and then proceeded to install NOC via OneButtonInstall - and that's literally ALL I have done, haven't played with or installed anything else.....

Re: [EXTENSION] NextOwnCloud

Posted: 23 May 2019 22:47
by Shperrung
crest wrote:
23 May 2019 08:33

Please try the command with prepending /usr/local/bin/sudo -u www if you setup the webserver service for www, run it with user root in cron ...

Code: Select all

/usr/local/bin/sudo -u www php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
Best regards
crest
Hello crest!
You are definitely right! It works. NC is installed for www and cron can't run it but your command and cron settings solve my problem.
Thank you for your input into this project and supporting of users here!

Re: [EXTENSION] NextOwnCloud

Posted: 24 May 2019 07:04
by crest
Shperrung wrote:
23 May 2019 22:47
crest wrote:
23 May 2019 08:33

Please try the command with prepending /usr/local/bin/sudo -u www if you setup the webserver service for www, run it with user root in cron ...

Code: Select all

/usr/local/bin/sudo -u www php -f /mnt/RAID/www/Nextcloud/occ preview:pre-generate
Best regards
crest
Hello crest!
You are definitely right! It works. NC is installed for www and cron can't run it but your command and cron settings solve my problem.
Thank you for your input into this project and supporting of users here!
Thank you for the kind words and good to see your problem solved :D

Re: [EXTENSION] NextOwnCloud

Posted: 24 May 2019 07:48
by crest
Ghozer wrote:
23 May 2019 21:36
crest wrote:
23 May 2019 08:06
Please check also the system log for related error messages.
Which log? nextowncloud log or other? (which location specifically?) as the only errors I get are pasted above...
The system log in Diagnose > Log
BTW: I haven't changed or done anything else to it, I installed XigmaNas, set up the hostname, mount ponts etc, and then proceeded to install NOC via OneButtonInstall - and that's literally ALL I have done, haven't played with or installed anything else.....
Ok, let's go further with some checks, the folder
- /mnt/HDD1/extensions/owncloud/bin/All should contain the file php73-pecl-smbclient-1.0.0.txz and
- /mnt/HDD1/extensions/owncloud/bin/usr/local/lib/php/20180731 should contain the file smbclient.so
right?

If it is like mentioned you could perform the following commands ...

Code: Select all

cp /mnt/HDD1/extensions/owncloud/bin/usr/local/lib/php/20180731/smbclient.so /usr/local/lib/php/extensions/no-debug-non-zts-20180731/smbclient.so
and

Code: Select all

service websrv restart
Then you should get access to your mounts from inside NC.

If the above mentioned folders don't contain the files then remove the bin folder in /mnt/HDD1/extensions/owncloud completely and run the command

Code: Select all

php owncloud-start.php
again.

In either case it is important to check the system log in Diagnose > Log because obviously something went wrong ...

Re: [EXTENSION] NextOwnCloud

Posted: 24 May 2019 09:14
by Ghozer
there's only one error in system logs....

Code: Select all

May 24 07:58:57	serenity	root: 2019-05-24 07:58:57: (configfile.c.1599) server.upload-dirs doesn't exist: /mnt/HDD1/upload 2019-05-24 07:58:57: (configfile.c.1599) server.upload-dirs doesn't exist: /mnt/HDD1/upload
Yes, /mnt/HDD1/extensions/owncloud/bin/All contains php73-pecl-smbclient-1.0.0.txz
yes /mnt/HDD1/extensions/owncloud/bin/usr/local/lib/php/20180731 contains smbclient.so as you said...

I copied over as you described, and restarted websrv...

I still don't see files in NOC web-view, (everything else in there seemingly works fine, and no errors in Administration > Overview in NOC)

and I still get the same errors in the desktop client... just "Conncetion closed" and "500 Internal Server Error" to "PUT...." etc...

these are the only errors in Diagnostics > Log

Code: Select all

May 24 08:07:17	serenity	login: login on ttyv0 as root
May 24 08:07:36	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-DLUgGX No such file or directory
May 24 08:07:37	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-jLKgDD No such file or directory
May 24 08:07:37	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-kZ7xNV No such file or directory
May 24 08:09:20	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-3jxZ0x No such file or directory
May 24 08:09:20	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-bSENQi No such file or directory
May 24 08:09:22	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-80E5V7 No such file or directory
May 24 08:09:30	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-rDm2n4 No such file or directory
May 24 08:10:05	serenity	root: ERROR: /mnt/HDD1/sysmon/rrd/auto.rrd: expected 2 data source readings (got 1) from N

Re: [EXTENSION] NextOwnCloud

Posted: 24 May 2019 09:52
by crest
Ghozer wrote:
24 May 2019 09:14
there's only one error in system logs....

Code: Select all

May 24 07:58:57	serenity	root: 2019-05-24 07:58:57: (configfile.c.1599) server.upload-dirs doesn't exist: /mnt/HDD1/upload 2019-05-24 07:58:57: (configfile.c.1599) server.upload-dirs doesn't exist: /mnt/HDD1/upload
Yes, /mnt/HDD1/extensions/owncloud/bin/All contains php73-pecl-smbclient-1.0.0.txz
yes /mnt/HDD1/extensions/owncloud/bin/usr/local/lib/php/20180731 contains smbclient.so as you said...

I copied over as you described, and restarted websrv...

I still don't see files in NOC web-view, (everything else in there seemingly works fine, and no errors in Administration > Overview in NOC)

and I still get the same errors in the desktop client... just "Conncetion closed" and "500 Internal Server Error" to "PUT...." etc...

these are the only errors in Diagnostics > Log

Code: Select all

May 24 08:07:17	serenity	login: login on ttyv0 as root
May 24 08:07:36	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-DLUgGX No such file or directory
May 24 08:07:37	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-jLKgDD No such file or directory
May 24 08:07:37	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-kZ7xNV No such file or directory
May 24 08:09:20	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-3jxZ0x No such file or directory
May 24 08:09:20	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-bSENQi No such file or directory
May 24 08:09:22	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-80E5V7 No such file or directory
May 24 08:09:30	serenity	lighttpd[2543]: (chunk.c.545) opening temp-file failed: /mnt/HDD1/upload/lighttpd-upload-rDm2n4 No such file or directory
May 24 08:10:05	serenity	root: ERROR: /mnt/HDD1/sysmon/rrd/auto.rrd: expected 2 data source readings (got 1) from N
So this seems to be the reason, you defined the webserver upload directory but you didn't create it - perform the commands

Code: Select all

mkdir -p /mnt/HDD1/upload
chown www /mnt/HDD1/upload
and restart the webserver, should solve the problems ...

Re: [EXTENSION] NextOwnCloud

Posted: 24 May 2019 09:57
by crest
Btw, there is another error in your log

Code: Select all

May 24 08:10:05	serenity	root: ERROR: /mnt/HDD1/sysmon/rrd/auto.rrd: expected 2 data source readings (got 1) from N
which can be solved following these instructions -> Re: [SOLVED] RRDGraphs: auto.rrd - old error on a new NAS

Re: [EXTENSION] NextOwnCloud

Posted: 24 May 2019 20:12
by Ghozer
I managed to fix it, before seeing these replies...

I had already made the upload folder - but the upload folder being wrong didn't explain why it wouldn't download FROM the server, (only why couldn't upload TO)

I found a different smbclient.so lurking in amongst the NOC files (it had a different date to the other one) - copied this one over and it seems to work now... oddly...

will fix the other issue too... thanks for all your help :)

Re: [EXTENSION] NextOwnCloud

Posted: 25 May 2019 15:23
by varilsuhad
crest wrote:
23 May 2019 07:37
Hello varilsuhad,

Welcome to the forum.
I thought I scanned through the first post but I didn't see that I should enable the webserver first :D
I managed to install the nextcloud, set a dns name for it, can access it through the cell phone. I think everything is fine now.

Thank you,

Re: [EXTENSION] NextOwnCloud

Posted: 25 May 2019 17:14
by crest
varilsuhad wrote:
25 May 2019 15:23
crest wrote:
23 May 2019 07:37
Hello varilsuhad,

Welcome to the forum.
I thought I scanned through the first post but I didn't see that I should enable the webserver first :D
I managed to install the nextcloud, set a dns name for it, can access it through the cell phone. I think everything is fine now.

Thank you,
You are welcome, good to see your problem solved ... :D

Re: [EXTENSION] NextOwnCloud

Posted: 25 May 2019 17:21
by crest
Ghozer wrote:
24 May 2019 20:12
I managed to fix it, before seeing these replies...

I had already made the upload folder - but the upload folder being wrong didn't explain why it wouldn't download FROM the server, (only why couldn't upload TO)

I found a different smbclient.so lurking in amongst the NOC files (it had a different date to the other one) - copied this one over and it seems to work now... oddly...

will fix the other issue too... thanks for all your help :)
Welcome ;) , I hope finally everything is working for you but keep it in mind for the next PHP version update which will come for sure with one of the next XigmaNAS system updates! Normally the NOC startup script will take care of it but since it obviously worked not as it should this time it would be interesting what will happen for the next time ....

Re: [EXTENSION] NextOwnCloud

Posted: 26 May 2019 18:45
by Ghozer
crest wrote:
25 May 2019 17:21
Ghozer wrote:
24 May 2019 20:12
I managed to fix it, before seeing these replies...

I had already made the upload folder - but the upload folder being wrong didn't explain why it wouldn't download FROM the server, (only why couldn't upload TO)

I found a different smbclient.so lurking in amongst the NOC files (it had a different date to the other one) - copied this one over and it seems to work now... oddly...

will fix the other issue too... thanks for all your help :)
Welcome ;) , I hope finally everything is working for you but keep it in mind for the next PHP version update which will come for sure with one of the next XigmaNAS system updates! Normally the NOC startup script will take care of it but since it obviously worked not as it should this time it would be interesting what will happen for the next time ....
no worries, i'll keep an eye on it - it's only for personal use any ways, and so my g/f has somewhere to easily backup her files from her computer etc.... so if something breaks and it needs fixing it's no biggie :)

I'll let you know / keep you updated if I have any issues on the next update etc, and we'll just go from there :)

Re: [EXTENSION] NextOwnCloud

Posted: 12 Sep 2019 00:52
by darioml
Hello.

I have just lost 90% of my 8 TB of data due to this extension (NextOwnCloud 0.3.4).

I had NextCloud configured as follows:

Document root: /mnt/pool1/www/nexcloud
Data folder: /mnt/pool1
Backup folder: /mnt/pool1/Backup/NextCloud

I had nothing stored yet via this Cloud services. I had not used it at all. All my NAS data was hanging below /mnt/pool1...

So, I wanted to remove it. I pressed the "Remove" button and, since it was thinking too much, after a couple of minutes, I did a "top" and a wonderful "rm" was taking 40% of the CPU.

I run a "df -k" and most of the datasets were empty. I turned off the NAS by pulling the plug, but it was too late.

Please, separate what is just to Remove/Take out/Uninstall just the extension from what is really deleting the WHOLE data. Anyway, I do not really understand how could anyone delete all the data from a GUI, which does not give any information, instead of actually a shell or a file explorer, which can be controlled. It is too dangerous.

I am devastated.

Re: [EXTENSION] NextOwnCloud

Posted: 12 Sep 2019 20:56
by Snufkin
darioml wrote:
12 Sep 2019 00:52
I have just lost 90% of my 8 TB of data...

I had NextCloud configured as follows:

Document root: /mnt/pool1/www/nexcloud
Data folder: /mnt/pool1
Backup folder: /mnt/pool1/Backup/NextCloud

I had nothing stored yet via this Cloud services. I had not used it at all. All my NAS data was hanging below /mnt/pool1...
Could you provide more details how you stored your Nextcloud root, data and backup folders. Were they separate datasets or just directories in pool1 root dataset file system?

Re: [EXTENSION] NextOwnCloud

Posted: 12 Sep 2019 23:26
by darioml
Hi.

Here is some of that information. There was little left, including another pool I unmounted later.

Under pool1 there are some datasets, as well as in another single one.

Not only pool1 was deleted, because I had Emby installed in a Jail, with single mounted on it as r/w. So, through that mount, it continued more and more, until I unplugged it.

Code: Select all

Filesystem            1024-blocks       Used      Avail Capacity  Mounted on
/dev/md0                   122606      92392      30214    75%    /
devfs                           1          1          0   100%    /dev
/dev/md1                   736430     606696     129734    82%    /usr/local
/dev/da0p2                 976014     246680     729334    25%    /cf
procfs                          4          4          0   100%    /proc
pool1                  1846605756        128 1846605628     0%    /mnt/pool1
pool1/Backup           2355852416  509246788 1846605628    22%    /mnt/pool1/Backup
pool1/Documents        1906271620   59665992 1846605628     3%    /mnt/pool1/Documents
pool1/Jails            1853338928    6733300 1846605628     0%    /mnt/pool1/Jails
pool1/KidsMovies       1885503168   38897540 1846605628     2%    /mnt/pool1/KidsMovies
pool1/KidsMovies_x264  1898393584   51787956 1846605628     3%    /mnt/pool1/KidsMovies_x264
pool1/Movies           1846605780        152 1846605628     0%    /mnt/pool1/Movies
pool1/Music            1846605724         96 1846605628     0%    /mnt/pool1/Music
pool1/Pics             2161624572  315018944 1846605628    15%    /mnt/pool1/Pics
pool1/WebServer        1846605716         88 1846605628     0%    /mnt/pool1/WebServer
pool1/extensions       1846633748      28120 1846605628     0%    /mnt/pool1/extensions
pool1/uploads          1846605716         88 1846605628     0%    /mnt/pool1/uploads
pool1/www              1846605728        100 1846605628     0%    /mnt/pool1/www
single                 1835697708         88 1835697620     0%    /mnt/single
single/Movies          3459860492 1624162872 1835697620    47%    /mnt/single/Movies
single/temp            2146507444  310809824 1835697620    14%    /mnt/single/temp
I would not leave a recursive rm from a GUI (root permissions?) unattended in such a way.

Re: [EXTENSION] NextOwnCloud

Posted: 13 Sep 2019 09:12
by Snufkin
darioml wrote:
12 Sep 2019 23:26
...I had Emby installed in a Jail, with single mounted on it as r/w.
Did you consider the case when recursive/loop mount was accidentally established via jail access to the host file system?

Re: [EXTENSION] NextOwnCloud

Posted: 13 Sep 2019 11:28
by crest
Hello darioml,
darioml wrote:
12 Sep 2019 00:52
Hello.

I have just lost 90% of my 8 TB of data due to this extension (NextOwnCloud 0.3.4).

I had NextCloud configured as follows:

Document root: /mnt/pool1/www/nexcloud
Data folder: /mnt/pool1
Backup folder: /mnt/pool1/Backup/NextCloud

I had nothing stored yet via this Cloud services. I had not used it at all. All my NAS data was hanging below /mnt/pool1...

So, I wanted to remove it. I pressed the "Remove" button and, since it was thinking too much, after a couple of minutes, I did a "top" and a wonderful "rm" was taking 40% of the CPU.

I run a "df -k" and most of the datasets were empty. I turned off the NAS by pulling the plug, but it was too late.

Please, separate what is just to Remove/Take out/Uninstall just the extension from what is really deleting the WHOLE data. Anyway, I do not really understand how could anyone delete all the data from a GUI, which does not give any information, instead of actually a shell or a file explorer, which can be controlled. It is too dangerous.

I am devastated.
Very sorry reading about the troubles you have but I cannot comprehend that the extension removed the folder /mnt/pool1.
There is just one rm -R command which removes the rootfolder of the extension which ALWAYS ends in owncloud, eg /mnt/YourExtensionsPath/owncloud.
Therefore there is no way for the uninstall process to remove the path which you have set up for the data folder.
I tried different ways to comprehend your case but all ended without removing the data folder ...

Best regards
crest

Re: [EXTENSION] NextOwnCloud

Posted: 24 Sep 2019 07:51
by Werwolf
I'm getting an error when install "Resilio Sync and Plex works fine ;) "

12.0.0.4 - Reticulus (revision 6877)


The following input errors were detected:
Download of installation file https://download.nextcloud.com/server/r ... latest.zip failed, installation aborted!

The changes have been applied successfully.
Command for cron backup usage: /mnt/SSD/OBI/owncloud/NextCloud-backup.sh.



Document Root
/mnt/XigmaNas 10TB/WWW/nextcloud


Data Folder
/mnt/XigmaNas 10TB/CLOUD/NC-DATA


Backup Folder
/mnt/XigmaNas 10TB/CLOUD/NC-BACKUP


Webserver

Document Root
/mnt/XigmaNas 10TB/WWW

Upload Directory
/mnt/XigmaNas 10TB/WWW-UPLOAD