If I stop the server with control + z then ports are not getting freed and have to kill the process manually. can this be possible other ports are also not freed?
If I restart the server then I am unable to restart it .
xxxx:~ xxxx$ appium server
[Appium] Welcome to Appium v2.0.1
[Appium] Attempting to load driver chromium…
[debug] [Appium] Requiring driver at /Users/xxxx/node_modules/appium-chromium-driver
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLS in your client code to connect to this server:
[Appium] http://127.0.0.1:4723/ (only accessible from the same host)
[Appium] http://10.177.183.77:4723/
[Appium] Available drivers:
[Appium] - [email protected] (automationName ‘Chromium’)
[Appium] No plugins have been installed. Use the “appium plugin” command to install the one(s) you want to use.
^Z
[1]+ Stopped appium server
xxxx:~ xxxx$ appium server
[Appium] Welcome to Appium v2.0.1
[Appium] Attempting to load driver chromium…
[debug] [Appium] Requiring driver at /Users/xxxx/node_modules/appium-chromium-driver
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
[Appium] Could not configure Appium server. It’s possible that a driver or plugin tried to update the server and failed. Original error: listen EADDRINUSE: address already in use 0.0.0.0:4723
[debug] [Appium] Error: listen EADDRINUSE: address already in use 0.0.0.0:4723
[debug] [Appium] at Server.setupListenHandle [as _listen2] (node:net:1823:16)
[debug] [Appium] at listenInCluster (node:net:1871:12)
[debug] [Appium] at doListen (node:net:2020:7)
[debug] [Appium] at processTicksAndRejections (node:internal/process/task_queues:83:21)
xxxx:~ xxxx$ appium plugin
Error: Cannot handle plugin command undefined
xxxx:~ xxxx$ sudo appium plugin
Password:
Error: Cannot handle plugin command undefined
xxxx:~ xxxx$ appium server
[Appium] Welcome to Appium v2.0.1
[Appium] Attempting to load driver chromium…
[debug] [Appium] Requiring driver at /Users/xxxx/node_modules/appium-chromium-driver
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
[Appium] Could not configure Appium server. It’s possible that a driver or plugin tried to update the server and failed. Original error: listen EADDRINUSE: address already in use 0.0.0.0:4723
[debug] [Appium] Error: listen EADDRINUSE: address already in use 0.0.0.0:4723
[debug] [Appium] at Server.setupListenHandle [as _listen2] (node:net:1823:16)
[debug] [Appium] at listenInCluster (node:net:1871:12)
[debug] [Appium] at doListen (node:net:2020:7)
[debug] [Appium] at processTicksAndRejections (node:internal/process/task_queues:83:21)
xxxx:~ xxxx$ sudo lsof -i :4723
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 64533 xxxx 24u IPv4 0x932b5bb6906e7dcf 0t0 TCP *:4723 (LISTEN)
xxxx:~ xxxx$ sudo kill -9 64533
xxxx:~xxxx$