Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've installed Discourse, wordpress, etc by juju. The below show the result for Discourse. how can I see it in my browser? what's the address?

juju status

environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.17.5.1
    dns-name: localhost
    instance-id: localhost
    series: saucy
      "1":
    agent-state: started
    agent-version: 1.17.5.1
    dns-name: 10.0.3.3
    instance-id: onrea-local-machine-1
    series: precise
    hardware: arch=amd64
  "2":
    agent-state: started
    agent-version: 1.17.5.1
    dns-name: 10.0.3.121
    instance-id: onrea-local-machine-2
    series: precise
    hardware: arch=amd64
services:
  discourse:
    charm: local:precise/discourse-0
    exposed: true
    relations:
      db:
      - postgresql
      discourse:
      - discourse
    units:
      discourse/0:
        agent-state: started
        agent-version: 1.17.5.1
        machine: "1"
        public-address: 10.0.3.3
  postgresql:
    charm: cs:precise/postgresql-62
    exposed: false
    relations:
      db-admin:
      - discourse
      replication:
      - postgresql
    units:
      postgresql/0:
        agent-state: started
        agent-version: 1.17.5.1
        machine: "2"
        open-ports:
    - 5432/tcp
    public-address: 10.0.3.121
share|improve this question
    
Onrea, I don't see a open-ports: 80 on your discourse unit. Did the installation encounter any errors during deployment that were "resolved" with juju resolved discourse/0? –  lazyPower Mar 20 at 20:40
    
I had not any error when installing Discourse! juju resolved discourse/0 => No Error, No Output! | I destroyed it and tried for wordpress, here is the result for juju status: http://paste.ubuntu.com/7131754/ AND the command juju resolved wordpress/0` does not have any error! I –  mini Mar 21 at 17:47

2 Answers 2

The public-address is the address assigned to the machine so in the case of discourse here it would be public-address: 10.0.3.3

share|improve this answer
    
It can not run Discourse in firefox: i.stack.imgur.com/X9Qod.png –  mini Mar 20 at 20:04
    
@onrea Do you have port forwarding enabled so the router forwards your request over the right port? Also try the local address: <local-adress>:<port-number>. If I recall, Discourse uses port 3000. You can get the local address from ifconfig. –  Seth Mar 20 at 20:16
    
@Seth, nope. Indeed, I don't know what is "port forwarding". –  mini Mar 24 at 8:29

To build off of Hatch's answer, the address of the Discourse unit is the public-address line in the status display.

There are a few things at play here that can cause a problem with this particular installation.

1) Is your LAN using the same IP Scheme as whats being used in the LXC Container? eg: 10.0.3.x on your home lan, you may be having an ip collision with another PC. Which would prevent you from being able to access this unit

2) Is your bridge device up? When you run ifconfig do you see lxcbr0 in the output?

3) Are you able to reach the machine with juju ssh? juju ssh discourse/0 (this will tell you network connectivity is present to the unit, and you can move on to the service level of debugging)

4) Is Apache/NGINX running on the host? If so, is it started and do the logs give you any output? Check in /var/log/nginx/

5) Can you connect to the Discourse service running on port 3000 directly? If you can, there is a problem with NGINX's reverse proxy to Discourse

6) Check that your UFW firewall rulesets are not to blame here. Temporarily bring down your UFW firewall (if any is present) using ufw disable, and try connecting again.

share|improve this answer
    
1. paste.ubuntu.com/7145199 || 2. paste.ubuntu.com/7131793 || 3. paste.ubuntu.com/7131801 || 4. paste.ubuntu.com/7131807 || 5. localhost:3000 => Oops! Google Chrome could not connect to localhost:3000 || 6. paste.ubuntu.com/7145202 –  mini Mar 24 at 8:26
    
you have 2 services with hook errors in your last paste –  lazyPower Mar 24 at 11:58
    
Here's a new attempt: paste.ubuntu.com/7149890 | Isn't it related to my OS version: 13.10? –  mini Mar 31 at 6:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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