POSTINIT command receives "Network is unreachable" error

justdan

Cadet
Joined
May 22, 2023
Messages
1
I'm running TrueNAS-SCALE-22.12.2 and trying to run a POSTINIT command which uses sshpass. The following is in /var/log/middlewared.log when the command is run.

[2023/05/22 17:42:49] (DEBUG) middlewared.execute_task():198 - Execution failed for COMMAND sshpass .............. port 22: Network is unreachable

The command works correctly in the shell when I run it myself. Do POSTINIT commands not have access to network calls?
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
I believe POSTINIT commands run after init but before lots of other stuff.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I would have suggested the netwait feature as a possible solution, but it's a CORE-only thing, so no luck for SCALE on that.
 
Top