On Mon, Oct 2, 2017, at 12:29 PM, Andrew Hodder wrote:
from django.conf.urls import include, url from django.core.urlresolvers import reverse_lazy from django.views.generic import RedirectView from django.contrib import admin
urlpatterns = [ url(r'^$', RedirectView.as_view( url=reverse_lazy('hk_root'))), url(r'^hyperkitty/', include('hyperkitty.urls')), #url(r'^postorius/', include('postorius.urls')), url(r'', include('django_mailman3.urls')), url(r'^accounts/', include('allauth.urls')), # Django admin url(r'^admin/', include(admin.site.urls)), url(r'^hyperkitty/admin/', include(admin.site.urls)), I removed the archives from the base_url, it still errors out just with a different path:> ValueError: <h1>Not Found</h1><p>The requested URL /api/mailman/archive was not found on this server.</p>> Now I should note, I'm running the web ui for hyperkitty on nginx with http://FQDN/hyperkitty/ (where the non-/hyperkitty/ path would just go to postorius).
That is what you should be using for hyperkitty's base_url
then:
http://<whatever django is listening on>/hyperkitty/
Sincerely,
Andrew Hodder Systems Administrator Support Operations, Afilias E- mail: drew@afilias.info Phone: +1 416.673.4164 Fax: +1 416.646.1541> On Mon, Oct 2, 2017 at 3:22 PM, Abhilash Raj <maxking@asynchronous.in> wrote:>>
On Mon, Oct 2, 2017, at 12:17 PM, Andrew Hodder wrote:
Finally have everything stood up and working, except for HyperKitty mailman plugin. I'm getting a path issue of sorts I can see in the archiver.log (have it set to debug log level in the mailman core):
Oct 02 19:12:37 2017 (8144) Traceback (most recent call last): File "/opt/mailman/venv3/lib/python3.4/site- packages/mailman_hyperkitty-1.0.2- py3.4.egg/mailman_hyperkitty/__init__.py", line 154, in _archive_message url = self._send_message(mlist, msg) File "/opt/mailman/venv3/lib/python3.4/site- packages/mailman_hyperkitty-1.0.2- py3.4.egg/mailman_hyperkitty/__init__.py", line 210, in _send_message raise ValueError(result.text) ValueError: <h1>Not Found</h1><p>The requested URL /archives/api/mailman/archive was not found on this server.</p>
My base_url in the mailman-hyperkitty.cfg:
Can you show the contents of 'urls.py' in mailman-suite or whatever>> Django project you are using to deploy hyperkitty? That would give more>> ideas about whether the '/archives/' URL is valid or not.
-- Abhilash Raj maxking@asynchronous.in
-- Abhilash Raj maxking@asynchronous.in