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

Error accepting new connection accept tcp [::]:56505: use of closed network connection #120

Open
aheiahei12ya opened this issue Sep 3, 2024 · 29 comments

Comments

@aheiahei12ya
Copy link

Hi, I followed your instructions and set all the configurations, but when I run ./GADS provider --nickname Provider1 --hub http://127.0.0.1:10000 --mongo-db=127.0.0.1:27017 --log-level debug, the terminal outputs the logs below, and the WebAgentRunner application continuously reinstalls on my iPhone X with iOS 16.7.10. I tried reboot my phone, and the WDA working well in XCode Test.

Preparing...
Provider will be logging to `./Provider1/provider.log`
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /info                     --> GADS/provider/router.GetProviderData (4 handlers)
[GIN-debug] GET    /devices                  --> GADS/provider/router.DevicesInfo (4 handlers)
[GIN-debug] POST   /uploadFile               --> GADS/provider/router.UploadAndInstallApp (4 handlers)
[GIN-debug] GET    /debug/pprof/             --> GADS/provider/router.HandleRequests.WrapF.func1 (4 handlers)
[GIN-debug] GET    /debug/pprof/cmdline      --> GADS/provider/router.HandleRequests.WrapF.func2 (4 handlers)
[GIN-debug] GET    /debug/pprof/profile      --> GADS/provider/router.HandleRequests.WrapF.func3 (4 handlers)
[GIN-debug] POST   /debug/pprof/symbol       --> GADS/provider/router.HandleRequests.WrapF.func4 (4 handlers)
[GIN-debug] GET    /debug/pprof/symbol       --> GADS/provider/router.HandleRequests.WrapF.func5 (4 handlers)
[GIN-debug] GET    /debug/pprof/trace        --> GADS/provider/router.HandleRequests.WrapF.func6 (4 handlers)
[GIN-debug] GET    /debug/pprof/allocs       --> GADS/provider/router.HandleRequests.WrapF.func7 (4 handlers)
[GIN-debug] GET    /debug/pprof/block        --> GADS/provider/router.HandleRequests.WrapF.func8 (4 handlers)
[GIN-debug] GET    /debug/pprof/goroutine    --> GADS/provider/router.HandleRequests.WrapF.func9 (4 handlers)
[GIN-debug] GET    /debug/pprof/heap         --> GADS/provider/router.HandleRequests.WrapF.func10 (4 handlers)
[GIN-debug] GET    /debug/pprof/mutex        --> GADS/provider/router.HandleRequests.WrapF.func11 (4 handlers)
[GIN-debug] GET    /debug/pprof/threadcreate --> GADS/provider/router.HandleRequests.WrapF.func12 (4 handlers)
[GIN-debug] GET    /device/:udid/info        --> GADS/provider/router.DeviceInfo (4 handlers)
[GIN-debug] GET    /device/:udid/apps        --> GADS/provider/router.DeviceInstalledApps (4 handlers)
[GIN-debug] GET    /device/:udid/health      --> GADS/provider/router.DeviceHealth (4 handlers)
[GIN-debug] POST   /device/:udid/tap         --> GADS/provider/router.DeviceTap (4 handlers)
[GIN-debug] POST   /device/:udid/touchAndHold --> GADS/provider/router.DeviceTouchAndHold (4 handlers)
[GIN-debug] POST   /device/:udid/home        --> GADS/provider/router.DeviceHome (4 handlers)
[GIN-debug] POST   /device/:udid/lock        --> GADS/provider/router.DeviceLock (4 handlers)
[GIN-debug] POST   /device/:udid/unlock      --> GADS/provider/router.DeviceUnlock (4 handlers)
[GIN-debug] POST   /device/:udid/screenshot  --> GADS/provider/router.DeviceScreenshot (4 handlers)
[GIN-debug] POST   /device/:udid/swipe       --> GADS/provider/router.DeviceSwipe (4 handlers)
[GIN-debug] GET    /device/:udid/appiumSource --> GADS/provider/router.DeviceAppiumSource (4 handlers)
[GIN-debug] POST   /device/:udid/typeText    --> GADS/provider/router.DeviceTypeText (4 handlers)
[GIN-debug] POST   /device/:udid/clearText   --> GADS/provider/router.DeviceClearText (4 handlers)
[GIN-debug] GET    /device/:udid/getClipboard --> GADS/provider/router.DeviceGetClipboard (4 handlers)
[GIN-debug] GET    /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] POST   /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] PUT    /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] PATCH  /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] HEAD   /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] OPTIONS /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] DELETE /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] CONNECT /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] TRACE  /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] GET    /device/:udid/android-stream --> GADS/provider/router.AndroidStreamProxy (4 handlers)
[GIN-debug] GET    /device/:udid/android-stream-mjpeg --> GADS/provider/router.AndroidStreamMJPEG (4 handlers)
[GIN-debug] GET    /device/:udid/ios-stream  --> GADS/provider/router.IosStreamProxyWDA (4 handlers)
[GIN-debug] GET    /device/:udid/ios-stream-mjpeg --> GADS/provider/router.IOSStreamMJPEGWda (4 handlers)
[GIN-debug] POST   /device/:udid/uninstallApp --> GADS/provider/router.UninstallApp (4 handlers)
[GIN-debug] POST   /device/:udid/reset       --> GADS/provider/router.ResetDevice (4 handlers)
[GIN-debug] POST   /device/:udid/uploadAndInstallApp --> GADS/provider/router.UploadAndInstallApp (4 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 127.0.0.1:10001
INFO[0009] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0009] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0009] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0010] Start listening on port 56207 forwarding to port 9500 on device
INFO[0010] Start listening on port 56206 forwarding to port 8100 on device
INFO[0010] Start listening on port 56208 forwarding to port 9100 on device
INFO[0012] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0012] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0012] installing                                    percentComplete=20 status=InspectingPackage
INFO[0012] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0012] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0014] installing                                    percentComplete=50 status=CreatingContainer
INFO[0014] installing                                    percentComplete=60 status=InstallingApplication
INFO[0014] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0014] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0014] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0014] installing                                    percentComplete=100 status=InstallComplete
INFO[0014] installation successful
INFO[0014] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc00044a040), quit:(chan interface {})(0xc0003024e0)}"
INFO[0014] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc00031ac00)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0014] Error accepting new connection accept tcp [::]:56208: use of closed network connection
INFO[0014] closed listener successfully                  phonePort=9100
ERRO[0014] Error accepting new connection accept tcp [::]:56207: use of closed network connection
INFO[0014] closed listener successfully                  phonePort=9500
ERRO[0014] Error accepting new connection accept tcp [::]:56206: use of closed network connection
INFO[0014] closed listener successfully                  phonePort=8100
INFO[0015] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0015] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0015] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0016] Start listening on port 56224 forwarding to port 8100 on device
INFO[0016] Start listening on port 56226 forwarding to port 9100 on device
INFO[0016] Start listening on port 56225 forwarding to port 9500 on device
INFO[0018] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0018] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0018] installing                                    percentComplete=20 status=InspectingPackage
INFO[0018] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0018] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0020] installing                                    percentComplete=50 status=CreatingContainer
INFO[0020] installing                                    percentComplete=60 status=InstallingApplication
INFO[0020] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0020] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0020] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0020] installing                                    percentComplete=100 status=InstallComplete
INFO[0020] installation successful
INFO[0020] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc0007320a0), quit:(chan interface {})(0xc00001e300)}"
INFO[0020] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc000724900)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0020] Error accepting new connection accept tcp [::]:56224: use of closed network connection
INFO[0020] closed listener successfully                  phonePort=8100
ERRO[0020] Error accepting new connection accept tcp [::]:56225: use of closed network connection
INFO[0020] closed listener successfully                  phonePort=9500
ERRO[0020] Error accepting new connection accept tcp [::]:56226: use of closed network connection
INFO[0020] closed listener successfully                  phonePort=9100
INFO[0021] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0021] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0021] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0022] Start listening on port 56252 forwarding to port 8100 on device
INFO[0022] Start listening on port 56253 forwarding to port 9500 on device
INFO[0022] Start listening on port 56254 forwarding to port 9100 on device
INFO[0024] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0024] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0024] installing                                    percentComplete=20 status=InspectingPackage
INFO[0024] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0024] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0026] installing                                    percentComplete=50 status=CreatingContainer
INFO[0026] installing                                    percentComplete=60 status=InstallingApplication
INFO[0026] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0026] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0026] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0026] installing                                    percentComplete=100 status=InstallComplete
INFO[0026] installation successful
INFO[0026] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc000098080), quit:(chan interface {})(0xc0003025a0)}"
INFO[0026] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc000618180)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0026] Error accepting new connection accept tcp [::]:56252: use of closed network connection
INFO[0026] closed listener successfully                  phonePort=8100
ERRO[0026] Error accepting new connection accept tcp [::]:56253: use of closed network connection
INFO[0026] closed listener successfully                  phonePort=9500
ERRO[0026] Error accepting new connection accept tcp [::]:56254: use of closed network connection
INFO[0026] closed listener successfully                  phonePort=9100
INFO[0027] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0027] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0027] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0028] Start listening on port 56312 forwarding to port 8100 on device
INFO[0028] Start listening on port 56314 forwarding to port 9100 on device
INFO[0028] Start listening on port 56313 forwarding to port 9500 on device
INFO[0030] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0030] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0030] installing                                    percentComplete=20 status=InspectingPackage
INFO[0030] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0030] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0032] installing                                    percentComplete=50 status=CreatingContainer
INFO[0032] installing                                    percentComplete=60 status=InstallingApplication
INFO[0032] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0032] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0032] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0032] installing                                    percentComplete=100 status=InstallComplete
INFO[0032] installation successful
INFO[0032] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc000438c40), quit:(chan interface {})(0xc000122300)}"
INFO[0032] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc000724a00)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0032] Error accepting new connection accept tcp [::]:56312: use of closed network connection
INFO[0032] closed listener successfully                  phonePort=8100
ERRO[0032] Error accepting new connection accept tcp [::]:56313: use of closed network connection
INFO[0032] closed listener successfully                  phonePort=9500
ERRO[0032] Error accepting new connection accept tcp [::]:56314: use of closed network connection
INFO[0032] closed listener successfully                  phonePort=9100
INFO[0033] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0033] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0033] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0034] Start listening on port 56365 forwarding to port 8100 on device
INFO[0034] Start listening on port 56366 forwarding to port 9500 on device
INFO[0034] Start listening on port 56367 forwarding to port 9100 on device
^C
(base) ➜  GADS-main ./GADS provider --nickname Provider1 --hub http://127.0.0.1:10000 --mongo-db=127.0.0.1:27017 --log-level debug
Preparing...
Provider will be logging to `./Provider1/provider.log`
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /info                     --> GADS/provider/router.GetProviderData (4 handlers)
[GIN-debug] GET    /devices                  --> GADS/provider/router.DevicesInfo (4 handlers)
[GIN-debug] POST   /uploadFile               --> GADS/provider/router.UploadAndInstallApp (4 handlers)
[GIN-debug] GET    /debug/pprof/             --> GADS/provider/router.HandleRequests.WrapF.func1 (4 handlers)
[GIN-debug] GET    /debug/pprof/cmdline      --> GADS/provider/router.HandleRequests.WrapF.func2 (4 handlers)
[GIN-debug] GET    /debug/pprof/profile      --> GADS/provider/router.HandleRequests.WrapF.func3 (4 handlers)
[GIN-debug] POST   /debug/pprof/symbol       --> GADS/provider/router.HandleRequests.WrapF.func4 (4 handlers)
[GIN-debug] GET    /debug/pprof/symbol       --> GADS/provider/router.HandleRequests.WrapF.func5 (4 handlers)
[GIN-debug] GET    /debug/pprof/trace        --> GADS/provider/router.HandleRequests.WrapF.func6 (4 handlers)
[GIN-debug] GET    /debug/pprof/allocs       --> GADS/provider/router.HandleRequests.WrapF.func7 (4 handlers)
[GIN-debug] GET    /debug/pprof/block        --> GADS/provider/router.HandleRequests.WrapF.func8 (4 handlers)
[GIN-debug] GET    /debug/pprof/goroutine    --> GADS/provider/router.HandleRequests.WrapF.func9 (4 handlers)
[GIN-debug] GET    /debug/pprof/heap         --> GADS/provider/router.HandleRequests.WrapF.func10 (4 handlers)
[GIN-debug] GET    /debug/pprof/mutex        --> GADS/provider/router.HandleRequests.WrapF.func11 (4 handlers)
[GIN-debug] GET    /debug/pprof/threadcreate --> GADS/provider/router.HandleRequests.WrapF.func12 (4 handlers)
[GIN-debug] GET    /device/:udid/info        --> GADS/provider/router.DeviceInfo (4 handlers)
[GIN-debug] GET    /device/:udid/apps        --> GADS/provider/router.DeviceInstalledApps (4 handlers)
[GIN-debug] GET    /device/:udid/health      --> GADS/provider/router.DeviceHealth (4 handlers)
[GIN-debug] POST   /device/:udid/tap         --> GADS/provider/router.DeviceTap (4 handlers)
[GIN-debug] POST   /device/:udid/touchAndHold --> GADS/provider/router.DeviceTouchAndHold (4 handlers)
[GIN-debug] POST   /device/:udid/home        --> GADS/provider/router.DeviceHome (4 handlers)
[GIN-debug] POST   /device/:udid/lock        --> GADS/provider/router.DeviceLock (4 handlers)
[GIN-debug] POST   /device/:udid/unlock      --> GADS/provider/router.DeviceUnlock (4 handlers)
[GIN-debug] POST   /device/:udid/screenshot  --> GADS/provider/router.DeviceScreenshot (4 handlers)
[GIN-debug] POST   /device/:udid/swipe       --> GADS/provider/router.DeviceSwipe (4 handlers)
[GIN-debug] GET    /device/:udid/appiumSource --> GADS/provider/router.DeviceAppiumSource (4 handlers)
[GIN-debug] POST   /device/:udid/typeText    --> GADS/provider/router.DeviceTypeText (4 handlers)
[GIN-debug] POST   /device/:udid/clearText   --> GADS/provider/router.DeviceClearText (4 handlers)
[GIN-debug] GET    /device/:udid/getClipboard --> GADS/provider/router.DeviceGetClipboard (4 handlers)
[GIN-debug] GET    /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] POST   /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] PUT    /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] PATCH  /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] HEAD   /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] OPTIONS /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] DELETE /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] CONNECT /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] TRACE  /device/:udid/appium/*proxyPath --> GADS/provider/router.AppiumReverseProxy (4 handlers)
[GIN-debug] GET    /device/:udid/android-stream --> GADS/provider/router.AndroidStreamProxy (4 handlers)
[GIN-debug] GET    /device/:udid/android-stream-mjpeg --> GADS/provider/router.AndroidStreamMJPEG (4 handlers)
[GIN-debug] GET    /device/:udid/ios-stream  --> GADS/provider/router.IosStreamProxyWDA (4 handlers)
[GIN-debug] GET    /device/:udid/ios-stream-mjpeg --> GADS/provider/router.IOSStreamMJPEGWda (4 handlers)
[GIN-debug] POST   /device/:udid/uninstallApp --> GADS/provider/router.UninstallApp (4 handlers)
[GIN-debug] POST   /device/:udid/reset       --> GADS/provider/router.ResetDevice (4 handlers)
[GIN-debug] POST   /device/:udid/uploadAndInstallApp --> GADS/provider/router.UploadAndInstallApp (4 handlers)
[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 127.0.0.1:10001
INFO[0015] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0015] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
INFO[0017] Start listening on port 56505 forwarding to port 8100 on device
INFO[0017] Start listening on port 56507 forwarding to port 9100 on device
INFO[0017] Start listening on port 56506 forwarding to port 9500 on device
INFO[0023] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0023] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0023] installing                                    percentComplete=20 status=InspectingPackage
INFO[0023] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0024] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0025] installing                                    percentComplete=50 status=CreatingContainer
INFO[0025] installing                                    percentComplete=60 status=InstallingApplication
INFO[0025] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0025] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0026] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0026] installing                                    percentComplete=100 status=InstallComplete
INFO[0026] installation successful
INFO[0026] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc0004780a0), quit:(chan interface {})(0xc00030c5a0)}"
INFO[0026] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc000482a80)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0026] Error accepting new connection accept tcp [::]:56505: use of closed network connection
INFO[0026] closed listener successfully                  phonePort=8100
ERRO[0026] Error accepting new connection accept tcp [::]:56507: use of closed network connection
INFO[0026] closed listener successfully                  phonePort=9100
ERRO[0026] Error accepting new connection accept tcp [::]:56506: use of closed network connection
INFO[0026] closed listener successfully                  phonePort=9500
INFO[0027] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0027] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0027] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0028] Start listening on port 56529 forwarding to port 8100 on device
INFO[0028] Start listening on port 56530 forwarding to port 9500 on device
INFO[0028] Start listening on port 56531 forwarding to port 9100 on device
INFO[0030] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0030] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0030] installing                                    percentComplete=20 status=InspectingPackage
INFO[0030] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0030] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0031] installing                                    percentComplete=50 status=CreatingContainer
INFO[0031] installing                                    percentComplete=60 status=InstallingApplication
INFO[0031] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0031] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0031] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0032] installing                                    percentComplete=100 status=InstallComplete
INFO[0032] installation successful
INFO[0032] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc0002b4a80), quit:(chan interface {})(0xc000638240)}"
INFO[0032] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc00014c780)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0032] Error accepting new connection accept tcp [::]:56529: use of closed network connection
INFO[0032] closed listener successfully                  phonePort=8100
ERRO[0032] Error accepting new connection accept tcp [::]:56530: use of closed network connection
INFO[0032] closed listener successfully                  phonePort=9500
ERRO[0032] Error accepting new connection accept tcp [::]:56531: use of closed network connection
INFO[0032] closed listener successfully                  phonePort=9100
INFO[0033] device iOS version: 16.7.10, getting developer image for iOS 16.6
INFO[0033] Provider1/devimages/16.6/DeveloperDiskImage.dmg already downloaded from https://github.com/mspvirajpatel/
WARN[0033] there is already a developer image mounted, reboot the device if you want to remove it. aborting.
INFO[0034] Start listening on port 56559 forwarding to port 9100 on device
INFO[0034] Start listening on port 56557 forwarding to port 8100 on device
INFO[0034] Start listening on port 56558 forwarding to port 9500 on device
INFO[0036] installing                                    percentComplete=5 status=CreatingStagingDirectory
INFO[0036] installing                                    percentComplete=15 status=ExtractingPackage
INFO[0036] installing                                    percentComplete=20 status=InspectingPackage
INFO[0036] installing                                    percentComplete=30 status=PreflightingApplication
INFO[0036] installing                                    percentComplete=40 status=VerifyingApplication
INFO[0037] installing                                    percentComplete=50 status=CreatingContainer
INFO[0037] installing                                    percentComplete=60 status=InstallingApplication
INFO[0037] installing                                    percentComplete=70 status=PostflightingApplication
INFO[0037] installing                                    percentComplete=80 status=SandboxingApplication
INFO[0037] installing                                    percentComplete=90 status=GeneratingApplicationMap
INFO[0038] installing                                    percentComplete=100 status=InstallComplete
INFO[0038] installation successful
INFO[0038] new client connected                          conn="&forward.ConnListener{listener:(*net.TCPListener)(0xc000098720), quit:(chan interface {})(0xc00030c4e0)}"
INFO[0038] could not connect to phone                    conn="&net.TCPConn{conn:net.conn{fd:(*net.netFD)(0xc00070a280)}}" err="Failed connecting to service, error code:3" phonePort=8100
ERRO[0038] Error accepting new connection accept tcp [::]:56559: use of closed network connection
INFO[0038] closed listener successfully                  phonePort=9100
ERRO[0038] Error accepting new connection accept tcp [::]:56557: use of closed network connection
INFO[0038] closed listener successfully                  phonePort=8100
ERRO[0038] Error accepting new connection accept tcp [::]:56558: use of closed network connection
INFO[0038] closed listener successfully                  phonePort=9500
@shamanec
Copy link
Owner

shamanec commented Sep 4, 2024

What are the logs in the provider.log file? :)

@Gnanaprakash22
Copy link

Gnanaprakash22 commented Sep 4, 2024

@shamanec i m also facing the same issue attaching provider logs and error screenshot

ios ver - 15.8.3

provider.log
Screenshot 2024-09-04 at 4 28 41 PM

Provider logs

{"event":"ios_device_setup","level":"error","msg":"Did not successfully start WebDriverAgent on device e7f4f07a52341c39457288c85a5caaa473eba404 in 60 seconds","time":"2024-09-04T16:21:13+05:30"}

{"event":"install_app_ios","level":"info","msg":"Failed to create zipconduit connection when installing app /Users/jenkins-lab4/Downloads/gads/WBDriverAgent/WebDriverAgent-master/build/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app on device e7f4f07a52341c39457288c85a5caaa473eba404","time":"2024-09-04T16:27:51+05:30"}
{"event":"ios_device_setup","level":"error","msg":"Could not install WebDriverAgent on device e7f4f07a52341c39457288c85a5caaa473eba404 - EOF","time":"2024-09-04T16:27:51+05:30"}

webdriveragent is installing again and again :(

@shamanec
Copy link
Owner

shamanec commented Sep 5, 2024

Thats weird, Imma check it when I get back from vacation :)

@aheiahei12ya
Copy link
Author

What are the logs in the provider.log file? :)
here is my provider.log
provider.log

@shamanec
Copy link
Owner

shamanec commented Sep 8, 2024

@aheiahei12ya is your phone connected over USB? In the provider.log there are tons of different errors that it seems you handled one by one, but judging by the terminal output there seems to be some issue with the port forwarding, I see nothing else right now :( I see some other go-ios errors in your logs that shouldn't be happening as long as devices are connected over USB and paired successfully.
I tested with both mine and mainstream WebDriverAgent and everything worked flawlessly on my 15.8.3 and 17.5.1 devices.

@shamanec
Copy link
Owner

shamanec commented Sep 8, 2024

Ping me on Discord and I'll try to help debug live if possible or at least we can discuss a bit faster. Also I'll try to capture the go-ios logs into my own logs for easier debugging these days when I have some spare time

@aheiahei12ya
Copy link
Author

Discord

Yes, I connected my phone with usb, and it working well with XCode Test.

image

And I can get serial number from terminal with idevice_id or irelay listen command

image image

@shamanec
Copy link
Owner

shamanec commented Sep 9, 2024

I am not really sure that would help but can you check if using an actual local IP address instead of 127.0.0.1 or localhost works?

@Gnanaprakash22
Copy link

@shamanec i resolved this issue by adding xtcrunner to my wda bundle id when adding provider config in UI,
previously my bundle id was com.facebook.WebDriverAgentRunner i modified it to
com.facebook.WebDriverAgentRunner.xtcrunner connected IOS device became available.

@aheiahei12ya
Copy link
Author

I am not really sure that would help but can you check if using an actual local IP address instead of 127.0.0.1 or localhost works?

It doesn't work T_T

@shamanec
Copy link
Owner

shamanec commented Sep 9, 2024

@shamanec i resolved this issue by adding xtcrunner to my wda bundle id when adding provider config in UI, previously my bundle id was com.facebook.WebDriverAgentRunner i modified it to com.facebook.WebDriverAgentRunner.xtcrunner connected IOS device became available.

Yeah, that is the reason there are tooltips 😅 Let me know if I haven't provided a correct example for that in the tooltip for the file in the provider config in the UI!

@aheiahei12ya could this be the same issue?

@aheiahei12ya
Copy link
Author

@shamanec i resolved this issue by adding xtcrunner to my wda bundle id when adding provider config in UI, previously my bundle id was com.facebook.WebDriverAgentRunner i modified it to com.facebook.WebDriverAgentRunner.xtcrunner connected IOS device became available.

Yeah, that is the reason there are tooltips 😅 Let me know if I haven't provided a correct example for that in the tooltip for the file in the provider config in the UI!

@aheiahei12ya could this be the same issue?

no, it still not work
image

@shamanec
Copy link
Owner

shamanec commented Sep 9, 2024

Hm, I wonder if the issue could be the DDI - last version available in the repo used by go-ios for mounting DDI is for 16.6 and you are using 16.7.10 - the problem is that I don't have a 16.7.10 device to test it out :( I'll see if I can add a check for DDI - if it is mounted to skip mounting it again, so if Xcode mounts it it doesn't get replaced with something that doesn't work

@Gnanaprakash22
Copy link

@shamanec your video instructions are on point :) i was not aware of xtcrunner

@shamanec i resolved this issue by adding xtcrunner to my wda bundle id when adding provider config in UI, previously my bundle id was com.facebook.WebDriverAgentRunner i modified it to com.facebook.WebDriverAgentRunner.xtcrunner connected IOS device became available.

Yeah, that is the reason there are tooltips 😅 Let me know if I haven't provided a correct example for that in the tooltip for the file in the provider config in the UI!

@aheiahei12ya could this be the same issue?

@shamanec
Copy link
Owner

shamanec commented Sep 13, 2024

@aheiahei12ya it doesn't seem to be related to DDI mounting, if DDI is mounted it already skips trying to mount, I just forgot that it works that way :D Are you using a paid developer account to sign WDA? I noticed that I get kinda similar errors while it waits for WDA to start, maybe it doesn't start properly?

@novikov-k
Copy link

Hi, I have a similar problem, tested on iOS 17.5.1 and iOS 16, macOS 14.3, free Xcode license. What are the possible solutions?

@shamanec
Copy link
Owner

@novikov-k I use a paid developer account so I can't tell for sure what could be the reason. Another person recently had a similar problem and it was due to a bad provider configuration. Can you send me the provider config from the Mongo collection or a screenshot from the config in the UI?

@bug-reporter-2024
Copy link

I was able to work around this issue on a macOS provider by hardcoding the provider to always install WebAgentDriver via Xcode.

@shamanec
Copy link
Owner

There might be unforeseen problems with go-ios installations and startup that are not in my power to fix, but most people have no issues with these so I don't know whats happening 🤷‍♂️ Also @gads-bug-reporter I don't know you, where is that nickname coming from? 🤣

@Mechming
Copy link
Contributor

I am experiencing the same issue with a iphone 8 and ios 16.7.10 it goes into a wda install loop and i get the same error messages.

@shamanec
Copy link
Owner

@Mechming I need to see your provider config, also you can provide more information, like which OS is the host?

@shamanec
Copy link
Owner

Also are you by any chance using a free Apple developer account?

@Mechming
Copy link
Contributor

Mechming commented Oct 21, 2024

Hey thanks for the quick answer.
I am using a paid Apple developer account.
The host is a MacBook Pro with MacOs Ventura 13.7 (22H123)
The iPhone is a iPhone8 with iOS 16.7.10 (in developer mode)
I will test other iPhones today as well with other iOS versions maybe there is a problem with that specific version.

I am using your fork of WDA and I singed it using our Wildcard certificate.
For the provider config do you want the ui config?
I just swapped the BundleID to the default I am using a unique ID in my normal config.
Screenshot 2024-10-21 at 09 37 26

@shamanec
Copy link
Owner

Yeah, I just wanted to see if the xctrunner extension is present, because this was the issue for another person :) Seems like a far fetch but you can try using your actual local network IP address of the host instead of 127.0.0.1, not really sure if it would help. You are the second person to report a problem with 16.7.10 though, I just don't know how to debug it without having a device with that particular iOS version :(

@shamanec
Copy link
Owner

@Mechming we could try and do a remote debug session if that is a possibility and you are willing. If I find out the issue I might fix it for everybody, you can contact me on Discord if you want :)

@yunki-cmd
Copy link

Hello, the same issue here with iOS versions 17.4.1 and 16.4.1. Strangely, it works with iOS 17.1.1. Running from a Mac with Sonoma 14.3.1. Has any solution been found?
image

@shamanec
Copy link
Owner

shamanec commented Nov 14, 2024

Honestly - I have no idea 😓 I got only 4 iOS devices and it always works for me so I can't reproduce. Some people use the project with a big pool of devices without any similar failures. For some people like you - it fails. Up until now I was able to do a live debug session with only two people that had this issue and for both it was a problem with the provider setup. Since at least some devices work for you I doubt this is the reason...

  1. Are you using a paid developer account?
  2. Is developer mode enabled on all devices?
  3. Are all devices connected via USB?

It kind of looks like the app installation failed because it doesn't reach 100% but maybe something else fails and stops it in the meantime. If it is possible for you to do a live debug session with me you can contact me on Discord @yunki-cmd

@yunki-cmd
Copy link

Honestly - I have no idea 😓 I got only 4 iOS devices and it always works for me so I can't reproduce. Some people use the project with a big pool of devices without any similar failures. For some people like you - it fails. Up until now I was able to do a live debug session with only two people that had this issue and for both it was a problem with the provider setup. Since at least some devices work for you I doubt this is the reason...

  1. Are you using a paid developer account?
  2. Is developer mode enabled on all devices?
  3. Are all devices connected via USB?

It kind of looks like the app installation failed because it doesn't reach 100% but maybe something else fails and stops it in the meantime. If it is possible for you to do a live debug session with me you can contact me on Discord @yunki-cmd

Hi, In the end, the initial issue was due to the account not being renewed. After renewing it and testing the new version of GADS v2.5.0, another problem arose.

Every time the provider started, the "Trust This Computer" alert message popped up on the iPhones. Even after accepting it multiple times, the popup reappeared with every provider reset. It’s worth noting that this didn’t happen with the previous version of GADS; it only started occurring after the upgrade.

I eventually resolved the issue by following the Configurator guide. However, I had to manually input the password into the database and had to make was replacing the custom WDA with the Appium WDA.

Could this be due to a recent change in the configuration, or am I missing an additional setting?

Additionally, I’ve noticed that the error 0530 from forward occasionally appears: close clientConn --> deviceConn. Despite this, the device is controlled properly, and the automation works as expected. I’ve attached a screenshot for clarification.

vncviewer_9aHveOsZIu

@shamanec
Copy link
Owner

In the latest release I've updated the go-ios dependency to the latest version, hopefully things will be more stable 🤞

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

7 participants