Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

11.2 RC2, Nextcloud plugin fixed?

Platter7

Newbie
Joined
Sep 22, 2018
Messages
32
In 11.2 RC2 the Nextcloud plugin should be fixed...
After installing the Nextcloud (v14) plugin in FreeNAS 11.2 RC2 there is a pop-up with some credentials (without indication what to do with it...) ... after that you end up in the GUI of Nextcloud where you are asked to make a admin-account.

There seems to be made a data directorie:
/usr/local/www/nextcloud/data

Under that you are asked to fill in:
userdatabase
database password
database name
localhost

Should I fill in the data as displayed in the pop-up I saw right after the installation of the plug-in?
Also how do I know what port is used by nextcloud on the localhost?
 

Tim1962

FreeNAS Experienced
Joined
Feb 26, 2015
Messages
234
I created a bug report on this some months ago, and can report here that the plug in now works fine for me. Yes use the details on the popup to complete the initial configuration and it seems to just run NC14 out of the box. I haven't tried with any NC plugins as i just was vanilla file sharing for now. I haven't tried mounting data storage as as again thats not a big issue for me anyway

Thanks Devs
 

Tim1962

FreeNAS Experienced
Joined
Feb 26, 2015
Messages
234
BTW works without specifying a port, just the IP Address of the jail
 

danb35

FreeNAS Wizard
Joined
Aug 16, 2011
Messages
10,790
Yes use the details on the popup to complete the initial configuration
That really is pretty lame. Better than needing to hand-create the database at the shell, I guess, but...
 

Platter7

Newbie
Joined
Sep 22, 2018
Messages
32
ok did that, but somehow I get this error:

Code:
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1130] Host '192.168.xx.xx' is not allowed to connect to this MySQL server


Is this a bug? Or am I missing something?
How can I allow the host to connect to the mysql server?
 
Last edited:
Joined
Nov 20, 2018
Messages
4
ok did that, but somehow I get this error:

Code:
Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1130] Host '192.168.xx.xx' is not allowed to connect to this MySQL server


Is this a bug? Or am I missing something?
How can I allow the host to connect to the mysql server?
I am getting the same error. Can someone please tell us what exactly should we fill in. It tells me that I am not allowed to connect to DB Server.
 

Milkwerm

Newbie
Joined
Jun 26, 2011
Messages
40
the error trying to create admin user: is because of the new password check against the "have I been powned" compromised password list. I hit it too, but you can change it with the occ user:passwordreset command.
I'm just having issues getting the php opcache changes made now. php.ini is configured but doesnt seem to be having any affect.
 

Milkwerm

Newbie
Joined
Jun 26, 2011
Messages
40
Not a fan of the way this forum inserts emojis.
Open a shell (from the jails menu) and run the command. ># occ user: password admin (space added after ":" to avoid emoji)
it will prompt you for a new password, and won't accept anything in the "haveibeenpowned" database/list.
 
Joined
Nov 20, 2018
Messages
4
Thanks guys for your help, but I have not managed to set up nextcloud yet. I have done what you told me. My password does not belong to the "have i been powned" list. That list seems to be empty, when I write the command in shell. Maybe I will wait for a few days more for the official release and hope everything will be fine.
 

Ericloewe

Not-very-passive-but-aggressive
Moderator
Joined
Feb 15, 2014
Messages
16,108
Not a fan of the way this forum inserts emojis.
It's pretty standard. [CMD][/CMD], [CODE][/CODE] and similar tags keep that from happening, which is another reason to use them.
 

danb35

FreeNAS Wizard
Joined
Aug 16, 2011
Messages
10,790
Maybe I will wait for a few days more for the official release and hope everything will be fine.
You could always look into alternative methods of installing Nextcloud. Rumor is someone's come up with a script that pretty well automates the whole process, including SSL.
 

mhelms1961

Newbie
Joined
Dec 17, 2018
Messages
22
Hi folks! Finally I set it up and running. Thank you for your help!
Yes, please share the steps you went through to get it working! Much appreciated as I am banging my head against the wall trying to setup Nextcloud after wasting several days trying to configure and FTP. All the instructions I have been given on how to set up FTP in FreeNAS have sent me down rat holes. Much simpler to set up in Windows and OSX but I really want to use FreeNAS since I just completed a 42tb build with 32gb RAM and Xeon processor.......
 

mhelms1961

Newbie
Joined
Dec 17, 2018
Messages
22
FreeNas Version
FreeNAS-11.2-RELEASE-U1
(Build Date: Dec 20, 2018 22:41)
Used FreeNAS Built-In Plug-in for NextCloud

Solved! OK I finally got past the setup page after figuring out that I needed to use the username and password listed in the configuration script after the plug-in was installed. I did not know intuitively to write down that information before going to the IP address of the Nextcloud server. These are the Installation notes I received and I am highlighting the credentials I used in case other people lack clairvoyance such as myself. I have changed some of the passwords and IP addressed to protect the setup on my side.

So... when I go to the URL 192.168.1.12 I created a username and password for Nextcloud and entered the Database User and Database password listed in the install notes as highlighted below. Now to the next step of actually sharing a folder!!

Install Notes:
nginx_enable: -> YES
mysql_enable: -> YES
php_fpm_enable: -> YES
Performing sanity check on nginx configuration:
Starting nginx.
Performing sanity check on php-fpm configuration:
Starting php_fpm.
Starting mysql.
Database User: dbadmin
Database Password: YUldaLoMg5alY0Dd

Performing sanity check on php-fpm configuration:
Stopping php_fpm.
Waiting for PIDS: 66553.
Performing sanity check on php-fpm configuration:
Starting php_fpm.
Performing sanity check on nginx configuration:
Stopping nginx.
Waiting for PIDS: 66536.
Performing sanity check on nginx configuration:
Starting nginx.
Database Name: nextcloud
Admin Portal:
http://192.168.1.12
 

Darklion

Newbie
Joined
Oct 18, 2019
Messages
61
Maybe one of you can help me, I am trying to setup nextclod as well I run to all the probles that @mhelms1961 has gone through and finally was able to get that password the plugin creates and I though that will be it, but now I am getting an error stating that it can't wright or create on the directory I specify so I though it will be the same probles I was runing when trying to setup Plex as I wasn't able to see or read the files on the directory I was mounting. So I used the comend that help me that time setfacl -m everyone@:rxaRc:fd:allow and then the directory, but I still get the same error, I just can't pass through the setup page.

Any idea why am I getting that error, I have seen many tutorials on youtube and follow every step by the book but everything I try (even with plex) it just won't work as it work for them on the video, I have even being re installing the OS thinkg that I did something wrong but it looks like thous videos don't acctualy cover everything as they have they system already optimize (I think) and even though the have being posted months ago they use the legacy interface, I try to use that interface but ther I hit a brick wall.

please any help will be appressiate it.
 

Elo

Newbie
Joined
Mar 11, 2012
Messages
89
You could always look into alternative methods of installing Nextcloud. Rumor is someone's come up with a script that pretty well automates the whole process, including SSL.
This is more than a rumor. There is script by DanB https://github.com/danb35/freenas-iocage-nextcloud .. Thread in this forum : https://www.ixsystems.com/community/resources/scripted-installation-of-nextcloud-17-in-iocage-jail.90/

It is very well documented and the script are serviced and works with the current version of Freenas.. I used it under 11.2 Beta1 last...
 
Top