tidwall / tile38

Real-time Geospatial and Geofencing
https://tile38.com
MIT License
9.15k stars 570 forks source link

Fatal error on running tile38-server after installation #666

Open chavan92 opened 1 year ago

chavan92 commented 1 year ago

Describe the bug Upgraded from 1.29.0 to 1.30.0 on MacOS. on running tile-server command it immediately crashes with error: 2022/12/03 20:07:28 [FATA] invalid argument ''

To Reproduce Steps to reproduce the behavior:

  1. Install tile38 with:

brew install tile38

  1. run command tile38-server

Expected behavior Tile server should start and keep running.

Logs


| |_| || | . | Tile38 1.30.0 (a09ff07c) 64 bit (amd64/darwin) | | | | | -| | . | Port: 9851, PID: 672 || |||||| tile38.com

2022/12/03 20:07:27 [INFO] Server started, Tile38 version 1.30.0, git a09ff07c 2022/12/03 20:07:27 [INFO] Ready to accept connections at [::]:9851 2022/12/03 20:07:27 [INFO] AOF loaded 2195 commands: 0.01s, 347112/s, 81 MB/s 2022/12/03 20:07:28 [FATA] invalid argument ''

Operating System (please complete the following information):

Additional context Tried uninstalling tile38 completely and fresh reinstalling, still same behavior is observed.

tidwall commented 1 year ago

If you revert back to 1.29, using the same data, does it work again?

chavan92 commented 1 year ago

I guess I know the issue: Version 1.30.0: when I run tile38-server in my home directory [ ~/ ] , it crashes with the mentioned error - invalid argument. but when I run through any sub directory like ~/Downloads, it works.

I cannot revert back to 1.29 through brew, I guess it is disabled. but I tested 1.29.2 by downloading the zip from release builds. The issue is not seen on this build. It works fine in ~/

Also tested 1.30.0 by manually downloading the zip from release builds.

I'm able to reproduce the problem consistently. So I suspect the problem is with the path, it is looking for some subdirectory considering home as root.

bsoviedo commented 1 year ago

We are facing the same sittuation with version 1.31.0.

The installation was made with docker (https://hub.docker.com/r/tile38/tile38/) in Ubuntu server.

@tidwall , @chavan92 any updates on this?

We were able to run version 1.29.2 and its working without problem.

bsoviedo commented 9 months ago

Update here!

After a long time using 1.29.2 version we must to use a version above 1.30 (1.32.0) in this case, we noticed that the issue was in the data directory. In that case starting tile38

tile38-server

or

tile38-server -d  'data'

give problems.

So the test was to put all the full path in data, and it run without problem:

tile38-server -d './fullpath/data'

And the error goes away

Hope it helps! :)