I want to add new simple features on top of the existing ones in Truenas.So I attempt to execute my own program in the TrueNAS25.04.2-MASTER -20250805-234253 community version system, but the background directly kills my process. What should I do to execute my own program?
root@truenas[/]# ./test
sudo: process 615732 unexpected status 0x57f
signal: killed
Looking forward to your reply. Thank you very much!
My test is a binary file that performs operations such as adding, deleting, modifying, and querying files and directories. I executed it in the backend environment of Truenas Scale and kept getting the error message ‘killed’. I would like to know if there are any restrictions on the Truenas system? Thank you very much for your reply.
There aren’t any restrictions that I am aware of. TrueNAS Scale is based on Debian and behaves accordingly. If you start a shell using sudo there are some ptrace-related limitations which can be solved by disabling the log_subcmds option.
If you get killed by the system you usually have some explanation in dmesg.
It looks like you put your binary in /? That doesn’t seem like a good location for much of anything. Try putting it somewhere in your storage pool and running it from there, and see if you get the same result.
Note also that you’re running a nightly build of TrueNAS, which isn’t expected to be stable. I wouldn’t expect it to be causing this problem, but you never know.