Undefined function application:get_supervisor/1 Why?

Hello all!

Got very strange error when trying to run application:

$ erl -name init -setcookie 12345
Erlang/OTP 25 [erts-13.2.2.3] [source] [32-bit] [smp:6:6] [ds:6:6:10] [async-threads:1]

Eshell V13.2.2.3  (abort with ^G)
(init@domain.test)1> application:start(app_name).
ok
(init@rdomain.test)2> application:get_supervisor(app_name).
** exception error: undefined function application:get_supervisor/1

Has anyone any clue of the cause of this error?
Running erlang on FreeBSD server.
Erlang installed with:

pkg install erlang
1 Like

Found the cause - version of Erlang. This functionality available only on 26+. My version is 25.

1 Like