Add WMS Source results in a 500 server error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Add WMS Source results in a 500 server error

Peter Sykora

Hello everybody,

my first attempts in getting started with mapbender on my old Ubuntu notebook were quite successful, so I tried to get everything running on my production server. After a fresh install according to the installation guidlines, I ran into a 500 server error when I tried to add a new WMS source, no matter which one I used. Here is the mapbender error message which doesn't give me any ideas of what could be wrong.

[2018-10-07 15:37:43] request.INFO: Matched route "mapbender_manager_repository_create".

{"route_parameters":{"_controller":"Mapbender\\ManagerBundle\\Controller

\

\RepositoryController::createAction","managertype":"wms","_route":"mapbender_manager_repository_create"},"request_uri":"http://www.carto.net/mapbender/app.php/manager/repository/create/wms"} []

[2018-10-07 15:37:43] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area"} []

[2018-10-07 15:37:43] security.DEBUG: User was reloaded from a user provider. {"username":"root","provider":"Symfony\\Bridge\\Doctrine\

\Security\\User\\EntityUserProvider"} []

[2018-10-07 15:37:43] security.DEBUG: No ACL found for the object identity. Voting to deny access. [] []

[2018-10-07 15:37:43] security.DEBUG: No ACL found for the object identity. Voting to deny access. [] []

[2018-10-07 15:37:43] app.DEBUG: CommonProxy->createBrowser rowUrl:Array

(     [scheme] => http     [host] => wms.wheregroup.com     [path]

=> /cgi-bin/germany_workshop.xml )  [] []

[2018-10-07 15:37:43] app.DEBUG: CommonProxy->handle GET:http://wms.wheregroup.com/cgi-bin/germany_workshop.xml?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS [] []

[2018-10-07 15:37:43] app.DEBUG: CommonProxy->handle Headers: Array ( [User-Agent] => OWSProxy3 )  [] []

[2018-10-07 15:37:43] request.CRITICAL: Uncaught PHP Exception Symfony

\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "curl_init" from namespace "Buzz\Client"."

at /home/sykora/mapbender/vendor/kriswallsmith/buzz/lib/Buzz/Client/AbstractCurl.php line 39 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException(code: 0): Attempted to call function \"curl_init\" from namespace \"Buzz\\Client\". at /home/sykora/mapbender/vendor/kriswallsmith/buzz/lib/Buzz/Client/AbstractCurl.php:39)"} []

[2018-10-07 15:37:43] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} []

 

Thanks in advance for any hints.

Peter


_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Add WMS Source results in a 500 server error

Astrid Emde (WhereGroup)
Hello Peter,

make sure with a test in the browser that the WMS exists:

Version 1.3.0 will show the getCapabilities XML in the browser. Version
1.1.1 will give the XML for download.

Please try this WMS and give feedback:

https://wms.wheregroup.com/cgi-bin/mapbender_user.xml?VERSION=1.3.0&REQUEST=GetCapabilities&SERVICE=WMS

And please check whether the system requirements are fulfilled

https://doc.mapbender.org/en/installation/systemrequirements.html

Astrid

Am 2018-10-08 14:24, schrieb Peter Sykora:

> Hello everybody,
>
> my first attempts in getting started with mapbender on my old Ubuntu
> notebook were quite successful, so I tried to get everything running
> on my production server. After a fresh install according to the
> installation guidlines, I ran into a 500 server error when I tried to
> add a new WMS source, no matter which one I used. Here is the
> mapbender error message which doesn't give me any ideas of what could
> be wrong.
>
> [2018-10-07 15:37:43] request.INFO: Matched route
> "mapbender_manager_repository_create".
>
> {"route_parameters":{"_controller":"Mapbender\\ManagerBundle\\Controller
>
>
> \
>
> \RepositoryController::createAction","managertype":"wms","_route":"mapbender_manager_repository_create"},"request_uri":"http://www.carto.net/mapbender/app.php/manager/repository/create/wms"}
> []
>
> [2018-10-07 15:37:43] security.DEBUG: Read existing security token
> from the session. {"key":"_security_secured_area"} []
>
> [2018-10-07 15:37:43] security.DEBUG: User was reloaded from a user
> provider. {"username":"root","provider":"Symfony\\Bridge\\Doctrine\
>
> \Security\\User\\EntityUserProvider"} []
>
> [2018-10-07 15:37:43] security.DEBUG: No ACL found for the object
> identity. Voting to deny access. [] []
>
> [2018-10-07 15:37:43] security.DEBUG: No ACL found for the object
> identity. Voting to deny access. [] []
>
> [2018-10-07 15:37:43] app.DEBUG: CommonProxy->createBrowser
> rowUrl:Array
>
> (     [scheme] => http     [host] => wms.wheregroup.com     [path]
>
> => /cgi-bin/germany_workshop.xml )  [] []
>
> [2018-10-07 15:37:43] app.DEBUG: CommonProxy->handle
> GET:http://wms.wheregroup.com/cgi-bin/germany_workshop.xml?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS
> [] []
>
> [2018-10-07 15:37:43] app.DEBUG: CommonProxy->handle Headers: Array (
> [User-Agent] => OWSProxy3 )  [] []
>
> [2018-10-07 15:37:43] request.CRITICAL: Uncaught PHP Exception Symfony
>
>
> \Component\Debug\Exception\UndefinedFunctionException: "Attempted to
> call function "curl_init" from namespace "Buzz\Client"."
>
> at
> /home/sykora/mapbender/vendor/kriswallsmith/buzz/lib/Buzz/Client/AbstractCurl.php
> line 39 {"exception":"[object]
> (Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException(code:
> 0): Attempted to call function \"curl_init\" from namespace
> \"Buzz\\Client\". at
> /home/sykora/mapbender/vendor/kriswallsmith/buzz/lib/Buzz/Client/AbstractCurl.php:39)"}
> []
>
> [2018-10-07 15:37:43] security.DEBUG: Stored the security token in the
> session. {"key":"_security_secured_area"} []
>
> Thanks in advance for any hints.
>
> Peter
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/mapbender_users




--
Mit freundlichen Grüßen

Astrid Emde
Senior GIS-Consultant

************************************************************
INTERGEO 2018
16.- 18. Oktober 2018 in Frankfurt am Main
Treffen Sie die WhereGroup an Stand 12.0A.29 in Halle 12.0
************************************************************

  Astrid Emde
  WhereGroup GmbH & Co.KG
  Eifelstraße 7
  53119 Bonn
  Germany

  Fon: +49(0)228 90 90 38 - 22
  Fax: +49(0)228 90 90 38 - 11

  [hidden email]
  www.wheregroup.com

  Folgen Sie der WhereGroup auf twitter:
http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Add WMS Source results in a 500 server error

Peter Sykora
Hi David, hi Astrid
thanks for the quick reply!
I think that I have already installed the correct version of curl when I ran
the command mentioned in the installation instructions:

# apt install php5 php5-gd php5-curl php5-cli php5-sqlite sqlite php5-intl
php5-mbstring curl openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5-mbstring

php --info gives me:
curl

cURL support => enabled
cURL Information => 7.35.0
Age => 3
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => Yes
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => No
SSL => Yes
SSPI => No
TLS-SRP => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap,
ldaps, pop3, pop3s, rtmp, rtsp, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.0.1f
ZLib Version => 1.2.8

When I run your command I get the curl libraries for php7, and I still get
the same error messages....
Could the missing php5-mbstring library be a problem? I don't really
understand why the package isn't available. I'm running Ubuntu 14

@Astrid:
no, none of the WMS work, I always get the same error messages.
As I already mentioned php5-mbstring is missing and I run php 5.5.9 - but
this configuration works on my notebook as well.
Should I upgrade to php 5.6 or even 7?

Cheers
Peter

Am 08.10.2018 um 14:30 schrieb David Patzke:
>
> Hi Peter,
> you need to install curl on your server. (sudo apt-get install php-curl)
>
> Cheers
> David
>

Astrid Emde (WhereGroup) wrote

> Hello Peter,
>
> make sure with a test in the browser that the WMS exists:
>
> Version 1.3.0 will show the getCapabilities XML in the browser. Version
> 1.1.1 will give the XML for download.
>
> Please try this WMS and give feedback:
>
> https://wms.wheregroup.com/cgi-bin/mapbender_user.xml?VERSION=1.3.0&REQUEST=GetCapabilities&SERVICE=WMS
>
> And please check whether the system requirements are fulfilled
>
> https://doc.mapbender.org/en/installation/systemrequirements.html
>
> Astrid





--
Sent from: http://osgeo-org.1560.x6.nabble.com/mapbender-users-f4220788.html
_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Add WMS Source results in a 500 server error

Peter Sykora
I upgraded to php 5.6, now everything is perfect :-)
My older 5.5.9 version must be corrupt somehow ...
Thanks for your help!
Peter



--
Sent from: http://osgeo-org.1560.x6.nabble.com/mapbender-users-f4220788.html
_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users