open-meteo / geocoding-api

Search locations in any language worlwide
GNU Affero General Public License v3.0
15 stars 7 forks source link

Application crashs at first strartup #3

Open emcomit opened 1 year ago

emcomit commented 1 year ago

I followed the installation instruction for Ubuntu Version 22.04, but when I run it crashes. Below the foreground output starting it from command line:

$ geocoding-api serve 127.0.0.1:8082
[ INFO ] Create new geocoding database
Swift/ErrorType.swift:200: Fatal error: Error raised at top level: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
Current stack trace:
0                                       0x00005555b29c7810 <unavailable> + 25597968
1                                       0x00005555b269dafc <unavailable> + 22280956
2                                       0x00005555b269d918 <unavailable> + 22280472
3                                       0x00005555b269c5a3 <unavailable> + 22275491
4                                       0x00005555b270a421 <unavailable> + 22725665
5                                       0x00005555b1e87da0 main + 280
6    libc.so.6                          0x00007fd72b204d90 <unavailable> + 171408
7    libc.so.6                          0x00007fd72b204dc0 __libc_start_main + 128
8                                       0x00005555b1662bf0 _start + 37
Received signal 4. Backtrace:
0x5555b18fd902, Backtrace.(printBacktrace in _B82A8C0ED7C904841114FDF244F9E58E)(signal: Swift.Int32) -> () at /__w/geocoding-api/geocoding-api/.build/checkouts/swift-backtrace/Sources/Backtrace/Backtrace.swift:66
0x5555b18fdb97, closure #1 (Swift.Int32) -> () in static Backtrace.Backtrace.install(signals: Swift.Array<Swift.Int32>) -> () at /__w/geocoding-api/geocoding-api/.build/checkouts/swift-backtrace/Sources/Backtrace/Backtrace.swift:80
0x5555b18fdb97, @objc closure #1 (Swift.Int32) -> () in static Backtrace.Backtrace.install(signals: Swift.Array<Swift.Int32>) -> () at /__w/geocoding-api/geocoding-api/<compiler-generated>:79
0x7fd72b21d51f
0x5555b269c5af
0x5555b270a420
0x5555b1e87eb7, main at /__w/geocoding-api/geocoding-api/<compiler-generated>:0
0x7fd72b204d8f
0x7fd72b204e3f
0x5555b1662c14
0xffffffffffffffff
Illegal instruction (core dumped)
patrick-zippenfenig commented 1 year ago

Could you check if the geocoding-apiuser has write permissions to the data directory?

emcomit commented 1 year ago

Hi, I verified and the permissions of /var/lib/geocoding-api folder seems ok. drwxrwxr-x 3 geocoding-api geocoding-api 4096 Dec 7 09:13 geocoding-api/ and these are the permissions inside the folder:

:/var/lib/geocoding-api$ ll
total 12
drwxrwxr-x  3 geocoding-api geocoding-api 4096 Dec  7 09:13 ./
drwxr-xr-x 47 root          root          4096 Dec  7 09:13 ../
drwxrwxr-x  3 geocoding-api geocoding-api 4096 Dec  7 09:18 data/

Is it ok?