question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

domains not created

See original GitHub issue

When I try to run this playbook on Ubuntu 16.04 the domain is not created.

Playbook.yml

---
- hosts: all
  roles:
    - dokku_bot.ansible_dokku
  vars:
    ansible_user: root
    ansible_python_interpreter: /usr/bin/python3
    dokku_version: '0.15.2'
    dokku_skip_key_file: true
  become: yes

  pre_tasks:
    - name: Update apt cache if needed
      apt: update_cache=yes cache_valid_time=3600

  tasks:
    - name: Create a dokku app
      dokku_app:
        app: hello-world

    - name: domains:add hello-world dokku.me
      dokku_domains:
        app: hello-world
        domains:
          - dokku.me

Error Message is:

fatal: [me]: 
  FAILED! => {"changed": false, "meta": 
      {"error": "Command 'dokku --quiet domains hello-world' returned non-zero exit status 1", "present": false},
        "msg": "Command 'dokku --quiet domains hello-world' returned non-zero exit status 1"}

Running Dokku query command on the server after the playbook has finished

root@me:~# dokku apps:list
=====> My Apps
hello-world

root@me:~# dokku domains:report
=====> hello-world domains information
       Domains app enabled:           true
       Domains app vhosts:
       Domains global enabled:        true
       Domains global vhosts:         dokku.me

Running Dokku commands on the server does create the domain

root@me:~# dokku domains:add hello-world dokku.me
-----> Added dokku.me to hello-world
 !     No web listeners specified for hello-world

root@me:~# dokku domains:report
=====> hello-world domains information
       Domains app enabled:           true
       Domains app vhosts:            dokku.me
       Domains global enabled:        true
       Domains global vhosts:         dokku.me

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
josegonzalezcommented, Apr 17, 2019

Okay so the underlying Dokku code should be fixed in 0.15.4, so I’ll make the changes to this and hopefully you can verify it works for you?

0reactions
notapatchcommented, Apr 18, 2019

Dokku Version ‘0.15.4’ creates domains as expected. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my domain not showing up yet? - Media Temple
Overview. There can be several reasons as to why your website is not yet displaying. This article is a technical introduction to DNS...
Read more >
How to Get a Free Domain Name: 4 Legit Ways in 2022
Purchasing a domain name is a must if you want a website or business email, and it's affordable, at only around $10–$15 per...
Read more >
Multi-Domain Confusion: All Domains Are Not Created Equal
As described in an essay by Frank Hoffman and Michael Davies, domains “create a frame of reference that defines the preparation and conduct...
Read more >
Coded Value Domains are not created for Select_One
Solved: It seems that when I publish my form Coded Value Domains are created for Select_One type input, except when it is cascaded...
Read more >
How to Register Your Website's Domain Name (For Free)
1. Find a domain name registrar. The non-profit Internet Corporation for Assigned Names and Numbers (ICANN) oversees the entire system of domain ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found