I am preparing local relay chain from this tutorial. Configure polkadot and added raw-local-chainspec.json file but while running first validator, it gives this error.

ganesholi@Ganeshs-MacBook-Air polkadot % ./target/release/polkadot \
--alice \
--validator \
--base-path /tmp/relay/alice \
--chain /tmp/raw-local-chainspec.json \
--port 30333 \
--ws-port 9944
error: unexpected argument '--ws-port' found

  tip: a similar argument exists: '--workers-path'

Usage: polkadot --alice --validator --port <PORT> --workers-path <PATH> <--chain <CHAIN_SPEC>|--dev|--base-path <PATH>|--log <LOG_PATTERN>...|--detailed-log-output|--disable-log-color|--enable-log-reloading|--tracing-targets <TARGETS>|--tracing-receiver <RECEIVER>>

For more information, try '--help'.
ganesholi@Ganeshs-MacBook-Air polkadot % 

2 Answers 2


A suggestion, always checking the release detail before using/upgrading to it: https://github.com/paritytech/polkadot/releases/tag/v0.9.43

CLI changes
This release removes the following CLI parameters:

--rpc-max-payload (replaced by --rpc-max-request-size and --rpc-max-response-size)
--ws-external (replaced by --rpc-external)
--unsafe-ws-external (replaced by --unsafe-rpc-external)
--ws-port (replaced by --rpc-port)
--ws-max--connections (replaced by --rpc-max-connections)
--rpc-http (replaced by --rpc-addr)
--rpc-ws (replaced by --rpc-addr)
  • I am facing error in opening spec file. Error: 0: Invalid input: Error opening spec file /tmp/raw-local-chainspec.json: No such file or directory (os error 2)
    – Ganesh11
    Aug 3 at 17:16
  • even though there is file in that directory
    – Ganesh11
    Aug 3 at 17:18
  • 2
    @Ganesh11 /tmp is different from the one in your current project directory. /tmp is associated to the file systems. Aug 3 at 17:36

--ws-port is replaced by --rpc-port. You can confirm this from here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.