Resource icon

Scripted installation of Nextcloud 28 in iocage jail 2018-03-23

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
I'm fooked. I have made the nextcloud-config file, specified as needed.. but end up with "Configuration error: JAIL_IP must be set".

What gives? I'm new to the shell, but learned a bit for this.

Sent from my SM-N950W using Tapatalk
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
This is the list..
92c543e7642681a16852ba2fac646a6e.jpg


Sent from my SM-N950W using Tapatalk
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Configuration error: JAIL_IP must be set
Strange. JAIL_IP is set, seems to be set to a reasonable value, and the file doesn't seem to be using curly quotes (which are a common source of errors). What happens if, in that directory, you do . ./nextcloud-config followed by echo $JAIL_IP?

You do have an error, though: SELFASSIGNED_CERT should be SELFSIGNED_CERT.
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
Oh.. cause I made that file in the shell.

Sent from my SM-N950W using Tapatalk
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
"../nextcloud-config" gets "bash: ../nextcloud-config: no such file or directory"

I just remade the file with the correction on SELFSIGNED_CERT

Sent from my SM-N950W using Tapatalk
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Syntax, including spacing, is very important. I didn't say ../nextcloud-config, I said . ./nextcloud-config. See the difference?
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
I did sudo bash nextcloud-jail.sh, it ran now.

Something I did to the file this time, was after the IP addresses, I put "/24"

Sent from my SM-N950W using Tapatalk
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Something I did to the file this time, was after the IP addresses, I put "/24"
That isn't correct; the script adds the netmask by itself. JAIL_IP should just contain the IP address for the jail.

It's your system, feel free to do whatever you want with it. But it's hard for me to help you when you run off in your own direction rather than taking the steps I'm suggesting and giving me the exact output.
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
Syntax, including spacing, is very important. I didn't say ../nextcloud-config, I said . ./nextcloud-config. See the difference?
Gotcha, I did that and got no feedback.

Sent from my SM-N950W using Tapatalk
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Gotcha, I did that and got no feedback.
...and following that, what's the output of echo $JAIL_IP?

Oh, and lose the shell through the web GUI--it eats control characters, it messes with editing, and just generally causes problems (including copy/paste working poorly if at all). It isn't suitable for anything other than (at best) running simple commands. Turn on SSH, enable root login, and use an SSH client like bitvise or putty.
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
...and following that, what's the output of echo $JAIL_IP?

Oh, and lose the shell through the web GUI--it eats control characters, it messes with editing, and just generally causes problems (including copy/paste working poorly if at all). It isn't suitable for anything other than (at best) running simple commands. Turn on SSH, enable root login, and use an SSH client like bitvise or putty.
Output of "echo $JAIL_IP" was 10.0.1.10

I edited the config file and removed /24. I just don't think that it downloaded the nextcloud files..

Sent from my SM-N950W using Tapatalk
 

Scrat_

Explorer
Joined
May 3, 2018
Messages
95
Connection refused.. my method was correct than with the way I tried.

Sent from my SM-N950W using Tapatalk
 

ilkor

Dabbler
Joined
Sep 19, 2018
Messages
13
Freenas 11.2 Beta3 - the script ends without errors, offering passwords for the admin account and the database.
I open the homepage, but I can not go on. I guess I do not fill in correctly the database fields?

After pressing the "Finish Setup" button I get the following error:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

upload_2018-9-19_11-43-59.png
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I guess I do not fill in correctly the database fields?
You should not need to do that at all; the script is supposed to take care of it. Do you still have the output of the script available? If so, can you post the last couple dozen lines?
 
Top