Resource icon

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

vorchan

Cadet
Joined
Aug 6, 2019
Messages
7
you added timeouts none underneath the 3 lines you added to the caddy file? or did you replace the 3 with timeouts none?

edit - and did you keep the changes you made to php.ini? I copied all of of your tweaks to the Caddy file and most of the php.ini tweaks. I'm reuploading my data - about 200gb. Right some pictures are uploading to my NC @ 500kbs so there's approx 5 days left to upload everything.
This is now my fastcgi in Caddyfile:
Code:
    fastcgi / 127.0.0.1:9000 php {
        env PATH /bin
        connect_timeout 3600s
        read_timeout    3600s
        send_timeout    3600s
    }


And also I added timeouts 3600s outside fastcgi at the bottom of Caddyfile (I changed from none to 3600s and it still works):
Code:
HOST {
    timeouts 3600s
}


I did keep all the changes in php.ini and Caddyfile so I am not sure which ones are actually necessary.
 

Thomas_VDB

Contributor
Joined
Sep 22, 2012
Messages
102
OK, so you ran it before I made the switch to using Caddy as the web server. Enter the jail using iocage console nextcloud, and then see what happens with acme.sh: acme.sh --cron. If that fails (as in doesn't run at all), try /root/.acme.sh/acme.sh --cron.
Hi, thanks for your help. I tried the suggestion that you gave :

[root@nextcloud ~]# acme.sh --cron
[Sat Aug 10 10:41:20 CEST 2019] ===Starting cron===
[Sat Aug 10 10:41:20 CEST 2019] Renew: 'cloud.kimschrijft.be'
[Sat Aug 10 10:41:20 CEST 2019] Skip, Next renewal time is: Wed Sep 25 22:10:25UTC 2019
[Sat Aug 10 10:41:20 CEST 2019] Add '--force' to force to renew.
[Sat Aug 10 10:41:20 CEST 2019] Skipped cloud.kimschrijft.be
[Sat Aug 10 10:41:20 CEST 2019] ===End cron===

Then I tried the --force as suggested :

[root@nextcloud ~]# acme.sh --cron --force
[Sat Aug 10 10:42:04 CEST 2019] ===Starting cron===
[Sat Aug 10 10:42:04 CEST 2019] Renew: 'cloud.kimschrijft.be'
[Sat Aug 10 10:42:05 CEST 2019] Single domain='cloud.kimschrijft.be'
[Sat Aug 10 10:42:05 CEST 2019] Getting domain auth token for each domain
[Sat Aug 10 10:42:07 CEST 2019] Getting webroot for domain='cloud.kimschrijft.be'
[Sat Aug 10 10:42:07 CEST 2019] cloud.kimschrijft.be is already verified, skip http-01.
[Sat Aug 10 10:42:07 CEST 2019] Verify finished, start to sign.
[Sat Aug 10 10:42:07 CEST 2019] Lets finalize the order, Le_OrderFinalize: https://acme-v02.api.letsencrypt.org/acme/finalize/53211843/869172422
[Sat Aug 10 10:42:09 CEST 2019] Download cert, Le_LinkCert: https://acme-v02.api.letsencrypt.org/acme/cert/0326cb5b53d6086cdc070fac019d1a0d0f80
[Sat Aug 10 10:42:10 CEST 2019] Cert success.
-----BEGIN CERTIFICATE-----
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
UHtZPw==
-----END CERTIFICATE-----
[Sat Aug 10 10:42:10 CEST 2019] Your cert is in /root/.acme.sh/cloud.kimschrijft.be/cloud.kimschrijft.be.cer
[Sat Aug 10 10:42:10 CEST 2019] Your cert key is in /root/.acme.sh/cloud.kimschrijft.be/cloud.kimschrijft.be.key
[Sat Aug 10 10:42:10 CEST 2019] The intermediate CA cert is in /root/.acme.sh/cloud.kimschrijft.be/ca.cer
[Sat Aug 10 10:42:10 CEST 2019] And the full chain certs is there: /root/.acme.sh/cloud.kimschrijft.be/fullchain.cer
[Sat Aug 10 10:42:10 CEST 2019] Installing key to:/usr/local/etc/pki/tls/private/privkey.pem
[Sat Aug 10 10:42:10 CEST 2019] Installing full chain to:/usr/local/etc/pki/tls/certs/fullchain.pem
[Sat Aug 10 10:42:10 CEST 2019] Run reload cmd: service apache24 reload
Performing sanity check on apache24 configuration:
Syntax OK
Performing sanity check on apache24 configuration:
Syntax OK
Performing a graceful restart
[Sat Aug 10 10:42:10 CEST 2019] Reload success
[Sat Aug 10 10:42:10 CEST 2019] ===End cron===
[root@nextcloud ~]#

However still blank screen on 'cloud.kimschrijft.be' in firefox. In Edge i get a HTTP 500 error.
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
[Sat Aug 10 10:41:20 CEST 2019] Skip, Next renewal time is: Wed Sep 25 22:10:25UTC 2019
So you already had a valid cert; adding the --force wasn't really necessary (though it worked, and your server is serving the new cert), and the HTTP 500 error indicates a problem in your webserver/its configuration/Nextcloud configuration. You'll probably find your answer in the logs, either the Nextcloud log at /var/log/nextcloud.log or the Apache logs (which will be in either /var/log/httpd/ or /var/log/apache24/). See what's in there from around the time of the error.
 

matttheew

Dabbler
Joined
Apr 30, 2017
Messages
14
This is now my fastcgi in Caddyfile:
Code:
    fastcgi / 127.0.0.1:9000 php {
        env PATH /bin
        connect_timeout 3600s
        read_timeout    3600s
        send_timeout    3600s
    }


And also I added timeouts 3600s outside fastcgi at the bottom of Caddyfile (I changed from none to 3600s and it still works):
Code:
HOST {
    timeouts 3600s
}


I did keep all the changes in php.ini and Caddyfile so I am not sure which ones are actually necessary.

Great thanks! I am mirroring your config.

How's your speed looking? I tested a download and it looks like it did not fail after the first couple hundred MB, so that's an improvement!

I'm just curious about if this improved your speed at all- both upload/download. Task Manager on my PC reuploading my data to the new install shows NC is using 5mbps network traffic - though the NC client shows I am only uploading at 400-500kbps.
 

Thomas_VDB

Contributor
Joined
Sep 22, 2012
Messages
102
So you already had a valid cert; adding the --force wasn't really necessary (though it worked, and your server is serving the new cert), and the HTTP 500 error indicates a problem in your webserver/its configuration/Nextcloud configuration. You'll probably find your answer in the logs, either the Nextcloud log at /var/log/nextcloud.log or the Apache logs (which will be in either /var/log/httpd/ or /var/log/apache24/). See what's in there from around the time of the error.
Hi,

The httpd-error.log has thousands of this line :
[Sun Aug 11 20:40:04.764968 2019] [proxy_fcgi:error] [pid 12804:tid 34468942336] [client 192.168.0.1:48991] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES) in /usr/local/www/apache24/data/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\n#1 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\n#2 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\n#3 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\\DBAL\\Connection->getDatabasePlatform()\n#4 /usr/local/www/apache24/data/nextcloud/lib/private/DB/Connection.php(151): Doctrine\\DBAL\\Connection->se...\nPHP message: PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES) in /usr/local/www/apache24/data/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\n#1 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\n#2 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\n#3 /usr/local/www/apache24/data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\\DBAL\\Connection->getDatabasePlatform()\n#4 /usr/local/www/apache24/data/nextcloud/lib/private/DB/Connection.php(151): Doctrine\\DBAL\\Connection->se...\n'


Before these thousands of lines, there are these lines :
[Mon Mar 25 12:58:35.655594 2019] [proxy_fcgi:error] [pid 57860:tid 34468933376] [client 91.235.116.225:57204] AH01071: Got error 'Primary script unknown\n'
[Tue Mar 26 00:43:00.925700 2019] [proxy_fcgi:error] [pid 57860:tid 34468932096] [client 91.235.116.225:40644] AH01071: Got error 'Primary script unknown\n'
[Wed Mar 27 10:53:43.926567 2019] [proxy_fcgi:error] [pid 57860:tid 34469043712] [client 192.99.15.139:56547] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Wed Mar 27 10:54:02.863491 2019] [proxy_fcgi:error] [pid 57860:tid 34469041152] [client 192.99.15.139:59288] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Mon Apr 01 16:17:15.795170 2019] [proxy_fcgi:error] [pid 57860:tid 34469044992] (70007)The timeout specified has expired: [client 91.183.207.40:9008] AH01075: Error dispatching request to : (reading input brigade)
[Tue Apr 09 00:29:39.516211 2019] [proxy_fcgi:error] [pid 57860:tid 34468929536] [client 192.99.15.139:49390] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Tue Apr 09 00:32:09.157907 2019] [proxy_fcgi:error] [pid 57860:tid 34468932096] [client 192.99.15.139:57555] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Thu Apr 11 00:35:35.983396 2019] [ssl:error] [pid 57743:tid 34468942336] [client 149.202.188.5:35049] AH02042: rejecting client initiated renegotiation
[Fri Apr 12 17:26:11.242107 2019] [proxy_fcgi:error] [pid 57860:tid 34469038592] [client 192.99.0.107:53494] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Fri Apr 12 17:29:11.369206 2019] [proxy_fcgi:error] [pid 57860:tid 34468930816] [client 192.99.0.107:62937] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Mon Apr 15 01:57:46.635102 2019] [proxy_fcgi:error] [pid 57860:tid 34469044992] [client 94.23.208.210:65429] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Mon Apr 15 01:57:51.632518 2019] [proxy_fcgi:error] [pid 57860:tid 34469044992] [client 94.23.208.210:53639] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Mon Apr 15 01:58:20.546779 2019] [proxy_fcgi:error] [pid 57860:tid 34469043712] [client 94.23.208.210:53095] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Sat Apr 20 03:10:08.868442 2019] [proxy_fcgi:error] [pid 57860:tid 34469043712] [client 192.99.15.139:53096] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Sat Apr 20 19:16:36.503261 2019] [proxy_fcgi:error] [pid 57743:tid 34469041152] (70007)The timeout specified has expired: [client 192.168.0.1:40074] AH01075: Error dispatching request to : (reading input brigade)
[Thu Apr 25 12:11:48.150145 2019] [proxy_fcgi:error] [pid 57860:tid 34468944896] [client 192.99.15.141:61654] AH01071: Got error 'Primary script unknown\n', referer: http://www.google.com.hk
[Thu Apr 25 13:12:46.859862 2019] [ssl:error] [pid 57860:tid 34469044992] [client 149.202.171.24:41385] AH02042: rejecting client initiated renegotiation
[Fri Apr 26 21:45:39.437877 2019] [proxy_fcgi:error] [pid 57860:tid 34468938496] [client 46.17.47.109:48882] AH01071: Got error 'Primary script unknown\n'
[Sat Apr 27 23:06:33.543327 2019] [proxy_fcgi:error] [pid 57743:tid 34468948736] (70007)The timeout specified has expired: [client 192.168.0.1:45521] AH01075: Error dispatching request to : (reading input brigade)
[Wed May 01 21:30:17.908215 2019] [proxy_fcgi:error] [pid 57743:tid 34468942336] (70007)The timeout specified has expired: [client 192.168.0.1:43490] AH01075: Error dispatching request to : (reading input brigade)
[Thu May 02 09:52:10.674232 2019] [authz_core:error] [pid 57743:tid 34468943616] [client 192.168.0.1:55382] AH01630: client denied by server configuration: /usr/local/www/apache24/data/nextcloud/config
[Thu May 02 11:43:10.415677 2019] [authz_core:error] [pid 57860:tid 34468932096] [client 192.168.0.1:49717] AH01630: client denied by server configuration: /usr/local/www/apache24/data/nextcloud/config
[Fri May 03 13:45:40.282501 2019] [ssl:warn] [pid 3990:tid 34397577216] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri May 03 13:45:40.308957 2019] [mpm_event:notice] [pid 3990:tid 34397577216] AH00489: Apache/2.4.38 (FreeBSD) OpenSSL/1.0.2o-freebsd configured -- resuming normal operations
[Fri May 03 13:45:40.309113 2019] [core:notice] [pid 3990:tid 34397577216] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'

Does this help you in any way?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES)
That looks highly relevant. Within the jail, what's the output of service mysql status? If it's running, see if you can connect to the nextcloud database. The password will be in /root/nextcloud_db_password on your server (i.e., not in the jail); it'll be marked as "Nextcloud database password". To attempt to connect, inside the jail, do mysql -u nextcloud -ppassword nextcloud. In that command, replace "password"with the password.

If mysql isn't running, from outside the jail, run iocage fstab -l nextcloud and see if you're missing a mountpoint or two.
 

Thomas_VDB

Contributor
Joined
Sep 22, 2012
Messages
102
That looks highly relevant. Within the jail, what's the output of service mysql status? If it's running, see if you can connect to the nextcloud database. The password will be in /root/nextcloud_db_password on your server (i.e., not in the jail); it'll be marked as "Nextcloud database password". To attempt to connect, inside the jail, do mysql -u nextcloud -ppassword nextcloud. In that command, replace "password"with the password.

If mysql isn't running, from outside the jail, run iocage fstab -l nextcloud and see if you're missing a mountpoint or two.

[root@nextcloud ~]# service mysql status
mysql does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable

So its not running.

[root@freenas ~]# iocage fstab -l nextcloud
+-------+-------------------------------------------------------------------------------------------------------+
| INDEX | FSTAB ENTRY |
+=======+=======================================================================================================+
| 0 | /mnt/DataMirror/portsnap/db /mnt/DataMirror/iocage/jails/nextcloud/root/var/db/portsnap nullfs rw 0 0 |
+-------+-------------------------------------------------------------------------------------------------------+
| 1 | /mnt/DataMirror/Kim /mnt/DataMirror/iocage/jails/nextcloud/root/mnt/Kim nullfs rw 0 0 |
+-------+-------------------------------------------------------------------------------------------------------+
| 2 | /mnt/DataMirror/Thomas /mnt/DataMirror/iocage/jails/nextcloud/root/mnt/Thomas nullfs rw 0 0 |
+-------+-------------------------------------------------------------------------------------------------------+
| 3 | /mnt/DataMirror/Foto /mnt/DataMirror/iocage/jails/nextcloud/root/mnt/Foto nullfs rw 0 0 |
+-------+-------------------------------------------------------------------------------------------------------+
| 4 | /mnt/DataMirror/Muziek /mnt/DataMirror/iocage/jails/nextcloud/root/mnt/Muziek nullfs rw 0 0 |
+-------+-------------------------------------------------------------------------------------------------------+

At first sight, all these mount points are available...
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
At first sight, all these mount points are available...
Those don't look right--the first one belongs there, but the remaining four wouldn't have been added by my script. But the mount points for the database and for the nextcloud data files aren't there, and that's going to be a problem. Outside the jail, do the directories /mnt/DataMirror/db and /mnt/DataMirror/files exist? Is there anything in them?
 

Thomas_VDB

Contributor
Joined
Sep 22, 2012
Messages
102
Those don't look right--the first one belongs there, but the remaining four wouldn't have been added by my script. But the mount points for the database and for the nextcloud data files aren't there, and that's going to be a problem. Outside the jail, do the directories /mnt/DataMirror/db and /mnt/DataMirror/files exist? Is there anything in them?

Hi,
Thanks again for your support! Those additional mount points are mine, to show my freenas data to the nextcloud jail.
See answers below :

/mnt/DataMirror/db # ls
aria_log_control multi-master.info nextcloud.pid
aria_log.00000001 my.cnf performance_schema
ib_logfile0 mysql tc.log
ib_logfile1 nextcloud
ibdata1 nextcloud.err

root@freenas:/mnt/DataMirror/files # ls
.htaccess files_external nextcloud.log.1
.ocdata index.html Thomas
admin Kim
appdata_oc0qeep12rkg nextcloud.log

Does that seem right?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Does that seem right?
It does. Which means those mountpoints disappeared. So, try this:
Code:
iocage stop nextcloud
iocage fstab -a nextcloud /mnt/DataMirror/db /var/db/mysql nullfs rw 0 0
iocage fstab -a nextcloud /mnt/DataMirror/files /mnt/files nullfs rw 0 0
iocage start nextcloud

...and see if you can log in.
 

Thomas_VDB

Contributor
Joined
Sep 22, 2012
Messages
102
It does. Which means those mountpoints disappeared. So, try this:
Code:
iocage stop nextcloud
iocage fstab -a nextcloud /mnt/DataMirror/db /var/db/mysql nullfs rw 0 0
iocage fstab -a nextcloud /mnt/DataMirror/files /mnt/files nullfs rw 0 0
iocage start nextcloud

...and see if you can log in.

Fantastic! That did the trick!
No idea why the mountpoints disappeared. But thanks again! Super!
 

Thomas_VDB

Contributor
Joined
Sep 22, 2012
Messages
102
Can I get some advice on this small question: I am now on Nextcloud 15.0.5. It says there is an update to 16.0.3. Can I run this updater safely?
 

danb35

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

sheenegarmi

Dabbler
Joined
Jul 26, 2019
Messages
18
Error loading 4.3 GB ISO image
Where can I fix the maximum file size for downloading?
And the second question is where are the types of files to download indicated?

is this related to this error?
Sabre\DAV\Exception: Could not rename part file to final file
 
Last edited:

vorchan

Cadet
Joined
Aug 6, 2019
Messages
7
Great thanks! I am mirroring your config.

How's your speed looking? I tested a download and it looks like it did not fail after the first couple hundred MB, so that's an improvement!

I'm just curious about if this improved your speed at all- both upload/download. Task Manager on my PC reuploading my data to the new install shows NC is using 5mbps network traffic - though the NC client shows I am only uploading at 400-500kbps.
These changes had no effect on my speed, I still get 20 - 30 MiB/s on my local 1 GB network. I currently only have 10 MB/s upload on my internet connection and I have no problem maxing this when downloading from nextcloud outside my LAN. I tried tried implementing "Server tuning" changes from the Nexctcloud manual and also some random Caddy peformance improvement suggestions found surfing around but nothing I've tried yet has helped with speed.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Error loading 4.3 GB ISO image
What error? Were you uploading or downloading? Using the web interface or a client? If a client, under which OS? If the web interface, which browser?
And the second question is where are the types of files to download indicated?
I'm afraid I don't understand this question at all.
 

snorp

Dabbler
Joined
Jul 10, 2018
Messages
35
Hello everybody,

I have a problem. One of my hard drives had to be replaced. I have re-integrated it. But now I can't start the jail anymore.

root@local[~]# iocage console nextcloud

mount_nullfs: /mnt/thunderfire/portsnap: No such file or directory jail: /sbin/mount -t nullfs -o rw /mnt/thunderfire/portsnap/ports /mnt/thunderfire/iocage/jails/nextcloud/root/usr/ports: failed

What can I do now? Thank you in advance!
 

sheenegarmi

Dabbler
Joined
Jul 26, 2019
Messages
18
What error? Were you uploading or downloading? Using the web interface or a client? If a client, under which OS? If the web interface, which browser?
Opera browser google chrome. I load large files AND Error in assembling chunks, error code 504.


BEFORE this was a mistake

Code:
Fatal    webdav    Sabre\DAV\Exception: Could not rename part file to final file
/usr/local/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:
OCA\DAV\Connector\Sabre\File->put(null)
/usr/local/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:
OCA\DAV\Connector\Sabre\Directory->createFile("262144000", null)
/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:
OCA\DAV\Upload\UploadFolder->createFile("262144000", null)
/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525:
Sabre\DAV\Server->createFile("uploads/adm ... 0", null, null)
<<closure>>
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/usr/local/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])
/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/usr/local/www/nextcloud/apps/dav/lib/Server.php - line 316:
Sabre\DAV\Server->exec()
/usr/local/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/usr/local/www/nextcloud/remote.php - line 163:
require_once("/usr/local/ ... p")

What error? Were you uploading or downloading? Using the web interface or a client? If a client, under which OS? If the web interface, which browser?

I'm afraid I don't understand this question at all.

I downloaded NIF and mkv crashed error before now no. Why dont know



I'm afraid I don't understand this question at all.
 

snorp

Dabbler
Joined
Jul 10, 2018
Messages
35
Does /mnt/thunderfire/portsnap/ exist?
There is a folder named iocage. But no folder with the name portsnap.

iocage folder
.plugin_index download jails releases defaults.json images log templates

EDIT:
Okay, something really stupid happened. I just checked how much space the iocage folder uses and it's way too small.
 
Last edited:
Top