infinilabs / gateway

🚀 A High-performance gateway designed for search scenarios. Good friend of Elasticsearch/Opensearch/Easysearch.
https://www.infinilabs.com/en/docs/latest/gateway/
28 stars 3 forks source link

[ERR] [instance.go:70] lock file:/data/es/gateway/data/gateway/nodes/cmj34usok3lguahba9ug/.lock exists, seems instance [689] is already running, please remove it or set `allow_multi_instance` to `true` #40

Closed dyrnq closed 7 months ago

dyrnq commented 7 months ago

Description

[ERR] [instance.go:70] lock file:/data/es/gateway/data/gateway/nodes/cmj34usok3lguahba9ug/.lock exists, seems instance [689] is already running, please remove it or set `allow_multi_instance` to `true`

Steps to reproduce

  1. Start INFINI Gateway
systemctl status -l gateway --no-pager
● gateway.service - cubefs
     Loaded: loaded (/lib/systemd/system/gateway.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Thu 2024-01-18 12:33:24 CST; 2s ago
    Process: 33852 ExecStart=/usr/local/bin/gateway -config /data/es/gateway/config/gateway.yml (code=exited, status=1/FAILURE)
   Main PID: 33852 (code=exited, status=1/FAILURE)

Jan 18 12:33:54 m177 gateway[33927]:    ___   _   _____  __  __    __  _
Jan 18 12:33:54 m177 gateway[33927]:   / _ \ /_\ /__   \/__\/ / /\ \ \/_\ /\_/\
Jan 18 12:33:54 m177 gateway[33927]:  / /_\///_\\  / /\/_\  \ \/  \/ //_\\\_ _/
Jan 18 12:33:54 m177 gateway[33927]: / /_\\/  _  \/ / //__   \  /\  /  _  \/ \
Jan 18 12:33:54 m177 gateway[33927]: \____/\_/ \_/\/  \__/    \/  \/\_/ \_/\_/
Jan 18 12:33:54 m177 gateway[33927]: [GATEWAY] A light-weight, powerful and high-performance search gateway.
Jan 18 12:33:54 m177 gateway[33927]: [GATEWAY] 1.21.0#1229, 2023-12-28 08:22:36, 2024-12-31 10:10:10, 5ca75b9539303a3ceb62e37e72811b580e7e004f
Jan 18 12:33:54 m177 gateway[33927]: [01-18 12:33:54] [INF] [env.go:175] configuration auto reload enabled
Jan 18 12:33:54 m177 gateway[33927]: [01-18 12:33:54] [INF] [app.go:288] initializing gateway, pid: 33927
Jan 18 12:33:54 m177 gateway[33927]: [01-18 12:33:54] [INF] [app.go:289] using config: /data/es/gateway/config/gateway.yml
Jan 18 12:33:54 m177 gateway[33927]: [01-18 12:33:54] [ERR] [instance.go:70] lock file:/data/es/gateway/data/gateway/nodes/cmj34usok3lguahba9ug/.lock exists, seems instance [689] is already running, please remove it or set `allow_multi_instance` to `true`
Jan 18 12:33:54 m177 systemd[1]: gateway.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit gateway.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Jan 18 12:33:54 m177 systemd[1]: gateway.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit gateway.service has entered the 'failed' state with result 'exit-code'.
luohoufu commented 7 months ago

When running multiple gateway processes at the same time, you need to configure allow_multi_instance: true in gateway.yml

medcl commented 7 months ago

please check that there are no other gateway process is running on the same data folder.

ps -aux|grep gateway
dyrnq commented 7 months ago

please check that there are no other gateway process is running on the same data folder.

ps -aux|grep gateway

thanks reply, may be caused by illegal shutdown.