Resource icon

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

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
If i disable certificate, the error message like below:

View attachment 72522

Error when trying to connect (Error occurred in the document service: Error while downloading the document file to be converted.) (version 5.5.1.76)✖

please advice,

Thankyou & regards.
I find this link, it seem the problem similar with me , but i still have no idea how to solve this problem :


Especially this post :


Please advice..

Regards,
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
I find this link, it seem the problem similar with me , but i still have no idea how to solve this problem :


Especially this post :


Please advice..

Regards,
I would try to reinstall the OnlyOffice app inside nextcloud. If that doesn't work, I would try to reinstall the OnlyOffice server.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Hi all, looking for some help with the script. Complete newb to Truenas Core and everything here in general, but managed to previously set up Nextcloud on Scale. Basically, followed the script instructions word for word, everything ran nicely, and then I end up with: View attachment 72527
When I try to access Nextcloud. What's the most common reason for this? My config file looks like this:

JAIL_IP="10.0.0.199"
DEFAULT_GW_IP="10.0.0.1"
POOL_PATH="/mnt/main-storage"
TIME_ZONE="America/Vancouver"
HOST_NAME="nextcloud.xxxxxxx.com"
DNS_CERT=1
DNS_PLUGIN="cloudflare"
DNS_TOKEN="xxxxXXXXXXXxXXXXXXxXXxx"
CERT_EMAIL="xxxxxxxxxx@gmail.com"
COUNTRY_CODE="CA"

The only discrepancies that I can think of is that I've run the script in the GUI shell, multiple times, including after deleting the datasets, re-creating them, and deleting the jail; the other issue is my router not having the ability to port forward specific IP addresses or point a domain name to an internal address. To combat the second issue, I've edited my hosts file on my client computer as advised by the github.

Any help is appreciated! I want to get this thing up and running.
Is the error a certificate error?

When you go inside the jail and do service caddy status what happens?

Try restarting your jail to begin with and see if that does anything.
 

iyamdeanser

Cadet
Joined
Nov 18, 2023
Messages
6
Hello! The jail says
1700439827860.png
, without any errors (not sure if this output is what you would export though). I've restarted. reinstalled, and deleted/reinstalled to no avail.
Is the error a certificate error?

When you go inside the jail and do service caddy status what happens?

Try restarting your jail to begin with and see if that does anything.
 

iyamdeanser

Cadet
Joined
Nov 18, 2023
Messages
6
Is the error a certificate error?

When you go inside the jail and do service caddy status what happens?

Try restarting your jail to begin with and see if that does anything.
Oh I'm not sure if my images are showing up - the error when I visit the domain is "Hmmm… can't reach this page Check if there is a typo in nextcloud.xxxxxxxxx.com." Not a certificate error, I don't think.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Oh I'm not sure if my images are showing up - the error when I visit the domain is "Hmmm… can't reach this page Check if there is a typo in nextcloud.xxxxxxxxx.com." Not a certificate error, I don't think.
When you ping nextcloud.xxxxxxxxxxx.com, do you get your jail IP?
 

iyamdeanser

Cadet
Joined
Nov 18, 2023
Messages
6
When you ping nextcloud.xxxxxxxxxxx.com, do you get your jail IP?
Not sure what ping means in this context, but if I try to visit it through the browser, nothing shows up, just a "can't reach this page error". Might it have something to do with my ISP's terrible restrictions (no port forwarding to IP addresses, only to connected devices, or DNS settings)?
 

iyamdeanser

Cadet
Joined
Nov 18, 2023
Messages
6
Open the terminal (cmd prompt) and type ping nextcloud.xxxxxxxxxxxx.com

It should show reply from 192.168.x.x with some data. And the IP address should be your jail IP.
Ah so that looks like the issue, the ping says that it could not find the host. What do I have to change to get the domain name connected to the IP? I've changed the hosts file on my client computer and such.
 

iyamdeanser

Cadet
Joined
Nov 18, 2023
Messages
6
Open the terminal (cmd prompt) and type ping nextcloud.xxxxxxxxxxxx.com

It should show reply from 192.168.x.x with some data. And the IP address should be your jail IP.
Correction, now it does show! I had the subnet in the hosts file, so I had formatted it wrong. I also found out that the jail IP will show on my ISP settings if I change the jail to use DHCP autoconfigure (not sure if that will change anything/be needed). Now it's just a certification issue: NET::ERR_CERT_AUTHORITY_INVALID.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Hi, how to update my nc server in jail freenas : Version: FreeNAS-11.3-U1
currently my nc server version is 20.0.4.
20.04.JPG


i try to klik open updater :

but the process stuck on

Initializing...​


updater.JPG


please advice ,

Thankyou.
 

Attachments

  • nc20.04.JPG
    nc20.04.JPG
    18 KB · Views: 133
Last edited:

victort

Guru
Joined
Dec 31, 2021
Messages
973
Correction, now it does show! I had the subnet in the hosts file, so I had formatted it wrong. I also found out that the jail IP will show on my ISP settings if I change the jail to use DHCP autoconfigure (not sure if that will change anything/be needed). Now it's just a certification issue: NET::ERR_CERT_AUTHORITY_INVALID.
And now the only thing you should need to do is obtain a trusted cert. Which is documented in the script instructions on github.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Hi, how to update my nc server in jail freenas : Version: FreeNAS-11.3-U1
currently my nc server version is 20.0.4.
View attachment 72587

i try to klik open updater :

but the process stuck on

Initializing...​


View attachment 72588

please advice ,

Thankyou.
You are using a very old version of TrueNAS (FreeNAS) at this point. I would suggest first updating that. Then you will probably have to upgrade your jail (instruction are found elsewhere on this forum) and then update nextcloud. Nextcloud latest version is 27 right now.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
You are using a very old version of TrueNAS (FreeNAS) at this point. I would suggest first updating that. Then you will probably have to upgrade your jail (instruction are found elsewhere on this forum) and then update nextcloud. Nextcloud latest version is 27 right now

You are using a very old version of TrueNAS (FreeNAS) at this point. I would suggest first updating that. Then you will probably have to upgrade your jail (instruction are found elsewhere on this forum) and then update nextcloud. Nextcloud latest version is 27 right now.
Hi mr.Vic,
Doing upgrade my freenas version won't affect to nc server in jail ? I mean my nc server will not broken if i upgrade my freenas version?

Please advice

Regards,
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Is your current jail a warden or an iocage jail? Of course there is a chance that it will break as with any upgrade. But in your current state of multiple EOL releases behind you will not be able to do (install, upgrade) anything. Anything but TN 13.0 is unsupported. You could theoretically upgrade your TN to 12.0 and upgrade the jail to 12.4 but support for FreeBSD 12 will also end by the end of this year.

So the only way forward doing anything meaningful is to upgrade everything to current supported software. That's true for every system. You are running - figuratively speaking - Windows XP.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
Btw , i have multiple errors and warning under my NC logging , like below :

WarningOC\Log\RotateLog file "/var/log/nextcloud.log" was over 104857600 bytes, moved to "/var/log/nextcloud.log.1"2023-11-22T11:50:09+0700
ErrorPHPError: rename(/var/log/nextcloud.log,/var/log/nextcloud.log.1): Permission denied at /usr/local/www/nextcloud/lib/public/Log/RotationTrait.php#522023-11-22T11:50:09+0700
WarningOC\Log\RotateLog file "/var/log/nextcloud.log" was over 104857600 bytes, moved to "/var/log/nextcloud.log.1"2023-11-22T11:45:03+0700
ErrorPHPError: rename(/var/log/nextcloud.log,/var/log/nextcloud.log.1): Permission denied at /usr/local/www/nextcloud/lib/public/Log/RotationTrait.php#52
  1. <<closure>>
    OC\Log\ErrorHandler::onError(2, "rename(/var ... d", "/usr/local/ ... p", 52, { rotatedFil ... "})
  2. /usr/local/www/nextcloud/lib/public/Log/RotationTrait.php - line 52:
    rename("/var/log/nextcloud.log", "/var/log/nextcloud.log.1")
  3. /usr/local/www/nextcloud/lib/private/Log/Rotate.php - line 46:
    OC\Log\Rotate->rotate()
  4. /usr/local/www/nextcloud/lib/private/BackgroundJob/Job.php - line 52:
    OC\Log\Rotate->run(null)
  5. /usr/local/www/nextcloud/cron.php - line 127:
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

can anyone help me how to solve this errors and warning ?

please advice ,

Best Regards,
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Btw , i have multiple errors and warning under my NC logging , like below :

WarningOC\Log\RotateLog file "/var/log/nextcloud.log" was over 104857600 bytes, moved to "/var/log/nextcloud.log.1"2023-11-22T11:50:09+0700
ErrorPHPError: rename(/var/log/nextcloud.log,/var/log/nextcloud.log.1): Permission denied at /usr/local/www/nextcloud/lib/public/Log/RotationTrait.php#522023-11-22T11:50:09+0700
WarningOC\Log\RotateLog file "/var/log/nextcloud.log" was over 104857600 bytes, moved to "/var/log/nextcloud.log.1"2023-11-22T11:45:03+0700
ErrorPHPError: rename(/var/log/nextcloud.log,/var/log/nextcloud.log.1): Permission denied at /usr/local/www/nextcloud/lib/public/Log/RotationTrait.php#52
  1. <<closure>>
    OC\Log\ErrorHandler::onError(2, "rename(/var ... d", "/usr/local/ ... p", 52, { rotatedFil ... "})
  2. /usr/local/www/nextcloud/lib/public/Log/RotationTrait.php - line 52:
    rename("/var/log/nextcloud.log", "/var/log/nextcloud.log.1")
  3. /usr/local/www/nextcloud/lib/private/Log/Rotate.php - line 46:
    OC\Log\Rotate->rotate()
  4. /usr/local/www/nextcloud/lib/private/BackgroundJob/Job.php - line 52:
    OC\Log\Rotate->run(null)
  5. /usr/local/www/nextcloud/cron.php - line 127:
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

can anyone help me how to solve this errors and warning ?

please advice ,

Best Regards,
This is probably due to a permission error.

Who owns the nextcloud.log file? When you do ls -la from the /var/log folder it should show the owner as www.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Current versions of the script put the log in /var/log/nextcloud/ for permissions reasons. To make this change, from inside the jail, run mkdir /var/log/nextcloud, chown www:www /var/log/nextcloud, then su -m www -c 'php /usr/local/www/nextcloud/occ config:system:set logfile --value="/var/log/nextcloud/nextcloud.log"'.
 

InGenetic

Contributor
Joined
Dec 18, 2013
Messages
183
This is probably due to a permission error.

Who owns the nextcloud.log file? When you do ls -la from the /var/log folder it should show the owner as www.
Hi Mr.victort ,

here's the result :

root@nextcloud:/var/log # ls -la
total 1902958
drwxr-xr-x 4 root wheel 59 Nov 22 08:00 .
drwxr-xr-x 25 root wheel 25 Nov 19 18:31 ..
-rw------- 1 root wheel 96166 Nov 22 21:41 auth.log
-rw------- 1 root wheel 4359 Aug 2 04:00 auth.log.0.bz2
-rw------- 1 root wheel 287 Jan 1 2023 auth.log.1.bz2
-rw------- 1 root wheel 293 Jan 1 2022 auth.log.2.bz2
-rw------- 1 root wheel 186 Jan 1 2021 auth.log.3.bz2
-rwxr-xr-x 1 root wheel 75799932 Nov 19 18:31 caddy.log
-rw------- 1 root wheel 41022 Nov 22 21:40 cron
-rw------- 1 root wheel 5793 Nov 22 08:00 cron.0.bz2
-rw------- 1 root wheel 5698 Nov 20 22:00 cron.1.bz2
-rw------- 1 root wheel 5758 Nov 19 12:00 cron.2.bz2
drwxr-xr-x 2 root wheel 2 Apr 17 2020 cups
-rw------- 1 root wheel 66 Apr 17 2020 debug.log
-rw-r--r-- 1 root wheel 66 Apr 17 2020 devd.log
-rw------- 1 root wheel 0 Apr 17 2020 dmesg.today
-rw-r--r-- 1 root wheel 66 Apr 17 2020 lpd-errs
-rw-r----- 1 root wheel 1243091 Nov 22 03:04 maillog
-rw-r----- 1 root wheel 32216 Nov 22 00:00 maillog.0.bz2
-rw-r----- 1 root wheel 35664 Nov 21 00:00 maillog.1.bz2
-rw-r----- 1 root wheel 32445 Nov 20 00:00 maillog.2.bz2
-rw-r----- 1 root wheel 32751 Nov 19 00:00 maillog.3.bz2
-rw-r----- 1 root wheel 75928 Nov 18 00:00 maillog.4.bz2
-rw-r----- 1 root wheel 32271 Nov 17 00:00 maillog.5.bz2
-rw-r----- 1 root wheel 35512 Nov 16 00:00 maillog.6.bz2
-rw-r--r-- 1 root wheel 96863 Nov 22 03:01 messages
-rw-r--r-- 1 root wheel 4441 Aug 1 06:00 messages.0.bz2
-rw-r--r-- 1 root wheel 462 Jan 1 2023 messages.1.bz2
-rw-r--r-- 1 root wheel 1166 Jan 1 2022 messages.2.bz2
-rw-r--r-- 1 root wheel 2279 Jan 1 2021 messages.3.bz2
-rw------- 1 root wheel 60 Apr 17 2020 mount.today
-rw-r--r-- 1 root wheel 104857540 Nov 15 11:45 nextcloud_access-2023-11-15T11-45-15.795.log
-rw-r--r-- 1 root wheel 58438703 Nov 22 21:40 nextcloud_access.log
-rw-r--r-- 1 root wheel 16429632 Nov 22 19:46 nextcloud_errors.log
-rw-r----- 1 www wheel 4544889940 Nov 22 21:40 nextcloud.log
-rw------- 1 root wheel 1925605 Nov 21 16:05 php-fpm.log
-rw-r----- 1 root network 66 Apr 17 2020 ppp.log
drwxr-xr-x 2 redis redis 3 Apr 17 2020 redis
-rw------- 1 root wheel 66 Apr 17 2020 security
-rw-r----- 1 root wheel 0 Nov 17 12:00 sendmail.st
-rw-r----- 1 root wheel 0 Nov 17 12:00 sendmail.st.0
-rw-r----- 1 root wheel 0 Nov 10 12:00 sendmail.st.1
-rw-r----- 1 root wheel 0 Nov 3 12:00 sendmail.st.2
-rw-r----- 1 root wheel 0 Oct 27 12:00 sendmail.st.3
-rw-r----- 1 root wheel 0 Oct 20 12:00 sendmail.st.4
-rw-r----- 1 root wheel 0 Oct 13 12:00 sendmail.st.5
-rw-r----- 1 root wheel 0 Oct 6 12:00 sendmail.st.6
-rw-r----- 1 root wheel 0 Sep 29 12:00 sendmail.st.7
-rw-r----- 1 root wheel 0 Sep 22 12:00 sendmail.st.8
-rw-r----- 1 root wheel 0 Sep 15 12:00 sendmail.st.9
-rw------- 1 root wheel 3626 Dec 25 2021 setuid.today
-rw------- 1 root wheel 3626 Apr 17 2020 setuid.yesterday
-rw------- 1 root wheel 912 Apr 17 2020 userlog
-rw-r--r-- 1 root wheel 197 Nov 22 21:41 utx.lastlogin
-rw-r--r-- 1 root wheel 1472 Nov 22 21:41 utx.log
-rw-r--r-- 1 root wheel 0 Nov 1 05:00 utx.log.0
-rw-r--r-- 1 root wheel 22 Oct 1 05:00 utx.log.1
-rw-r--r-- 1 root wheel 0 Sep 1 05:00 utx.log.2
-rw------- 1 root wheel 66 Apr 17 2020 xferlog


Regards,
 
Top