The only issue I have is that my Linux vm seems to be no longer working.
It is shown as running but it is not possible to connect to it. Inside the vm three different web apps are installed in docker containers, but all three are no longer accessible.
The serial shell displays “Connected”, but I can’t enter the vm with the enter key as I used to do.
Stopping the vm via the gui results in “An error occurred, but the cause is unknown”
Fehler: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
await self.future
File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 393, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1159, in run_in_thread
return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1156, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 1628, in stop
vm.stop(vm_data['shutdown_timeout'])
File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 262, in stop
self.domain.shutdown()
File "/usr/local/lib/python3.9/site-packages/libvirt.py", line 2972, in shutdown
raise libvirtError('virDomainShutdown() failed')
libvirt.libvirtError: An error occurred, but the cause is unknown
+ echo 'Existing Nextcloud config detected... Checking Database compatibility for reinstall'^M
Existing Nextcloud config detected... Checking Database compatibility for reinstall^M
+ ls -A /mnt/storage1/nc-db/mariadb^M
ls: /mnt/storage1/nc-db/mariadb: No such file or directory^M
+ [ '' ]^M
+ echo 'ERROR: You can not reinstall without the previous database'^M
ERROR: You can not reinstall without the previous database^M
+ echo 'Please try again after removing your config files or using the same database used previously'^M
Please try again after removing your config files or using the same database used previously^M
+ exit 1^M
The directory is called mysql instead of mariadb. Should I just rename the folder?
It looks like the cpu is no longer supported by bhyve. I have migrated the vm to a proxmox server, so now I no longer need to run a vm under TrueNAS Core.
Yes, datasets storage1/nc-db and storage1/nc-files seem to be ok.
My plan: Destroy dataset storage/iocage/jails/nextcloud and storage/iocage/jails/nextcloud/root including all snapshots on the local system and restore a replicated version from my backup server.
Hope that everything works as before.
Check db configuration, user, database name etc.
Create manual snapshots from storage1/nc-db, storage1/nc-files, storage1/iocage/jails/nextcloud and storage1/iocage/jails/nextcloud/root
Try again the update with the script, but with a new jail name?
Btw., the restore was super easy. Did a zfs send | ssh zfs receive on the backup server and everything is running fine again.
Currently TrueNAS is on 13.3 and the nextcloud jail on 13.1. with php 8.0.