Trees already added are not visible on the map

99 views
Skip to first unread message

Ulhas Shah

unread,
Apr 5, 2017, 3:42:26 AM4/5/17
to opentreemap-user
Hello,

We have installed a otm-core server and also compiled the Android app configured with this server successfully.

But the issue that we are facing is when we add a tree in the map, the tree pointer which appears as green dot on the opentreemap official website is not visible in our instance.

As the user cannot see that added tree, its confuses the user and another tree is added at the same location which is redundant data.

Can any one help with this issue?

Rick Mohr

unread,
Apr 5, 2017, 9:14:23 AM4/5/17
to opentree...@googlegroups.com
Did you install otm-tiler? If so, what do you see when you type "sudo service tiler status" in a shell attached to your server?

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rick Mohr, Software Developer
Azavea  |  990 Spring Garden Street, 5th Floor, Philadelphia, PA
215.701.7504  |  Web azavea.com  |  @azavea

Ulhas Shah

unread,
Apr 5, 2017, 9:18:20 AM4/5/17
to opentreemap-user
Yes I did install the otm-tiler.
The status is : tiler start/running, process 1883


On Wednesday, April 5, 2017 at 6:44:23 PM UTC+5:30, Rick Mohr wrote:
Did you install otm-tiler? If so, what do you see when you type "sudo service tiler status" in a shell attached to your server?
On Wed, Apr 5, 2017 at 3:42 AM, Ulhas Shah <udns...@gmail.com> wrote:
Hello,

We have installed a otm-core server and also compiled the Android app configured with this server successfully.

But the issue that we are facing is when we add a tree in the map, the tree pointer which appears as green dot on the opentreemap official website is not visible in our instance.

As the user cannot see that added tree, its confuses the user and another tree is added at the same location which is redundant data.

Can any one help with this issue?

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rick Mohr

unread,
Apr 5, 2017, 9:25:05 AM4/5/17
to opentree...@googlegroups.com
Your browser's Network tab should show tile requests (filter for "tile") -- are those succeeding or failing?

To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ulhas Shah

unread,
Apr 5, 2017, 9:29:49 AM4/5/17
to opentreemap-user
I am getting this error in the console.. just saw it.
Screenshot from 2017-04-05 18:58:21.png

Rick Mohr

unread,
Apr 5, 2017, 9:42:48 AM4/5/17
to opentree...@googlegroups.com
One place to start to figure out the problem would be looking at your nginx logs.

To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ulhas Shah

unread,
Apr 6, 2017, 3:42:59 AM4/6/17
to opentreemap-user
I checked the error log file

last few entries are as below,



2017/04/06 07:31:01 [emerg] 25334#0: duplicate location "/" in /etc/nginx/includes/locations/app:9
2017/04/06 07:31:29 [emerg] 25836#0: duplicate location "/" in /etc/nginx/includes/locations/app:9
2017/04/06 07:33:36 [emerg] 28100#0: duplicate location "/" in /etc/nginx/includes/locations/app:9
2017/04/06 07:34:28 [emerg] 29045#0: invalid parameter "on" in /etc/nginx/includes/locations/app:11
2017/04/06 07:35:19 [emerg] 29972#0: invalid parameter "on" in /etc/nginx/includes/locations/app~:11
2017/04/06 07:35:59 [emerg] 30693#0: duplicate location "/" in /etc/nginx/includes/locations/app:9
2017/04/06 07:36:29 [error] 2335#0: *5269 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.2, server: , request: "GET /tile/c81e728d
9d4c2f636f067f89cc14862c/database/otm/table/treemap_mapfeature/21/1473411/935546.grid.json?instance_id=1&restrict=%5B%22Plot%22%5D HTTP/1.1", upstream: "http://[::1]:4000/c8
1e728d9d4c2f636f067f89cc14862c/database/otm/table/treemap_mapfeature/21/1473411/935546.grid.json?instance_id=1&restrict=%5B%22Plot%22%5D", host: "treebook.in", referrer: "ht
2017/04/06 07:36:29 [error] 2335#0: *5275 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.2, server: , request: "GET /mumbai/benefi
t/search HTTP/1.1", upstream: "http://[::1]:12000/mumbai/benefit/search", host: "treebook.in", referrer: "http://treebook.in/mumbai/map/?z=20/19.04208/72.92817"
2017/04/06 07:36:38 [emerg] 31447#0: duplicate location "/" in /etc/nginx/includes/locations/app:9


what exactly i am doing wrong:?

my /etc/nginx/includes/locations/app file has below config,

location /static/ {
  alias /usr/local/otm/static/;
}

location /media/ {
alias /usr/local/otm/media/;
}

location / {
  proxy_set_header Host $http_host;
  proxy_redirect off;

  if (!-f $request_filename) {
    proxy_pass http://app;
    break;
  }
}

Ulhas Shah

unread,
Apr 6, 2017, 8:30:14 AM4/6/17
to opentreemap-user
Now  I am getting this error 

{"error":"Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED"}

when i hit the tile server url that we see in the console

Rick Mohr

unread,
Apr 6, 2017, 4:58:06 PM4/6/17
to opentree...@googlegroups.com
What do you see when typing

sudo service redis-server status

To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ulhas Shah

unread,
Apr 7, 2017, 6:44:37 AM4/7/17
to opentreemap-user
After lot of trials I figured out yesterday that the redis-server was not started by tracing the error and reasons for it..

So then when I started the redis-server the dots i.e. pointers for trees were visible.

I would suggest that this point has to me made clear in the installation guide.

Thank you for the support..

:-) 

Rick Mohr

unread,
Apr 10, 2017, 9:22:46 AM4/10/17
to opentree...@googlegroups.com
Glad you got it working! I added 

    service redis-server restart

to step 8 of the installation wiki page.

To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

KenQiProductions

unread,
Aug 6, 2018, 8:41:14 PM8/6/18
to opentreemap-user
Hi,

I still have the exact problem with no green dots after all of the above. All services are running...

thanks.
Reply all
Reply to author
Forward
0 new messages