Issue running aeproject env and aeproject node command

Issue running aeproject env and aeproject node command

I recently started facing issues running aeproject env and aeproject node command after using it well a day before.

Configurations

  • ubuntu 20.04
  • aeproject version 2.2.0
  • docker version 19.03.11, build 42e35e61f3
  • docker-compose version 1.26.0, build d4451659

Error

aeproject node

No such command: path_to_project_directory/docker_compose.yml

Commands:
  build              Build or rebuild services
  config             Validate and view the Compose file
  create             Create services
  down               Stop and remove containers, networks, images, and volumes
  events             Receive real time events from containers
  exec               Execute a command in a running container
  help               Get help on a command
  images             List images
  kill               Kill containers
  logs               View output from containers
  pause              Pause services
  port               Print the public port for a port binding
  ps                 List containers
  pull               Pull service images
  push               Push service images
  restart            Restart services
  rm                 Remove stopped containers
  run                Run a one-off command
  scale              Set number of containers for a service
  start              Start services
  stop               Stop services
  top                Display the running processes
  unpause            Unpause services
  up                 Create and start containers
  version            Show the Docker-Compose version information

Error: Command failed: export COLUMNS=1000 && docker-compose -f /path_to_project_directory//docker-compose.yml ps
No such command: path_to_project_directory//docker_compose.yml

Commands:
  build              Build or rebuild services
  config             Validate and view the Compose file
  create             Create services
  down               Stop and remove containers, networks, images, and volumes
  events             Receive real time events from containers
  exec               Execute a command in a running container
  help               Get help on a command
  images             List images
  kill               Kill containers
  logs               View output from containers
  pause              Pause services
  port               Print the public port for a port binding
  ps                 List containers
  pull               Pull service images
  push               Push service images
  restart            Restart services
  rm                 Remove stopped containers
  run                Run a one-off command
  scale              Set number of containers for a service
  start              Start services
  stop               Stop services
  top                Display the running processes
  unpause            Unpause services
  up                 Create and start containers
  version            Show the Docker-Compose version information

aeproject env

No such command: path_to_project_directory/docker_compose.yml

Commands:
  build              Build or rebuild services
  config             Validate and view the Compose file
  create             Create services
  down               Stop and remove containers, networks, images, and volumes
  events             Receive real time events from containers
  exec               Execute a command in a running container
  help               Get help on a command
  images             List images
  kill               Kill containers
  logs               View output from containers
  pause              Pause services
  port               Print the public port for a port binding
  ps                 List containers
  pull               Pull service images
  push               Push service images
  restart            Restart services
  rm                 Remove stopped containers
  run                Run a one-off command
  scale              Set number of containers for a service
  start              Start services
  stop               Stop services
  top                Display the running processes
  unpause            Unpause services
  up                 Create and start containers
  version            Show the Docker-Compose version information

(node:4752) UnhandledPromiseRejectionWarning: Error: Error: Command failed: export COLUMNS=1000 && docker-compose -f /path_to_project_directory/docker-compose.yml -f /path_to_project_directory/docker-compose.compiler.yml ps
No such command: path_to_project_directory/docker_compose.yml

Commands:
  build              Build or rebuild services
  config             Validate and view the Compose file
  create             Create services
  down               Stop and remove containers, networks, images, and volumes
  events             Receive real time events from containers
  exec               Execute a command in a running container
  help               Get help on a command
  images             List images
  kill               Kill containers
  logs               View output from containers
  pause              Pause services
  port               Print the public port for a port binding
  ps                 List containers
  pull               Pull service images
  push               Push service images
  restart            Restart services
  rm                 Remove stopped containers
  run                Run a one-off command
  scale              Set number of containers for a service
  start              Start services
  stop               Stop services
  top                Display the running processes
  unpause            Unpause services
  up                 Create and start containers
  version            Show the Docker-Compose version information

    at Env.isImageRunning (/usr/local/lib/node_modules/aeproject/aeproject-env/EnvService.js:337:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:4752) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4752) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Looking forward to learning more.

Warmest Regards.

2 Likes

@martingrigorov.chain @philipp.chain @ae-omar @erik.chain

2 Likes

Hey you have probably messed up your configurations. Are you running the command from the same project as before ?

Martin

No, I created a new project

Thanks @martingrigorov.chain I just fixed the issue

I am glad to hear that! Can you share more info on how did yoi fixed it, probably some other users can help themselves with that.

Thanks,
Martin

Solution

After seeing the above quote, I executed the aeproject export-config command which gave the below output:

{
  "networkId": "ae_devnet",
  "host": "http://localhost:3001",
  "internalHost": "http://localhost:3001/internal",
  "compilerUrl": "http://localhost:3080",
  "minerWallet": {
    "publicKey": "ak_2mwRmUeYmfuW93ti9HMSUJzCk1EYcQEfikVSzgo6k2VghsWhgU",
    "secretKey": "bb9f0b01c8c9553cfbaf7ef81a50f977b1326801ebf7294d1c2cbccdedf27476e9bbf604e611b5460a3b3999e9771b6f60417d73ce7c5519e12f7e127a1225ca"
  },
  "defaultWallets": [
    {
      3 different wallet with the private key
    }
  ]
}

Since I saw everything was okay at the config end, I uninstalled aeproject globally using npm uninstall -g aeproject and deleted all files relating to aeproject in my npm lib folder. Then I installed aeproject again with the famous command:

npm install -g aeproject

Regards