You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jürgen Weber <ju...@jwi.de> on 2020/09/28 06:33:45 UTC

artemis.cmd run Found unexpected parameters: [run]

Hi,

I tried to run artemis as in the README.html

How should I start the broker?

C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
Found unexpected parameters: [run]

usage: artemis <command> [<args>]

The most commonly used artemis commands are:
    address     Address tools group (create|delete|update|show)
(example ./artemis address create)
    browser     It will browse messages on an instance
    check       Check tools group (node|queue) (example ./artemis check node)
    consumer    It will consume messages from an instance
    create      creates a new broker instance
    data        data tools group (print) (example ./artemis data print)
    help        Display help information
    mask        mask a password and print it out
    migrate1x   Migrates the configuration of a 1.x Artemis Broker
    producer    It will send messages to an instance
    queue       Queue tools group (create|delete|update|stat|purge)
(example ./artemis queue create)

See 'artemis help <command>' for more information on a specific command.


C:\java\apache-artemis-2.15.0\bin>java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

Re: artemis.cmd run Found unexpected parameters: [run]

Posted by Jürgen Weber <ju...@jwi.de>.
OK, I had overlooked "script found under the bin directory of the
newly created broker" and looked only at the command line examples:

$ ./artemis create $directory

$ ./artemis run

It works now. Thanks very much for your help.

Am Mo., 28. Sept. 2020 um 14:28 Uhr schrieb Robbie Gemmell
<ro...@gmail.com>:
>
> You did create one yes, however you then didn't actually go on to use
> it, and instead tried issuing the run command to the base script
> again, which doesnt support it as it then indicates.
>
> Note the output during creation includes some example commands for
> running the broker instance, which uses a different script found
> within the created instance dir.
>
> E.g since you created an instance in a dir named "test" directly
> within the extracted bin dir, your output lists example:
> "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis" run
>
> (Thats presumably missing a .cmd extension for use on Windows)
>
> Robbie
>
> On Mon, 28 Sep 2020 at 12:46, Jürgen Weber <ju...@jwi.de> wrote:
> >
> > I think I created an instance. The complete journal:
> >
> > C:\java\apache-artemis-2.15.0\bin>dir
> >  Datenträger in Laufwerk C: ist Windows
> >  Volumeseriennummer: F4C1-7A8D
> >
> >  Verzeichnis von C:\java\apache-artemis-2.15.0\bin
> >
> > 24.08.2020  20:45    <DIR>          .
> > 24.08.2020  20:45    <DIR>          ..
> > 24.08.2020  20:26             2.713 artemis
> > 24.08.2020  20:26             1.945 artemis.cmd
> > 24.08.2020  20:45    <DIR>          lib
> >                2 Datei(en),          4.658 Bytes
> >                3 Verzeichnis(se), 118.109.212.672 Bytes frei
> >
> > C:\java\apache-artemis-2.15.0\bin>artemis.cmd create test
> > Creating ActiveMQ Artemis instance at: C:\java\apache-artemis-2.15.0\bin\test
> >
> > --user: is a mandatory property!
> > Please provide the default username:
> > test
> >
> > --password: is mandatory with this configuration:
> > Please provide the default password:
> >
> >
> > --allow-anonymous | --require-login: is a mandatory property!
> > Allow anonymous access?, valid values are Y,N,True,False
> > Y
> >
> > Auto tuning journal ...
> > done! Your system can make 3,73 writes per millisecond, your
> > journal-buffer-timeout will be 268000
> >
> > You can now start the broker by executing:
> >
> >    "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis" run
> >
> > Or you can setup the broker as Windows service and run it in the background:
> >
> >    "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" install
> >    "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" start
> >
> >    To stop the windows service:
> >       "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" stop
> >
> >    To uninstall the windows service
> >       "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" uninstall
> >
> > C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
> > Found unexpected parameters: [run]
> >
> > usage: artemis <command> [<args>]
> >
> > The most commonly used artemis commands are:
> >     address     Address tools group (create|delete|update|show)
> > (example ./artemis address create)
> >     browser     It will browse messages on an instance
> >     check       Check tools group (node|queue) (example ./artemis check node)
> >     consumer    It will consume messages from an instance
> >     create      creates a new broker instance
> >     data        data tools group (print) (example ./artemis data print)
> >     help        Display help information
> >     mask        mask a password and print it out
> >     migrate1x   Migrates the configuration of a 1.x Artemis Broker
> >     producer    It will send messages to an instance
> >     queue       Queue tools group (create|delete|update|stat|purge)
> > (example ./artemis queue create)
> >
> > See 'artemis help <command>' for more information on a specific command.
> >
> >
> > C:\java\apache-artemis-2.15.0\bin>java -version
> > openjdk version "11.0.7" 2020-04-14
> > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
> > OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)
> >
> >
> > Am Mo., 28. Sept. 2020 um 13:07 Uhr schrieb Robbie Gemmell
> > <ro...@gmail.com>:
> > >
> > > The below suggests you are trying to run the initial instal etc tool
> > > script, rather than a broker instance script used to start a specific
> > > broker. Did you create a broker instance as detailed in the readme
> > > (see the create command listed in the help output below) ? That
> > > creates a further script used for starting the broker, and prints out
> > > some example commands for using it.
> > >
> > > On Mon, 28 Sep 2020 at 07:34, Jürgen Weber <ju...@jwi.de> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I tried to run artemis as in the README.html
> > > >
> > > > How should I start the broker?
> > > >
> > > > C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
> > > > Found unexpected parameters: [run]
> > > >
> > > > usage: artemis <command> [<args>]
> > > >
> > > > The most commonly used artemis commands are:
> > > >     address     Address tools group (create|delete|update|show)
> > > > (example ./artemis address create)
> > > >     browser     It will browse messages on an instance
> > > >     check       Check tools group (node|queue) (example ./artemis check node)
> > > >     consumer    It will consume messages from an instance
> > > >     create      creates a new broker instance
> > > >     data        data tools group (print) (example ./artemis data print)
> > > >     help        Display help information
> > > >     mask        mask a password and print it out
> > > >     migrate1x   Migrates the configuration of a 1.x Artemis Broker
> > > >     producer    It will send messages to an instance
> > > >     queue       Queue tools group (create|delete|update|stat|purge)
> > > > (example ./artemis queue create)
> > > >
> > > > See 'artemis help <command>' for more information on a specific command.
> > > >
> > > >
> > > > C:\java\apache-artemis-2.15.0\bin>java -version
> > > > openjdk version "11.0.7" 2020-04-14
> > > > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
> > > > OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

Re: artemis.cmd run Found unexpected parameters: [run]

Posted by Robbie Gemmell <ro...@gmail.com>.
You did create one yes, however you then didn't actually go on to use
it, and instead tried issuing the run command to the base script
again, which doesnt support it as it then indicates.

Note the output during creation includes some example commands for
running the broker instance, which uses a different script found
within the created instance dir.

E.g since you created an instance in a dir named "test" directly
within the extracted bin dir, your output lists example:
"C:\java\apache-artemis-2.15.0\bin\test\bin\artemis" run

(Thats presumably missing a .cmd extension for use on Windows)

Robbie

On Mon, 28 Sep 2020 at 12:46, Jürgen Weber <ju...@jwi.de> wrote:
>
> I think I created an instance. The complete journal:
>
> C:\java\apache-artemis-2.15.0\bin>dir
>  Datenträger in Laufwerk C: ist Windows
>  Volumeseriennummer: F4C1-7A8D
>
>  Verzeichnis von C:\java\apache-artemis-2.15.0\bin
>
> 24.08.2020  20:45    <DIR>          .
> 24.08.2020  20:45    <DIR>          ..
> 24.08.2020  20:26             2.713 artemis
> 24.08.2020  20:26             1.945 artemis.cmd
> 24.08.2020  20:45    <DIR>          lib
>                2 Datei(en),          4.658 Bytes
>                3 Verzeichnis(se), 118.109.212.672 Bytes frei
>
> C:\java\apache-artemis-2.15.0\bin>artemis.cmd create test
> Creating ActiveMQ Artemis instance at: C:\java\apache-artemis-2.15.0\bin\test
>
> --user: is a mandatory property!
> Please provide the default username:
> test
>
> --password: is mandatory with this configuration:
> Please provide the default password:
>
>
> --allow-anonymous | --require-login: is a mandatory property!
> Allow anonymous access?, valid values are Y,N,True,False
> Y
>
> Auto tuning journal ...
> done! Your system can make 3,73 writes per millisecond, your
> journal-buffer-timeout will be 268000
>
> You can now start the broker by executing:
>
>    "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis" run
>
> Or you can setup the broker as Windows service and run it in the background:
>
>    "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" install
>    "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" start
>
>    To stop the windows service:
>       "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" stop
>
>    To uninstall the windows service
>       "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" uninstall
>
> C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
> Found unexpected parameters: [run]
>
> usage: artemis <command> [<args>]
>
> The most commonly used artemis commands are:
>     address     Address tools group (create|delete|update|show)
> (example ./artemis address create)
>     browser     It will browse messages on an instance
>     check       Check tools group (node|queue) (example ./artemis check node)
>     consumer    It will consume messages from an instance
>     create      creates a new broker instance
>     data        data tools group (print) (example ./artemis data print)
>     help        Display help information
>     mask        mask a password and print it out
>     migrate1x   Migrates the configuration of a 1.x Artemis Broker
>     producer    It will send messages to an instance
>     queue       Queue tools group (create|delete|update|stat|purge)
> (example ./artemis queue create)
>
> See 'artemis help <command>' for more information on a specific command.
>
>
> C:\java\apache-artemis-2.15.0\bin>java -version
> openjdk version "11.0.7" 2020-04-14
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)
>
>
> Am Mo., 28. Sept. 2020 um 13:07 Uhr schrieb Robbie Gemmell
> <ro...@gmail.com>:
> >
> > The below suggests you are trying to run the initial instal etc tool
> > script, rather than a broker instance script used to start a specific
> > broker. Did you create a broker instance as detailed in the readme
> > (see the create command listed in the help output below) ? That
> > creates a further script used for starting the broker, and prints out
> > some example commands for using it.
> >
> > On Mon, 28 Sep 2020 at 07:34, Jürgen Weber <ju...@jwi.de> wrote:
> > >
> > > Hi,
> > >
> > > I tried to run artemis as in the README.html
> > >
> > > How should I start the broker?
> > >
> > > C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
> > > Found unexpected parameters: [run]
> > >
> > > usage: artemis <command> [<args>]
> > >
> > > The most commonly used artemis commands are:
> > >     address     Address tools group (create|delete|update|show)
> > > (example ./artemis address create)
> > >     browser     It will browse messages on an instance
> > >     check       Check tools group (node|queue) (example ./artemis check node)
> > >     consumer    It will consume messages from an instance
> > >     create      creates a new broker instance
> > >     data        data tools group (print) (example ./artemis data print)
> > >     help        Display help information
> > >     mask        mask a password and print it out
> > >     migrate1x   Migrates the configuration of a 1.x Artemis Broker
> > >     producer    It will send messages to an instance
> > >     queue       Queue tools group (create|delete|update|stat|purge)
> > > (example ./artemis queue create)
> > >
> > > See 'artemis help <command>' for more information on a specific command.
> > >
> > >
> > > C:\java\apache-artemis-2.15.0\bin>java -version
> > > openjdk version "11.0.7" 2020-04-14
> > > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
> > > OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

Re: artemis.cmd run Found unexpected parameters: [run]

Posted by Jürgen Weber <ju...@jwi.de>.
I think I created an instance. The complete journal:

C:\java\apache-artemis-2.15.0\bin>dir
 Datenträger in Laufwerk C: ist Windows
 Volumeseriennummer: F4C1-7A8D

 Verzeichnis von C:\java\apache-artemis-2.15.0\bin

24.08.2020  20:45    <DIR>          .
24.08.2020  20:45    <DIR>          ..
24.08.2020  20:26             2.713 artemis
24.08.2020  20:26             1.945 artemis.cmd
24.08.2020  20:45    <DIR>          lib
               2 Datei(en),          4.658 Bytes
               3 Verzeichnis(se), 118.109.212.672 Bytes frei

C:\java\apache-artemis-2.15.0\bin>artemis.cmd create test
Creating ActiveMQ Artemis instance at: C:\java\apache-artemis-2.15.0\bin\test

--user: is a mandatory property!
Please provide the default username:
test

--password: is mandatory with this configuration:
Please provide the default password:


--allow-anonymous | --require-login: is a mandatory property!
Allow anonymous access?, valid values are Y,N,True,False
Y

Auto tuning journal ...
done! Your system can make 3,73 writes per millisecond, your
journal-buffer-timeout will be 268000

You can now start the broker by executing:

   "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis" run

Or you can setup the broker as Windows service and run it in the background:

   "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" install
   "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" start

   To stop the windows service:
      "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" stop

   To uninstall the windows service
      "C:\java\apache-artemis-2.15.0\bin\test\bin\artemis-service.exe" uninstall

C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
Found unexpected parameters: [run]

usage: artemis <command> [<args>]

The most commonly used artemis commands are:
    address     Address tools group (create|delete|update|show)
(example ./artemis address create)
    browser     It will browse messages on an instance
    check       Check tools group (node|queue) (example ./artemis check node)
    consumer    It will consume messages from an instance
    create      creates a new broker instance
    data        data tools group (print) (example ./artemis data print)
    help        Display help information
    mask        mask a password and print it out
    migrate1x   Migrates the configuration of a 1.x Artemis Broker
    producer    It will send messages to an instance
    queue       Queue tools group (create|delete|update|stat|purge)
(example ./artemis queue create)

See 'artemis help <command>' for more information on a specific command.


C:\java\apache-artemis-2.15.0\bin>java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)


Am Mo., 28. Sept. 2020 um 13:07 Uhr schrieb Robbie Gemmell
<ro...@gmail.com>:
>
> The below suggests you are trying to run the initial instal etc tool
> script, rather than a broker instance script used to start a specific
> broker. Did you create a broker instance as detailed in the readme
> (see the create command listed in the help output below) ? That
> creates a further script used for starting the broker, and prints out
> some example commands for using it.
>
> On Mon, 28 Sep 2020 at 07:34, Jürgen Weber <ju...@jwi.de> wrote:
> >
> > Hi,
> >
> > I tried to run artemis as in the README.html
> >
> > How should I start the broker?
> >
> > C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
> > Found unexpected parameters: [run]
> >
> > usage: artemis <command> [<args>]
> >
> > The most commonly used artemis commands are:
> >     address     Address tools group (create|delete|update|show)
> > (example ./artemis address create)
> >     browser     It will browse messages on an instance
> >     check       Check tools group (node|queue) (example ./artemis check node)
> >     consumer    It will consume messages from an instance
> >     create      creates a new broker instance
> >     data        data tools group (print) (example ./artemis data print)
> >     help        Display help information
> >     mask        mask a password and print it out
> >     migrate1x   Migrates the configuration of a 1.x Artemis Broker
> >     producer    It will send messages to an instance
> >     queue       Queue tools group (create|delete|update|stat|purge)
> > (example ./artemis queue create)
> >
> > See 'artemis help <command>' for more information on a specific command.
> >
> >
> > C:\java\apache-artemis-2.15.0\bin>java -version
> > openjdk version "11.0.7" 2020-04-14
> > OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
> > OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)

Re: artemis.cmd run Found unexpected parameters: [run]

Posted by Robbie Gemmell <ro...@gmail.com>.
The below suggests you are trying to run the initial instal etc tool
script, rather than a broker instance script used to start a specific
broker. Did you create a broker instance as detailed in the readme
(see the create command listed in the help output below) ? That
creates a further script used for starting the broker, and prints out
some example commands for using it.

On Mon, 28 Sep 2020 at 07:34, Jürgen Weber <ju...@jwi.de> wrote:
>
> Hi,
>
> I tried to run artemis as in the README.html
>
> How should I start the broker?
>
> C:\java\apache-artemis-2.15.0\bin>artemis.cmd run
> Found unexpected parameters: [run]
>
> usage: artemis <command> [<args>]
>
> The most commonly used artemis commands are:
>     address     Address tools group (create|delete|update|show)
> (example ./artemis address create)
>     browser     It will browse messages on an instance
>     check       Check tools group (node|queue) (example ./artemis check node)
>     consumer    It will consume messages from an instance
>     create      creates a new broker instance
>     data        data tools group (print) (example ./artemis data print)
>     help        Display help information
>     mask        mask a password and print it out
>     migrate1x   Migrates the configuration of a 1.x Artemis Broker
>     producer    It will send messages to an instance
>     queue       Queue tools group (create|delete|update|stat|purge)
> (example ./artemis queue create)
>
> See 'artemis help <command>' for more information on a specific command.
>
>
> C:\java\apache-artemis-2.15.0\bin>java -version
> openjdk version "11.0.7" 2020-04-14
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)