Open butbut1314 opened 6 years ago
Exact same issue
+1
also for me, "Download Tiles/floortiles/:buid/:floor_number Fetches the floor plan tiles zip link" will give an 400 error. but Download Base64/floorplans64/:buid/:floor_number works
How do we fix this? I have a demonstration in less than a week that I need to prepare for.
Same here...While every building/floor that I created before the server changes is available, I can see anything that I created after that only in the viwer/architect (on Android app I am getting - Error fetching floor plan). I am using the ap.cs.ucy.ac.cy
Hello, Is your building public? If so could you tell me the building's name so I can look into the issue?
This is my Building ID : building_417b84ac-8364-49e5-9d81-e50ba5d431e8_1523627366394
This post : https://ap.cs.ucy.ac.cy/anyplace/floorplans64/building_417b84ac-8364-49e5-9d81-e50ba5d431e8_1523627366394/0 works
It appears that the server does not generate the ZIP file to be downloaded
Thank you for your fast response.
Yes, the building is public. The building Id is: building_a2bcf869-f6bf-4f79-a101-7d4ed3f06976_1523475614370
Building Info: "buid": "building_a2bcf869-f6bf-4f79-a101-7d4ed3f06976_1523475614370", "name": "Πανεπιστήμιο Μακεδονίας", "description": "University of Macedonia", "coordinates_lat": "40.625214834611135", "coordinates_lon": "22.95997901593853"
From Android app when call api to download zip file for floor
return {"message":"File requested not found","status_code":404,"status":"error"}
Hello, I have applied a quick fix on the server. If you re-upload the floor plans then should be ok.
@Costantinos can you let us know what the fix was or upload it to Github? We are running the server locally for our demonstration and would like to get it working.
Hello @westlakem,
You need to put the directory of the tiler into the working directory of the anyplace instance, then fix the permissions for the files and you may need to create a symbolic link.
Additionally, you need to install ImageMagick, advancecomp and Python 2.7+. You can install them with the following commands: sudo yum install -y ImageMagick ImageMagick-devel sudo yum install advancecomp
@Costantinos has the tiler been bundled into the downloadable zip yet? Trying real hard not to have to pull down and recompile the whole thing.
@westlakem, I have uploaded the anyplace tiler as a separate zip, you can download the (tiler)[http://anyplace.cs.ucy.ac.cy/downloads/anyplace_tiler.zip] as a separate directory and move it to the anyplace working directory as I have described early.
@Costantinos ok... I'll start the process of setting up the dev environment. Thanks!
@Costantinos @anyplaceucy
I've added the tiler to the public folder, and made sure to install imagemagick and advancecomp on our app server and I'm still getting a 400: {"message":"Could not create floor plan tiles on the server!","status_code":400,"status":"error"}
.
If you would like, I can upload the zip that we're launching on AWS, with the caviat that we will need to scrub information about our couch base instance, and server URL.
@Costantinos I just reuploaded the floorplans, indeed is working but the image is really smaller than on the architect, this has as result for the image to be just in the corner of the building (I am sure I can't explain it well, so, please check the image below).
Please try the below and get back if the problem persists: https://github.com/dmsl/anyplace/wiki/Markers-in-map-(viewer)-are-displayed-wrong
Timothee, can you please check if the Android version faces any problem with the latest backend fixes?
@Alexandratz : for fixing the positioning of the building in Android, follow the link listed above. Also clear your building cache on Android
Hello @westlakem ,
You need to put the tiler under the home directory (anyplace_v3) of the project not in the public directory. Your directory should have the following directories and files.
anyplace_tiler
bin
conf
floor_plans
lib
logs
radiomaps_frozen
README.md
RUNNING_PID
share
@Costantinos @anyplaceucy
Thank you for all your help so far. I'm still getting an error, and i'm not 100% sure why....
[[31merror[0m] application - Tiling for image[floor_plans/building_65d04b69-8109-4587-818d-685f3fe253f2_1524691031812/fl_7/fl_7] failed with IOException[Cannot run program "anyplace_tiler/start-anyplace-tiler.sh": error=2, No such file or directory]!
But i have the anyplace_tiler in the directory
I've verified by SSH that the floor_plans
and static_tiles
folders are created, so the only thing I can think of is that it comes down to how the ProcessBuilder
tries to start the application in combination with deploying the app to AWS and the procfile
Procfile:
web: sh -c "rm /var/app/current/RUNNING_PID; chmod 755 /var/app/current/bin/anyplace_v3; cd /var/app/current; bin/anyplace_v3"
I would be grateful for any assistance that you could provide.
Hello,
It seems that the .sh file is not executable. Try to apply execute permissions to all the .sh files by using the command chmod +x *.sh
.
Hi @Costantinos, I also get the Bad Request error. My building id is: 878023c1-9041-411b-8239-b203fddf4bcd_1523877361984.
It seems like it dose'nt recognize that I have any floors.
I would appreciate your help.
@Costantinos I am running Anyplace Server on LocalHost (built project using IntelliJ) also added Building and Floors, but now When I access the same in Android Client, it shows building name and detect floor but not able to load floor shows error "Error Fetching Floor Plan" Also When I access localhost:9000/anyplace it shows exception error
@Costantinos I'll give that a try over the weekend, but it says it can't find the file, not that it can't execute the file..
Still happening on a local server, even though the log shows - after uploading floor:
[info] application - LPLogger::Info:: requested: floor_plans/building_ed9c4575-e33a-4e47-8c78-f079f2569b5d_1526545176541/fl_1/fl_1
[info] application - LPLogger::Info:: Floorplan Request[json]: {"top_right_lat":"31.986250587598217","buid":"building_ed9c4575-e33a-4e47-8c78-f079f2569b5d_1526545176541","owner_id":"108119603360412596177_google","bottom_left_lat":"31.98604754511678","top_right_lng":"34.91118684491062","floor_number":"1","bottom_left_lng":"34.910757691468234"}
[info] application - LPLogger::Info:: Floorplan Request[floorplan]: blob
[info] application - LPLogger::Info:: AnyplaceMapping::serveFloorPlanTilesZip(): {"username":"username","password":"pass"}
[info] application - LPLogger::Info:: requested: floor_plans/building_ed9c4575-e33a-4e47-8c78-f079f2569b5d_1526545176541/fl_1/static_tiles/tiles_archive.zip
[info] application - LPLogger::Info:: Successfully tiled [floor_plans/building_ed9c4575-e33a-4e47-8c78-f079f2569b5d_1526545176541/fl_1/fl_1]
Strangely, the tiling isn't logged until the Android client requests the floor,.
I added the zip package and it seems to be working now.
sudo apt-get install zip -y
@erezak need your help regarding the Tiler Problem not able to load floor shows error "Error Fetching Floor Plan" Also When I access localhost:9000/anyplace it shows exception error
can you please share your email id or other contact
I have tried to fix this issue on my local machine and I fixed. However, when I tried to install on another machine the same issue happened again and this time I've done the same things that I did the first time, but it didn't work. I did change the permission on the sh files inside anyplace_tiles, I've installed python 2.7.x, imagemagik 7.x, advancecomp and png package. After all this, still not working... Same error. It seems that the directories floor_plans and radio_maps do not get created. Then the floor does not get saved and therefore there is an error when the app tries to fetch the floor plan. Any thoughts? Another issue that I found is that when I zoom to close the map disappear. Thanks in advance. @Costantinos
Another thing that I noticed is that when I run on Intellij in development mode, it works fine. But when I run on production mode, it does create the floor_plan directory, but it is inaccessible, and that is cause of all the problems.
We have tried all the above solutions and still this issue is not resolved.
Can you please help with a small write up on what is to be done?
I changed the implementation to use Files class from NIO package in the methods that store the floor plans and also in the methods that get them. I used Files.exists(...) and Files.isReadable(...) instead of file.exists(). I also changed the files.mkdirs() to Files.createDirectory().
Em qua, 25 de jul de 2018 05:24, Sankar Narayanan notifications@github.com escreveu:
We have tried all the above solutions and still this issue is not resolved.
Can you please help with a small write up on what is to be done?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dmsl/anyplace/issues/223#issuecomment-407675114, or mute the thread https://github.com/notifications/unsubscribe-auth/AHMjr_ZQ5FYPeXnon8Of-Yavfy5Tuh88ks5uKCs3gaJpZM4SvKAk .
@joaohenrique89
Thanks a lot for the response.
Can you please help us with the files where you modified these? We are pretty new to Anyplace and this would be really helpful.
I am still facing the same issue.Can you suggest some solution regarding this. @joaohenrique89 Can you please help us with the files wherein you used Files.exists(...) and Files.isReadable(...) instead of file.exists() and where you changed files.mkdirs() to Files.createDirectory().
@anyplaceucy The tiler is not working properly on the local server. Is there anyone who has got the anyplace tiler working properly?
Floor plan seems to still error out upon uploading to a building. Has anyone come up with a solution yet?
I am still facing the same problem. This is using the anyplace server.
Floor plan image is not stored for me as well. Steps I did:
No any errors in logs: [info] application - LPLogger::Info:: requested: floor_plans/building_993f332c-b3af-4cf7-830f-405432e31257_1580238352321/fl_1/fl_1 [info] application - LPLogger::Info:: AnyplaceMapping::poisByFloor(): {"username":"username","password":"password","buid":"building_993f332c-b3af-4cf7-830f-405432e31257_1580238352321","access_token":"hide","floor_number":"1"}
Did some one resolve this issue?
I am using the anyplace server not my own server.
I get an serivce error bad request when I try to fetch the floor plan. I am already using the new backend of the anyplace server. I have no problem fetching old floor plan that was created before. But floor plan that was created after yesterday will give service error bad request. I tried to use the developers and found out that in "Download Tiles/floortiles/:buid/:floor_number Fetches the floor plan tiles zip link" will give an 400 error. I think this might be the case?
Thanks