Skip to content
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

Fatal error on running tile38-server after installation #666

Open
chavan92 opened this issue Dec 3, 2022 · 4 comments
Open

Fatal error on running tile38-server after installation #666

chavan92 opened this issue Dec 3, 2022 · 4 comments

Comments

@chavan92
Copy link

chavan92 commented Dec 3, 2022

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 (a09ff07) 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 a09ff07
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.

@tidwall
Copy link
Owner

tidwall commented Dec 3, 2022

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

@chavan92
Copy link
Author

chavan92 commented Dec 4, 2022

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
Copy link

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
Copy link

bsoviedo commented Feb 9, 2024

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants