Tuesday, 19 May 2026

Install miniconda3

mars@helios:~$ sudo bash Miniconda3-latest-Linux-x86_64.sh -b -p /mnt/data1/miniconda3 PREFIX=/mnt/data1/miniconda3 Unpacking bootstrapper... Unpacking payload... Installing base environment... Preparing transaction: ...working... done Executing transaction: ...working... done installation finished. mars@helios:~$ cd /mnt/data1 mars@helios:/mnt/data1$ ls -l total 44 drwxrwxrwx 5 root root 4096 May 19 17:47 ai drwx--x--x 4 root root 4096 Apr 22 10:55 containerd drwx--x--- 12 root root 4096 May 19 20:55 docker drwxr-xr-x 4 root root 4096 Apr 22 14:16 huggingface drwx------ 2 root root 16384 Apr 22 13:18 lost+found drwxr-xr-x 18 root root 4096 May 19 21:09 miniconda3 drwxrwxrwx 3 root root 4096 May 18 17:18 models drwxr-xr-x 4 root root 4096 Apr 22 10:25 nvidia mars@helios:/mnt/data1$ sudo chown -R mars:mars miniconda3 mars@helios:/mnt/data1$ /mnt/data1/miniconda3/bin/conda init bash no change /mnt/data1/miniconda3/condabin/conda no change /mnt/data1/miniconda3/bin/conda no change /mnt/data1/miniconda3/bin/activate no change /mnt/data1/miniconda3/bin/deactivate no change /mnt/data1/miniconda3/etc/profile.d/conda.sh no change /mnt/data1/miniconda3/etc/fish/conf.d/conda.fish no change /mnt/data1/miniconda3/shell/condabin/Conda.psm1 no change /mnt/data1/miniconda3/shell/condabin/conda-hook.ps1 no change /mnt/data1/miniconda3/lib/python3.13/site-packages/xontrib/conda.xsh no change /mnt/data1/miniconda3/etc/profile.d/conda.csh modified /home/mars/.bashrc ==> For changes to take effect, close and re-open your current shell. <== mars@helios:/mnt/data1$ exit (base) mars@helios:~$ source /mnt/data1/miniconda3/etc/profile.d/conda.sh (base) mars@helios:~$ /co^C (base) mars@helios:~$ conda create -y -n 1Cat-vLLM-1.0.0 python=3.12 2 channel Terms of Service accepted Retrieving notices: done Channels: - defaults Platform: linux-64 Collecting package metadata (repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 26.3.2 latest version: 26.5.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /mnt/data1/miniconda3/envs/1Cat-vLLM-1.0.0 added / updated specs: - python=3.12 The following packages will be downloaded: package | build ---------------------------|----------------- _openmp_mutex-5.1 | 52_gnu 7 KB libexpat-2.8.0 | h7354ed3_0 123 KB packaging-26.0 | py312h06a4308_0 193 KB python-3.12.13 | h4d16e0c_1 30.1 MB setuptools-82.0.1 | py312h06a4308_0 1.6 MB wheel-0.46.3 | py312h06a4308_0 69 KB ------------------------------------------------------------ Total: 32.1 MB The following NEW packages will be INSTALLED: _libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main _openmp_mutex pkgs/main/linux-64::_openmp_mutex-5.1-52_gnu bzip2 pkgs/main/linux-64::bzip2-1.0.8-h5eee18b_6 ca-certificates pkgs/main/linux-64::ca-certificates-2026.3.19-h06a4308_0 ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.44-h9e0c5a2_3 libexpat pkgs/main/linux-64::libexpat-2.8.0-h7354ed3_0 libffi pkgs/main/linux-64::libffi-3.4.8-hc5d346e_2 libgcc pkgs/main/linux-64::libgcc-15.2.0-h69a1729_7 libgcc-ng pkgs/main/linux-64::libgcc-ng-15.2.0-h166f726_7 libstdcxx pkgs/main/linux-64::libstdcxx-15.2.0-h39759b7_7 libuuid pkgs/main/linux-64::libuuid-1.41.5-h5eee18b_0 libxcb pkgs/main/linux-64::libxcb-1.17.0-h9b100fa_0 libzlib pkgs/main/linux-64::libzlib-1.3.1-h47b2149_1 ncurses pkgs/main/linux-64::ncurses-6.5-h7934f7d_0 openssl pkgs/main/linux-64::openssl-3.5.6-h1b28b03_0 packaging pkgs/main/linux-64::packaging-26.0-py312h06a4308_0 pip pkgs/main/noarch::pip-26.0.1-pyhc872135_1 pthread-stubs pkgs/main/linux-64::pthread-stubs-0.3-h0ce48e5_1 python pkgs/main/linux-64::python-3.12.13-h4d16e0c_1 readline pkgs/main/linux-64::readline-8.3-hc2a1206_0 setuptools pkgs/main/linux-64::setuptools-82.0.1-py312h06a4308_0 sqlite pkgs/main/linux-64::sqlite-3.51.2-h3e8d24a_0 tk pkgs/main/linux-64::tk-8.6.15-h54e0aa7_0 tzdata pkgs/main/noarch::tzdata-2026a-he532380_0 wheel pkgs/main/linux-64::wheel-0.46.3-py312h06a4308_0 xorg-libx11 pkgs/main/linux-64::xorg-libx11-1.8.12-h9b100fa_1 xorg-libxau pkgs/main/linux-64::xorg-libxau-1.0.12-h9b100fa_0 xorg-libxdmcp pkgs/main/linux-64::xorg-libxdmcp-1.1.5-h9b100fa_0 xorg-xorgproto pkgs/main/linux-64::xorg-xorgproto-2024.1-h5eee18b_1 xz pkgs/main/linux-64::xz-5.8.2-h448239c_0 zlib pkgs/main/linux-64::zlib-1.3.1-h47b2149_1 Downloading and Extracting Packages: Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate 1Cat-vLLM-1.0.0 # # To deactivate an active environment, use # # $ conda deactivate (base) mars@helios:~$ conda activate 1Cat-vLLM-1.0.0

Wednesday, 29 April 2026

Truenas app issue

Unset pool systemctl restart docker service middlewared restart if error (cannot unmount): fuser -mv /mnt/.ix-apps/docker USER PID ACCESS COMMAND /mnt/.ix-apps/docker: root kernel mount /mnt/.ix-apps/docker apps 16726 ..c.. valkey-server apps 16727 ..c.. valkey-server apps 17222 ..c.. valkey-server apps 17248 ..c.. valkey-server root@truenas[/home/admin]# kill -9 16726 16727 17222 17248 umount -l /mnt/.ix-apps/docker if cannot start a service: ps -aux | grep nexus
inet6 fe80::862b:2bff:fe5d:a5c3 prefixlen 64 scopeid 0x20 ether 84:2b:2b:5d:a5:c3 txqueuelen 1000 (Ethernet) RX packets 2851150 bytes 3499652968 (3.2 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 824812 bytes 506142219 (482.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 147 sudo ip link set eno1 promisc on 148 ifconfig eno1 149 sudo ip link set br01 promisc on

Wednesday, 4 March 2026

Setup Nexus Sonatype

https://blog.joeplaa.com/sonatype-nexus-oss-repository/

The best !!!

Wednesday, 25 February 2026

Fix to view VM on Truenas Fangtooth

This fix will solve this problem whereby the VM list do not appear on the UI: midclt call vm.query 3 validation errors for VMQueryResult result.list[VMQueryResultItem].8.devices.1.attributes.CDROM.path String should match pattern '^/mnt/[^{}]*$' [type=string_pattern_mismatch, input_value='/mnt', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/string_pattern_mismatch result.VMQueryResultItem Input should be a valid dictionary or instance of VMQueryResultItem [type=model_type, input_value=[{'id': 6, 'name': 'unica...ain_state': 'RUNNING'}}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/model_type result.int Input should be a valid integer [type=int_type, input_value=[{'id': 6, 'name': 'unica...ain_state': 'RUNNING'}}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/int_type Traceback (most recent call last): File "/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py", line 323, in process_method_call result = await method.call(app, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py", line 61, in call return await self._dump_result(app, methodobj, result) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/api/base/server/method.py", line 64, in _dump_result return self.middleware.dump_result(self.serviceobj, methodobj, app, result) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/main.py", line 819, in dump_result return serialize_result(new_style_returns_model, result, expose_secrets) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/middlewared/api/base/handler/result.py", line 13, in serialize_result return model(result=result).model_dump( ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/pydantic/main.py", line 212, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 3 validation errors for VMQueryResult result.list[VMQueryResultItem].8.devices.1.attributes.CDROM.path String should match pattern '^/mnt/[^{}]*$' [type=string_pattern_mismatch, input_value='/mnt', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/string_pattern_mismatch result.VMQueryResultItem Input should be a valid dictionary or instance of VMQueryResultItem [type=model_type, input_value=[{'id': 6, 'name': 'unica...ain_state': 'RUNNING'}}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/model_type result.int Input should be a valid integer [type=int_type, input_value=[{'id': 6, 'name': 'unica...ain_state': 'RUNNING'}}], input_type=list] For further information visit https://errors.pydantic.dev/2.9/v/int_type Reference : https://forums.truenas.com/t/locked-out-of-vm-management-in-25-4-2/49383 Run the command for i in {0..100}; do midclt call vm.device.get_instance "$i"; done 1> device.log 2>&1 View the device.log and see which id has errors (id is the next one after the successful id): vi device.log Check to ensure the id has error midclt call vm.device.get_instance 68 Delete the device midclt call vm.device.delete 68 Check it no longer exists: midclt call vm.device.get_instance 68 [ENOENT] ALL: VMDevice 68 does not exist Check in the UI to see if you can see the VMs now.

Sunday, 25 January 2026

Nextcloud stuck in maintenance mode on Truenas

In the nextcloud.log :
Application Name:nextcloudContainer ID:1f6482aeb7f5632a603610ae84d117277a6fa6e37733a367f0ae6d56bfa80c26 2026-01-22 11:27:37.019381+00:00Configuring Redis as session handler 2026-01-22 11:27:37.407477+00:00Warning: /var/www/html/config/redis.config.php differs from the latest version of this image at /usr/src/nextcloud/config/redis.config.php 2026-01-22 11:27:37.411800+00:00Warning: /var/www/html/config/reverse-proxy.config.php differs from the latest version of this image at /usr/src/nextcloud/config/reverse-proxy.config.php 2026-01-22 11:27:37.415816+00:00Warning: /var/www/html/config/s3.config.php differs from the latest version of this image at /usr/src/nextcloud/config/s3.config.php 2026-01-22 11:27:37.419405+00:00Warning: /var/www/html/config/smtp.config.php differs from the latest version of this image at /usr/src/nextcloud/config/smtp.config.php 2026-01-22 11:27:37.427170+00:00=> Searching for hook scripts (*.sh) to run, located in the folder "/docker-entrypoint-hooks.d/before-starting" 2026-01-22 11:27:37.432297+00:00==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh" 2026-01-22 11:27:37.458458+00:00Updating database and redis host in config.php 2026-01-22 11:27:38.270344+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:38.270467+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:38.280614+00:00System config value redis => host set to string redis 2026-01-22 11:27:38.308870+00:00==> Finished executing the script: "/docker-entrypoint-hooks.d/before-starting/ix-update-hosts-script.sh" 2026-01-22 11:27:38.309646+00:00==> Running the script (cwd: /var/www/html): "/docker-entrypoint-hooks.d/before-starting/ix-update-trusted-domains-script.sh" 2026-01-22 11:27:38.330937+00:00Updating trusted domains. It will append new domains to the existing list. 2026-01-22 11:27:38.331027+00:00If you see a domain that is not longer valid, you need to manually remove it from the list in the config.php file. 2026-01-22 11:27:39.005698+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:39.005792+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:39.665224+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:39.665301+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:39.672929+00:00System config value trusted_domains deleted 2026-01-22 11:27:40.508083+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:40.508607+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:40.521488+00:00System config value trusted_domains => 0 set to string 127.0.0.1 2026-01-22 11:27:41.455866+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:41.455980+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:41.465707+00:00System config value trusted_domains => 1 set to string 192.168.1.158 2026-01-22 11:27:42.288729+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:42.288818+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:42.297708+00:00System config value trusted_domains => 2 set to string 192.168.1.158:9002 2026-01-22 11:27:43.136640+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:43.136738+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:43.147585+00:00System config value trusted_domains => 3 set to string localhost 2026-01-22 11:27:43.821598+00:00Nextcloud is in maintenance mode, no apps are loaded. 2026-01-22 11:27:43.821672+00:00Commands provided by apps are unavailable. 2026-01-22 11:27:43.827142+00:00System config value trusted_domains => 4 set to string nextcloud 2026-01-22 11:27:43.845482+00:00==> Finished executing the script: "/docker-entrypoint-hooks.d/before-starting/ix-update-trusted-domains-script.sh" 2026-01-22 11:27:43.845608+00:00=> Completed executing scripts in the "before-starting" folder 2026-01-22 11:27:43.901133+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using fdd0:0:0:e::4. Set the 'ServerName' directive globally to suppress this message 2026-01-22 11:27:43.927778+00:00AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using fdd0:0:0:e::4. Set the 'ServerName' directive globally to suppress this message 2026-01-22 11:27:44.056825+00:00[Thu Jan 22 19:27:44.056640 2026] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.66 (Debian) PHP/8.3.30 configured -- resuming normal operations 2026-01-22 11:27:44.056898+00:00[Thu Jan 22 19:27:44.056722 2026] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND' 2026-01-22 11:27:45.730295+00:00127.0.0.1 - - [22/Jan/2026:19:27:45 +0800] "GET /status.php HTTP/1.1" 200 1063 "-" "curl/8.14.1" 2026-01-22 11:27:46.271299+00:00192.168.1.1 - - [22/Jan/2026:19:27:44 +0800] "OPTIONS / HTTP/1.0" 503 0 "-" "-" 2026-01-22 11:27:46.611781+00:00192.168.1.1 - - [22/Jan/2026:19:27:46 +0800] "OPTIONS / HTTP/1.0" 503 32965 "-" "-" 2026-01-22 11:27:47.970077+00:00192.168.1.1 - - [22/Jan/2026:19:27:47 +0800] "OPTIONS / HTTP/1.0" 503 32975 "-" "-" 2026-01-22 11:27:49.282616+00:00192.168.1.1 - - [22/Jan/2026:19:27:48 +0800] "OPTIONS / HTTP/1.0" 503 32971 "-" "-" 2026-01-22 11:27:50.682251+00:00192.168.1.1 - - [22/Jan/2026:19:27:50 +0800] "OPTIONS / HTTP/1.0" 503 32971 "-" "-"



The solution is: sudo docker exec -it e9438cfc3eea sh # php occ upgrade Nextcloud is in maintenance mode, no apps are loaded. Commands provided by apps are unavailable. Nextcloud is in maintenance mode Maybe an upgrade is already in process. Please check the logfile (data/nextcloud.log). If you want to re-run the upgrade procedure, remove the "maintenance mode" from config.php and call this script again. # php occ maintenance:mode --off Maintenance mode disabled # php occ upgrade No upgrade required.