Cannot start plot jobs on TrueNAS Scale worker #255
-
I've been trying to figure out this issue for a couple of days, with no luck. Last weekend I decided to give TrueNAS Scale a try, TrueNAS Core worked but... Scale is new, and not FreeBSD. While there are only 6 applications in the official TrueNAS Scale app repo chia and machinaris are both included in that list! When I installed machinaris VIA the TrueNAS Scale web GUI, I included the relevant environmental variables from my other plotter Docker Run files. Once the install job has completed, my new worker shows up on my workers page... I can modify the plot setting VIA the web GUI. So far so good... Things go sideways when I try to start plotting on my new plotting worker. As soon as I try to start plotting the following error pops up.
I checked the obvious issue - Manually starting the plot jobs for now! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi, yes this means that the Docker container is being launched without the |
Beta Was this translation helpful? Give feedback.
-
@k2skaterii I reply here to #252 (reply in thread). As mentioned by @guydavis in #255 (comment), tty is required for machinaris to work properly. By having a quick look at the deployment file in the TrueNAS Charts repo at https://github.com/truenas/charts/blob/master/charts/machinaris/1.0.2/templates/deployment.yaml I cannot find the Considering the TrueNAS Scale release plan (https://www.ixsystems.com/blog/truenas-scale-release-plan/) states the APP part (Docker and Kubernetes) is still in preview, I decided to make a manual install using pure Docker, also allowing me to be up-to-date and not relying on someone else to update/deploy. Keep in mind though, TrueNAS is an appliance and therefore cannot be treated as a pure Linux host, therefore limitation apply (e.g. As far as the setup is concerned, disk choice is important. Plotting dir (aka tmp dir)I use a single SSD (a Samsung SSD 840, all I have since I decided to start end of July with Chia and don't feel yet the need in investing in hardware yet) as my temp dir (mapping to Plots Store (aka plots dir)To store plots - instead - RAID make no sense to me as I don't really want to waste space to have plots redundant, this means no RAID 1/5/10 etc. Also, RAID 0 make no sense either to me, as if you loose one disk, you will loose all the plots in the Pool instead of just the one stored in the failing disk. This is a decision that comes mostly from my limited hardware at my disposal and the fact that I need space, no protection. I suggest a ZFS Pool per Disk. I use NFS among Nodes, so ZFS is configured as follow:
For both tmp dir and additional DockerMake sure docker is enabled on boot (if you used the App part, probably it already is). If you like a GUI, Portainer can be used as an alternative to the embedded UI. docker volume create portainer-data
docker run \
--detach \
--name portainer \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer-data:/data \
-p 9000:9000 \
--restart always \
portainer/portainer-ce Deploy the worker/plotter via either docker-compose (e.g. via Stack in Portainer) or Docker command as generated by machinaris Workers page. Will be happy to provide more details should you need them. Also I see you use Madmax already and get really good timing in other VMs. You are lucky to have 10k SAS Disks, so I don't think it will perform poorly anyway. |
Beta Was this translation helpful? Give feedback.
-
@guydavis I posted this in Discord as well! While I don't know enough about the TrueNAS Scale container deployment to recommend a fix so it works out of the box... But I did find a work around that got things working! I was able to get my plotting only machinatis app on my TrueNAS Scale working by connecting to the container's shell and running the following scripts that came with machinaris: The output from the plotman_install script indicated that all dependencies were all ready installed, I don't know if anything even changed. Maybe stopping and starting machinaris from within the container is all that was needed... Eitherway, I bet that kind of post deployment manual intervention was not intentional or expected! |
Beta Was this translation helpful? Give feedback.
-
This should now be fixed in v0.5.5 of Machinaris which removes the usage of |
Beta Was this translation helpful? Give feedback.
This should now be fixed in v0.5.5 of Machinaris which removes the usage of
stty
inside Plotman for non-shell usage via the Machinaris WebUI.