pleroma_ctl instance gen error "--rpc-eval : RPC failed with reason :nodedown"
Since fbbb032b, when doing su pleroma -s $SHELL -lc "/var/www/pleroma/pleroma/bin/pleroma_ctl instance gen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql"
there is an error "--rpc-eval : RPC failed with reason :nodedown"
When doing ugly things like: replacing in https://git.pleroma.social/pleroma/pleroma/blob/stable/rel/files/bin/pleroma_ctl#L155
``"$SCRIPTPATH"/pleroma rpc ....`
by
``"$SCRIPTPATH"/pleroma eval ....`
the instance gen goes well
Moving forward in tests, in https://git.pleroma.social/pleroma/pleroma/blob/stable/rel/files/bin/pleroma_ctl:
-
$0
value is/var/www/pleroma/pleroma/bin/pleroma_ctl
-
$1
value isgen
-
$*
value isgen --output /etc/pleroma/config.exs --output-psql /tmp/setup_db.psql
I don't understand why $1
value is not instance
Still moving forward on tests, when removing shift
from https://git.pleroma.social/pleroma/pleroma/blob/stable/rel/files/bin/pleroma_ctl#L143 the instance gen goes well and values for $0
, $1
, $*
are as expected...