When installing the nextcloud plugin, a folder is missing

MrKrok

Cadet
Joined
Sep 28, 2019
Messages
3
Hey folks,

About a week ago, I started to play around with the nextcloud plugin. Everything went smoothly until I realized that I was storing all my data inside the Plugin jail.
When I tried to move my storage to another dataset I misconfigured something and locked myself out of nextcloud.

I didn't bother to reverse each and every step I did as nextcloud was pretty empty at this time.
To start over I just nuked the jail by uninstalling the plugin or deleting the jail. I can't remember how I did it exactly.

After that, every attempt to install the plugin again results in errors which I can see in the post install notes:

I've set the supicious ones (that I can't remember from the former, successful attempt) to bold text.

------
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.
SQL Temp Password: zygT7wpHMo/d
SQL Temp Password: zygT7wpHMo/d
mysql: [Warning] Using a password on the command line interface can be insecure.
Using NAT Address: 192.168.2.201
mysql: [Warning] Using a password on the command line interface can be insecure.
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
mysql: [Warning] Using a password on the command line interface can be insecure.
Nextcloud was successfully installed
mysql: [Warning] Using a password on the command line interface can be insecure.
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
mysql: [Warning] Using a password on the command line interface can be insecure.
System config value trusted_domains => 1 set to string 192.168.2.201
mysql: [Warning] Using a password on the command line interface can be insecure.
System config value trusted_domains => 1 set to string 192.168.2.201
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Performing sanity check on php-fpm configuration:
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Stopping php_fpm.
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory

Waiting for PIDS: 32158.
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Performing sanity check on php-fpm configuration:
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Starting php_fpm.
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Performing sanity check on nginx configuration:
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Stopping nginx.
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory

Waiting for PIDS: 32149.
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Performing sanity check on nginx configuration:
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Starting nginx.
chown: /usr/local/www/nextcloud/app-pkgs: No such file or directory
Admin Portal:
-----

While nextcloud runs and I can reach the Admin portal (after updating the trusted domains in config.php) I can't install any apps. I get a generic error message that I don't have in my head right now, but I'll reproduce the problem if you need more specific debug information.

The missing directory /usr/local/www/nextcloud/app-pkgs seems to responsible for this problem. The Jail is connected to the internet. I can ping google.com from the jails' shell when this happens.


I've tried to install the plugin several times with different jail settings now, but the result is always the same. In tha last few attempts I just leave everything at default as ist doesn't seem to matter.
To be sure I have a fresh start I even issued the iocage clean -a command once, because I have no other jails at the moment. That didn't help, error persists.

Is there anything I can do from here?
I still suspect that I did something wrong before and that there's something to delete/redo/reset to get to a clean situation...

I'm out of ideas for now...

Greetings, Markus

P.S.:

I fetched some debug information via freenas-debug -j:

-----
root@halde:~ # freenas-debug -j
+--------------------------------------------------------------------------------
+
+ TrueNAS-12.0-RELEASE (f862218137) @1606491671
+
+--------------------------------------------------------------------------------
+
Operating system type: FreeBSD
Operating system release: 12.2-RC3
Operating system revision: 199506
Name of kernel file booted: /boot/kernel/kernel
Kernel version: FreeBSD 12.2-RC3 7c4ec6ff02c(HEAD) TRUENAS
Hostname: halde.kamp.local
debug finished in 0 seconds for TrueNAS-12.0-RELEASE (f862218137)


** 100%: Dump Jail Information
+--------------------------------------------------------------------------------
+
+ jls @1606491672
+
+--------------------------------------------------------------------------------
+
JID IP Address Hostname Path
3 fuellort-nextcloud /mnt/Datenhalde/iocage/jail
s/fuellort-nextcloud/root
debug finished in 0 seconds for jls


+--------------------------------------------------------------------------------
+
+ jls -v @1606491672
+
+--------------------------------------------------------------------------------
+
JID Hostname Path
Name State
CPUSetID
IP Address(es)
3 fuellort-nextcloud /mnt/Datenhalde/iocage/jails/fuellort-nextc
loud/root
ioc-fuellort-nextcloud ACTIVE
3
debug finished in 0 seconds for jls -v


+--------------------------------------------------------------------------------
+
+ iocage list @1606491672
+
+--------------------------------------------------------------------------------
+
+-----+--------------------+-------+--------------+------------+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+====================+=======+==============+============+
| 3 | fuellort-nextcloud | up | 12.1-RELEASE | 172.16.0.2 |
+-----+--------------------+-------+--------------+------------+
debug finished in 2 seconds for iocage list


-----
 
Top