By default, Command Blocks are disabled by Minecraft to stop players from abusing them. As such, they have to enabled manually.
# Enabling Command Blocks
- Access your server's control panel and navigate to the Files tab.
- Find the server.properties file, and click its name to edit it
- Set the enable-command-block field to true
- Save the file, then restart your server
After your server boots up, you will be able to use command blocks as expected.