tile38
tile38 copied to clipboard
Fatal error on running tile38-server after installation
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:
- Install tile38 with:
brew install tile38
- 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):
- OS: [Mac OS]
- CPU: [Intel]
- Version: [1.30.0]
- Container: [None]
Additional context Tried uninstalling tile38 completely and fresh reinstalling, still same behavior is observed.
If you revert back to 1.29, using the same data, does it work again?
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.
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.
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! :)