Unable to setup Discourse CLI on AWS Bitnami hosted instance

AI-generated summary

Unable to setup Discourse CLI on AWS Bitnami hosted instance

User ashishsecdev is experiencing issues setting up Discourse CLI on an AWS Bitnami hosted instance. Despite setting up an “Inbound TCP” rule on AWS, they are encountering an error when calling the API at http://{ip}:3000.

ashishsecdev shared the error details, which indicate a file not found error at /home/bitnami/.discourse_cli.

pfaffman suggested following the official Discourse installation guide or seeking Bitnami’s support as alternatives.

As a result, ashishsecdev is considering migrating to a fresh installation on Ubuntu.

Hi All,

I am trying to configure the AWS hosted Discourse CLI and the API is needed to be called at http://{ip}:3000

I have setup the “Inbound TCP” rule on AWS but it isn’t working. Is there anyone who can help with the issue?

Error Details:

11: from /opt/bitnami/ruby/bin/discourse:23:in `<main>'
        10: from /opt/bitnami/ruby/bin/discourse:23:in `load'
         9: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/discourse_cli-0.5.0/bin/discourse:5:in `<top (required)>'
         8: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
         7: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
         6: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
         5: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
         4: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/discourse_cli-0.5.0/lib/discourse_cli/cli.rb:9:in `categories'
         3: from /opt/bitnami/ruby/lib/ruby/gems/2.5.0/gems/discourse_cli-0.5.0/lib/discourse_cli/client.rb:8:in `client'
         2: from /opt/bitnami/ruby/lib/ruby/2.5.0/psych.rb:497:in `load_file'
         1: from /opt/bitnami/ruby/lib/ruby/2.5.0/psych.rb:497:in `open'
/opt/bitnami/ruby/lib/ruby/2.5.0/psych.rb:497:in `initialize': No such file or directory @ rb_sysopen - /home/bitnami/.discourse_cli (Errno::ENOENT)

You either need to follow discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub or use bitnami’s support.

Thanks for your reply, I was running the Bitnami’s instance but looks like now I will move it to fresh installation on Ubuntu.