Something wrong with my Hyperkitty base_url?
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:
base_url: http://localhost:8002/archives
I've tried changing localhost to the FQDN but that just gives different errors (where it can't even attempt to exchange the secret, so I know at least that part is working. Just this '/archives/api/mailman/archive' path I'm head scratching at. I've tried removing the /archives off the end, no change though. Any thoughts/help would be appreciated, thanks!
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 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
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).
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
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
Ah, I thought that only was affecting the web ui, didn't realize. Confirmed; that did the trick, thank you so much Abhilash!
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:38 PM, Abhilash Raj <maxking@asynchronous.in> wrote:
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
participants (2)
-
Abhilash Raj
-
Andrew Hodder