Bug#798610: ciderwebmail: Error message "Please come back later" shown when running via uWSGI
James Valleroy
jvalleroy at mailbox.org
Fri Sep 11 20:47:12 UTC 2015
On 09/11/2015 04:30 AM, Jonas Smedegaard wrote:
> Hi James,
>
> Quoting James Valleroy (2015-09-11 01:22:21)
>> I attempted to integrate ciderwebmail with Apache2 via uWSGI, based on
>> the instructions given in README.Debian. But when I access
>> http://localhost/cider, I just get a page that says "(en) Please come
>> back later" (along with several other translations of that error
>> message). I don't see any error messages in the uwsgi logs.
>
> From your description it sounds like CiderWebmail instance may be served
> perfectly fine, but the Apache2 proxy is misconfigured to redirect to it
> somehow.
The page showing the error doesn't look like a usual Apache error page.
I attached a screenshot.
>> This was tested on a fresh installation using the latest Debian stretch
>> installer, then dist-upgraded to sid. Here's a list of the steps I took:
>> # apt install apache2 uwsgi uwsgi-plugin-psgi
>> # apt install libapache2-mod-uwsgi
>> # ln -s -t /etc/uwsgi/apps-enabled ../apps-available/ciderwebmail.ini
>> # ln -s -t /etc/apache2/conf-enabled /etc/ciderwebmail/apache-uwsgi.conf
>> # service uwsgi restart ciderwebmail
>> # service apache2 restart
>
> How did you configure apache apart from that? In particular, which
> uWSGI driver did you install and how was it configured in apache?
> (there's arguably a documentation flaw of not covering that aspect of
> setting up CiderWebmail...)
There was no additional configuration other than what's shown above. I
just installed libapache2-mod-uwsgi, and it enabled itself after install.
I've attached a listing/printout of my configuration (apache-configs.txt).
>
>> I've attached the log file (/var/log/uwsgi/app/ciderwebmail.log).
>
> Please provide apache logs too - and if you dd _any_ customization of
>
> Please also provide relevant parts of your apache2 config (e.g. vhost
> setup, if any).
I've attached the apache logs.
Thanks for the quick response!
--
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ciderwebmail_error_screenshot.png
Type: image/png
Size: 74728 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150911/50dfb7da/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apache_logs.tar.gz
Type: application/gzip
Size: 741 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150911/50dfb7da/attachment-0001.bin>
-------------- next part --------------
jvalleroy at debian:/etc/apache2$ ls sites-enabled/
000-default.conf
jvalleroy at debian:/etc/apache2$ cat sites-enabled/000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster at localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
jvalleroy at debian:/etc/apache2$ ls mods-enabled/
access_compat.load authz_host.load dir.load negotiation.conf
alias.conf authz_user.load env.load negotiation.load
alias.load autoindex.conf filter.load setenvif.conf
auth_basic.load autoindex.load mime.conf setenvif.load
authn_core.load deflate.conf mime.load status.conf
authn_file.load deflate.load mpm_event.conf status.load
authz_core.load dir.conf mpm_event.load uwsgi.load
jvalleroy at debian:/etc/apache2$ ls conf-enabled/
apache2-uwsgi.conf localized-error-pages.conf security.conf
charset.conf other-vhosts-access-log.conf serve-cgi-bin.conf
jvalleroy at debian:/etc/apache2$ cat conf-enabled/apache2-uwsgi.conf
<Location /cider>
SetHandler uwsgi-handler
uWSGISocket /run/uwsgi/app/ciderwebmail/socket
</Location>
jvalleroy at debian:/etc/apache2$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20150911/50dfb7da/attachment-0001.sig>
More information about the pkg-perl-maintainers
mailing list