Comments (8)
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.org
in 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
andmailman-web
did fully initialize the database and run their migrations (mailman-web needs some time to do that). Check withdocker-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.
In order:
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.org
s 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 formailman-core
is that there's no MTA set by default, so it defaulted to Exim which should be fine as well as theHYPERKITTY_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.
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.
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.
I'll keep working on it as well and will post if I figure anything out.
Thanks much!
from mailcow-mailman3-dockerized.
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.
Nice to hear, you've figured it out. Should I add something to the documentation regarding this?
from mailcow-mailman3-dockerized.
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)
- Convert running mailcow HOT 2
- tried to migrate, rolled back due to multiple problems HOT 3
- createsuperuser failed HOT 2
- Letsencrypt and cron
- Linode Guide HOT 1
- Issue setting up project -- Networks have overlapping IPv4 HOT 9
- Database Connection Issue HOT 3
- Mailman List Addresses not Found HOT 2
- Issue Editing mailman-web Configuration HOT 3
- Log Directory Question HOT 1
- somtimes mailman failed after system reboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailcow-mailman3-dockerized.