[Mapit] genmap.fcgi doesn't return images
Moritz Lenz
moritz at casella.verplant.org
Sun Feb 11 02:04:31 CET 2007
Hi,
I tried to setup mapit-1.0.2 on my local machine (Debian GNU/Linux 3.1
testing), and I'm having some difficulties, I hope you can help me.
I adapted mapconfig.py and then ran checkconfig.py. It says at the end:
Summary:
all tile image files can be opened
all tile image files can be loaded
all marker image files can be opened
all marker image files can be loaded
1 python file(s) can't be compiled/imported:
modmapit
`python modmapit`
complains about not beeing able to load _apache, which appears to be due
to the fact that it's not run from mode_python (I'm using the fastcgi
interface).
When I call showmap.fgci from the browser it shows me the borders of the
image map, zoom icons etc. but no images.
When I call the image map URL manually, It takes a very long time and
then I get a 501 internal server error.
The error.log file from apache2 says:
[Sun Feb 11 00:35:08 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" (pid 24952) terminated by calling exit with
status '0'
[Sun Feb 11 00:35:08 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" has failed to remain running for 30 seconds
given 3 attempts, its restart interval has been backed off to 600 seconds
[Sun Feb 11 00:40:08 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" has failed to remain running for 30 seconds
given 3 attempts, its restart interval has been backed off to 600 seconds
[Sun Feb 11 00:45:07 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" has failed to remain running for 30 seconds
given 3 attempts, its restart interval has been backed off to 600 seconds
[Sun Feb 11 00:45:07 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" restarted (pid 25137)
/home/moritz/public_html/mapit/common.py:20: DeprecationWarning:
Non-ASCII character '\xf6' in file
/home/moritz/public_html/mapit/markerinfo.py on line 19, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details
import mapconfig, tileinfo, markerinfo
[Sun Feb 11 00:45:08 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" (pid 25137) terminated by calling exit with
status '0'
[Sun Feb 11 00:45:08 2007] [warn] FastCGI: (dynamic) server
"/var/www/mapit/genmap.fcgi" has failed to remain running for 30 seconds
given 3 attempts, its restart interval has been backed off to 600 seconds
and sometimes:
[Sun Feb 11 00:11:02 2007] [error] [client 127.0.0.1] FastCGI:
incomplete headers (0 bytes) received from server
"/var/www/mapit/genmap.fcgi", referer:
http://127.0.0.1/mapit/showmap.fcgi?x=16316&y=20640&width=400&height=400&scale=5&sameregion=0&autocenter=0
When I run `python genmap` I get:
Content-type: image/png
Traceback (most recent call last):
File "genmap", line 42, in ?
main()
File "genmap", line 37, in main
image = makemap.generate_map(parameters)
File "/home/moritz/public_html/mapit/makemap.py", line 78, in generate_map
image = PIL.Image.new("RGB", (result_width, result_height), 0xFFFFFFFF)
File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1610, in new
return Image()._new(core.fill(mode, size, color))
SystemError: new style getargs format but argument is not a tuple
Any idea what might be wrong?
In case it's important a few version numbers:
python: 2.4.4-2
apache: 2.2.3-3.2
fastcgi: 2.4.2-8
Thanks in advance,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/
http://sudokugarden.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://www.intevation.de/pipermail/mapit/attachments/20070211/2e2bd4dc/signature.asc
More information about the Mapit
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)