Resource icon

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

Joined
Jan 4, 2014
Messages
1,644
got a ton of these errors:
The current PHP memory limit is below the recommended value of 512MB.

Says it works:
Default module: OC_DEFAULT_MODULE
Encryption disabled
Set mode for background jobs to 'cron'
crontab: /mnt/includes/www-crontab: Permission denied
Command: crontab /mnt/includes/www-crontab failed!
Were you still getting installation errors? If you were, the message you're seeing is probably symptomatic of these.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
Were you still getting installation errors? If you were, the message you're seeing is probably symptomatic of these.

I keep getting this error on any installs I have done on nextcloud, not sure how to fix it:

"The current PHP memory limit is below the recommended value of 512MB."
 

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
Tried installing again, these are the error messages. Nothing works.

1584774904556.png
 

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
working again after a new install, all check pass on the Overview / Security and Setup Warning in Nextcloud.

Still got the cron error for some reason as well as the "The current PHP memory limit is below the recommended value of 512MB

Set mode for background jobs to 'cron'
crontab: /mnt/includes/www-crontab: Permission denied
Command: crontab /mnt/includes/www-crontab failed!
Successfully removed mount from nextcloud's fstab
Installation complete!

root@freenas[/mnt/tank/temp/freenas-iocage-nextcloud]# iocage exec nextcloud crontab -u www -l
crontab: no crontab for www
Command: crontab -l failed!
 

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
Fixed this: The current PHP memory limit is below the recommended value of 512MB

After you download the script, edit file /mnt/tank/temp/freenas-iocage-nextcloud/includes/php.ini

on memory_limit change from 512M to 1G

1584825168282.png


If already install edit /mnt/tank/iocage/jails/nextcloud/root/usr/local/etc/php.ini
 

hylyah

Dabbler
Joined
Mar 20, 2017
Messages
14
Hello,

Try 3 times install and already finish with error with database because cannot launch service.

Try with default (mariadb) so I test postgresql and same issu...

Any advice ?
 

yesterday

Cadet
Joined
Mar 24, 2020
Messages
1
I just saw your NextCloud setup script, and I was wondering if it is possible to easily modify your script to use self signed certificates INSIDE the firewall. I don't really want (or need) the server to be exposed to the internet at large. If I need access, I'll use a VPN.
 

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
It should be set up to do that automatically. What's the output of iocage exec nextcloud crontab -u www -l?

Looks like I am still getting the cron message, any way I can fix this:

root@freenas[~]# iocage exec nextcloud crontab -u www -l
crontab: no crontab for www
Command: crontab -l failed!
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I just saw your NextCloud setup script, and I was wondering if it is possible to easily modify your script to use self signed certificates INSIDE the firewall. I don't really want (or need) the server to be exposed to the internet at large. If I need access, I'll use a VPN.
I think you could try setting NO_CERT=1 in the config file
 

liberty87

Dabbler
Joined
Mar 24, 2020
Messages
21
hi all, I installed via scritp nextcloud, on a machine with freenas 11.3. I don't have an IP address, I acquired a domain and put it in the nextcloud-config file. but I can't access from my network's ip or from the domain. Can you help me? Forgive my English, I use the translator
 
Joined
Jan 4, 2014
Messages
1,644
Joined
Jan 27, 2020
Messages
577
Hi@all,
I wan't to change a working nextcloud install (installed by using this script) to utilize a proxy jail (Caddy jail) just like in @danb35's Caddy jail guide here.

EDIT: moving over to the mentioned thread as what I want to do is not related to the script this thread is for.
 
Last edited:

liberty87

Dabbler
Joined
Mar 24, 2020
Messages
21
I started nextcloud, but only by logging in with my domain address, I can't log in with the jail's ip.
Here is my configuration file:

JAIL_IP="192.168.1.55"
DEFAULT_GW_IP="192.168.1.1"
POOL_PATH="/mnt/cloud"
TIME_ZONE="Planet/Earth-redacted"
HOST_NAME="www.something-redacted"
STANDALONE_CERT=0
DNS_CERT=1
CERT_EMAIL="some@email-redacted"
DNS_PLUGIN="cloudflare"
DNS_ENV="CLOUDFLARE_EMAIL=some@email-redacted CLOUDFLARE_API_KEY=12345678-redacted"
DB_PATH="/mnt/cloud/db"
FILES_PATH="/mnt/cloud/files"
CONFIG_PATH="/mnt/cloud/config"
PORTS_PATH="/mnt/cloud/portsnap"
DATABASE="mariadb"
INTERFACE="vnet0"
VNET="on"

the problem is an excessive slow upload and a download not exceeding 12.5 mb / s. Is there any way to solve it?

Mod Note: post redactions by JG
 
Last edited by a moderator:
Joined
Jan 4, 2014
Messages
1,644
@liberty87 I hope that's not your real API key? You may wish to edit and mask out sensitive details.
 

liberty87

Dabbler
Joined
Mar 24, 2020
Messages
21
[QUOTE = "liberty87, post: 576569, membro: 101207"]
Ho iniziato nextcloud, ma solo accedendo con il mio indirizzo di dominio, non riesco ad accedere con l'IP della jail.
Ecco il mio file di configurazione:

JAIL_IP = "192.168.1.55"
DEFAULT_GW_IP = "192.168.1.1"
POOL_PATH = "/ mnt / cloud"
TIME_ZONE = "Europe / Rome"
HOST_NAME = " www.miodominio.cloud "
STANDALONE_CERT = 0
DNS_CERT = 1
CERT_EMAIL = " my_email "
DNS_PLUGIN = "CloudFlare"
DNS_ENV = "CLOUDFLARE_EMAIL = my_email CLOUDFLARE_API_KEY =my_api_global_key"
DB_PATH = "/ mnt / cloud / db"
FILES_PATH = "/ mnt / cloud / files"
CONFIG_PATH = "/ mnt / cloud / config"
PORTS_PATH = "/ mnt / cloud / portsnap"
DATABASE = "MariaDB"
INTERFACCIA = "vnet0"
VNET = "on"

il problema è un caricamento lento eccessivo e un download non superiore a 12,5 mb / s. C'è un modo per risolverlo?
[/CITAZIONE]
 
Joined
Jan 27, 2020
Messages
577
whoops, maybe try translate.google.com ;)
 
Top