Can't get my nextcloud jail up and running in Truenas

Krautmaster

Explorer
Joined
Apr 10, 2017
Messages
81
Dear all. I was just updating to Truenas 12 stable coming from 11.3 U5.
Sadly I cant get my Nextcloud Jail up and running any more :(

Its my most important jail, please help me to get it up

Thanks a lot!

Snapshot: jailhouse/iocage/jails/nextcloud@ioc_update_11.3-RELEASE-p5_2020-10-22_15-15-17 created.
Updating jail...

* Updating nextcloud to the latest patch level...
nextcloud is not running, starting jail

Command output:
/tmp/tmpj14sh9dz: config_D:: not found
Error processing configuration file, line 1:
==> D: releng/11.2/etc/freebsd-update.conf 257694 2013-11-05 09:30:06Z glebius $
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_fetch.py", line 921, in fetch_update
iocage_lib.ioc_common.consume_and_log(
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_common.py", line 911, in consume_and_log
for output in filter(lambda o: any(v for v in o), exec_gen):
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_exec.py", line 259, in exec_jail
raise iocage_lib.ioc_exceptions.CommandFailed(
iocage_lib.ioc_exceptions.CommandFailed: [b'/tmp/tmpj14sh9dz: config_D:: not found\n', b'']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/iocage", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/iocage_cli/update.py", line 45, in cli
ioc.IOCage(jail=jail, skip_jails=skip_jails).update(pkgs=pkgs)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 1976, in update
ioc_fetch.IOCFetch(
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_fetch.py", line 925, in fetch_update
iocage_lib.ioc_common.logit(
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_common.py", line 107, in logit
callback(content, exception)
File "/usr/local/lib/python3.8/site-packages/iocage_lib/ioc_common.py", line 86, in callback
message = '\n'.join(message)
TypeError: sequence item 0: expected str instance, int found
root@freenas[~]#

1603372738409.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Just make a new one and copy the config over (and data if you had some in the jail itself).
 

Krautmaster

Explorer
Joined
Apr 10, 2017
Messages
81
oki ill give it a try, did a snapshot of my config but im not that deep into that jail topic.
 

Krautmaster

Explorer
Joined
Apr 10, 2017
Messages
81
hm can u get a bit into detail for me? my Jail was originally created by this tutorial. https://www.samueldowling.com/2020/...n-freenas-iocage-jail-with-hardened-security/

(back in 2019), release 11.2 i think that time.

So I got this structure
1603374610001.png


If im right, i only need to create eg "nextcloud2" as a new jail and then copy all content from iocage/jails/nextcloud to iocage/jails/nextcloud2 ?

It seems like that this folder contains the basic jail config as well as fstab (mountpoints i guess) and the file system root?

Edit: Or without root? I feel a bit lost. Is the plan to fully setup a new jail including all stuff i need or is the plan to create an empty new jail, then wipe root and to place the existing config if my nextcloud into it?
 
Joined
Jan 4, 2014
Messages
1,644
Have you considered booting back into 11.3?
 

Krautmaster

Explorer
Joined
Apr 10, 2017
Messages
81
so far not, as far as i remember i get an error on that jail update for a long time now but it worked within 11.3 fine, im trying to setup a new nextcloud instance right now with same db and stuff as its mounted from outside
 

Krautmaster

Explorer
Joined
Apr 10, 2017
Messages
81
ok fragt nicht wie aber ich habs hinbekommen über ein neues Jail dass ich von Grundauf neu eingerichtet hab mit selbem Mount zur DB und zu der NC Config. Dann hab ich NC20 installiert, Rechte neu vergeben, die bestehende DB ging aber ich musste das update via OCC von der Konsole machen. Nun läufts aber wieder. Passt. Danke euch.


Edit: lol seems like by fault i responded in German. Well. I got it to work by creating a new jail. As the Nextcloud data like config and db was already mapped from outside the jail, i was able to do a fresh NC setup, mounted the config and db dir, restart the jail, run a occ update via commandline and then it worked out pretty good.
 
Last edited:
Top