postorius not displaying mailman logo
I successfully installed mailman3 but Postorius doesn't display images on the web interface. I have checked and the files exist at at the location /opt/mailman/web/static/postorius i have checked the logs and they appear as follows: [pid: 366783|app: 0|req: 43/104] () {34 vars in 687 bytes} [Tue Mar 22 09:36:30 2022] GET /static/postorius/js/script.js => generated 5280 bytes in 43 msecs (HTTP/1.1 404) 6 headers in 197 bytes (1 switches on core 0) [pid: 366783|app: 0|req: 44/105] () {34 vars in 715 bytes} [Tue Mar 22 09:36:30 2022] GET /static/postorius/img/favicon.ico => generated 5280 bytes in 43 msecs (HTTP/1.1 404) 6 headers in 197 bytes (1 switches on core 1) it seems the browser fails to access the directory where the pictures are stored. I have checked and mailman is the owner of that directory. Please advise.
sekamug--- wrote:Sent: 22 March 2022 09:34
I successfully installed mailman3 but Postorius doesn't display images on the web interface. I have checked and the files exist at at the location /opt/mailman/web/static/postorius i have checked the logs and they appear as follows: [pid: 366783|app: 0|req: 43/104] () {34 vars in 687 bytes} [Tue Mar 22 09:36:30 2022] GET /static/postorius/js/script.js => generated 5280 bytes in 43 msecs (HTTP/1.1 404) 6 headers in 197 bytes (1 switches on core 0) [pid: 366783|app: 0|req: 44/105] () {34 vars in 715 bytes} [Tue Mar 22 09:36:30 2022] GET /static/postorius/img/favicon.ico => generated 5280 bytes in 43 msecs (HTTP/1.1 404) 6 headers in 197 bytes (1 switches on core 1) it seems the browser fails to access the directory where the pictures are stored. I >have checked and mailman is the owner of that directory. Please advise.
The process that hosts the Postorius/Hyperkitty content from Python doesn't serve static pages. In most cases you need to run a reverse proxy which is capable of serving static content as well as to proxy out to the service hosting those Python apps.
Hope this helps. Andrew.
On 3/22/22 02:34, sekamug--- via Mailman-users wrote:
it seems the browser fails to access the directory where the pictures are stored. I have checked and mailman is the owner of that directory.
The static directory is accessed directly from your web server, not via proxy to some wsgi server.
For example, this list's web UI is served via nginx and we have the equivalent of
location /static/ {
alias /opt/mailman/web/static/;
}
For apache, something like
Alias /static/ /opt/mailman/web/static/
<Directory "/opt/mailman/web/static/">
Require all granted
</Directory>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you for the feedback. I have the exact configuration for nginx on my server but it is not working and the logs do not show anything
Did you include the static subdirectory in your web server config? My apache config looks like this:
Alias /mailman3/favicon.ico /opt/mailman/web/static/postorius/img/favicon.ico
Alias /mailman3/static /opt/mailman/web/static
# for hyperkitty
Alias /static/admin /opt/mailman/web/static/admin
Alias /static/CACHE /opt/mailman/web/static/CACHE
Alias /static/django_extensions /opt/mailman/web/static/django_extensions
Alias /static/hyperkitty /opt/mailman/web/static/hyperkitty
Alias /static/mailman3 /opt/mailman/web/static/hyperkitty
Alias /static/django-mailman3 /opt/mailman/web/static/django-mailman3
Alias /static/rest_framework /opt/mailman/web/static/rest_framework
# for postorius
Alias /static/postorius /opt/mailman/web/static/postorius
<Directory /opt/mailman/web/static>
Require all granted
</Directory>
<IfModule mod_proxy_uwsgi.c>
ProxyPass /mailman3/favicon.ico !
ProxyPass /mailman3/static !
ProxyPass /mailman3 unix:/run/mailman3-web/uwsgi.sock|uwsgi://localhost
</IfModule>
If you use nginx, the config might look different.
Am Dienstag, 22. März 2022, 10:34:21 CET schrieb sekamug--- via Mailman-users:
I successfully installed mailman3 but Postorius doesn't display images on the web interface. I have checked and the files exist at at the location /opt/mailman/web/static/postorius i have checked the logs and they appear as follows: [pid: 366783|app: 0|req: 43/104] () {34 vars in 687 bytes} [Tue Mar 22 09:36:30 2022] GET /static/postorius/js/script.js => generated 5280 bytes in 43 msecs (HTTP/1.1 404) 6 headers in 197 bytes (1 switches on core 0) [pid: 366783|app: 0|req: 44/105] () {34 vars in 715 bytes} [Tue Mar 22 09:36:30 2022] GET /static/postorius/img/favicon.ico => generated 5280 bytes in 43 msecs (HTTP/1.1 404) 6 headers in 197 bytes (1 switches on core
- it seems the browser fails to access the directory where the pictures are stored. I have checked and mailman is the owner of that directory. Please advise.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
thank you for your feedback. I have this configuration on a server running apache2 but still not working
Did you look into the apache error.log?
Also, check the ownership of /opt/mailman/web/static/ it shoud be owned/grouped by mailman:mailman. Then I have mailman in the www- data group, and vice versa.
Am Mittwoch, 23. März 2022, 08:23:49 CET schrieb sekamug--- via Mailman-users:
thank you for your feedback. I have this configuration on a server running apache2 but still not working
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
On 3/23/22 02:21, Eggert Ehmke wrote:
Also, check the ownership of /opt/mailman/web/static/ it shoud be owned/grouped by mailman:mailman. Then I have mailman in the www- data group, and vice versa.
Actually, owner:group doesn't matter as long as the web server can read and search everything. Normally this is accomplished by the static/ directory and all its subordinate directories being o+rx and all subordinate files being o+r.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Andrew Hodgson
-
Eggert Ehmke
-
Mark Sapiro
-
sekamug@yahoo.com