New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XYZ layer 500 (Internal Server Error) #120
Comments
You can activate logging in app/log_config.php and see what errors are being logged by the tile service controller. |
It's totally fine if I am using codes of tileservicecontroller.php (RC2). Is there any big change between RC2 and RC3 for generating XYZ tiles? I saw following message in debug.log. (2065) MgException caught A file IO exception occurred: #0 C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2014\www\rest\app\controller\tileservicecontroller.php(298): mgbytesink->tofile('') |
I changed the following codes under PutTileImageXYZ function, then it has no problem now. private function PutTileImageXYZ($map, $groupName, $renderSvc, $path, $format, $boundsMinX, $boundsMinY, $boundsMaxX, $boundsMaxY, $layerNames, $requestId) {
|
There was a change in RC3 where XYZ tiles were buffered to a configurable ratio and rendered at that size, which were then cropped down back to 256x256 (using the PHP GD extension) This was done to eliminate any labelling/symbology artifacts at tile boundaries. I notice at line 298, an empty string was fed to the MgByteSink.ToFile(), that's what causing the file IO exception. That should not be the case. |
Hi Jackie, I have a problem to generate XYZ tiles with 500 error again. The request looks like following URL: The UtilityTiledMap is using coordinate system (WGS84.PseudoMercator (WGS84 based Mercator (spherical formulation))). However, the mapguide-rest only generated the .lck file as following image: I am using Release 1.0 RC5. I got following error from debug.log as following: Windows Server 2016 + AIMS2017 (env) |
Is it that particular XYZ coordinate? If you adjust X, Y, or Z by a tile or few, does it still throw http 500? One thing I'll look at (once things have calmed down with MGOS proper) is enabling the ability to log individual tile render/request failures to log files at that location. So in your case, you'll see:
Which should then hopefully tell you what went wrong. As it stands I have no idea why the tile wasn't rendered. Did the server log any errors for these rendering requests? |
I am using WGS84.PseudoMercator coordinator system. I am using Google Map API to request XYZ map tiles based on where I zoom or pan to. Those are the only errors I saw on the log file... No matter what place I zoom on the map. I can simply use Google Hybrid Map with MapGuide-Rest vector tiled GeoJSON to achieve my goal. I know you're busy. I wish I could help you. Let me know of there are anything I might be able to help you regard of MGOS. |
All the tiles I requested were returned with 500 errors. I deleted the tile folders to see if it's permission issues. However, MapGuide-Rest was able to create tiled PNG folders based on XYZ, but only .Lck files been generated into the folders. Then, I scratched my head couldn't figure out what is really going on. I turned on the debug logs. It didn't show me anything other than the error logs I posted. Tiles XYZ GeoJson are working well. |
If you use Process Monitor and listen on filesystem activity on |
Thank you for you help Jackie. The problem solved by using Process Monitor, and found access denied by C:\Windows\Temp. I just gave IUSR the permission to modify, and the XYZ tiled was generated again! Cheers! |
Mapguide-Rest - RC3
For the example on the mapguide-rest example site:
I can request the tile.json without any problems.
http://localhost/mapserver/rest/library/Samples/Sheboygan/MapsTiled/SheboyganNoWatermark.MapDefinition/xyz/Base%20Layer%20Group/12/1050/1493/tile.json
However, when I was trying to get the the XYZ png tile, it gave me errors as following one:
GET http://localhost/mapserver/rest/library/Samples/Sheboygan/…anNoWatermark.MapDefinition/xyz/Base%20Layer%20Group/12/1050/1493/tile.png 500 (Internal Server Error)
Any idea about what might be wrong? Thanks you very much!
The text was updated successfully, but these errors were encountered: