Giter VIP home page Giter VIP logo

Comments (8)

Shadowghost avatar Shadowghost commented on August 19, 2024

Everything went fine, I just need to change that command to docker exec -it <your-project-name>_mailman-web python manage.py createsuperuser in the readme.
Besides that you should not get a Error 400 at all, seems like a configuration error. You canc check some things:

  • Did you change example.orgin the example configs to your domain?
  • Make sure you've replaced <path-to-repo>with the correct path (I missed writing it in the block for port 80)
  • Make sure mailman-core and mailman-web did fully initialize the database and run their migrations (mailman-web needs some time to do that). Check with docker-compose logs -f mailman-web
  • Check if you've installed the needed apache2 modules and if you've enabled the site configuration with a2ensite lists.conf and reloaded apache config afterwards

from mailcow-mailman3-dockerized.

roddajohn avatar roddajohn commented on August 19, 2024

In order:
screen shot 2018-07-14 at 9 54 30 am is from .env. So I tried running the Django management command again and it gave me Error: no such container: mailcowdockerized_mailman-web.

  • I did change the example.orgs so I don't think that's it.
  • I see what you mean in the port 80 section, I changed those to reflect the correct directory <path-to-repo>/data/mailman/web/static for example
  • The logs for mailman-web indicated that it did run the migration script but that there was nothing to migrate (probably because I've restarted the docker once or twice as a sanity check). The only thing in the logs for mailman-core is that there's no MTA set by default, so it defaulted to Exim which should be fine as well as the HYPERKITTY_URL wasn't set but that shouldn't matter, and MySQL started properly.
  • I enabled all the modules including uwsgi, proxy, proxy_html, etc, and the site is enabled. I'm also pretty sure if the modules weren't enabled, Apache would throw and error which it isn't.

Thoughts?

from mailcow-mailman3-dockerized.

roddajohn avatar roddajohn commented on August 19, 2024

I got the Django command to work, the correct docker container name is:
<your-project-name>_mailman-web_1 when it is creating, it prints the name as <your-project-name>_mailman-web-1 but when you run docker container ls the dash becomes an underscore...

from mailcow-mailman3-dockerized.

Shadowghost avatar Shadowghost commented on August 19, 2024

Yeah I remembered that when reading your answer right now. Error 400 without any thing in the Apache logs isn't really helping :/
If I come up with something else to try, I'll post it :)

from mailcow-mailman3-dockerized.

roddajohn avatar roddajohn commented on August 19, 2024

I'll keep working on it as well and will post if I figure anything out.

Thanks much!

from mailcow-mailman3-dockerized.

roddajohn avatar roddajohn commented on August 19, 2024

Problem solved after combing through the Django logs:

I was entering the url for Mailman3 as lists.<domain> as I wanted the lists to be at a subdomain. The configuration scripts for the Django wsgi prepended another lists. to the entered domain, thus it was serving at lists.lists.<domain>. Wiping all dockers, reinstalling with correct configuration fixed the bad request problem.

from mailcow-mailman3-dockerized.

Shadowghost avatar Shadowghost commented on August 19, 2024

Nice to hear, you've figured it out. Should I add something to the documentation regarding this?

from mailcow-mailman3-dockerized.

roddajohn avatar roddajohn commented on August 19, 2024

Yes certainly, I'll have some time tonight and will add some documentation as well. I'm still struggling with one last piece of this, but I'll create a new issue.

from mailcow-mailman3-dockerized.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.